43.17.7 problem 1(g)

Internal problem ID [9000]
Book : An introduction to Ordinary Differential Equations. Earl A. Coddington. Dover. NY 1961
Section : Chapter 4. Linear equations with Regular Singular Points. Page 154
Problem number : 1(g)
Date solved : Tuesday, September 30, 2025 at 06:01:09 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

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

Using series method with expansion around

\begin{align*} 0 \end{align*}
Maple. Time used: 0.093 (sec). Leaf size: 39
Order:=8; 
ode:=x^2*diff(diff(y(x),x),x)+sin(x)*diff(y(x),x)+cos(x)*y(x) = 0; 
dsolve(ode,y(x),type='series',x=0);
 
\[ y = c_1 \,x^{-i} \left (1+\left (\frac {1}{12}+\frac {i}{24}\right ) x^{2}+\left (\frac {29}{28800}+\frac {67 i}{28800}\right ) x^{4}+\left (-\frac {893}{14515200}-\frac {17 i}{4838400}\right ) x^{6}+\operatorname {O}\left (x^{8}\right )\right )+c_2 \,x^{i} \left (1+\left (\frac {1}{12}-\frac {i}{24}\right ) x^{2}+\left (\frac {29}{28800}-\frac {67 i}{28800}\right ) x^{4}+\left (-\frac {893}{14515200}+\frac {17 i}{4838400}\right ) x^{6}+\operatorname {O}\left (x^{8}\right )\right ) \]
Mathematica. Time used: 0.036 (sec). Leaf size: 112
ode=x^2*D[y[x],{x,2}]+Sin[x]*D[y[x],x]+Cos[x]*y[x]==0; 
ic={}; 
AsymptoticDSolveValue[{ode,ic},y[x],{x,0,7}]
 
\[ y(x)\to c_1 x^{-i} \left (\left (-\frac {26459}{59222016000}-\frac {12449 i}{7402752000}\right ) x^8-\left (\frac {893}{14515200}+\frac {17 i}{4838400}\right ) x^6+\left (\frac {29}{28800}+\frac {67 i}{28800}\right ) x^4+\left (\frac {1}{12}+\frac {i}{24}\right ) x^2+1\right )+c_2 x^i \left (\left (-\frac {26459}{59222016000}+\frac {12449 i}{7402752000}\right ) x^8-\left (\frac {893}{14515200}-\frac {17 i}{4838400}\right ) x^6+\left (\frac {29}{28800}-\frac {67 i}{28800}\right ) x^4+\left (\frac {1}{12}-\frac {i}{24}\right ) x^2+1\right ) \]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x**2*Derivative(y(x), (x, 2)) + y(x)*cos(x) + sin(x)*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics,hint="2nd_power_series_regular",x0=0,n=8)
 
ValueError : ODE x**2*Derivative(y(x), (x, 2)) + y(x)*cos(x) + sin(x)*Derivative(y(x), x) does not match hint 2nd_power_series_regular