f(x) = (x + 1)/(x - 2), where x is a real number.
Domain is the set of all possible input values for which a function is defined.
Because division by 0 is undefined, x cannot be 2.
Then Domain: x is any real number, except x ≠ 2. This can be noted in
Set notation Domain: { x ∈ R | x ≠ 2 } OR
Interval Notation Domain: (-∞, 2) ∪ (2, +∞)
Range is the set of all possible output values of f(x) that the function produces.
x + 1 x - 2 + 2 + 1 (x - 2) + 3 3
f(x) = ------- = ----------------- = ---------------- = 1 + --------, this is a convenient form to figure out the Range
x - 2 x - 2 x - 2 x - 2
If x → 2, then (x - 2) → 0, then 3 / (x - 2) → ± ∞, depending on how x tends to 2:
If x → 2 from the left, that is x < 2, then 3 / (x - 2) → -∞, then f(x) = (x + 1) / (x - 2) → -∞
If x → 2 from the right, that is x > 2, then 3 / (x - 2) → +∞, then f(x) = (x + 1) / (x - 2) → +∞
Now, can f(x) produce any value, between -∞ and +∞?
If x takes any value, except 2,
then (x - 2) produces any value, except 0,
then 3 / (x - 2) produces any value, except 0, (because the numerator is constant 3, never 0)
then 1 + 3 / (x - 2) produces any value, except 1.
Then Range: f(x) is any real number, except f(x) ≠ 1. This can be noted in
Set notation Range: { f(x) ∈ R | f(x) ≠ 1 } OR
Interval notation Range: (-∞, 1) ∪ (1, +∞)