\[ -a y(x)^2-b x^{2 n-2}+x^n y'(x)=0 \] ✓ Mathematica : cpu = 0.0738728 (sec), leaf count = 154
\[\left \{\left \{y(x)\to \frac {x^{n-1} \left (c_1 \left (\sqrt {a} \sqrt {b} \sqrt {\frac {(n-1)^2}{a b}-4}+n-1\right )+\left (-\sqrt {a} \sqrt {b} \sqrt {\frac {(n-1)^2}{a b}-4}+n-1\right ) x^{\sqrt {a} \sqrt {b} \sqrt {\frac {(n-1)^2}{a b}-4}}\right )}{2 a \left (x^{\sqrt {a} \sqrt {b} \sqrt {\frac {(n-1)^2}{a b}-4}}+c_1\right )}\right \}\right \}\]
✓ Maple : cpu = 0.087 (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 \} \]