Question
Question: What is the derivative of \[y = {x^{\cos x}}\] ?...
What is the derivative of y=xcosx ?
Solution
Hint : We are given with a function y. we have to find the derivative of the given function. The function has another trigonometric function as a power of the base function. So we will apply natural log on both sides and then we will use the product rule for it. That will give the derivative of the function.
Complete step by step solution:
Given that,
y=xcosx
The derivative of the function is given as;
dxdy=dxdxcosx
Now we will apply the natural log to the given function first,
lny=lnxcosx
We know the rule for natural log,
lny=cosx.lnx
Now applying the product rule on RHS that is taking the derivative of the first function and keeping the second function as it is and then adding the derivative of the second function keeping the first function as it is.
Here cos and natural log are the two functions.
We know that, dxdcosx=−sinx and dxdlnx=x1
y1.dxdy=(−sinx)lnx+cosxx1
rearranging the terms,
y1.dxdy=(−sinx)lnx+xcosx
Transposing y we get,
dxdy=y[(−sinx)lnx+xcosx]
Taking the positive term first,
dxdy=y[xcosx−sinx.lnx]
This is the derivative of the above function.
So, the correct answer is “ dxdy=y[xcosx−sinx.lnx] ”.
Note : Note that when two functions that can be derivated are there we use this product rule. If y=f(x).g(x) then the product rule says that y′=f(x).g′(x)+f′(x).g(x) Don’t get confused with integration by parts. It is the concept used in integration of the functions.