# `y = (cos(x))^x` Use logarithmic differentiation to find the derivative of the function.

*print*Print*list*Cite

Expert Answers

embizze | Certified Educator

Differentiate `y=(cos(x))^x ` :

Take the natural logarithm of both sides:

`lny=ln(cos(x))^x `

Use the power property of logarithms:

`lny=xln(cos(x)) `

Differentiate; use the product rule on the RHS:

` (dy)/(dx)(1/y)=ln(cos(x))+x(-sin(x))/(cos(x)) `

`y'=y(ln(cos(x))-xtan(x)) `

Substituting for y we get:

` y'=(cos(x))^x(ln(cos(x))-xtan(x)) `