Let .
Apply the power rule: goes to
Then, apply the chain rule. Multiply by :
Rewrite the function to be differentiated:
Let .
Apply the power rule: goes to
Then, apply the chain rule. Multiply by :
The derivative of cosine is negative sine:
The result of the chain rule is:
The result of the chain rule is:
Now simplify:
The answer is: