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

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

The derivative of with respect to is .

Multiply by .

Differentiate using the chain rule, which states that is where and .

To apply the Chain Rule, set as .

Differentiate using the Power Rule which states that is where .

Replace all occurrences of with .

The derivative of with respect to is .

Reorder terms.

Find the Derivative f(x)=2cos(x)+sin(x)^2