55.32.6 problem 187

Internal problem ID [13960]
Book : Handbook of exact solutions for ordinary differential equations. By Polyanin and Zaitsev. Second edition
Section : Chapter 2, Second-Order Differential Equations. section 2.1.2-6
Problem number : 187
Date solved : Friday, October 03, 2025 at 07:04:01 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} x^{3} y^{\prime \prime }+\left (a \,x^{3}+a b x -x^{2}+b \right ) y^{\prime }+y a^{2} b x&=0 \end{align*}
Maple. Time used: 0.054 (sec). Leaf size: 49
ode:=x^3*diff(diff(y(x),x),x)+(a*x^3+a*b*x-x^2+b)*diff(y(x),x)+a^2*b*x*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = {\mathrm e}^{-a x} \left (a x +1\right ) \left (c_2 \int \frac {x \,{\mathrm e}^{\frac {2 a \,x^{3}+2 a b x +b}{2 x^{2}}}}{\left (a x +1\right )^{2}}d x +c_1 \right ) \]
Mathematica. Time used: 0.498 (sec). Leaf size: 70
ode=x^3*D[y[x],{x,2}]+(a*x^3-x^2+a*b*x+b)*D[y[x],x]+a^2*b*x*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \frac {e^{-a x} (a x+1) \left (c_2 \int _1^x\frac {a^2 e^{a K[1]+\frac {2 a K[1] b+b}{2 K[1]^2}} K[1]}{(a K[1]+1)^2}dK[1]+c_1\right )}{a} \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
y = Function("y") 
ode = Eq(a**2*b*x*y(x) + x**3*Derivative(y(x), (x, 2)) + (a*b*x + a*x**3 + b - x**2)*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE -x*(-a**2*b*y(x) - x**2*Derivative(y(x), (x, 2)))/(a*b*x + a*x**3 + b - x**2) + Derivative(y(x), x) cannot be solved by the factorable group method