The domain of h(x) is the set of all x values where x can be mapped under the function h to a real value.
(Strictly speaking h is a multi-function, since for each x (except x=1), there are two possible values for h(x).)
So, we need to have
(x-1)/(x+2) ≥ 0. --- (*)
Consider the possible cases:
(a) x+2 > 0:
Multiply both sides of (*) by (x+2) to get:
x-1 ≥ 0 (note the inequality sign remains "≥" because we are multiplying by a positive number)
=> x ≥ 1.
We also have to have x+2 > 0, i.e. x > -2,
and so overall we need
x ≥ 1 to satisfy both inequality conditions.
(b) x+2 < 0:
Multiply both sides of (*) by (x+2) to get:
x-1 ≤ 0 (note the inequality sign 'flips over' because we are multiplying by a negative number)
=> x ≤ 1.
We also have to have x+2 < 0, i.e. x < -2,
and so overall we need
x < -2 to satisfy both inequality conditions.
So from (a) and (b), the possible values for x are given by the set {x: x<-2 or x≥ 1}.