59.1.387 problem 398

Internal problem ID [9559]
Book : Collection of Kovacic problems
Section : section 1
Problem number : 398
Date solved : Sunday, March 30, 2025 at 02:37:32 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

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

Maple. Time used: 0.005 (sec). Leaf size: 28
ode:=diff(diff(y(x),x),x) = (x^2+3)*y(x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = {\mathrm e}^{-\frac {x^{2}}{2}} \left (x \left (\sqrt {\pi }\, \operatorname {erf}\left (x \right ) c_2 +c_1 \right ) {\mathrm e}^{x^{2}}+c_2 \right ) \]
Mathematica. Time used: 0.075 (sec). Leaf size: 46
ode=D[y[x],{x,2}]==(x^2+3)*y[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to e^{-\frac {x^2}{2}} \left (-\sqrt {\pi } c_2 e^{x^2} x \text {erf}(x)+c_1 e^{x^2} x-c_2\right ) \]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq((-x**2 - 3)*y(x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False