Solution:
Key idea: In (sinx)x both the base and the power contain x, so we use logarithmic differentiation: logy=(power)×log(base), then the product rule.
Step 1 — Take logarithms of both sides.
Let y=(sinx)x, taken where sinx>0. The natural logarithm brings the power x down.
logy=xlogsinx
Step 2 — Differentiate both sides with respect to x.
By the product rule, we differentiate x to get 1, and we differentiate logsinx by the chain rule to get sinxcosx.
y1dxdy=x⋅sinxcosx+logsinx⋅1
y1dxdy=xcotx+logsinx
Step 3 — Multiply both sides by y.
We multiply by y=(sinx)x.
dxdy=(sinx)x[xcotx+logsinx]
Therefore, dxdy=(sinx)x(xcotx+logsinx).