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