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.
Step 1 — Part (i): standard form and IF.
We divide by 1+x2, which is never zero.
dxdy+1+x21y=1+x2etan−1x
Since ∫1+x2dx=tan−1x, the IF is:
IF=etan−1x
Step 2 — Part (i): solve.
We multiply Q by the IF; the exponents add to 2tan−1x.
yetan−1x=∫1+x2e2tan−1xdx
We put t=tan−1x, so dt=1+x2dx.
yetan−1x=∫e2tdt
yetan−1x=21e2tan−1x+c
Dividing by etan−1x gives y.
y=21etan−1x+ce−tan−1x
Step 3 — Part (ii): standard form and IF.
We divide by x+1, working on the interval x>−1.
dxdy−x+11y=e3x(x+1)
The integral of P=−x+11 is −log(x+1), so:
IF=x+11
Step 4 — Part (ii): solve.
Multiplying Q by the IF cancels (x+1), leaving e3x.
x+1y=∫e3xdx
x+1y=3e3x+c
Multiplying by x+1 gives y.
y=31(x+1)e3x+c(x+1)
Step 5 — Part (iii): standard form and IF.
Dividing by 1+x2 gives the same P as in part (i), so the IF is again etan−1x.
dxdy+1+x21y=1+x2tan−1x
Step 6 — Part (iii): solve.
We multiply by the IF and put t=tan−1x, dt=1+x2dx.
yetan−1x=∫tetdt
Integration by parts gives ∫tetdt=tet−et.
yetan−1x=(tan−1x−1)etan−1x+c
Dividing by etan−1x gives y.
y=tan−1x−1+ce−tan−1x
Step 7 — Part (iv): IF.
Here P=x1, so the IF is elogx=x (taking x>0).
IF=x
Step 8 — Part (iv): solve.
We multiply Q=cosx+xsinx by x.
xy=∫(xcosx+sinx)dx
The integrand is exactly dxd(xsinx), by the product rule.
xy=xsinx+c
Dividing by x gives y.
y=sinx+xc
Step 9 — Part (v): IF.
Here P=1, so the IF is ex. We take x>0 because of logx.
IF=ex
Step 10 — Part (v): solve.
We write Q=x1+xlogx as logx+x1 and multiply by ex.
yex=∫ex(logx+x1)dx
This has the form ∫ex(f(x)+f′(x))dx=exf(x) with f(x)=logx.
yex=exlogx+c
y=logx+ce−x
Step 11 — Part (vi): standard form and IF.
We divide (y+logx)dx=xdy by xdx and rearrange (taking x>0).
dxdy−x1y=xlogx
The integral of P=−x1 is −logx, so:
IF=x1
Step 12 — Part (vi): solve.
We multiply Q by the IF.
xy=∫x2logxdx
We integrate by parts with logx as the first function and x21 as the second (its integral is −x1).
xy=−xlogx−x1+c
Multiplying by x gives y.
y=−logx−1+cx
Step 13 — Part (vi): use the given condition.
We are told that y is 0 when x is 1. Putting these values in (with log1=0) fixes c.
0=0−1+c
c=1
Therefore, (i) y=21etan−1x+ce−tan−1x; (ii) y=31(x+1)e3x+c(x+1); (iii) y=tan−1x−1+ce−tan−1x; (iv) y=sinx+xc; (v) y=logx+ce−x; (vi) y=x−1−logx.