39.2.12 problem 12

Internal problem ID [8521]
Book : A FIRST COURSE IN DIFFERENTIAL EQUATIONS with Modeling Applications. Dennis G. Zill. 9th edition. Brooks/Cole. CA, USA.
Section : Chapter 6. SERIES SOLUTIONS OF LINEAR EQUATIONS. Exercises. 6.2 page 239
Problem number : 12
Date solved : Tuesday, September 30, 2025 at 05:38:35 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

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

Using series method with expansion around

\begin{align*} 0 \end{align*}
Maple. Time used: 0.023 (sec). Leaf size: 52
Order:=6; 
ode:=x*diff(diff(y(x),x),x)+(x+3)*diff(y(x),x)+7*x^2*y(x) = 0; 
dsolve(ode,y(x),type='series',x=0);
 
\[ y = c_1 \left (1-\frac {7}{15} x^{3}+\frac {7}{120} x^{4}-\frac {1}{150} x^{5}+\operatorname {O}\left (x^{6}\right )\right )+\frac {c_2 \left (\ln \left (x \right ) \left (2 x^{2}-\frac {14}{15} x^{5}+\operatorname {O}\left (x^{6}\right )\right )+\left (-2+4 x -3 x^{2}+4 x^{3}-4 x^{4}+\frac {547}{225} x^{5}+\operatorname {O}\left (x^{6}\right )\right )\right )}{x^{2}} \]
Mathematica. Time used: 0.015 (sec). Leaf size: 55
ode=x*D[y[x],{x,2}]+(x+3)*D[y[x],x]+7*x^2*y[x]==0; 
ic={}; 
AsymptoticDSolveValue[{ode,ic},y[x],{x,0,5}]
 
\[ y(x)\to c_2 \left (\frac {7 x^4}{120}-\frac {7 x^3}{15}+1\right )+c_1 \left (\frac {2 x^4-2 x^3+2 x^2-2 x+1}{x^2}-\log (x)\right ) \]
Sympy. Time used: 0.296 (sec). Leaf size: 27
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(7*x**2*y(x) + x*Derivative(y(x), (x, 2)) + (x + 3)*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_{1} \left (- \frac {x^{5}}{150} + \frac {7 x^{4}}{120} - \frac {7 x^{3}}{15} + 1\right ) + O\left (x^{6}\right ) \]