54.3.13 problem 1013

Internal problem ID [12308]
Book : Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section : Chapter 2, linear second order
Problem number : 1013
Date solved : Wednesday, October 01, 2025 at 01:43:01 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime }-\left (a^{2} x^{2}+a \right ) y&=0 \end{align*}
Maple. Time used: 0.004 (sec). Leaf size: 22
ode:=diff(diff(y(x),x),x)-(a^2*x^2+a)*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = {\mathrm e}^{\frac {a \,x^{2}}{2}} \left (c_2 \,\operatorname {erf}\left (\sqrt {a}\, x \right )+c_1 \right ) \]
Mathematica. Time used: 0.016 (sec). Leaf size: 43
ode=(-a - a^2*x^2)*y[x] + D[y[x],{x,2}] == 0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to c_1 \operatorname {ParabolicCylinderD}\left (-1,\sqrt {2} \sqrt {a} x\right )+c_2 \operatorname {ParabolicCylinderD}\left (0,i \sqrt {2} \sqrt {a} x\right ) \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
a = symbols("a") 
y = Function("y") 
ode = Eq((-a**2*x**2 - a)*y(x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False