The given differential equation is
ydx+(x−y2)dy=0
Dividing by dy,
ydydx+x−y2=0
or
ydydx+x=y2
Dividing every term by y (to make the coefficient of
dydx unity),
dydx+y1x=y
This is the standard form of a linear differential equation.
Linear Differential Equation
Comparing with
dydx+Px=Q,
we have
P=y1,Q=y
Integrating Factor
∫Pdy=∫y1dy=logy
I.F.=e∫Pdy=elogy=y
General Solution
x(I.F.)=∫Q(I.F.)dy+c
⇒xy=∫y⋅ydy+c
⇒xy=∫y2dy+c
⇒xy=3y3+c
Final Solution
Dividing every term by y,
x=3y2+yc
x=3y2+yc
which is the required general solution.