4.31.17 \(-y(x) (a+x \tan (x))+x^2 y''(x)+x (1-2 x \tan (x)) y'(x)=0\)

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

[[_2nd_order, _with_linear_symmetries]]

Book solution method
TO DO

Mathematica
cpu = 0.158315 (sec), leaf count = 29

\[\left \{\left \{y(x)\to \sec (x) \left (c_1 J_{\sqrt {a}}(x)+c_2 Y_{\sqrt {a}}(x)\right )\right \}\right \}\]

Maple
cpu = 0.023 (sec), leaf count = 24

\[ \left \{ y \left ( x \right ) ={\frac {1}{\cos \left ( x \right ) } \left ( {\it \_C2}\,{{\sl Y}_{\sqrt {a}}\left (x\right )}+{\it \_C1}\,{{\sl J}_{\sqrt {a}}\left (x\right )} \right ) } \right \} \] Mathematica raw input

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

Mathematica raw output

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

Maple raw input

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

Maple raw output

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