15.4.11 problem 12

Internal problem ID [2924]
Book : Differential Equations by Alfred L. Nelson, Karl W. Folley, Max Coral. 3rd ed. DC heath. Boston. 1964
Section : Exercise 8, page 34
Problem number : 12
Date solved : Sunday, March 30, 2025 at 12:56:29 AM
CAS classification : [_rational]

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

Maple
ode:=x*y(x)^2+2*y(x)+(2*y(x)^3-x^2*y(x)+2*x)*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ \text {No solution found} \]
Mathematica
ode=(x*y[x]^2+2*y[x])+(2*y[x]^3-x^2*y[x]+2*x)*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 

Not solved

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