Question
Question: How do you differentiate \(y = {x^{2\cos x}}\)?...
How do you differentiate y=x2cosx?
Solution
In this problem we have given an equation and we are asked to differentiate the given term. The term which is given for us is somewhat difficult to differentiate. So we cannot differentiate normally, so we are going to chain rule methods to differentiate the given term.
Formula used: dxd(xn)=nxn−1
dxd(cosx)=−sinx
dxdIn(x)=x1
uv=uv′−vu′
Complete step-by-step solution:
Let us take y=f(x)=x2cosx
Now let’s differentiate f(x) with respect to x, and we get
⇒dxdy=dxd(x2cosx)dxd(2cosx)−−−−−(1), here we use the formulasdxd(xn)=nxn−1 and ⇒dxd(cosx)=−sinx in the right hand side to derive the equation (1) and we get,
⇒dxdy=(2cosx×x2cosx−1)(−2sinx)
Multiplying the terms on the right hand side, implies
⇒dxdy=−4sinxcosx×x2cosx−1
Therefore, we have differentiated the given term and we get dxdy=−4sinxcosx×x2cosx−1 as the required answer.
Additional Information: The chain rule states that the derivative of f(g(x))isf′(g(x)).g′(x). In other word, it helps us to differentiate composite functions. In calculus, logarithmic differentiation or differentiation by taking logarithms is a method used to differentiate functions by employing the logarithmic derivative of a function f, (In f)′=ff′. This technique is often performed in cases where it is easier to differentiate the logarithm of a function rather than the function itself.
Note: We can use some other method of logarithmic differentiation to derive y=x2cosx .
Let’s rewrite the y as e to a power.
∴y=x2cosx=e2cosxln(x)−−−−−(1)
Now use the formula dxd(eu)=eudxduin (1)
Differentiate (1), we get
dxdy=e2cosxln(x)dxd2cosxln(x)
Differentiation of In(x)isx1, and also we need to use uv formula, now apply this in the above equation, we get
dxdy=x2cosx[x2cosx−2sinxln(x)]
This is also one of the ways to differentiate the given term by using logarithmic differentiation.