59.1.410 problem 422

Internal problem ID [9582]
Book : Collection of Kovacic problems
Section : section 1
Problem number : 422
Date solved : Sunday, March 30, 2025 at 02:38:01 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

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

Maple. Time used: 0.004 (sec). Leaf size: 12
ode:=t^2*diff(diff(y(t),t),t)-t*(t+2)*diff(y(t),t)+(t+2)*y(t) = 0; 
dsolve(ode,y(t), singsol=all);
 
\[ y = t \left ({\mathrm e}^{t} c_2 +c_1 \right ) \]
Mathematica. Time used: 0.048 (sec). Leaf size: 17
ode=t^2*D[y[t],{t,2}]-t*(t+2)*D[y[t],t]+(t+2)*y[t]==0; 
ic={}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
\[ y(t)\to e t \left (c_2 e^t+c_1\right ) \]
Sympy. Time used: 0.848 (sec). Leaf size: 29
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(t**2*Derivative(y(t), (t, 2)) - t*(t + 2)*Derivative(y(t), t) + (t + 2)*y(t),0) 
ics = {} 
dsolve(ode,func=y(t),ics=ics)
 
\[ y{\left (t \right )} = C_{2} t^{2} \left (\frac {t^{3}}{24} + \frac {t^{2}}{6} + \frac {t}{2} + 1\right ) + C_{1} t + O\left (t^{6}\right ) \]