We have dydx=y1+x−y2, with x(1)=1.
Rewriting: ydydx=1+x−y2
ydydx−x=1−y2
dydx−yx=y1−y2
This is a linear first-order ODE in x as a function of y.
Integrating factor: e∫−y1dy=e−lny=y1
Multiplying by IF:
y1dydx−y2x=y21−y2
dyd(yx)=y21−1
Integrating:
yx=−y1−y+C
x=−1−y2+Cy
Using x(1)=1: 1=−1−1+C, so C=3.
Therefore x=−1−y2+3y.
x(2)=−1−4+6=1
5x(2)=5×1=5
The answer is 5.