DSolve[-(b*x^(-2 + 2*n)) - a*y[x]^2 + x^n*Derivative[1][y][x] == 0,y[x],x]