\[ x^2 y''(x)-\left (a x^2+2\right ) y(x)=0 \] ✓ Mathematica : cpu = 0.0117585 (sec), leaf count = 129
\[\left \{\left \{y(x)\to \frac {\sqrt {\frac {2}{\pi }} c_2 \sqrt {x} \left (i \sinh \left (\sqrt {a} x\right )-\frac {i \cosh \left (\sqrt {a} x\right )}{\sqrt {a} x}\right )}{\sqrt {-i \sqrt {a} x}}+\frac {\sqrt {\frac {2}{\pi }} c_1 \sqrt {x} \left (\frac {\sinh \left (\sqrt {a} x\right )}{\sqrt {a} x}-\cosh \left (\sqrt {a} x\right )\right )}{\sqrt {-i \sqrt {a} x}}\right \}\right \}\] ✓ Maple : cpu = 0.192 (sec), leaf count = 43
\[ \left \{ y \left ( x \right ) ={\frac {1}{x} \left ( {\it \_C2}\, \left ( ax+\sqrt {a} \right ) {{\rm e}^{-\sqrt {a}x}}-{\it \_C1}\,{{\rm e}^{\sqrt {a}x}} \left ( ax-\sqrt {a} \right ) \right ) } \right \} \]