Question
Question: How do you find the derivative of \(y = 2\cos x\sin x\)?...
How do you find the derivative of y=2cosxsinx?
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=sin2x.
Formula used:
Product rule of differentiation,
dxd(uv)=udxdv+vdxdu , where u,v are functions of x .
Trigonometric identity,
cos2x−sin2x=cos2x
Chain rule of differentiation,
h’(x)=f’(g(x))×g’(x) , where f,g are functions of x and h is composite function of f,g.
Complete step-by-step answer:
Let us try the product rule of differentiation to solve the problem.
Let y=f(x)=2cosxsinx and g(x)=cosxsinx
⇒f′(x)=2g′(x) ------------(1)
Therefore, let us find the derivative of g(x) using the product rule of differentiation.
Here, let u=cosx and v=sinx.
⇒dxdv=dxd(sinx)=cosx and
dxdu=dxd(cosx)=−sinx
Substituting, we get
dxd(uv)=dxd(cosx×sinx)=g′(x)
vdxdu+udxdv=cosx×cosx+sinx×−sinx
Equating,
g′(x)=cos2x−sin2x
We know,
cos2x−sin2x=cos2x
⇒g′(x)=cos2x
Therefore, from equation (1) we have,
f′(x)=2cos2x
Thus, the derivative of y=2cosxsinx is 2cos2x.
Additional information:
Let f(x)and g(x) be two functions of x. Let h(x) be another function such that h(x)=f(g(x)).
Also let 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).
Note: This question can also be solved using the trigonometric identity 2cosxsinx=sin2x
⇒y=f(x)=2cosxsinx=sin2x
Now, we find the derivative of f(x) using standard derivatives as well as chain rule of differentiation.
The derivative of sinx is cosx , as we all know.
Also, the derivative of 2x is 2.
Therefore, the derivative of y=f(x)=2cosxsinx=sin2x is
dxdy=dxd(sin2x)=cos2x×dxd(2x)
=cos2x×2=2cos2x
Which is the same result we got using the previous method.