5.6 problem 6

Internal problem ID [7299]

Book: Own collection of miscellaneous problems
Section: section 5.0
Problem number: 6.
ODE order: 2.
ODE degree: 1.

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

\[ \boxed {x y^{\prime \prime }-\left (2 x +2\right ) y^{\prime }+\left (x +2\right ) y=6 x^{3} {\mathrm e}^{x}} \]

Solution by Maple

Time used: 0.0 (sec). Leaf size: 19

dsolve(x*diff(diff(y(x),x),x)-(2*x+2)*diff(y(x),x)+(2+x)*y(x) = 6*x^3*exp(x),y(x), singsol=all)
 

\[ y \left (x \right ) = {\mathrm e}^{x} \left (c_{2} +c_{1} x^{3}+\frac {3}{2} x^{4}\right ) \]

Solution by Mathematica

Time used: 0.04 (sec). Leaf size: 29

DSolve[x*y''[x]-(2*x+2)*y'[x]+(2+x)*y[x] == 6*x^3*Exp[x],y[x],x,IncludeSingularSolutions -> True]
                                                                                    
                                                                                    
 

\[ y(x)\to \frac {1}{6} e^x \left (9 x^4+2 c_2 x^3+6 c_1\right ) \]