\[ -a y(x)^2-b x^{2 n-2}+x^n y'(x)=0 \] ✓ Mathematica : cpu = 0.068649 (sec), leaf count = 166
\[\left \{\left \{y(x)\to \frac {x^{n-1} \left (c_1 \left (\sqrt {a} \sqrt {b} \sqrt {\frac {(n-1)^2-4 a b}{a b}}+n-1\right )+\left (-\sqrt {a} \sqrt {b} \sqrt {\frac {(n-1)^2-4 a b}{a b}}+n-1\right ) x^{\sqrt {a} \sqrt {b} \sqrt {\frac {(n-1)^2-4 a b}{a b}}}\right )}{2 a \left (x^{\sqrt {a} \sqrt {b} \sqrt {\frac {(n-1)^2-4 a b}{a b}}}+c_1\right )}\right \}\right \}\]
✓ Maple : cpu = 0.053 (sec), leaf count = 60
\[ \left \{ y \left ( x \right ) ={\frac {{x}^{n-1}}{2\,a} \left ( -\sqrt {4\,ab-{n}^{2}+2\,n-1}\tan \left ( {\frac {-\ln \left ( x \right ) +{\it \_C1}}{2}\sqrt {4\,ab-{n}^{2}+2\,n-1}} \right ) +n-1 \right ) } \right \} \]