10.10.19 problem 29

Internal problem ID [1351]
Book : Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section : Chapter 3, Second order linear equations, section 3.6, Variation of Parameters. page 190
Problem number : 29
Date solved : Saturday, March 29, 2025 at 10:53:00 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} t^{2} y^{\prime \prime }-2 t y^{\prime }+2 y&=4 t^{2} \end{align*}

Maple. Time used: 0.006 (sec). Leaf size: 18
ode:=t^2*diff(diff(y(t),t),t)-2*t*diff(y(t),t)+2*y(t) = 4*t^2; 
dsolve(ode,y(t), singsol=all);
 
\[ y = \left (4 t \ln \left (t \right )+\left (c_1 -4\right ) t +c_2 \right ) t \]
Mathematica. Time used: 0.013 (sec). Leaf size: 21
ode=t^2*D[y[t],{t,2}]-2*t*D[y[t],t]+2*y[t] ==4*t^2; 
ic={}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
\[ y(t)\to t (4 t \log (t)+(-4+c_2) t+c_1) \]
Sympy. Time used: 0.225 (sec). Leaf size: 15
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(t**2*Derivative(y(t), (t, 2)) - 4*t**2 - 2*t*Derivative(y(t), t) + 2*y(t),0) 
ics = {} 
dsolve(ode,func=y(t),ics=ics)
 
\[ y{\left (t \right )} = t \left (C_{1} + C_{2} t + 4 t \log {\left (t \right )}\right ) \]