57.13.4 problem 5

Internal problem ID [14456]
Book : A First Course in Differential Equations by J. David Logan. Third Edition. Springer-Verlag, NY. 2015.
Section : Chapter 2, Second order linear equations. Section 2.4.3 Reduction of order. Exercises page 125
Problem number : 5
Date solved : Thursday, October 02, 2025 at 09:37:29 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

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

Using reduction of order method given that one solution is

\begin{align*} x&=t \end{align*}
Maple. Time used: 0.003 (sec). Leaf size: 12
ode:=diff(diff(x(t),t),t)-(t+2)/t*diff(x(t),t)+(t+2)/t^2*x(t) = 0; 
dsolve(ode,x(t), singsol=all);
 
\[ x = t \left ({\mathrm e}^{t} c_2 +c_1 \right ) \]
Mathematica. Time used: 0.014 (sec). Leaf size: 16
ode=D[x[t],{t,2}]-(t+2)/t*D[x[t],t]+(t+2)/t^2*x[t]==0; 
ic={}; 
DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
 
\begin{align*} x(t)&\to t \left (c_2 e^t+c_1\right ) \end{align*}
Sympy
from sympy import * 
t = symbols("t") 
x = Function("x") 
ode = Eq(Derivative(x(t), (t, 2)) - (t + 2)*Derivative(x(t), t)/t + (t + 2)*x(t)/t**2,0) 
ics = {} 
dsolve(ode,func=x(t),ics=ics)
 
False