Question
Question: How do you differentiate \[f\left( x \right)=2x\sin x\]?...
How do you differentiate f(x)=2xsinx?
Solution
Assume the given function as f(x). Consider f(x) as the product of an algebraic function and a trigonometric function. Now, apply the product of differentiation given as: - dxd(u×v)=udxdv+vdxdu. Here, consider, u = x and v=sinx. Use the formula: - dxdsinx=cosx to simplify the derivative and get the answer.
Complete step by step answer:
Here, we have been provided with the function 2xsinx and we are asked to differentiate it. Let us assume the given function as f(x). So, we have,
⇒f(x)=2xsinx
Now, we can assume the given function as the product of an algebraic function (x) and a trigonometric function (sinx), which are multiplied to a constant 2. So, we have,
⇒f(x)=2×x×sinx
Let us assume x as ‘u’ and sinx as ‘v’. So, we have,
⇒f(x)=2×u×v
Differentiating both the sides with respect to x, we get,
⇒dxdf(x)=dxd[2(u×v)]
Since, 2 is a constant so it can be taken out of the derivative, so we get,
⇒f′(x)=2dxd(u×v)
Now, applying the product rule of differentiation given as: - dxd(u×v)=udxdv+vdxdu, we get,
⇒f′(x)=2[udxdv+vdxdu]
Substituting the assumed values of u and v, we get,
⇒f′(x)=2[xdxdsinx+sinxdxdx]
We know that dxdsinx=cosx, so we have,