Solution:
Key idea: When an equation has the form dxdy=f(x), we write dy=f(x)dx and integrate both sides. One arbitrary constant c is added, because the equation has order 1.
Step 1 — Rewrite sin2x.
Here log means the natural logarithm, so the equation needs x>0 and x=1. We use sin2x=21−cos2x so that the first term can be integrated.
xsin2x=2x−21xcos2x
Step 2 — Integrate 2x.
This is a power of x, so it integrates directly.
∫2xdx=4x2
Step 3 — Integrate xcos2x by parts.
We take u=x and dv=cos2xdx, so du=dx and v=2sin2x.
∫xcos2xdx=2xsin2x−∫2sin2xdx=2xsin2x+4cos2x
Multiplying by −21 gives the second part of the first term.
−21∫xcos2xdx=−4xsin2x−8cos2x
Step 4 — Integrate xlogx1.
We put t=logx, so dt=xdx.
∫xlogxdx=∫tdt=log∣logx∣
Step 5 — Combine the results.
Adding the three parts and one arbitrary constant c gives the general solution.
Therefore, the general solution is y=4x2−4xsin2x−8cos2x+log∣logx∣+c, for x>0, x=1.