Use logarithmic differentiation to find the derivative of y = (cos(x))^ln(x)
Okay so this question is on my exam study guide for Calculus 1, and I'm having trouble getting to an answer. Here are the steps I have tried currently.
- Given: $y = (cos(x))^ln(x)$
- Logarithmic differentiation: $ln(y) = ln(cos(x)^ln(x))$
- Simplify: $(1/y)*(dy/dx) = ln(x) * ln(cos(x))$
- Simplify: $(1/y)*(dy/dx) = (1/x) * ln(cos(x))$
- Product Rule: $(1/y)*(dy/dx) = (1/x) * ln(cos(x)) + (ln(cos(x)))' * ln(x)$
- Chain Rule: $(1/y)*(dy/dx) = (1/x)*ln(cos(x)) + [1/cos(x) * -sin(x) * ln(x)]$
- Answer: $(dy/dx) = y((1/x)*ln(cos(x)) + [1/cos(x) * -sin(x) * ln(x)])$
Can someone help as to see where I went wrong in my thinking here
$\endgroup$ 22 Answers
$\begingroup$$$\begin{align}y=(\cos x)^{\ln x}&\implies \ln y=\ln x\ln(\cos x)\quad\boxed{\text{take logs and use that}\, \ln(a^b)=b\ln a}\\&\implies \overbrace{\frac1y\cdot\frac{dy}{dx}}^{\text{chain rule}}=\overbrace{\frac1x\ln(\cos x)+\ln x\cdot\left(\underbrace{\frac1{\cos x}\cdot(-\sin x)}_{\text{chain rule}}\right)}^{\text{product rule}}\\&\implies \frac{dy}{dx}=(\cos x)^{\ln x}\left(\frac{\ln(\cos x)}x-\tan x\ln x\right)\quad\boxed{\text{simplify}}\end{align}$$
$\endgroup$ 3 $\begingroup$we get $$\frac{y'}{y}=\frac{1}{x}\ln(\cos(x))+\ln(x)\cdot \frac{1}{\cos(x)}\cdot (-\sin(x))$$
$\endgroup$