85.75.7 problem 1 (g)

Internal problem ID [22972]
Book : Applied Differential Equations. By Murray R. Spiegel. 3rd edition. 1980. Pearson. ISBN 978-0130400970
Section : Chapter 7. Solution of differential equations by use of series. A Exercises at page 329
Problem number : 1 (g)
Date solved : Thursday, October 02, 2025 at 09:17:05 PM
CAS classification : [_Laguerre]

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

Using series method with expansion around

\begin{align*} 0 \end{align*}
Maple. Time used: 0.016 (sec). Leaf size: 36
Order:=6; 
ode:=x*diff(diff(y(x),x),x)+(1-x)*diff(y(x),x)+y(x) = 0; 
dsolve(ode,y(x),type='series',x=0);
 
\[ y = \left (3 x -\frac {1}{4} x^{2}-\frac {1}{36} x^{3}-\frac {1}{288} x^{4}-\frac {1}{2400} x^{5}+\operatorname {O}\left (x^{6}\right )\right ) c_2 +\left (1-x +\operatorname {O}\left (x^{6}\right )\right ) \left (c_2 \ln \left (x \right )+c_1 \right ) \]
Mathematica. Time used: 0.003 (sec). Leaf size: 55
ode=x*D[y[x],{x,2}]+(1-x)*D[y[x],x]+y[x]==0; 
ic={}; 
AsymptoticDSolveValue[{ode,ic},y[x],{x,0,5}]
 
\[ y(x)\to c_2 \left (-\frac {x^5}{2400}-\frac {x^4}{288}-\frac {x^3}{36}-\frac {x^2}{4}+3 x+(1-x) \log (x)\right )+c_1 (1-x) \]
Sympy. Time used: 0.267 (sec). Leaf size: 10
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), (x, 2)) + (1 - x)*Derivative(y(x), x) + y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics,hint="2nd_power_series_regular",x0=0,n=6)
 
\[ y{\left (x \right )} = C_{1} \left (1 - x\right ) + O\left (x^{6}\right ) \]