Differentiate $\displaystyle y = (\cos x)^x$
$
\begin{equation}
\begin{aligned}
\ln y =& \ln (\cos x)^x
\\
\\
\ln y =& x \ln (\cos x)
\\
\\
\frac{d}{dx} (\ln y) =& \frac{d}{dx} [ x \ln (\cos x) ]
\\
\\
\frac{1}{y} \frac{dy}{dx} =& x \frac{d}{dx} [\ln (\cos x)] + \ln (\cos x) \frac{d}{dx} (x)
\\
\\
\frac{1}{y} y' =& x \cdot \frac{1}{\cos x} \frac{d}{dx} (\cos x) + \ln (\cos x)
\\
\\
\frac{y'}{y} =& \frac{x}{\cos x} \cdot (- \sin x) + \ln (\cos x)
\\
\\
y' =& y \left[ \frac{-x \sin x}{\cos x} + \ln (\cos x) \right]
\\
\\
y' =& (\cos x)^x [-x \tan x + \ln (\cos x)]
\\
\\
& \text{ or }
\\
\\
y' =& (\cos x)^x [\ln (\cos x) - x \tan x]
\end{aligned}
\end{equation}
$
No comments:
Post a Comment