Given: (cosx)y=(cosy)x
Taking logs on both sides, we have:
log(cosx)y=log(cosy)x
ylogcosx=xlogcosy
Now differentiate both sides with respect to x:
dxd(ylogcosx)=dxd(xlogcosy)
Applying the product rule on both sides:
y⋅cosx1⋅(−sinx)+logcosx⋅dxdy=logcosy+x⋅cosy1⋅(−siny)⋅dxdy
Simplifying:
−ytanx+logcosx⋅dxdy=logcosy−xtany⋅dxdy
(logcosx+xtany)dxdy=ytanx+logcosy
dxdy=xtany+logcosxytanx+logcosy
Thus, the final answer is:
dxdy=xtany+logcosxytanx+logcosy