We start with the differential equation
x2dy+(y−x1)dx=0,x>0.
First we rewrite it in the standard form dxdy+P(x)y=Q(x). Dividing every term by dx and then by x2 we obtain
dxdy+x21y=x31.
Here we can see that P(x)=x21 and Q(x)=x31.
For a linear first-order differential equation the integrating factor is given by the formula I.F.=e∫P(x)dx. Evaluating the integral, we have
∫P(x)dx=∫x21dx=−x1,
so the integrating factor becomes
I.F.=e−x1.
Now we multiply the entire differential equation by this integrating factor:
e−x1dxdy+e−x1x21y=e−x1x31.
The left-hand side is recognised as the derivative of the product y⋅e−x1, because
dxd(ye−x1)=e−x1dxdy+y⋅e−x1⋅x21.
Hence we may rewrite the equation compactly as
dxd(ye−x1)=x3e−x1.
Integrating both sides with respect to x gives
ye−x1=∫x3e−x1dx+C.
To evaluate the integral on the right we use the substitution t=−x1(so that dt=x21dx). Then
x31dx=x1x21dx=−tdt,
and e−x1=et. Therefore
∫x3e−x1dx=∫(−t)etdt.
We integrate by parts (or use the known integral) to find
∫−tetdt=−(t−1)et+C1=(1−t)et+C1.
Undoing the substitution t=−x1 yields
∫x3e−x1dx=(1+x1)e−x1+C1.
Putting this back into our earlier expression, we obtain
ye−x1=(1+x1)e−x1+C.
Multiplying every term by ex1 isolates y:
y=1+x1+Cex1.
We now use the initial condition y(1)=1. Substituting x=1,y=1 gives
1=1+11+Ce1⟹1=2+Ce.
Solving for C, we have
Ce=−1⟹C=−e1.
Putting this value back into the expression for y(x) gives the particular solution:
y(x)=1+x1−e1ex1=1+x1−ex1−1.
We are asked to find y(21). Setting x=21 we have x1=2, so
y(21)=1+211−e2−1=1+2−e1=3−e.
Hence, the correct answer is Option B.