65.12.4 problem 19.1 (iv)

Internal problem ID [13720]
Book : AN INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS by JAMES C. ROBINSON. Cambridge University Press 2004
Section : Chapter 19, CauchyEuler equations. Exercises page 174
Problem number : 19.1 (iv)
Date solved : Wednesday, March 05, 2025 at 10:13:49 PM
CAS classification : [[_2nd_order, _exact, _linear, _homogeneous]]

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

With initial conditions

\begin{align*} x \left (1\right )&=1\\ x^{\prime }\left (1\right )&=1 \end{align*}

Maple. Time used: 0.007 (sec). Leaf size: 5
ode:=t^2*diff(diff(x(t),t),t)+t*diff(x(t),t)-x(t) = 0; 
ic:=x(1) = 1, D(x)(1) = 1; 
dsolve([ode,ic],x(t), singsol=all);
 
\[ x \left (t \right ) = t \]
Mathematica. Time used: 0.073 (sec). Leaf size: 172
ode=t^2*D[x[t],{t,2}]+t*x[t]-x[t]==0; 
ic={x[1]==1,Derivative[1][x][1 ]==1}; 
DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
 
\[ x(t)\to \frac {\sqrt {t} \left (\left (\operatorname {BesselJ}\left (\sqrt {5},2\right )-\operatorname {BesselJ}\left (-1+\sqrt {5},2\right )+\operatorname {BesselJ}\left (1+\sqrt {5},2\right )\right ) \operatorname {BesselJ}\left (-\sqrt {5},2 \sqrt {t}\right )-\left (\operatorname {BesselJ}\left (-\sqrt {5},2\right )-\operatorname {BesselJ}\left (-1-\sqrt {5},2\right )+\operatorname {BesselJ}\left (1-\sqrt {5},2\right )\right ) \operatorname {BesselJ}\left (\sqrt {5},2 \sqrt {t}\right )\right )}{\operatorname {BesselJ}\left (\sqrt {5},2\right ) \left (\operatorname {BesselJ}\left (-1-\sqrt {5},2\right )-\operatorname {BesselJ}\left (1-\sqrt {5},2\right )\right )+\operatorname {BesselJ}\left (-\sqrt {5},2\right ) \left (\operatorname {BesselJ}\left (1+\sqrt {5},2\right )-\operatorname {BesselJ}\left (-1+\sqrt {5},2\right )\right )} \]
Sympy. Time used: 0.148 (sec). Leaf size: 3
from sympy import * 
t = symbols("t") 
x = Function("x") 
ode = Eq(t**2*Derivative(x(t), (t, 2)) + t*Derivative(x(t), t) - x(t),0) 
ics = {x(1): 1, Subs(Derivative(x(t), t), t, 1): 1} 
dsolve(ode,func=x(t),ics=ics)
 
\[ x{\left (t \right )} = t \]