Question
Question: How do you find the derivative of \(2x\cos x\)?...
How do you find the derivative of 2xcosx?
Solution
In this problem we need to calculate the derivative of the given function. We can observe that the given function has two different functions in multiplication. The first one is the algebraic function which is 2x. The second one is the trigonometric function which is cosx. We will write the both functions as two separate variables. Now we will differentiate the both the variables with respect to x by using the differentiation formulas. After calculating the derivatives of each function, we will use the uv formula of the differentiation which is dxd(uv)=udxdv+vdxdu. We will substitute the differentiation values of each variable in the above equation and simplify them to get the required result.
Complete step-by-step solution:
Given that, 2xcosx.
In the above function we have two functions, the first one is 2x second one is cosx.
Let us assume that
u=2x, v=cosx
Differentiating the above equations with respect to x, then we will get
⇒dxdu=dxd(2x), ⇒dxdv=dxd(cosx)
We have the differentiation formulas dxd(ax)=a, dxd(cosx)=−sinx. Applying the above formulas in the above equation, then we will get
⇒dxdu=2, ⇒dxdv=−sinx
Now differentiating the given function 2xcosx with respect to x, then we will have dxd(2xcosx).
Applying the formula dxd(uv)=udxdv+vdxdu in the above value, then we will get
⇒dxd(2xcosx)=2xdxdv+cosxdxdu
Substituting the values, we have, in the above equation, then we will get
⇒dxd(2xcosx)=2x(−sinx)+cosx(2)⇒dxd(2xcosx)=2cosx−2xsinx
Hence the derivative of the given value 2xcosx is 2cosx−2xsinx.
Note: In this problem we have calculated the values of dxdu, dxdv separately which is not necessary for this particular problem. But it is a good practice to calculate them separately. It will be very useful when we have complex functions.