This inequality, in its essence, says that a fraction is positive.
There are only two situations that make a fraction positive:
The numerator and denominator are both positive; or
The numerator and denominator are both negative.
All we have to do is translate this logic into some inequalities and solve.
"the numerator and denominator are both positive" translates into:
((x-1) > 0 and (x+2) > 0)
"the numerator and denominator are both negative" translates into:
((x-1) < 0 and (x+2) < 0)
"the numerator and denominator are both positive or the numerator and denominator are both negative" translates into:
((x-1) > 0 and (x+2) > 0) or ((x-1) < 0 and (x+2) < 0)
Now we solve.
(x > 1 and x > -2) or (x < 1 and x < -2)
(x > 1 and x > -2) will simplify. The only way x can be greater than 1 and -2 at the same time is if x > 1. So we can replace (x > 1 and x > -2) with just (x > 1).
Using similar logic on (x < 1 and x < -2) we find that we can replace it with just (x < -2)