30.14.15 problem 15

Internal problem ID [7664]
Book : Fundamentals of Differential Equations. By Nagle, Saff and Snider. 9th edition. Boston. Pearson 2018.
Section : Chapter 8, Series solutions of differential equations. Section 8.4. page 449
Problem number : 15
Date solved : Tuesday, September 30, 2025 at 04:55:39 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

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

Using series method with expansion around

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

With initial conditions

\begin{align*} y \left (0\right )&=1 \\ y^{\prime }\left (0\right )&=1 \\ \end{align*}
Maple. Time used: 0.007 (sec). Leaf size: 16
Order:=6; 
ode:=(x^2+1)*diff(diff(y(x),x),x)-exp(x)*diff(y(x),x)+y(x) = 0; 
ic:=[y(0) = 1, D(y)(0) = 1]; 
dsolve([ode,op(ic)],y(x),type='series',x=0);
 
\[ y = 1+x +\frac {1}{24} x^{4}+\frac {1}{60} x^{5}+\operatorname {O}\left (x^{6}\right ) \]
Mathematica. Time used: 0.001 (sec). Leaf size: 20
ode=(x^2+1)*D[y[x],{x,2}]-Exp[x]*D[y[x],x]+y[x]==0; 
ic={y[0]==1,Derivative[1][y][0] ==1}; 
AsymptoticDSolveValue[{ode,ic},y[x],{x,0,5}]
 
\[ y(x)\to \frac {x^5}{60}+\frac {x^4}{24}+x+1 \]
Sympy. Time used: 0.469 (sec). Leaf size: 83
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq((x**2 + 1)*Derivative(y(x), (x, 2)) + y(x) - exp(x)*Derivative(y(x), x),0) 
ics = {y(0): 1, Subs(Derivative(y(x), x), x, 0): 1} 
dsolve(ode,func=y(x),ics=ics,hint="2nd_power_series_ordinary",x0=0,n=6)
 
\[ y{\left (x \right )} = C_{2} \left (- \frac {x^{4} e^{2 x}}{24} + \frac {x^{4}}{8} - \frac {x^{3} e^{x}}{6} - \frac {x^{2}}{2} + 1\right ) + C_{1} x \left (\frac {x^{3} e^{3 x}}{24} - \frac {x^{3} e^{x}}{6} + \frac {x^{2} e^{2 x}}{6} - \frac {x^{2}}{6} + \frac {x e^{x}}{2} + 1\right ) + O\left (x^{6}\right ) \]