50.22.14 problem 2(f)

Internal problem ID [8157]
Book : Differential Equations: Theory, Technique, and Practice by George Simmons, Steven Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section : Chapter 4. Power Series Solutions and Special Functions. Problems for review and discovert. (A) Drill Exercises . Page 194
Problem number : 2(f)
Date solved : Sunday, March 30, 2025 at 12:46:57 PM
CAS classification : [_Laguerre]

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

Using series method with expansion around

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

Maple. Time used: 0.035 (sec). Leaf size: 42
Order:=8; 
ode:=x*diff(diff(y(x),x),x)-(x-1)*diff(y(x),x)+2*y(x) = 0; 
dsolve(ode,y(x),type='series',x=0);
 
\[ y = \left (5 x -\frac {9}{4} x^{2}+\frac {1}{18} x^{3}+\frac {1}{288} x^{4}+\frac {1}{3600} x^{5}+\frac {1}{43200} x^{6}+\frac {1}{529200} x^{7}+\operatorname {O}\left (x^{8}\right )\right ) c_2 +\left (1-2 x +\frac {1}{2} x^{2}+\operatorname {O}\left (x^{8}\right )\right ) \left (c_2 \ln \left (x \right )+c_1 \right ) \]
Mathematica. Time used: 0.009 (sec). Leaf size: 83
ode=x*D[y[x],{x,2}]-(x-1)*D[y[x],x]+2*y[x]==0; 
ic={}; 
AsymptoticDSolveValue[{ode,ic},y[x],{x,0,7}]
 
\[ y(x)\to c_1 \left (\frac {x^2}{2}-2 x+1\right )+c_2 \left (\frac {x^7}{529200}+\frac {x^6}{43200}+\frac {x^5}{3600}+\frac {x^4}{288}+\frac {x^3}{18}-\frac {9 x^2}{4}+\left (\frac {x^2}{2}-2 x+1\right ) \log (x)+5 x\right ) \]
Sympy. Time used: 0.738 (sec). Leaf size: 17
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), (x, 2)) - (x - 1)*Derivative(y(x), x) + 2*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics,hint="2nd_power_series_regular",x0=0,n=8)
 
\[ y{\left (x \right )} = C_{1} \left (\frac {x^{2}}{2} - 2 x + 1\right ) + O\left (x^{8}\right ) \]