The teacher will be very surprised to see your correct solution 😉
-2 + 2*x -------- = 0 1 + x
(2*x - 2)/(x + 1) = 0