\[ a x^2 y'(x)+x^2 y''(x)-2 y(x)=0 \] ✓ Mathematica : cpu = 0.0147202 (sec), leaf count = 124
DSolve[-2*y[x] + a*x^2*Derivative[1][y][x] + x^2*Derivative[2][y][x] == 0,y[x],x]
\[\left \{\left \{y(x)\to \frac {2 c_2 e^{\frac {1}{2} (\log (x)-a x)} \left (i \sinh \left (\frac {a x}{2}\right )-\frac {2 i \cosh \left (\frac {a x}{2}\right )}{a x}\right )}{\sqrt {\pi } \sqrt {-i a x}}+\frac {2 c_1 e^{\frac {1}{2} (\log (x)-a x)} \left (\frac {2 \sinh \left (\frac {a x}{2}\right )}{a x}-\cosh \left (\frac {a x}{2}\right )\right )}{\sqrt {\pi } \sqrt {-i a x}}\right \}\right \}\] ✓ Maple : cpu = 0.02 (sec), leaf count = 28
dsolve(x^2*diff(diff(y(x),x),x)+a*x^2*diff(y(x),x)-2*y(x)=0,y(x))
\[y \left (x \right ) = \frac {c_{2} \left (a x +2\right ) {\mathrm e}^{-a x}+c_{1} \left (a x -2\right )}{x}\]