65.13.4 problem 20.2 (iii)

Internal problem ID [13731]
Book : AN INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS by JAMES C. ROBINSON. Cambridge University Press 2004
Section : Chapter 20, Series solutions of second order linear equations. Exercises page 195
Problem number : 20.2 (iii)
Date solved : Wednesday, March 05, 2025 at 10:14:33 PM
CAS classification : [[_Emden, _Fowler], [_2nd_order, _linear, `_with_symmetry_[0,F(x)]`]]

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

Using series method with expansion around

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

Maple. Time used: 0.049 (sec). Leaf size: 44
Order:=6; 
ode:=2*x*diff(diff(y(x),x),x)+diff(y(x),x)-2*y(x) = 0; 
dsolve(ode,y(x),type='series',x=0);
 
\[ y = c_{1} \sqrt {x}\, \left (1+\frac {2}{3} x +\frac {2}{15} x^{2}+\frac {4}{315} x^{3}+\frac {2}{2835} x^{4}+\frac {4}{155925} x^{5}+\operatorname {O}\left (x^{6}\right )\right )+c_{2} \left (1+2 x +\frac {2}{3} x^{2}+\frac {4}{45} x^{3}+\frac {2}{315} x^{4}+\frac {4}{14175} x^{5}+\operatorname {O}\left (x^{6}\right )\right ) \]
Mathematica. Time used: 0.005 (sec). Leaf size: 83
ode=2*x*D[y[x],{x,2}]+D[y[x],x]-2*y[x]==0; 
ic={}; 
AsymptoticDSolveValue[{ode,ic},y[x],{x,0,5}]
 
\[ y(x)\to c_1 \sqrt {x} \left (\frac {4 x^5}{155925}+\frac {2 x^4}{2835}+\frac {4 x^3}{315}+\frac {2 x^2}{15}+\frac {2 x}{3}+1\right )+c_2 \left (\frac {4 x^5}{14175}+\frac {2 x^4}{315}+\frac {4 x^3}{45}+\frac {2 x^2}{3}+2 x+1\right ) \]
Sympy. Time used: 0.783 (sec). Leaf size: 73
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(2*x*Derivative(y(x), (x, 2)) - 2*y(x) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics,hint="2nd_power_series_regular",x0=0,n=6)
 
\[ y{\left (x \right )} = C_{2} \left (\frac {4 x^{5}}{14175} + \frac {2 x^{4}}{315} + \frac {4 x^{3}}{45} + \frac {2 x^{2}}{3} + 2 x + 1\right ) + C_{1} \sqrt {x} \left (\frac {2 x^{4}}{2835} + \frac {4 x^{3}}{315} + \frac {2 x^{2}}{15} + \frac {2 x}{3} + 1\right ) + O\left (x^{6}\right ) \]