\[ y''(x)-y(x) \left (a^2 x^{2 n}-1\right )=0 \] ✗ Mathematica : cpu = 0.322122 (sec), leaf count = 0 , could not solve
DSolve[-((-1 + a^2*x^(2*n))*y[x]) + Derivative[2][y][x] == 0, y[x], x]
✗ Maple : cpu = 0. (sec), leaf count = 0 , result contains DESol
\[ \left \{ y \left ( x \right ) ={\it DESol} \left ( \left \{ {\frac {{\rm d}^{2}}{{\rm d}{x}^{2}}}{\it \_Y} \left ( x \right ) + \left ( -{a}^{2}{x}^{2\,n}+1 \right ) {\it \_Y} \left ( x \right ) \right \} , \left \{ {\it \_Y} \left ( x \right ) \right \} \right ) \right \} \]