45.1.14 problem 26

Internal problem ID [7214]
Book : A FIRST COURSE IN DIFFERENTIAL EQUATIONS with Modeling Applications. Dennis G. Zill. 9th edition. Brooks/Cole. CA, USA.
Section : Chapter 6. SERIES SOLUTIONS OF LINEAR EQUATIONS. Exercises. 6.1.2 page 230
Problem number : 26
Date solved : Sunday, March 30, 2025 at 11:51:29 AM
CAS classification : [[_Emden, _Fowler]]

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

Using series method with expansion around

\begin{align*} 0 \end{align*}

Maple. Time used: 0.006 (sec). Leaf size: 30
Order:=6; 
ode:=(x^2+1)*diff(diff(y(x),x),x)-6*y(x) = 0; 
dsolve(ode,y(x),type='series',x=0);
 
\[ y = \left (x^{4}+3 x^{2}+1\right ) y \left (0\right )+\left (x^{3}+x \right ) y^{\prime }\left (0\right )+O\left (x^{6}\right ) \]
Mathematica. Time used: 0.002 (sec). Leaf size: 25
ode=(x^2+1)*D[y[x],{x,2}]-6*y[x]==0; 
ic={}; 
AsymptoticDSolveValue[{ode,ic},y[x],{x,0,5}]
 
\[ y(x)\to c_2 \left (x^3+x\right )+c_1 \left (x^4+3 x^2+1\right ) \]
Sympy. Time used: 0.829 (sec). Leaf size: 26
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq((x**2 + 1)*Derivative(y(x), (x, 2)) - 6*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics,hint="2nd_power_series_ordinary",x0=0,n=6)
 
\[ y{\left (x \right )} = C_{2} \left (x^{4} + 3 x^{2} + 1\right ) + C_{1} x \left (x^{2} + 1\right ) + O\left (x^{6}\right ) \]