When we differentiate trigonometric functions, the result is another trig function. The first few derivatives in the list below are worth memorizing. Don’t forget that chain rule & friends apply for all functions, not just polynomials. Given the first two rows below, you should be able to derive the rest using just the power rule and the chain rule.
Using the constant rule, we have
and using the power rule and chain rule, we have
Now we must keep using the chain rule:
This simplifies to
but we aren’t done with the chain rule:
There is finally nothing left to differentiate. We have