Solution:
Key idea: In (tanx)logx both the base and the power contain x, so we take logarithms, differentiate by the product rule and multiply back by y.
Step 1 — Take logarithms of both sides.
Let y=(tanx)logx, taken where x>0 and tanx>0. The natural logarithm brings the power logx down.
logy=logx⋅logtanx
Step 2 — Differentiate both sides with respect to x.
By the product rule, the derivative of logx is x1, and by the chain rule the derivative of logtanx is tanxsec2x.
y1dxdy=logx⋅tanxsec2x+logtanx⋅x1
Step 3 — Simplify tanxsec2x.
We write both in sines and cosines.
tanxsec2x=cos2x1⋅sinxcosx
tanxsec2x=sinxcosx1
So the right side becomes
y1dxdy=sinxcosxlogx+xlogtanx
Step 4 — Multiply both sides by y.
We multiply by y=(tanx)logx.
dxdy=(tanx)logx[sinxcosxlogx+xlogtanx]
Therefore, dxdy=(tanx)logx[sinxcosxlogx+xlogtanx].