Solveeit Logo

Question

Question: How do you find the derivative of \(y = \cos 2x\) ?...

How do you find the derivative of y=cos2xy = \cos 2x ?

Explanation

Solution

Here we have a function inside another function, so we have to make use of chain rule to find the derivative of the given function. The chain rule is given by: ddx[f(g(x))]=f(g(x))g(x)\dfrac{d}{{dx}}\left[ {f\left( {g\left( x \right)} \right)} \right] = f'\left( {g\left( x \right)} \right)g'\left( x \right). Substitute f(x)f(x) as cos2x\cos 2x and g(x)g(x) as 2x2x and simplify to get the required answer.

Complete step-by-step answer:
Whenever they give a function first see whether a single function is given or function inside a function, because if we have a single function then we can directly differentiate the function, if function inside another function is given then we have to make use of chain rule to solve the problem.
Here we have a function 2x2x inside the other function cos\cos .
So, now we make use of chain rule to solve the problem. The chain rule is given by:
ddx[f(g(x))]=f(g(x))g(x)\dfrac{d}{{dx}}\left[ {f\left( {g\left( x \right)} \right)} \right] = f'\left( {g\left( x \right)} \right)g'\left( x \right)
Which is nothing but first we have to differentiate the outer function and then the inside function.
We know that the derivative of cosx\cos x is nothing but sinx - \sin x , so by using this in chain rule we can differentiate the given function that is y=cos2xy = \cos 2x. Now, if we differentiate cos2x\cos 2x we get sin2x - \sin 2x but again we need to differentiate the term 2x2x to get the final answer, which can be done in following way,
dydx=ddx(cos2x)\dfrac{{dy}}{{dx}} = \dfrac{d}{{dx}}\left( {\cos 2x} \right)
dydx=sin2x.ddx(2x)\Rightarrow \dfrac{{dy}}{{dx}} = - \sin 2x.\dfrac{d}{{dx}}\left( {2x} \right)
dydx=sin2x.2\Rightarrow \dfrac{{dy}}{{dx}} = - \sin 2x.2 or we can also write it as dydx=2sin2x \Rightarrow \dfrac{{dy}}{{dx}} = - 2\sin 2x
Therefore the derivative of the given function y=cos2xy = \cos 2x is dydx=2sin2x\dfrac{{dy}}{{dx}} = - 2\sin 2x .

Note: Whenever we have to find derivatives of given functions you should be knowing the basic trigonometric derivatives so that we can solve in the correct way, otherwise we may end up in the wrong answer. In case of function inside function do not forget to make use of chain rule.