Sub topic 6
Writing Sets of Numbers in Interval Notation
Assume you can solve linear inequalities, graph points on a number line, and work with unions of sets. Interval notation is a compact way to describe a continuous set of real numbers. It is especially useful for writing the domain and range of a function.
Endpoints and brackets
An interval describes all numbers between two endpoints. The symbols show whether each endpoint belongs to the set.
- A square bracket,
[ ], means the endpoint is included. - A parenthesis,
( ), means the endpoint is excluded.
For example:
[2, 7]means \(2 \le x \le 7\).(2, 7)means \(2 < x < 7\).[2, 7)means \(2 \le x < 7\).(2, 7]means \(2 < x \le 7\).
The left symbol describes the left endpoint, and the right symbol describes the right endpoint.
| Inequality | Interval notation | Meaning |
|---|---|---|
| \(1 \le x < 5\) | `[1, 5)` | Include 1, exclude 5 |
| \(-3 < x \le 4\) | `(-3, 4]` | Exclude -3, include 4 |
| \(x \le 6\) | \((-\infty, 6]\) | All numbers at most 6 |
Infinite intervals
When a set continues forever, use infinity symbols:
- \((-\infty, 4]\) means \(x \le 4\).
- \((-\infty, 4)\) means \(x < 4\).
- \([3, \infty)\) means \(x \ge 3\).
- \((3, \infty)\) means \(x > 3\).
Infinity is not a real number that can be reached. Therefore, always use a parenthesis next to \(\infty\) or \(-\infty\), never a square bracket.
Unions of intervals
Some sets have separate pieces. Use the union symbol, \(\cup\), to connect their intervals. The union means “or.”
Suppose a function is defined for \(x < -2\) or \(x \ge 3\). Its domain is
\[ (-\infty, -2) \cup [3, \infty). \]
The first interval contains numbers less than \(-2\). The second contains numbers from \(3\) upward. Numbers between \(-2\) and \(3\) are not included.
You can also use interval notation for a set with a missing point:
\[ (-\infty, 5) \cup (5, \infty). \]
This represents every real number except \(5\). Both intervals use parentheses at \(5\), because \(5\) is excluded.
Converting between forms
To convert an inequality into interval notation, inspect each inequality symbol.
- \(\le\) or \(\ge\) gives a square bracket.
- \(<\) or \(>\) gives a parenthesis.
- “And” usually describes one interval.
- “Or” usually joins intervals with \(\cup\).
For example, solve and write the solution in interval notation:
\[ -1 \le 2x+3 < 7. \]
Subtract 3 from all parts:
\[ -4 \le 2x < 4. \]
Divide all parts by 2:
\[ -2 \le x < 2. \]
Therefore, the solution set is
\[ [-2, 2). \]
Set-builder notation gives the same set in another form:
\[ \{x \in \mathbb{R} \mid -2 \le x < 2\}. \]
The symbol \(\mathbb{R}\) means the real numbers, and the vertical bar means “such that.”
> callout tip > Check each endpoint by substituting it into the original condition. This prevents confusing an included endpoint with an excluded one.
Domain and range
When a function is shown on a graph, interval notation describes the x-values in its domain and the y-values in its range. An open circle usually means an endpoint is excluded, while a closed circle means it is included. Arrows indicate that the graph continues without bound.
For example, a graph with x-values from \(-4\), included, through \(8\), excluded, has domain
\[ [-4, 8). \]
If its y-values extend from \(1\), included, upward forever, its range is
\[ [1, \infty). \]
Exercise
Write the set \(x < -1\) or \(2 \le x < 6\) in interval notation.
Show answer
\((-\infty, -1) \cup [2, 6)\).