4.13 problem 21

Internal problem ID [5902]

Book: DIFFERENTIAL EQUATIONS with Boundary Value Problems. DENNIS G. ZILL, WARREN S. WRIGHT, MICHAEL R. CULLEN. Brooks/Cole. Boston, MA. 2013. 8th edition.
Section: CHAPTER 6 SERIES SOLUTIONS OF LINEAR EQUATIONS. CHAPTER 6 IN REVIEW. Page 271
Problem number: 21.
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _exact, _linear, _nonhomogeneous]]

Solve \begin {gather*} \boxed {y^{\prime \prime }+x^{2} y^{\prime }+2 x y-10 x^{3}+2 x -5=0} \end {gather*} With the expansion point for the power series method at \(x = 0\).

Solution by Maple

Time used: 0.002 (sec). Leaf size: 40

Order:=8; 
dsolve(diff(y(x),x$2)+x^2*diff(y(x),x)+2*x*y(x)=5-2*x+10*x^3,y(x),type='series',x=0);
 

\[ y \relax (x ) = \left (1-\frac {1}{3} x^{3}+\frac {1}{18} x^{6}\right ) y \relax (0)+\left (x -\frac {1}{4} x^{4}+\frac {1}{28} x^{7}\right ) D\relax (y )\relax (0)+\frac {5 x^{2}}{2}-\frac {x^{3}}{3}+\frac {x^{6}}{18}+O\left (x^{8}\right ) \]

Solution by Mathematica

Time used: 0.015 (sec). Leaf size: 63

AsymptoticDSolveValue[y''[x]+x^2*y'[x]+2*x*y[x]==5-2*x+10*x^3,y[x],{x,0,7}]
 

\[ y(x)\to \frac {x^6}{18}-\frac {x^3}{3}+\frac {5 x^2}{2}+c_2 \left (\frac {x^7}{28}-\frac {x^4}{4}+x\right )+c_1 \left (\frac {x^6}{18}-\frac {x^3}{3}+1\right ) \]