56.2.46 problem 45

Internal problem ID [8850]
Book : Own collection of miscellaneous problems
Section : section 2.0
Problem number : 45
Date solved : Sunday, March 30, 2025 at 01:42:40 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime }-x^{2} y^{\prime }-x^{2} y-x^{3}-x^{2}&=0 \end{align*}

Maple. Time used: 0.044 (sec). Leaf size: 57
ode:=diff(diff(y(x),x),x)-x^2*diff(y(x),x)-x^2*y(x)-x^3-x^2 = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = {\mathrm e}^{-x} \operatorname {HeunT}\left (3^{{2}/{3}}, 3, 2 \,3^{{1}/{3}}, \frac {3^{{2}/{3}} x}{3}\right ) c_2 +\operatorname {HeunT}\left (3^{{2}/{3}}, -3, 2 \,3^{{1}/{3}}, -\frac {3^{{2}/{3}} x}{3}\right ) {\mathrm e}^{\frac {x \left (x^{2}+3\right )}{3}} c_1 -x \]
Mathematica
ode=D[y[x],{x,2}]-x^2*D[y[x],x]-x^2*y[x]-x^3-x^2==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**3 - x**2*y(x) - x**2*Derivative(y(x), x) - x**2 + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE x + y(x) + Derivative(y(x), x) + 1 - Derivative(y(x), (x, 2))/x**2 cannot be solved by the factorable group method