\[ \left (b^2-a^2\right ) y(x)+2 a \cot (a x) y'(x)+y''(x)=0 \] ✓ Mathematica : cpu = 0.0856508 (sec), leaf count = 43
\[\left \{\left \{y(x)\to \frac {1}{2} e^{-i b x} \csc (a x) \left (2 c_1-\frac {i c_2 e^{2 i b x}}{b}\right )\right \}\right \}\]
✓ Maple : cpu = 0.139 (sec), leaf count = 24
\[ \left \{ y \left ( x \right ) ={\frac {{\it \_C1}\,\sin \left ( bx \right ) +{\it \_C2}\,\cos \left ( bx \right ) }{\sin \left ( ax \right ) }} \right \} \]