For each of the differential equations given in Exercises 1 to 12, find the general solution:
\(y\,dx+(x-y^2)\,dy=0\)Show solutionHide solution
Rewrite the equation so that the exact differential \(d(xy)\) appears:
\[y\,dx+(x-y^2)\,dy=0\]\[y\,dx+x\,dy=y^2\,dy\]\[d(xy)=y^2\,dy.\]Integrating both sides gives
\[xy=\frac{y^3}{3}+C,\]where \(C\) is an arbitrary constant. Equivalently,
\[3xy-y^3=C'.\]If \(y\neq 0\), this may also be written explicitly as
\[x=\frac{y^2}{3}+\frac{C}{y}.\]Thus the general solution is
\[\boxed{xy-\frac{y^3}{3}=C}\]or, in equivalent form, \( \boxed{3xy-y^3=C'} \).