1.820 problem 838

Internal problem ID [7554]

Book: Collection of Kovacic problems
Section: section 1
Problem number: 838.
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _with_linear_symmetries]]

Solve \begin {gather*} \boxed {y^{\prime \prime }-\left (x^{2}+3\right ) y=0} \end {gather*}

Solution by Maple

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

dsolve(diff(y(x),x$2)=(x^2+3)*y(x),y(x), singsol=all)
 

\[ y \relax (x ) = c_{1} {\mathrm e}^{\frac {x^{2}}{2}} x +c_{2} \left (\sqrt {\pi }\, \erf \relax (x ) {\mathrm e}^{\frac {x^{2}}{2}} x +{\mathrm e}^{-\frac {x^{2}}{2}}\right ) \]

Solution by Mathematica

Time used: 0.043 (sec). Leaf size: 41

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

\begin{align*} y(x)\to e^{-\frac {x^2}{2}} \left (e^{x^2} x \left (c_1-\sqrt {\pi } c_2 \text {Erf}(x)\right )-c_2\right ) \\ \end{align*}