21.21 problem 597

Internal problem ID [3339]

Book: Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section: Various 21
Problem number: 597.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_exact, _rational]

Solve \begin {gather*} \boxed {\left (-y^{2}+x \right ) y^{\prime }-x^{2}+y=0} \end {gather*}

Solution by Maple

Time used: 0.003 (sec). Leaf size: 402

dsolve((x-y(x)^2)*diff(y(x),x) = x^2-y(x),y(x), singsol=all)
 

\begin{align*} y \relax (x ) = \frac {\left (-4 x^{3}+12 c_{1}+4 \sqrt {x^{6}-6 x^{3} c_{1}-4 x^{3}+9 c_{1}^{2}}\right )^{\frac {1}{3}}}{2}+\frac {2 x}{\left (-4 x^{3}+12 c_{1}+4 \sqrt {x^{6}-6 x^{3} c_{1}-4 x^{3}+9 c_{1}^{2}}\right )^{\frac {1}{3}}} \\ y \relax (x ) = -\frac {\left (-4 x^{3}+12 c_{1}+4 \sqrt {x^{6}-6 x^{3} c_{1}-4 x^{3}+9 c_{1}^{2}}\right )^{\frac {1}{3}}}{4}-\frac {x}{\left (-4 x^{3}+12 c_{1}+4 \sqrt {x^{6}-6 x^{3} c_{1}-4 x^{3}+9 c_{1}^{2}}\right )^{\frac {1}{3}}}-\frac {i \sqrt {3}\, \left (\frac {\left (-4 x^{3}+12 c_{1}+4 \sqrt {x^{6}-6 x^{3} c_{1}-4 x^{3}+9 c_{1}^{2}}\right )^{\frac {1}{3}}}{2}-\frac {2 x}{\left (-4 x^{3}+12 c_{1}+4 \sqrt {x^{6}-6 x^{3} c_{1}-4 x^{3}+9 c_{1}^{2}}\right )^{\frac {1}{3}}}\right )}{2} \\ y \relax (x ) = -\frac {\left (-4 x^{3}+12 c_{1}+4 \sqrt {x^{6}-6 x^{3} c_{1}-4 x^{3}+9 c_{1}^{2}}\right )^{\frac {1}{3}}}{4}-\frac {x}{\left (-4 x^{3}+12 c_{1}+4 \sqrt {x^{6}-6 x^{3} c_{1}-4 x^{3}+9 c_{1}^{2}}\right )^{\frac {1}{3}}}+\frac {i \sqrt {3}\, \left (\frac {\left (-4 x^{3}+12 c_{1}+4 \sqrt {x^{6}-6 x^{3} c_{1}-4 x^{3}+9 c_{1}^{2}}\right )^{\frac {1}{3}}}{2}-\frac {2 x}{\left (-4 x^{3}+12 c_{1}+4 \sqrt {x^{6}-6 x^{3} c_{1}-4 x^{3}+9 c_{1}^{2}}\right )^{\frac {1}{3}}}\right )}{2} \\ \end{align*}

Solution by Mathematica

Time used: 4.108 (sec). Leaf size: 304

DSolve[(x-y[x]^2)y'[x]==x^2-y[x],y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to -\frac {2 x+\sqrt [3]{2} \left (x^3+\sqrt {x^6+(-4+6 c_1) x^3+9 c_1{}^2}+3 c_1\right ){}^{2/3}}{2^{2/3} \sqrt [3]{x^3+\sqrt {x^6+(-4+6 c_1) x^3+9 c_1{}^2}+3 c_1}} \\ y(x)\to \frac {\left (x^3+\sqrt {x^6+(-4+6 c_1) x^3+9 c_1{}^2}+3 c_1\right ){}^{2/3} \text {Root}\left [\text {$\#$1}^3+16\&,2\right ]+\left (2+2 i \sqrt {3}\right ) x}{2\ 2^{2/3} \sqrt [3]{x^3+\sqrt {x^6+(-4+6 c_1) x^3+9 c_1{}^2}+3 c_1}} \\ y(x)\to \frac {\sqrt [3]{-2} \left (x^3+\sqrt {x^6+(-4+6 c_1) x^3+9 c_1{}^2}+3 c_1\right ){}^{2/3}-i \sqrt {3} x+x}{2^{2/3} \sqrt [3]{x^3+\sqrt {x^6+(-4+6 c_1) x^3+9 c_1{}^2}+3 c_1}} \\ \end{align*}