Solution:
Key idea: A first-order linear equation can be written as dxdy+Py=Q, where P and Q are functions of x only. Its integrating factor is IF=e∫Pdx. Multiplying the equation by the IF turns the left side into dxd(y⋅IF), so the solution is y⋅IF=∫Q⋅IFdx+c, where c is the arbitrary constant. In all three parts we take x>0 (and x=1 where we divide by logx) so that logx is defined.
Step 1 — Part (i): write the equation in standard form.
We divide every term by xlogx.
dxdy+xlogx1y=x2
Step 2 — Part (i): find the integrating factor.
We put logx=u, so xdx=du; then ∫xlogxdx=∫udu.
∫xlogxdx=log∣logx∣
So the IF is ∣logx∣; on an interval where logx keeps one sign we may drop the sign factor.
IF=logx
Step 3 — Part (i): solve.
We multiply Q=x2 by logx and integrate.
ylogx=∫x2logxdx
With logx=u and xdx=du the integral is ∫2udu=u2.
ylogx=(logx)2+c
Step 4 — Part (ii): write the equation in standard form.
Dividing by xlogx again gives the same P, so the IF is again logx.
dxdy+xlogx1y=x22
Step 5 — Part (ii): set up the integral.
We multiply Q=x22 by logx.
ylogx=∫x22logxdx
Step 6 — Part (ii): integrate by parts.
We take logx as the first function and x21 as the second, whose integral is −x1.
∫x2logxdx=−xlogx+∫x1⋅x1dx
The last integral is ∫x−2dx=−x1.
∫x2logxdx=−xlogx−x1
Multiplying by 2 and adding the constant gives the solution.
ylogx=−x2(1+logx)+c
Step 7 — Part (iii): write the equation in standard form.
We divide every term by x.
dxdy+x2y=xlogx
Step 8 — Part (iii): find the integrating factor.
Here P=x2, whose integral is 2logx=logx2.
IF=x2
Step 9 — Part (iii): integrate by parts.
We multiply Q=xlogx by x2, then integrate by parts with logx as the first function.
x2y=∫x3logxdx
x2y=4x4logx−∫4x4⋅x1dx
The last integral is ∫4x3dx=16x4.
x2y=4x4logx−16x4+c
Dividing by x2 and taking out 16x2 gives y.
y=16x2(4logx−1)+x2c
Therefore, (i) ylogx=(logx)2+c; (ii) ylogx=−x2(1+logx)+c; (iii) y=16x2(4logx−1)+x2c.