\[ y(x)^2 \log (y(x)) \left (\cos ^2(x)-n^2 \cot ^2(x)\right )+y(x) y''(x)-y'(x)^2+y(x) y'(x) (\tan (x)+\cot (x))=0 \] ✓ Mathematica : cpu = 98.9686 (sec), leaf count = 916
\[\left \{\left \{y(x)\to e^{e^{c_2+\int _1^x-\frac {\frac {(-1)^{1-n} 2^{n+1} \left (\frac {1}{2} (-n-1)+\frac {1}{2}\right ) K_n\left (\sqrt {\cos ^2(K[3])-1}\right ) \cos (K[3]) \left (2 \cos ^2(K[3])-2\right )^{\frac {n+1}{2}} \sin (K[3]) \left (\cos ^2(K[3])-1\right )^{\frac {1}{2} (-n-1)-\frac {1}{2}}}{\sqrt {1-\cos ^2(K[3])}}+\frac {(-1)^{1-n} 4^{\frac {n+1}{2}-\frac {1}{2}} K_n\left (\sqrt {\cos ^2(K[3])-1}\right ) \cos (K[3]) \left (2 \cos ^2(K[3])-2\right )^{\frac {n+1}{2}} \sin (K[3]) \left (\cos ^2(K[3])-1\right )^{\frac {1}{2} (-n-1)+\frac {1}{2}}}{\left (1-\cos ^2(K[3])\right )^{3/2}}+\frac {(-1)^{1-n} 2^{n+1} (n+1) K_n\left (\sqrt {\cos ^2(K[3])-1}\right ) \cos (K[3]) \left (2 \cos ^2(K[3])-2\right )^{\frac {n+1}{2}-1} \sin (K[3]) \left (\cos ^2(K[3])-1\right )^{\frac {1}{2} (-n-1)+\frac {1}{2}}}{\sqrt {1-\cos ^2(K[3])}}+\frac {\left (-\frac {1}{2}\right )^{1-n} \left (-K_{n-1}\left (\sqrt {\cos ^2(K[3])-1}\right )-K_{n+1}\left (\sqrt {\cos ^2(K[3])-1}\right )\right ) \cos (K[3]) \left (2 \cos ^2(K[3])-2\right )^{\frac {n+1}{2}} \sin (K[3]) \left (\cos ^2(K[3])-1\right )^{\frac {1}{2} (-n-1)}}{\sqrt {1-\cos ^2(K[3])}}+c_1 \left (-\frac {2^{n+1} \left (\frac {1}{2} (-n-1)+\frac {1}{2}\right ) I_n\left (\sqrt {\cos ^2(K[3])-1}\right ) \cos (K[3]) \left (2 \cos ^2(K[3])-2\right )^{\frac {n+1}{2}} \sin (K[3]) \left (\cos ^2(K[3])-1\right )^{\frac {1}{2} (-n-1)-\frac {1}{2}}}{\sqrt {1-\cos ^2(K[3])}}-\frac {4^{\frac {n+1}{2}-\frac {1}{2}} I_n\left (\sqrt {\cos ^2(K[3])-1}\right ) \cos (K[3]) \left (2 \cos ^2(K[3])-2\right )^{\frac {n+1}{2}} \sin (K[3]) \left (\cos ^2(K[3])-1\right )^{\frac {1}{2} (-n-1)+\frac {1}{2}}}{\left (1-\cos ^2(K[3])\right )^{3/2}}-\frac {2^{n+1} (n+1) I_n\left (\sqrt {\cos ^2(K[3])-1}\right ) \cos (K[3]) \left (2 \cos ^2(K[3])-2\right )^{\frac {n+1}{2}-1} \sin (K[3]) \left (\cos ^2(K[3])-1\right )^{\frac {1}{2} (-n-1)+\frac {1}{2}}}{\sqrt {1-\cos ^2(K[3])}}-\frac {2^{n-1} \left (I_{n-1}\left (\sqrt {\cos ^2(K[3])-1}\right )+I_{n+1}\left (\sqrt {\cos ^2(K[3])-1}\right )\right ) \cos (K[3]) \left (2 \cos ^2(K[3])-2\right )^{\frac {n+1}{2}} \sin (K[3]) \left (\cos ^2(K[3])-1\right )^{\frac {1}{2} (-n-1)}}{\sqrt {1-\cos ^2(K[3])}}\right )}{\frac {(-1)^{1-n} 4^{\frac {n+1}{2}-\frac {1}{2}} K_n\left (\sqrt {\cos ^2(K[3])-1}\right ) \left (\cos ^2(K[3])-1\right )^{\frac {1}{2} (-n-1)+\frac {1}{2}} \left (2 \cos ^2(K[3])-2\right )^{\frac {n+1}{2}}}{\sqrt {1-\cos ^2(K[3])}}-\frac {4^{\frac {n+1}{2}-\frac {1}{2}} I_n\left (\sqrt {\cos ^2(K[3])-1}\right ) c_1 \left (\cos ^2(K[3])-1\right )^{\frac {1}{2} (-n-1)+\frac {1}{2}} \left (2 \cos ^2(K[3])-2\right )^{\frac {n+1}{2}}}{\sqrt {1-\cos ^2(K[3])}}}dK[3]}}\right \}\right \}\] ✓ Maple : cpu = 0.709 (sec), leaf count = 81
\[\left \{y \left (x \right ) = {\mathrm e}^{\frac {c_{2} \BesselY \left (n , \sin \left (x \right )\right )}{\left (\BesselJ \left (n , \sin \left (x \right )\right ) \BesselY \left (n +1, \sin \left (x \right )\right )-\BesselJ \left (n +1, \sin \left (x \right )\right ) \BesselY \left (n , \sin \left (x \right )\right )\right ) \sin \left (x \right )}} {\mathrm e}^{-\frac {c_{1} \BesselJ \left (n , \sin \left (x \right )\right )}{\left (\BesselJ \left (n , \sin \left (x \right )\right ) \BesselY \left (n +1, \sin \left (x \right )\right )-\BesselJ \left (n +1, \sin \left (x \right )\right ) \BesselY \left (n , \sin \left (x \right )\right )\right ) \sin \left (x \right )}}\right \}\]