4.38.2 \(\left (2-a x^2\right ) y'(x)+x y''(x)=0\)

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

[[_2nd_order, _missing_y]]

Book solution method
TO DO

Mathematica
cpu = 0.235704 (sec), leaf count = 55

\[\left \{\left \{y(x)\to \sqrt {\frac {\pi }{2}} \sqrt {a} c_1 \text {erfi}\left (\frac {\sqrt {a} x}{\sqrt {2}}\right )-\frac {c_1 e^{\frac {a x^2}{2}}}{x}+c_2\right \}\right \}\]

Maple
cpu = 0.075 (sec), leaf count = 41

\[\left [y \left (x \right ) = \textit {\_C1} +\frac {\left (-a \sqrt {\pi }\, \erf \left (\frac {\sqrt {-2 a}\, x}{2}\right ) x +{\mathrm e}^{\frac {a \,x^{2}}{2}} \sqrt {-2 a}\right ) \textit {\_C2}}{x}\right ]\] Mathematica raw input

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

Mathematica raw output

{{y[x] -> -((E^((a*x^2)/2)*C[1])/x) + C[2] + Sqrt[a]*Sqrt[Pi/2]*C[1]*Erfi[(Sqrt[
a]*x)/Sqrt[2]]}}

Maple raw input

dsolve(x*diff(diff(y(x),x),x)+(-a*x^2+2)*diff(y(x),x) = 0, y(x))

Maple raw output

[y(x) = _C1+(-a*Pi^(1/2)*erf(1/2*(-2*a)^(1/2)*x)*x+exp(1/2*a*x^2)*(-2*a)^(1/2))/
x*_C2]