\[ y''(x)=y(x) \csc ^2(x)-\cot (x) y'(x) \] ✓ Mathematica : cpu = 0.0424076 (sec), leaf count = 51
\[\left \{\left \{y(x)\to c_1 \cosh \left (\log \left (\cos \left (\frac {x}{2}\right )\right )-\log \left (\sin \left (\frac {x}{2}\right )\right )\right )-i c_2 \sinh \left (\log \left (\cos \left (\frac {x}{2}\right )\right )-\log \left (\sin \left (\frac {x}{2}\right )\right )\right )\right \}\right \}\] ✓ Maple : cpu = 0.048 (sec), leaf count = 25
\[\left \{y \left (x \right ) = \frac {c_{1} \sin \left (x \right )}{\cos \left (x \right )-1}+\frac {c_{2} \left (\cos \left (x \right )-1\right )}{\sin \left (x \right )}\right \}\]