Interval Notation Explained With Number Line Pictures
Read and write intervals with parentheses, brackets, infinity and unions, each matched to a number line picture.
Key takeaways
- An interval is written as (left end, right end), always with the smaller value first.
- A square bracket includes its endpoint and a parenthesis excludes it.
- The symbols ∞ and -∞ are not numbers, so they always take a parenthesis.
- The union symbol ∪ joins separate pieces, and ∩ keeps only the overlap.
- The empty set ∅ records that no number at all satisfies a condition.
Interval notation names an unbroken stretch of the real number line by listing its left end and its right end. A bracket means the end is included, and a parenthesis means it is left out. So [2, 5) is every number from 2 up to 5, including 2 and excluding 5.
It is a compact way to record the answer to an inequality. Once you can picture the number line behind each symbol, you can translate in either direction without memorizing a chart.
Endpoints and the two kinds of bracket
Suppose x lies between -2 and 3. There are four versions, depending on whether each end counts. In the pictures, ○ is an excluded point and ● is an included one.
(-2, 3) ---○===========○--- -2 < x < 3
[-2, 3] ---●===========●--- -2 ≤ x ≤ 3
[-2, 3) ---●===========○--- -2 ≤ x < 3
(-2, 3] ---○===========●--- -2 < x ≤ 3
-2 3 The shapes match: a bracket goes with a filled circle and with ≤ or ≥, while a parenthesis goes with an open circle and with < or >.
An interval that includes both ends is closed. One that excludes both ends is open. One that includes exactly one is half-open. All of them contain infinitely many numbers. Between -2 and 3 there are fractions, irrational numbers and everything else on the line, not only the integers -1, 0, 1 and 2.
Intervals that never end
The condition x > 4 has no right end. We write (4, ∞), where the symbol ∞ means "continues without bound." For x ≤ 1 we write (-∞, 1].
(4, ∞) ------------○=========>
4
(-∞, 1] <=====●----------------
1 Infinity is not a number you can reach or include, so it never receives a bracket. Writing [4, ∞] in ordinary algebra on the real numbers is an error.
The whole line is (-∞, ∞), which means the same as "all real numbers," often written ℝ. You may meet it as the answer to an inequality that is always true.
Translating from inequalities
Here are the nine basic forms, with a and b standing for real numbers and a < b.
| Inequality | Interval |
|---|---|
| a < x < b | (a, b) |
| a ≤ x ≤ b | [a, b] |
| a ≤ x < b | [a, b) |
| a < x ≤ b | (a, b] |
| x > a | (a, ∞) |
| x ≥ a | [a, ∞) |
| x < b | (-∞, b) |
| x ≤ b | (-∞, b] |
| any real x | (-∞, ∞) |
Always write the endpoints in number line order. The statement x < 7 is (-∞, 7), never (7, -∞). If an inequality has the variable on the right, such as 3 ≥ x, turn it into x ≤ 3 first, and then write (-∞, 3].
For example, solving 5 - 2x ≥ 11 gives -2x ≥ 6, then x ≤ -3 after reversing the symbol. The interval is (-∞, -3]. Check the endpoint: 5 - 2(-3) = 11, and 11 ≥ 11 is true, so the bracket is correct. The solving steps are covered in solving and graphing linear inequalities.
Joining pieces with a union
Some solution sets come in separate parts. The condition "x < -1 or x ≥ 2" covers two stretches with a gap between them.
<====○-----------●=====>
-1 2
(-∞, -1) ∪ [2, ∞) The symbol ∪ means union: the numbers that belong to the first set, the second set or both. You cannot merge these two pieces into a single interval, because numbers such as 0 are missing.
If the pieces overlap, simplify. The union (1, 6) ∪ (4, 9) is just (1, 9). If they touch at a point that at least one of them includes, they also merge: (1, 4] ∪ (4, 9) = (1, 9). But (1, 4) ∪ (4, 9) leaves a hole at 4 and must stay in two pieces. Inequalities joined this way are treated in compound inequalities joined by or.
Finding the overlap with an intersection
The symbol ∩ means intersection: only the numbers that belong to both sets. To find it, draw both intervals on stacked lines and mark where the shading appears on each.
(-3, 4] ---○=================●---------
[1, ∞) -------------●================>
overlap -------------●=======●---------
-3 1 4 So (-3, 4] ∩ [1, ∞) = [1, 4]. The left end of the overlap comes from the second set, which includes 1. The right end comes from the first set, which includes 4.
When two intervals have nothing in common, the intersection is the empty set, written ∅. For instance, (-∞, 0) ∩ (5, ∞) = ∅. If they share just one point, the result is a set with one member: [1, 3] ∩ [3, 8] = {3}. Curly braces list individual elements, so {3} is not an interval with ends 3 and something else. Problems of this kind are worked in compound inequalities joined by and.
Leaving out single points
Domains of expressions often exclude a few values. The expression 1/(x + 2) is undefined when x = -2, so its domain is everything else.
<=============○=============>
-2
(-∞, -2) ∪ (-2, ∞) With two excluded values you need three pieces. The expression 1/((x - 1)(x - 5)) has domain (-∞, 1) ∪ (1, 5) ∪ (5, ∞).
A square root restricts the domain differently. For √(x - 4) to be a real number, x - 4 ≥ 0, so the domain is [4, ∞). The endpoint is included because √0 = 0 is defined. For 1/√(x - 4), division by zero is not allowed, and the domain shrinks to (4, ∞).
Interval notation, points and set-builder form
The symbol (2, 5) can mean either an open interval or the point with coordinates x = 2 and y = 5. Context tells you which. A sentence about a solution set or a domain means the interval, while a sentence about the coordinate plane means the point. Some textbooks, especially in parts of Europe, avoid the clash by writing the open interval as ]2, 5[.
Another way to describe the same set is set-builder notation: {x : -2 ≤ x < 3}, read as "the set of all x such that x is at least -2 and less than 3." It can express conditions that intervals cannot, such as {x : x is an even integer}. Its uses are discussed in solution sets and set-builder notation.
Interval notation assumes all real numbers in the range. If only integers qualify, list them. The integers satisfying -2 ≤ x < 3 are {-2, -1, 0, 1, 2}, not [-2, 3).
Going from a picture back to symbols
Reading a graph is the reverse skill, and it helps to follow the same order every time. Scan the number line from left to right. Each time shading begins, write the left end of a new interval. Each time it stops, write the right end.
Suppose a graph shows shading that runs in from the far left and stops at a filled circle on -4. It starts again at an open circle on 0, continues to an open circle on 3, and starts once more at a filled circle on 7, running off to the right with an arrow.
<====●-------○====○-----------●=====>
-4 0 3 7 The first piece has no left end, so it is (-∞, -4]. The second is (0, 3). The third is [7, ∞). The whole set is (-∞, -4] ∪ (0, 3) ∪ [7, ∞).
Test your reading with one number from each stretch. The number -10 should be inside, -2 outside, 1 inside, 5 outside and 20 inside. Shading and gaps alternate here, which is typical, although a single open circle in the middle of a shaded region marks a hole with shading on both sides.
What the endpoints tell you
An endpoint need not belong to its interval to be important. In [-2, 3), the number 3 is not a member, yet it is the boundary: members can be found as close to 3 as you like, such as 2.9, 2.99 and 2.999.
This is why you cannot replace [-2, 3) with [-2, 2.99]. The shorter set misses numbers such as 2.995. No decimal with a fixed number of places can serve as "the last number before 3."
When you solve a problem, the boundaries usually come from an equation or from a value where an expression is undefined. Finding those values first, and then deciding whether each one is in or out, turns most interval answers into a short routine.
In applied work, say which units the endpoints use. An interval such as [15, 25] means little until you know whether it refers to degrees, minutes or kilograms.
Describing everything outside an interval
The numbers that are not in an interval form its complement. For [-2, 3), the complement is (-∞, -2) ∪ [3, ∞). Each endpoint changes its bracket, because a point that was inside must now be outside, and the other way around. This is a handy check on answers that involve the opposite of a condition.
Mistakes worth checking for
- Reversed order. Write (-∞, 2), not (2, -∞).
- Bracket at infinity. Both ∞ and -∞ always take a parenthesis.
- Union where an intersection belongs. "x > 1 and x < 6" is (1, 6). Writing (1, ∞) ∪ (-∞, 6) gives the whole line.
- One interval for two pieces. "x < 0 or x > 3" cannot be written (0, 3), which is exactly the part left out.
- Forgetting the endpoint test. Put each endpoint into the original condition to decide between a bracket and a parenthesis.
Common questions
Does an open interval have a largest number?
No. In (0, 1), whatever number you name below 1, the average of that number and 1 is larger and still inside. The closed interval [0, 1] does have a largest member, namely 1.
Is [3, 3] allowed?
It describes the single number 3, since 3 ≤ x ≤ 3 forces x = 3. Most people write {3} instead. The expression (3, 3) contains no numbers.
How long is an interval?
For a bounded interval from a to b, the length is b - a. Including or excluding the endpoints does not change it, so (2, 7) and [2, 7] both have length 5.