Question
Question: How do you find the derivative of \({{\cos }^{2}}\left( 3x \right)\)?...
How do you find the derivative of cos2(3x)?
Solution
We are given a function, cos2(3x) 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). We will use dxd(xn)=nxn−1, derivative of (kx) is k times derivative of x to get our required answer.
Complete step by step solution:
We are given a function cos2(3x). 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 and x2. 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)], then,
dxdu[v(x)]=u′[v(x)].v′(x)
Now in our function, we have, cos2(3x), so it is written as,
cos2(3x)=[cos(3x)]2
Now, we know that,
dxd(xn)=nxn−1
So, putting [cos(3x)] as y, we get,
dxd(y2)=2y2−1⇒dxd(y2)=2[cos(3x)]
We know that the derivative of cosx=−sinx, so the derivative of cos(3x)=−sin(3x).
And lastly the derivative of 3x is,
dxd(3x)=dx3d(x)=3
So, combining these we get,
dxd[cos2(3x)]=2cos(3x)×(−sin(3x))×3
Simplifying we get,
=−6sin3xcos3x
We can further simplify it using the identity, sin2x=2sinxcosx, so we have,
2sin3xcos3x=sin(2×3x)⇒2sin3xcos3x=sin6x
So, our solution becomes, −3sin(6x).
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 dxd(e2x)=e2x as it is made up by the composition of ex and 2x. Also, while differentiating we need to carefully use d(xn)=n.xn−1, simple errors may happen while calculating.