Solution:
Key idea: We differentiate y=xtanx by the product rule, (uv)′=uv′+vu′, multiply the result by xsin2x, and then recognise y and tan2x in the two terms, using sec2x=cos2x1.
Step 1 — Differentiate y.
We let u=x and v=tanx, so u′=1 and v′=sec2x.
dxdy=xsec2x+tanx
Step 2 — Multiply by xsin2x.
We multiply each term of dxdy by xsin2x.
xsin2xdxdy=x2sin2xsec2x+xtanxsin2x
Step 3 — Simplify the first term.
Since sec2x=cos2x1, we have sin2xsec2x=cos2xsin2x, the same as tan2x.
x2sin2xsec2x=x2tan2x
Step 4 — Recognise y in the second term.
The factor xtanx is exactly y.
xtanxsin2x=ysin2x
Step 5 — Put the two terms together.
We add the results of Steps 3 and 4.
xsin2xdxdy=x2tan2x+ysin2x
Hence proved: xsin2xdxdy=x2tan2x+ysin2x.