By the Sum Rule, the derivative of with respect to is .

Differentiate using the Power Rule which states that is where .

Since is constant with respect to , the derivative of with respect to is .

Differentiate using the Power Rule which states that is where .

Multiply by .

Reorder terms.

Find the Derivative – d/dx x-x^2