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