\[ y(x)^2 \log (y(x)) \left (\cos ^2(x)-n^2 \cot ^2(x)\right )-y'(x)^2+y(x) y'(x) (\tan (x)+\cot (x))+y(x) y''(x)=0 \] ✓ Mathematica : cpu = 22.1376 (sec), leaf count = 9987
\[\left \{\left \{y(x)\to \frac {(-1)^{1-n} 2^{n+\frac {1}{2}} e^{(-1)^{1-n} 2^{-\frac {3 n}{2}-4} \left (c_2-\int _1^x\frac {\csc ^2(K[2]) \sec (K[2]) \left (-2^{3 n+3} n^2 \sqrt {\cos (2 K[2])-1} \cos (2 K[2]) \log (y(K[2])) y(K[2]) K_n(i \sin (K[2])){}^2-2^{3 n+1} \sqrt {\cos (2 K[2])-1} \cos (4 K[2]) \log (y(K[2])) y(K[2]) K_n(i \sin (K[2])){}^2+2^{3 n+1} \sqrt {\cos (2 K[2])-1} \log (y(K[2])) y(K[2]) K_n(i \sin (K[2])){}^2-2^{3 n+3} n^2 \sqrt {\cos (2 K[2])-1} \log (y(K[2])) y(K[2]) K_n(i \sin (K[2])){}^2+(-1)^{n+1} 2^{\frac {3 n}{2}+4} c_1 \sin (K[2]) y(K[2]) K_n(i \sin (K[2]))+(-1)^{n+1} 2^{\frac {3 n}{2}+4} \sin (K[2]) y(K[2]) \int _1^{K[2]}\frac {(-1)^{1-n} i^{-n-1} 2^{n-4} \sec ^2(K[1]) \sin ^{-n-3}(K[1]) \left (-i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+9}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+1}(K[1])+3 i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) y'(K[1]) \sin ^{n+1}(K[1])+i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \sec (K[1]) y'(K[1]) \sin ^{n+1}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])\right )}{y(K[1])}dK[1] K_n(i \sin (K[2]))-2^{3 n+\frac {3}{2}} K_{n-1}(i \sin (K[2])) \sin (2 K[2]) y'(K[2]) K_n(i \sin (K[2]))-2^{3 n+\frac {3}{2}} K_{n+1}(i \sin (K[2])) \sin (2 K[2]) y'(K[2]) K_n(i \sin (K[2]))+2^{3 n+\frac {1}{2}} K_{n-1}(i \sin (K[2])) \sin (4 K[2]) y'(K[2]) K_n(i \sin (K[2]))+2^{3 n+\frac {1}{2}} K_{n+1}(i \sin (K[2])) \sin (4 K[2]) y'(K[2]) K_n(i \sin (K[2]))+4 (-1)^{2 n} \sqrt {\cos (2 K[2])-1} \cos (2 K[2]) y(K[2]) \int _1^{K[2]}\frac {(-1)^{1-n} i^{-n-1} 2^{n-4} \sec ^2(K[1]) \sin ^{-n-3}(K[1]) \left (-i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+9}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+1}(K[1])+3 i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) y'(K[1]) \sin ^{n+1}(K[1])+i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \sec (K[1]) y'(K[1]) \sin ^{n+1}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])\right )}{y(K[1])}dK[1]{}^2+4 (-1)^{2 n} \sqrt {\cos (2 K[2])-1} y(K[2]) \int _1^{K[2]}\frac {(-1)^{1-n} i^{-n-1} 2^{n-4} \sec ^2(K[1]) \sin ^{-n-3}(K[1]) \left (-i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+9}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+1}(K[1])+3 i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) y'(K[1]) \sin ^{n+1}(K[1])+i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \sec (K[1]) y'(K[1]) \sin ^{n+1}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])\right )}{y(K[1])}dK[1]{}^2+4 (-1)^{2 n} c_1{}^2 \sqrt {\cos (2 K[2])-1} \cos (2 K[2]) y(K[2])+(-1)^n 2^{\frac {3 n}{2}+\frac {1}{2}} K_{n-1}(i \sin (K[2])) c_1 \sqrt {\cos (2 K[2])-1} \sin (K[2]) y(K[2])+(-1)^n 2^{\frac {3 n}{2}+\frac {1}{2}} K_{n+1}(i \sin (K[2])) c_1 \sqrt {\cos (2 K[2])-1} \sin (K[2]) y(K[2])+(-1)^n 2^{\frac {3 n}{2}+\frac {1}{2}} K_{n-1}(i \sin (K[2])) c_1 \sqrt {\cos (2 K[2])-1} \sin (3 K[2]) y(K[2])+(-1)^n 2^{\frac {3 n}{2}+\frac {1}{2}} K_{n+1}(i \sin (K[2])) c_1 \sqrt {\cos (2 K[2])-1} \sin (3 K[2]) y(K[2])+4 (-1)^{2 n} c_1{}^2 \sqrt {\cos (2 K[2])-1} y(K[2])+8 (-1)^{2 n} c_1 \sqrt {\cos (2 K[2])-1} \cos (2 K[2]) y(K[2]) \int _1^{K[2]}\frac {(-1)^{1-n} i^{-n-1} 2^{n-4} \sec ^2(K[1]) \sin ^{-n-3}(K[1]) \left (-i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+9}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+1}(K[1])+3 i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) y'(K[1]) \sin ^{n+1}(K[1])+i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \sec (K[1]) y'(K[1]) \sin ^{n+1}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])\right )}{y(K[1])}dK[1]+(-1)^n 2^{\frac {3 n}{2}+\frac {1}{2}} K_{n-1}(i \sin (K[2])) \sqrt {\cos (2 K[2])-1} \sin (K[2]) y(K[2]) \int _1^{K[2]}\frac {(-1)^{1-n} i^{-n-1} 2^{n-4} \sec ^2(K[1]) \sin ^{-n-3}(K[1]) \left (-i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+9}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+1}(K[1])+3 i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) y'(K[1]) \sin ^{n+1}(K[1])+i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \sec (K[1]) y'(K[1]) \sin ^{n+1}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])\right )}{y(K[1])}dK[1]+(-1)^n 2^{\frac {3 n}{2}+\frac {1}{2}} K_{n+1}(i \sin (K[2])) \sqrt {\cos (2 K[2])-1} \sin (K[2]) y(K[2]) \int _1^{K[2]}\frac {(-1)^{1-n} i^{-n-1} 2^{n-4} \sec ^2(K[1]) \sin ^{-n-3}(K[1]) \left (-i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+9}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+1}(K[1])+3 i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) y'(K[1]) \sin ^{n+1}(K[1])+i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \sec (K[1]) y'(K[1]) \sin ^{n+1}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])\right )}{y(K[1])}dK[1]+(-1)^n 2^{\frac {3 n}{2}+\frac {1}{2}} K_{n-1}(i \sin (K[2])) \sqrt {\cos (2 K[2])-1} \sin (3 K[2]) y(K[2]) \int _1^{K[2]}\frac {(-1)^{1-n} i^{-n-1} 2^{n-4} \sec ^2(K[1]) \sin ^{-n-3}(K[1]) \left (-i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+9}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+1}(K[1])+3 i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) y'(K[1]) \sin ^{n+1}(K[1])+i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \sec (K[1]) y'(K[1]) \sin ^{n+1}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])\right )}{y(K[1])}dK[1]+(-1)^n 2^{\frac {3 n}{2}+\frac {1}{2}} K_{n+1}(i \sin (K[2])) \sqrt {\cos (2 K[2])-1} \sin (3 K[2]) y(K[2]) \int _1^{K[2]}\frac {(-1)^{1-n} i^{-n-1} 2^{n-4} \sec ^2(K[1]) \sin ^{-n-3}(K[1]) \left (-i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+9}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+1}(K[1])+3 i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) y'(K[1]) \sin ^{n+1}(K[1])+i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \sec (K[1]) y'(K[1]) \sin ^{n+1}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])\right )}{y(K[1])}dK[1]+8 (-1)^{2 n} c_1 \sqrt {\cos (2 K[2])-1} y(K[2]) \int _1^{K[2]}\frac {(-1)^{1-n} i^{-n-1} 2^{n-4} \sec ^2(K[1]) \sin ^{-n-3}(K[1]) \left (-i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+9}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+1}(K[1])+3 i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) y'(K[1]) \sin ^{n+1}(K[1])+i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \sec (K[1]) y'(K[1]) \sin ^{n+1}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])\right )}{y(K[1])}dK[1]\right )}{K_n(i \sin (K[2])) y(K[2]) \left (c_1+\int _1^{K[2]}\frac {(-1)^{1-n} i^{-n-1} 2^{n-4} \sec ^2(K[1]) \sin ^{-n-3}(K[1]) \left (-i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+3}{2}} K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-3 i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+5}{2}} n^2 K_n(i \sin (K[1])) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])+i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+1}{2}} K_n(i \sin (K[1])) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \sin ^n(K[1])-i^n 2^{\frac {n+9}{2}} K_n(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+1}(K[1])+3 i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) y'(K[1]) \sin ^{n+1}(K[1])+i^n 2^{\frac {n+5}{2}} K_n(i \sin (K[1])) \cos (3 K[1]) \sec (K[1]) y'(K[1]) \sin ^{n+1}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])+i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos ^2(K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n-1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])-i^{n+1} 2^{\frac {n+3}{2}} K_{n+1}(i \sin (K[1])) \cos (K[1]) \cos (3 K[1]) y'(K[1]) \sin ^{n+2}(K[1])\right )}{y(K[1])}dK[1]\right )}dK[2]\right )} K_n\left (\sqrt {\cos ^2(x)-1}\right ) \sqrt {(\cos (x)-1) (\cos (x)+1)} \left (\cos ^2(x)-1\right )^{-n/2} \left (2 \cos ^2(x)-2\right )^{n/2} \sec (x)}{c_1+\int _1^x\frac {(-1)^{1-n} 2^{n-2} \left (\cos ^2(K[1])-1\right )^{-\frac {n}{2}-\frac {1}{2}} \sec (K[1]) \left (12 \sqrt {2} n^2 K_n\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}-2 \sqrt {2} K_n\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos ^3(K[1]) \log (y(K[1])) y(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}-12 \sqrt {2} n^2 K_n\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos (K[1]) \log (y(K[1])) y(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}+2 \sqrt {2} K_n\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos (K[1]) \log (y(K[1])) y(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}+4 \sqrt {2} n^2 K_n\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}+\sqrt {2} K_n\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos ^2(K[1]) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}-4 \sqrt {2} n^2 K_n\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}-\sqrt {2} K_n\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos (3 K[1]) \log (y(K[1])) y(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}+\sqrt {2} K_n\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos ^2(K[1]) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}-\sqrt {2} K_n\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos (5 K[1]) \log (y(K[1])) y(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}-16 \sqrt {2} K_n\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos ^2(K[1]) \sin (K[1]) y'(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}+12 \sqrt {2} K_n\left (\sqrt {\cos ^2(K[1])-1}\right ) \sin (K[1]) y'(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}-2 \sqrt {2} K_{n-1}\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos (K[1]) \sqrt {\cos ^2(K[1])-1} \cos (3 K[1]) \sin (K[1]) y'(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}-2 \sqrt {2} K_{n+1}\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos (K[1]) \sqrt {\cos ^2(K[1])-1} \cos (3 K[1]) \sin (K[1]) y'(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}+2 \sqrt {2} K_{n-1}\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos ^2(K[1]) \sqrt {\cos ^2(K[1])-1} \sin (K[1]) y'(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}+2 \sqrt {2} K_{n+1}\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos ^2(K[1]) \sqrt {\cos ^2(K[1])-1} \sin (K[1]) y'(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}+4 \sqrt {2} K_n\left (\sqrt {\cos ^2(K[1])-1}\right ) \cos (3 K[1]) \tan (K[1]) y'(K[1]) \left (2 \cos ^2(K[1])-2\right )^{n/2}\right )}{(\cos (K[1])-\cos (3 K[1])) y(K[1])}dK[1]}\right \}\right \}\] ✓ Maple : cpu = 1.574 (sec), leaf count = 81
\[ \left \{ y \left ( x \right ) ={{{\rm e}^{{\frac {{{\sl J}_{n}\left (\sin \left ( x \right ) \right )}{\it \_C1}}{\sin \left ( x \right ) \left ( {{\sl J}_{n+1}\left (\sin \left ( x \right ) \right )}{{\sl Y}_{n}\left (\sin \left ( x \right ) \right )}-{{\sl J}_{n}\left (\sin \left ( x \right ) \right )}{{\sl Y}_{n+1}\left (\sin \left ( x \right ) \right )} \right ) }}}} \left ( {{\rm e}^{{\frac {{{\sl Y}_{n}\left (\sin \left ( x \right ) \right )}{\it \_C2}}{\sin \left ( x \right ) \left ( {{\sl J}_{n+1}\left (\sin \left ( x \right ) \right )}{{\sl Y}_{n}\left (\sin \left ( x \right ) \right )}-{{\sl J}_{n}\left (\sin \left ( x \right ) \right )}{{\sl Y}_{n+1}\left (\sin \left ( x \right ) \right )} \right ) }}}} \right ) ^{-1}} \right \} \]