53.1.626 problem 643

Internal problem ID [11098]
Book : Collection of Kovacic problems
Section : section 1
Problem number : 643
Date solved : Tuesday, September 30, 2025 at 07:35:53 PM
CAS classification : [_Lienard]

\begin{align*} t y^{\prime \prime }-\left (t^{2}+2\right ) y^{\prime }+t y&=0 \end{align*}
Maple. Time used: 0.005 (sec). Leaf size: 34
ode:=t*diff(diff(y(t),t),t)-(t^2+2)*diff(y(t),t)+t*y(t) = 0; 
dsolve(ode,y(t), singsol=all);
 
\[ y = \left (\pi c_2 \,\operatorname {erf}\left (\frac {\sqrt {2}\, t}{2}\right )+c_1 \right ) {\mathrm e}^{\frac {t^{2}}{2}}-\sqrt {\pi }\, \sqrt {2}\, c_2 t \]
Mathematica. Time used: 0.065 (sec). Leaf size: 56
ode=t*D[y[t],{t,2}]-(t^2+2)*D[y[t],t]+t*y[t]==0; 
ic={}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
\begin{align*} y(t)&\to \frac {1}{2} e \left (\sqrt {2 \pi } c_2 e^{\frac {t^2}{2}} \text {erf}\left (\frac {t}{\sqrt {2}}\right )+2 c_1 e^{\frac {t^2}{2}}-2 c_2 t\right ) \end{align*}
Sympy
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(t*y(t) + t*Derivative(y(t), (t, 2)) - (t**2 + 2)*Derivative(y(t), t),0) 
ics = {} 
dsolve(ode,func=y(t),ics=ics)
 
False