10.9.25 problem 40

Internal problem ID [1327]
Book : Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section : Chapter 3, Second order linear equations, 3.4 Repeated roots, reduction of order , page 172
Problem number : 40
Date solved : Tuesday, March 04, 2025 at 12:29:12 PM
CAS classification : [[_Emden, _Fowler], [_2nd_order, _linear, `_with_symmetry_[0,F(x)]`]]

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

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