Solveeit Logo

Question

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

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

Explanation

Solution

This can be solved in two ways. Either we can use the normal product rule for differentiation or we can use the trigonometric identity 2cosxsinx=sin2x2\cos x\sin x = \sin 2x.

Formula used:
Product rule of differentiation,
d(uv)dx=udvdx+vdudx\dfrac{{d(uv)}}{{dx}} = u\dfrac{{dv}}{{dx}} + v\dfrac{{du}}{{dx}} , where u,vu,v are functions of xx .
Trigonometric identity,
cos2xsin2x=cos2x{\cos ^2}x - {\sin ^2}x = \cos 2x
Chain rule of differentiation,
h(x)=f(g(x))×g(x)h {’}(x) = f {’}(g(x)) \times g {’}(x) , where f,gf,g are functions of xx and hh is composite function of f,gf,g.

Complete step-by-step answer:
Let us try the product rule of differentiation to solve the problem.
Let y=f(x)=2cosxsinxy = f(x) = 2\cos x\sin x and g(x)=cosxsinxg(x) = \cos x\sin x
f(x)=2g(x)\Rightarrow f ' (x) = 2g ' (x) ------------(1)
Therefore, let us find the derivative of g(x)g(x) using the product rule of differentiation.
Here, let u=cosxu = \cos x and v=sinxv = \sin x.
dvdx=d(sinx)dx=cosx\Rightarrow \dfrac{{dv}}{{dx}} = \dfrac{{d(\sin x)}}{{dx}} = \cos x and
dudx=d(cosx)dx=sinx\dfrac{{du}}{{dx}} = \dfrac{{d(\cos x)}}{{dx}} = - \sin x
Substituting, we get
d(uv)dx=d(cosx×sinx)dx=g(x)\dfrac{{d(uv)}}{{dx}} = \dfrac{{d(\cos x \times \sin x)}}{{dx}} = g ' (x)
vdudx+udvdx=cosx×cosx+sinx×sinxv\dfrac{{du}}{{dx}} + u\dfrac{{dv}}{{dx}} = \cos x \times \cos x + \sin x \times - \sin x
Equating,
g(x)=cos2xsin2xg ' (x) = {\cos ^2}x - {\sin ^2}x
We know,
cos2xsin2x=cos2x{\cos ^2}x - {\sin ^2}x = \cos 2x
g(x)=cos2x\Rightarrow g ' (x) = \cos 2x
Therefore, from equation (1) we have,
f(x)=2cos2xf ' (x) = 2\cos 2x
Thus, the derivative of y=2cosxsinxy = 2\cos x\sin x is 2cos2x2\cos 2x.

Additional information:
Let f(x)f(x)and g(x)g(x) be two functions of xx. Let h(x)h(x) be another function such that h(x)=f(g(x))h(x) = f(g(x)).
Also let f(x),g(x),h(x)f ' (x),g ' (x),h ' (x) be the derivatives of those functions. Then, as per chain rule, we have
h(x)=f(g(x))×g(x)h ' (x) = f ' (g(x)) \times g ' (x).

Note: This question can also be solved using the trigonometric identity 2cosxsinx=sin2x2\cos x\sin x = \sin 2x
y=f(x)=2cosxsinx=sin2x\Rightarrow y = f(x) = 2\cos x\sin x = \sin 2x
Now, we find the derivative of f(x)f(x) using standard derivatives as well as chain rule of differentiation.
The derivative of sinx\sin x is cosx\cos x , as we all know.
Also, the derivative of 2x2x is 22.
Therefore, the derivative of y=f(x)=2cosxsinx=sin2xy = f(x) = 2\cos x\sin x = \sin 2x is
dydx=d(sin2x)dx=cos2x×d(2x)dx\dfrac{{dy}}{{dx}} = \dfrac{{d(\sin 2x)}}{{dx}} = \cos 2x \times \dfrac{{d(2x)}}{{dx}}
=cos2x×2=2cos2x= \cos 2x \times 2 = 2\cos 2x
Which is the same result we got using the previous method.