2.39 problem 38

Internal problem ID [7175]

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

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

\[ \boxed {y^{\prime \prime }-2 x^{2} y=x^{4}-1} \]

Solution by Maple

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

dsolve(diff(y(x),x$2)-2*x^2*y(x)-x^4+1=0,y(x), singsol=all)
 

\[ y \left (x \right ) = \sqrt {x}\, \operatorname {BesselI}\left (\frac {1}{4}, \frac {\sqrt {2}\, x^{2}}{2}\right ) c_{2} +\sqrt {x}\, \operatorname {BesselK}\left (\frac {1}{4}, \frac {\sqrt {2}\, x^{2}}{2}\right ) c_{1} -\frac {x^{2}}{2} \]

Solution by Mathematica

Time used: 3.94 (sec). Leaf size: 288

DSolve[y''[x]-2*x^2*y[x]-x^4+1==0,y[x],x,IncludeSingularSolutions -> True]
                                                                                    
                                                                                    
 

\[ y(x)\to \operatorname {ParabolicCylinderD}\left (-\frac {1}{2},2^{3/4} x\right ) \left (\int _1^x\frac {\left (K[1]^4-1\right ) \operatorname {ParabolicCylinderD}\left (-\frac {1}{2},i 2^{3/4} K[1]\right )}{i 2^{3/4} \operatorname {HermiteH}\left (-\frac {1}{2},\sqrt [4]{2} K[1]\right ) \operatorname {HermiteH}\left (\frac {1}{2},i \sqrt [4]{2} K[1]\right )+\operatorname {ParabolicCylinderD}\left (-\frac {1}{2},i 2^{3/4} K[1]\right ) \left (2 \sqrt {2} K[1] \operatorname {ParabolicCylinderD}\left (-\frac {1}{2},2^{3/4} K[1]\right )-2^{3/4} \operatorname {ParabolicCylinderD}\left (\frac {1}{2},2^{3/4} K[1]\right )\right )}dK[1]+c_1\right )+\operatorname {ParabolicCylinderD}\left (-\frac {1}{2},i 2^{3/4} x\right ) \left (\int _1^x\frac {i \left (K[2]^4-1\right ) \operatorname {ParabolicCylinderD}\left (-\frac {1}{2},2^{3/4} K[2]\right )}{2^{3/4} \operatorname {HermiteH}\left (-\frac {1}{2},\sqrt [4]{2} K[2]\right ) \operatorname {HermiteH}\left (\frac {1}{2},i \sqrt [4]{2} K[2]\right )+i \operatorname {ParabolicCylinderD}\left (-\frac {1}{2},i 2^{3/4} K[2]\right ) \left (2^{3/4} \operatorname {ParabolicCylinderD}\left (\frac {1}{2},2^{3/4} K[2]\right )-2 \sqrt {2} K[2] \operatorname {ParabolicCylinderD}\left (-\frac {1}{2},2^{3/4} K[2]\right )\right )}dK[2]+c_2\right ) \]