Simplify[DSolve[x'[y] == -x[y]^2/y^2 - 3/y - 4, x[y], y]]