It's probably something obvious and I'm gonna slap myself in the face again, but
Why is the first derivative of $\sin^2(x)$ calculated via the chain rule? Isn't it just a standard $x^a$ (power rule) case, and therefore just $2\sin(x)$?
It's probably something obvious and I'm gonna slap myself in the face again, but
Why is the first derivative of $\sin^2(x)$ calculated via the chain rule? Isn't it just a standard $x^a$ (power rule) case, and therefore just $2\sin(x)$?
On
$\sin^2 x$ means $(\sin x)^2$. You’re asked to differentiate with respect to $x$, not $\sin x$, so the Chain Rule is required. So, this is a case of a composite function.
$$(f \circ g)’(x) = f’(g(x))\cdot g’$$
In this case, you have
$$\big(u^2\big)’ = 2u\cdot u’$$
where $u = \sin x$.
If, for whatever reason, you wanted to differentiate $u^2$ with respect to $u$, then you would have $2u$, but that isn’t the case.
On
No! More general you got for the function $f(x)=x^a$ we get as derivative
$$f'(x)=(x^a)'=a(x)^{a-1}\cdot(x)'=a(x)^{a-1}\cdot1=ax^{a-1}$$
This only works out since the derivatives of the inner function, $x$, equals $1$. For the case that we got another function $g(x)$ as inner function we are forced to use the chain rule and thus $(f(g(x)))'=f'(g(x))\cdot g'(x)$. Therefore for $f(x)=\sin^2(x)$ we got
$$f'(x)=(\sin^2(x))'=2\sin(x)\cdot(\sin(x))'=2\sin(x)\cdot\cos(x)=2\sin(x)\cos(x)$$
where the inner function is given by $g(x)=\sin(x)$ and the outer function $f(x)=x^2$.
$\sin x\ne x$, so using $x^a$ alone is not enough. In the $f(g(x))$ of the chain rule, $f(x)=x^2$ and $g(x)=\sin x$.