Let:
y=cosxcos2xcos3x
Taking logs on both sides, we have:
logy=log(cosxcos2xcos3x)
Thus:
logy=logcosx+logcos2x+logcos3x
Differentiating both sides with respect to x:
y1⋅dxdy=cosx1⋅dxd(cosx)+cos2x1⋅dxd(cos2x)+cos3x1⋅dxd(cos3x)
Thus:
y1⋅dxdy=−tanx−2tan2x−3tan3x
Simplifying:
dxdy=−cosxcos2xcos3x(tanx+2tan2x+3tan3x)
Thus:
dxdy=−cosxcos2xcos3x(tanx+2tan2x+3tan3x)