4.29.31 \(x^2 y''(x)-y(x) \left ((n-1) n-a^2 x^2\right )=0\)

ODE
\[ x^2 y''(x)-y(x) \left ((n-1) n-a^2 x^2\right )=0 \] ODE Classification

[[_2nd_order, _with_linear_symmetries]]

Book solution method
TO DO

Mathematica
cpu = 0.0306886 (sec), leaf count = 36

\[\left \{\left \{y(x)\to \sqrt {x} \left (c_1 J_{n-\frac {1}{2}}(a x)+c_2 Y_{n-\frac {1}{2}}(a x)\right )\right \}\right \}\]

Maple
cpu = 0.05 (sec), leaf count = 27

\[ \left \{ y \left ( x \right ) =\sqrt {x} \left ( {{\sl Y}_{n-{\frac {1}{2}}}\left (ax\right )}{\it \_C2}+{{\sl J}_{n-{\frac {1}{2}}}\left (ax\right )}{\it \_C1} \right ) \right \} \] Mathematica raw input

DSolve[-(((-1 + n)*n - a^2*x^2)*y[x]) + x^2*y''[x] == 0,y[x],x]

Mathematica raw output

{{y[x] -> Sqrt[x]*(BesselJ[-1/2 + n, a*x]*C[1] + BesselY[-1/2 + n, a*x]*C[2])}}

Maple raw input

dsolve(x^2*diff(diff(y(x),x),x)-(n*(n-1)-a^2*x^2)*y(x) = 0, y(x),'implicit')

Maple raw output

y(x) = x^(1/2)*(BesselY(n-1/2,a*x)*_C2+BesselJ(n-1/2,a*x)*_C1)