29.24.16 problem 678

Internal problem ID [5269]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 24
Problem number : 678
Date solved : Tuesday, March 04, 2025 at 09:00:11 PM
CAS classification : [_exact, _rational]

\begin{align*} \left (x -x^{2} y-y^{3}\right ) y^{\prime }&=x^{3}-y+x y^{2} \end{align*}

Maple. Time used: 0.005 (sec). Leaf size: 29
ode:=(x-x^2*y(x)-y(x)^3)*diff(y(x),x) = x^3-y(x)+x*y(x)^2; 
dsolve(ode,y(x), singsol=all);
 
\[ -\frac {x^{4}}{4}-\frac {x^{2} y \left (x \right )^{2}}{2}+x y \left (x \right )-\frac {y \left (x \right )^{4}}{4}+c_{1} = 0 \]
Mathematica. Time used: 60.206 (sec). Leaf size: 1807
ode=(x-x^2 y[x]-y[x]^3)D[y[x],x]==x^3-y[x]+x y[x]^2; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} \text {Solution too large to show}\end{align*}

Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x**3 - x*y(x)**2 + (-x**2*y(x) + x - y(x)**3)*Derivative(y(x), x) + y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
Timed Out