Question
Question: How do you differentiate \[f\left( x \right)=2\sin x\cos x\]?...
How do you differentiate f(x)=2sinxcosx?
Solution
Assume f(x) as the product of two trigonometric functions sinx and cosx and consider them as ‘u’ and ‘v’ respectively. Now, apply the product rule of differentiation given as: - dxd(u×v)=udxdv+vdxdu to get the answer. Use the formula: - dxd(cosx)=−sinx and dxd(sinx)=cosx. Use the relation: - cos2x−sin2x=cos2x.
Complete step by step answer:
Here, we have been provided with the function f(x)=2sinxcosx and we are asked to differentiate it.
Now, we can assume the function given as the product of two trigonometric functions i.e., sinx and cosx, which is multiplied to a constant 2. So, we have,
⇒f(x)=2×cosx×sinx=2×sinx×cosx
Let us assume sinx and cosx as ‘u’ and ‘v’ respectively.
So, we have,
⇒f(x)=2×u×v
Differentiating both the sides with respect to x, we get,
⇒dxd[f(x)]=dxd(2×u×v)
Since, 2 is a constant so it can be taken out of the derivative. Therefore, we have,
⇒dxd[f(x)]=2×dxd(u×v)
Now, applying the product rule of differentiation given as: - dxd(u×v)=udxdv+vdxdu, we get,
⇒dxd[f(x)]=2×[udxdv+vdxdu]
Substituting the assumed values of u and v, we get,
⇒dxd[f(x)]=2×[sinxdxd(cosx)+cosxdxd(sinx)]
Using the basic formulas: - dxd(cosx)=−sinx and dxd(sinx)=cosx, we get,