Watch Out
The #1 calculus mistake on CSCA. When the inner function isn't just $x$, you MUST multiply by its derivative. Skip it and the wrong answer is sitting right there to trap you.
(f(g(x)))′=f′(g(x))⋅g′(x)
Always multiply by the inner derivative
(sinx)′
=cosx
Inner is x; its derivative is 1
(sin2x)′
=2cos(2x)
Inner is 2x; its derivative is 2
(sinx2)′
=2xcos(x2)
Inner is x2; its derivative is 2x