Solveeit Logo

Question

Question: How do you find the derivative of \({{\cos }^{2}}\left( {{x}^{3}} \right)\)?...

How do you find the derivative of cos2(x3){{\cos }^{2}}\left( {{x}^{3}} \right)?

Explanation

Solution

We first define the chain rule and how the differentiation of composite function works. We take differentiation of the main function with respect to the intermediate function and then take differentiation of the intermediate function with respect to xx. We take multiplication of these two different differentiated values.

Complete step by step solution:
We differentiate the given function f(x)=cos2(x3)f\left( x \right)={{\cos }^{2}}\left( {{x}^{3}} \right) with respect to xx using the chain rule.
Here we have a composite function where the main function is g(x)=cos2xg\left( x \right)={{\cos }^{2}}x and the other function is h(x)=x3h\left( x \right)={{x}^{3}}.
We have goh(x)=g(x3)=cos2(x3)goh\left( x \right)=g\left( {{x}^{3}} \right)={{\cos }^{2}}\left( {{x}^{3}} \right). We take this as ours f(x)=cos2(x3)f\left( x \right)={{\cos }^{2}}\left( {{x}^{3}} \right).
We need to find the value of ddx[f(x)]=ddx[cos2(x3)]\dfrac{d}{dx}\left[ f\left( x \right) \right]=\dfrac{d}{dx}\left[ {{\cos }^{2}}\left( {{x}^{3}} \right) \right]. We know f(x)=goh(x)f\left( x \right)=goh\left( x \right).
Differentiating f(x)=goh(x)f\left( x \right)=goh\left( x \right), we get
ddx[f(x)]=ddx[goh(x)]=dd[h(x)][goh(x)]×d[h(x)]dx=g[h(x)]h(x)\dfrac{d}{dx}\left[ f\left( x \right) \right]=\dfrac{d}{dx}\left[ goh\left( x \right) \right]=\dfrac{d}{d\left[ h\left( x \right) \right]}\left[ goh\left( x \right) \right]\times \dfrac{d\left[ h\left( x \right) \right]}{dx}={{g}^{'}}\left[ h\left( x \right) \right]{{h}^{'}}\left( x \right).
The above-mentioned rule is the chain rule.
The chain rule allows us to differentiate with respect to the function h(x)h\left( x \right) instead of xx and after that we need to take the differentiated form of h(x)h\left( x \right) with respect to xx.
For the function f(x)=cos2(x3)f\left( x \right)={{\cos }^{2}}\left( {{x}^{3}} \right), we take differentiation of f(x)=cos2(x3)f\left( x \right)={{\cos }^{2}}\left( {{x}^{3}} \right) with respect to the function h(x)=x3h\left( x \right)={{x}^{3}} instead of xx and after that we need to take the differentiated form of h(x)=x3h\left( x \right)={{x}^{3}} with respect to xx.
We know the multiple angle formula of sin2x=2sinxcosx\sin 2x=2\sin x\cos x.
The differentiation of g(x)=cos2xg\left( x \right)={{\cos }^{2}}x is g(x)=2cosxd(cosx)dx=2sinxcosx=sin2x{{g}^{'}}\left( x \right)=2\cos x\dfrac{d\left( \cos x \right)}{dx}=-2\sin x\cos x=-\sin 2x and differentiation of h(x)=x3h\left( x \right)={{x}^{3}} is h(x)=3x2{{h}^{'}}\left( x \right)=3{{x}^{2}}. We apply the formula of ddx(xn)=nxn1\dfrac{d}{dx}\left( {{x}^{n}} \right)=n{{x}^{n-1}}.
ddx[f(x)]=dd[x3][cos2(x3)]×d[x3]dx\Rightarrow \dfrac{d}{dx}\left[ f\left( x \right) \right]=\dfrac{d}{d\left[ {{x}^{3}} \right]}\left[ {{\cos }^{2}}\left( {{x}^{3}} \right) \right]\times \dfrac{d\left[ {{x}^{3}} \right]}{dx}
We place the values of the differentiations and get
ddx[f(x)]=(sin2x3)[3x2]=3x2sin(2x3)\Rightarrow \dfrac{d}{dx}\left[ f\left( x \right) \right]=\left( -\sin 2{{x}^{3}} \right)\left[ 3{{x}^{2}} \right]=-3{{x}^{2}}\sin \left( 2{{x}^{3}} \right)
Therefore, differentiation of cos2(x3){{\cos }^{2}}\left( {{x}^{3}} \right) is 3x2sin(2x3)-3{{x}^{2}}\sin \left( 2{{x}^{3}} \right).

Note: We need remember that in the chain rule dd[h(x)][goh(x)]×d[h(x)]dx\dfrac{d}{d\left[ h\left( x \right) \right]}\left[ goh\left( x \right) \right]\times \dfrac{d\left[ h\left( x \right) \right]}{dx}, we aren’t cancelling out the part d[h(x)]d\left[ h\left( x \right) \right]. Cancelation of the base differentiation is never possible. It’s just a notation to understand the function which is used as a base to differentiate.