Solution:
Key idea: In (cosx)cosx both the base and the power contain x, so we take logarithms and use the product rule.
Step 1 — Take logarithms of both sides.
Let y=(cosx)cosx, taken where cosx>0. The natural logarithm brings the power cosx down.
logy=cosxlogcosx
Step 2 — Differentiate both sides with respect to x.
By the product rule, the derivative of cosx is −sinx, and by the chain rule the derivative of logcosx is cosx−sinx.
y1dxdy=cosx⋅cosx−sinx+logcosx⋅(−sinx)
y1dxdy=−sinx−sinxlogcosx
We take out the common factor −sinx.
y1dxdy=−sinx(1+logcosx)
Step 3 — Multiply both sides by y.
We multiply by y=(cosx)cosx.
dxdy=−sinx(cosx)cosx(1+logcosx)
Therefore, dxdy=−sinx(cosx)cosx(1+logcosx).