dydx+x=y2
This equation is a linear differential equation of the type dydx+Px=Q, where P=1 and Q=y2.
Integrating Factor I.F. =e∫1dy=ey
Now solution of the differential equation is x(I.F.)=∫P(I.F.)dy+C
x⋅ey=∫y2⋅ey⋅dy=y2⋅ey−∫2y⋅ey⋅dy
⇒x⋅ey=y2⋅ey−2y⋅ey+2ey+c
⇒x=y2−2y+2+c⋅e−y
Put x=0,y=1
⇒0=1−2+2+ec
⇒c=−e
Hence x=y2−2y+2+(−e)⋅e−y
On putting y=0 we get x=0−0+2+(−e)(e−0)
⇒x=2−e