The solutions of an equation such as are a few separate numbers. The solutions of an inequality such as fill a whole stretch of the number line. Intervals are the short notation for such stretches. They are used to write the answers of inequalities, and in the next course to describe where a function is defined. This lesson introduces every kind of interval and shows how to move between interval notation, inequalities, set-builder form and pictures on the number line.
The real line
Every real number corresponds to exactly one point on a straight line, and every point to exactly one real number. Numbers increase from left to right. For two real numbers and with , the numbers between them form an unbroken stretch of the line. The question for each interval is simply: are the end points and included or not?
On a number line, an end point that is included is drawn as a filled dot, and one that is excluded as an open (hollow) circle. The stretch between them is shaded or drawn thick.
The four bounded intervals
Let .
| Name | Interval | Inequality | Set-builder form | End points |
|---|---|---|---|---|
| open interval | neither included | |||
| closed interval | both included | |||
| open-closed interval | only included | |||
| closed-open interval | only included |
A round bracket means the end point is left out; a square bracket means it is put in. The open-closed and closed-open intervals are also called half-open intervals.
For example, contains 2.1, 3, 4.99 and every other number strictly between 2 and 5, but not 2 or 5 themselves. contains 2 and 5 as well. On the number line, is drawn with an open circle at 2, a filled dot at 5, and the stretch between them shaded.
The length of each of these intervals is . Including or excluding the end points does not change the length.
Be careful: the interval is not the same as the set . An interval contains all the real numbers in the stretch, including fractions and irrational numbers such as and , not just the integers.
Infinite intervals
The symbol (infinity) is used to show that a stretch goes on without end to the right, and that it goes on without end to the left. Infinity is not a real number, so it is never included: the bracket next to or is always round.
| Interval | Inequality | Picture on the number line |
|---|---|---|
| open circle at , shaded to the right | ||
| filled dot at , shaded to the right | ||
| open circle at , shaded to the left | ||
| filled dot at , shaded to the left | ||
| every real | the whole line; this is itself |
For example, the set of positive real numbers is , and the set of non-negative real numbers is .
Example 1
Write each inequality as an interval: (a) (b) (c) (d) .
(a) (b) (c) (d)
Example 2
Write each interval as an inequality and describe its picture: (a) (b) (c) .
(a) : open circle at , filled dot at 6, shaded between.
(b) : filled dot at 5, shaded to the right without end.
(c) : open circle at 0, shaded to the left without end. This is the set of negative real numbers.
Example 3
Write in interval notation, and find the length.
It is , with length .
Example 4
Which of the numbers , , , , and belong to the interval ?
The interval contains the numbers greater than 0 and at most (about 1.414). So , and belong to it. The numbers and do not (0 is excluded), and neither does 3.
Example 5
Write in interval notation the set of real numbers whose distance from 3 is less than 2.
These are the numbers between and , not including the ends. So the set is .
Intervals and sets of integers
Sometimes a problem asks only for the integers in an interval.
Example 6
List the integers in , and find how many integers lie in .
The integers with are .
The integers in are : seven of them.
Practice
- Write as intervals: (a) (b) (c) (d) (e)
- Write as inequalities: (a) (b) (c) (d)
- Describe the picture of on the number line.
- Write and in interval notation.
- Find the length of .
- Which of , , , , belong to ?
- List the integers in .
- How many integers are in ? How many in ?
- Write in interval notation the set of real numbers whose distance from is at most 3.
- Is an interval? What set is it?
Answers
Show answers
- (a) (b) (c) (d) (e)
- (a) (b) (c) (d)
- A filled dot at , an open circle at 3, and the stretch between them shaded.
- and
- Only 0 and 2. The end point 2.5 is excluded, is too small and 4 is too large.
- 9 integers in and 7 in .
- No number is both greater than 4 and less than 4, so it is the empty set .