Solveeit Logo

Question

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

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

Explanation

Solution

We are given a function, cos2(3x){{\cos }^{2}}\left( 3x \right) and we have to find its derivative. We can see that our function is made by composition of different functions. So, we will use the chain rule to find its derivative. We will learn about chain rule and use it to find the derivative of cos2(3x){{\cos }^{2}}\left( 3x \right). We will use d(xn)dx=nxn1\dfrac{d\left( {{x}^{n}} \right)}{dx}=n{{x}^{n-1}}, derivative of (kx)\left( kx \right) is kk times derivative of xx to get our required answer.

Complete step by step solution:
We are given a function cos2(3x){{\cos }^{2}}\left( 3x \right). We can see that it is not a simple function, it consists of more than one function. Our given function is made by the composition of cosx,3x\cos x,3x and x2{{x}^{2}}. We know that when a function is made by the composition of different functions, then in order to find its derivative, we use the chain rule. The chain rule states that if we have a function as u[v(x)]u\left[ v\left( x \right) \right], then,
du[v(x)]dx=u[v(x)].v(x)\dfrac{du\left[ v\left( x \right) \right]}{dx}={{u}^{'}}\left[ v\left( x \right) \right].{{v}^{'}}\left( x \right)
Now in our function, we have, cos2(3x){{\cos }^{2}}\left( 3x \right), so it is written as,
cos2(3x)=[cos(3x)]2{{\cos }^{2}}\left( 3x \right)={{\left[ \cos \left( 3x \right) \right]}^{2}}
Now, we know that,
d(xn)dx=nxn1\dfrac{d\left( {{x}^{n}} \right)}{dx}=n{{x}^{n-1}}
So, putting [cos(3x)]\left[ \cos \left( 3x \right) \right] as yy, we get,
d(y2)dx=2y21 d(y2)dx=2[cos(3x)] \begin{aligned} & \dfrac{d\left( {{y}^{2}} \right)}{dx}=2{{y}^{2-1}} \\\ & \Rightarrow \dfrac{d\left( {{y}^{2}} \right)}{dx}=2\left[ \cos \left( 3x \right) \right] \\\ \end{aligned}
We know that the derivative of cosx=sinx\cos x=-\sin x, so the derivative of cos(3x)=sin(3x)\cos \left( 3x \right)=-\sin \left( 3x \right).
And lastly the derivative of 3x3x is,
d(3x)dx=3d(x)dx=3\dfrac{d\left( 3x \right)}{dx}=\dfrac{3d\left( x \right)}{dx}=3
So, combining these we get,
d[cos2(3x)]dx=2cos(3x)×(sin(3x))×3\dfrac{d\left[ {{\cos }^{2}}\left( 3x \right) \right]}{dx}=2\cos \left( 3x \right)\times \left( -\sin \left( 3x \right) \right)\times 3
Simplifying we get,
=6sin3xcos3x=-6\sin 3x\cos 3x
We can further simplify it using the identity, sin2x=2sinxcosx\sin 2x=2\sin x\cos x, so we have,
2sin3xcos3x=sin(2×3x) 2sin3xcos3x=sin6x \begin{aligned} & 2\sin 3x\cos 3x=\sin \left( 2\times 3x \right) \\\ & \Rightarrow 2\sin 3x\cos 3x=\sin 6x \\\ \end{aligned}
So, our solution becomes, 3sin(6x)-3\sin \left( 6x \right).

Note: While simplifying dfractions, we need to remember that we can add only the like terms. While calculating the derivative we need to be careful while picking the functions. If one function is comprised of more than one function then its derivative will be different than the usual, like d(e2x)dxe2x\dfrac{d\left( {{e}^{2x}} \right)}{dx}\ne {{e}^{2x}} as it is made up by the composition of ex{{e}^{x}} and 2x2x. Also, while differentiating we need to carefully use d(xn)=n.xn1d\left( {{x}^{n}} \right)=n.{{x}^{n-1}}, simple errors may happen while calculating.