How do you differentiate $x^{\cos(x)}$
I encounter this problem in my homework but I don't know how to differentiate it. Do you need use logarithmic differentiation to do this?
Thank you!
How do you differentiate $x^{\cos(x)}$
I encounter this problem in my homework but I don't know how to differentiate it. Do you need use logarithmic differentiation to do this?
Thank you!
On
Let $y=x^{\cos(x)}$. Now take the log of both sides:
$$\log(y) = \cos(x) \log(x). $$
Now differentiate both sides (with the product rule):
$$ \frac{y'}{y} = -\sin(x) \log(x) + \cos(x) \frac{1}{x}.$$
Note that $y'$ (the expression we seek) equals $$ y' = y\left[ -\sin(x) \log(x) + \cos(x) \frac{1}{x} \right]. $$
Replace the original expression for $y$ into the above and you're done.
Let $$y=x^{\cos(x)}$$ then we get by taking the logarithm $$\ln(y)=\cos(x)\ln(x)$$ and now by the chain rule we obtain: $$\frac{y'(x)}{y(x)}=-\sin(x)\ln(x)+\frac{\cos(x)}{x}$$ Can you finish?