DersTeders — free, no installation, explanations and questions for every level.

Interval notation for real numbers

An interval is the whole set of real numbers between two endpoints. The only decision to make at each end is whether that endpoint belongs to the set, and the bracket records that decision.

2026-11-24

What an interval is and how it is written

An interval is the collection of all real numbers lying between two numbers. An endpoint may or may not belong to the collection, and there is no third possibility. A square bracket means the endpoint is included; a round parenthesis means it is excluded. So the numbers satisfying x > 3 together with x ≤ 7 are written (3, 7]: the left end is open because 3 is not taken, and the right end is closed because 7 is taken.

The very same collection is written in set notation as {x : 3 < x ≤ 7}. Both forms describe one and the same set, and being able to move between them is useful because inequalities are easier to solve while intervals are easier to combine. The four basic shapes are [a, b] with both ends included, (a, b) with neither, [a, b) with only the left end, and (a, b] with only the right end.

Endless intervals and the symbol for infinity

When one end of an interval has no bound, the infinity symbol is written there and the closing bracket is always round. Infinity is not a real number, so it cannot be a member of a set and no equality sign may be placed next to it. The condition x > 2 is therefore written (2, ∞), never [2, ∞]. The set of all real numbers is denoted by the special symbol for the real line.

A lower bound is the smallest value of a set and an upper bound is its largest value; either may belong to the set. When two bounds coincide, the intersection is either empty or shrinks to a single number. Keeping the distinction between a bound and a member is what prevents most bracket mistakes: the bound is a position on the number line, while membership is decided separately by the bracket.

Union, intersection and difference

The union of two intervals contains every element of both and is written with the cup symbol. The intersection contains only the elements common to both and is written with the cap symbol. The difference removes from the first interval everything that lies in the second. When computing an intersection, look only at the overlapping region; when computing a union, check whether there is a gap between the two intervals.

For example, the intersection of (−2, 5] and [1, 8) is [1, 5], because the common region starts at 1 and ends at 5, and both of those values are included by the original brackets. If two intervals overlap, their union is a single interval rather than two separate pieces. Working on a sketch of the number line makes the decision about the endpoints visible before any symbol is written.

Complements and De Morgan’s rules

The complement of an interval contains everything in the universal set that is not in the interval. Taking the real line as the universal set, the complement of (−2, 5] is written as two pieces, (−∞, −2] together with (5, ∞). The result is not forced to be a single interval; a complement can split wherever the original interval removes a block of numbers.

De Morgan’s rules connect these operations: the complement of a union equals the intersection of the complements, and the complement of an intersection equals the union of the complements. These rules make complicated set expressions manageable, because a hard complement is replaced by several simpler ones. A real-life reading is straightforward: a temperature outside a permitted interval belongs to one of the two ranges lying below or above it.

Frequently asked questions

Which interval describes x > 3 together with x ≤ 8?

It is (3, 8]. The value 3 is excluded, so the left bracket is round; the value 8 is included, so the right bracket is square.

How is the condition x ≤ 6 written as an interval?

As (−∞, 6]. There is no lower bound, so the left side opens; the value 6 satisfies the condition and therefore the right bracket is square.

Why is infinity always written with a round parenthesis?

Infinity is not a real number and cannot be an element of the set. No equality sign can be used with it, so the bracket beside it must remain open.

Create a free account — save your progress

Save your notes

Keep learning