3 / 4

Domain and Range

22 min Relations and Functions

Domain and Range

The domain of a function is the set of all allowable inputs, and the range is the set of all possible outputs. Identifying domain and range is essential because it tells you where the function "lives" and what values it can produce.

For most functions studied in algebra, the domain is restricted only by two dangers: dividing by zero and taking the square root of a negative number. Recognizing and excluding these trouble spots is the central skill of this lesson.

You will learn to state domain and range using inequality notation, interval notation, and set-builder notation, and to read them from graphs, equations, and tables.

Definitions

Domain: all possible input ($x$) values.
Range: all resulting output ($y$) values.

Domain Restrictions

Exclude $x$-values that cause:

  • Division by zero: set denominator $\neq 0$
  • Even root of negative: set radicand $\ge 0$

Interval Notation

NotationMeaning
$(a, b)$$a < x < b$ (open)
$[a, b]$$a \le x \le b$ (closed)
$[a, b)$$a \le x < b$
$(-\infty, b]$$x \le b$
$(-\infty, \infty)$all real numbers
Example 1

Domain of $f(x) = \dfrac{1}{x - 3}$.

$x - 3 \neq 0 \Rightarrow x \neq 3$. Domain: $(-\infty, 3) \cup (3, \infty)$.

Example 2

Domain of $g(x) = \sqrt{x + 2}$.

$x + 2 \ge 0 \Rightarrow x \ge -2$. Domain: $[-2, \infty)$.

Example 3

Domain of $h(x) = \dfrac{\sqrt{x}}{x - 4}$.

Need $x \ge 0$ (square root) and $x \neq 4$ (denominator). Domain: $[0, 4) \cup (4, \infty)$.

Example 4

Range of $f(x) = x^2$.

$x^2 \ge 0$ always. Range: $[0, \infty)$.

Example 5

Domain and range of $f(x) = |x - 1| + 2$.

Domain: $(-\infty, \infty)$. Since $|x - 1| \ge 0$, we have $f(x) \ge 2$. Range: $[2, \infty)$.

Practice Problems

Find the domain of each function.

1. $f(x) = 5x + 2$
2. $f(x) = \dfrac{3}{x + 1}$
3. $f(x) = \sqrt{x - 5}$
4. $f(x) = \dfrac{x}{x^2 - 9}$
5. $f(x) = \sqrt{4 - x}$
6. $f(x) = x^3 - 2x$
7. $f(x) = \dfrac{1}{x^2 + 1}$ (range too)
8. Range of $f(x) = -x^2 + 4$
9. Domain of $\dfrac{\sqrt{x+3}}{x - 2}$
10. Range of $f(x) = |x| + 1$
Show Answer Key

1. $(-\infty, \infty)$

2. $x \neq -1$; $(-\infty, -1) \cup (-1, \infty)$

3. $[5, \infty)$

4. $x \neq \pm 3$

5. $(-\infty, 4]$

6. $(-\infty, \infty)$

7. Domain: $(-\infty, \infty)$; Range: $(0, 1]$

8. $(-\infty, 4]$

9. $[-3, 2) \cup (2, \infty)$

10. $[1, \infty)$