The solu­tions of an equa­tion such as 2x+1=72x + 1 = 7 are a few sep­a­rate num­bers. The solu­tions of an inequal­ity such as 2x+1<72x + 1 < 7 fill a whole stretch of the num­ber line. Inter­vals are the short nota­tion for such stretches. They are used to write the answers of inequal­i­ties, and in the next course to describe where a func­tion is defined. This les­son intro­duces every kind of inter­val and shows how to move between inter­val nota­tion, inequal­i­ties, set-builder form and pic­tures on the num­ber line.

The real line

Every real num­ber cor­re­sponds to exactly one point on a straight line, and every point to exactly one real num­ber. Num­bers increase from left to right. For two real num­bers aa and bb with a<ba < b, the num­bers between them form an unbro­ken stretch of the line. The ques­tion for each inter­val is sim­ply: are the end points aa and bb included or not?

On a num­ber line, an end point that is included is drawn as a filled dot, and one that is excluded as an open (hol­low) cir­cle. The stretch between them is shaded or drawn thick.

The four bounded inter­vals

Let a<ba < b.

Name Inter­val Inequal­ity Set-builder form End points
open inter­val (a,b)(a, b) a<x<ba < x < b {x∈R:a<x<b}\{x \in R : a < x < b\} nei­ther included
closed inter­val [a,b][a, b] a≤x≤ba \le x \le b {x∈R:a≤x≤b}\{x \in R : a \le x \le b\} both included
open-closed inter­val (a,b](a, b] a<x≤ba < x \le b {x∈R:a<x≤b}\{x \in R : a < x \le b\} only bb included
closed-open inter­val [a,b)[a, b) a≤x<ba \le x < b {x∈R:a≤x<b}\{x \in R : a \le x < b\} only aa 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 inter­vals are also called half-open inter­vals.

For exam­ple, (2,5)(2, 5) con­tains 2.1, 3, 4.99 and every other num­ber strictly between 2 and 5, but not 2 or 5 them­selves. [2,5][2, 5] con­tains 2 and 5 as well. On the num­ber line, (2,5](2, 5] is drawn with an open cir­cle at 2, a filled dot at 5, and the stretch between them shaded.

The length of each of these inter­vals is b−ab - a. Includ­ing or exclud­ing the end points does not change the length.

Be care­ful: the inter­val (2,5)(2, 5) is not the same as the set {3,4}\{3, 4\}. An inter­val con­tains all the real num­bers in the stretch, includ­ing frac­tions and irra­tional num­bers such as 5\sqrt{5} and π\pi, not just the inte­gers.

Infi­nite inter­vals

The sym­bol ∞\infty (infin­ity) is used to show that a stretch goes on with­out end to the right, and −∞-\infty that it goes on with­out end to the left. Infin­ity is not a real num­ber, so it is never included: the bracket next to ∞\infty or −∞-\infty is always round.

Inter­val Inequal­ity Pic­ture on the num­ber line
(a,∞)(a, \infty) x>ax > a open cir­cle at aa, shaded to the right
[a,∞)[a, \infty) x≥ax \ge a filled dot at aa, shaded to the right
(−∞,b)(-\infty, b) x<bx < b open cir­cle at bb, shaded to the left
(−∞,b](-\infty, b] x≤bx \le b filled dot at bb, shaded to the left
(−∞,∞)(-\infty, \infty) every real xx the whole line; this is RR itself

For exam­ple, the set of pos­i­tive real num­bers is (0,∞)(0, \infty), and the set of non-neg­a­tive real num­bers is [0,∞)[0, \infty).

Exam­ple 1

Write each inequal­ity as an inter­val: (a) −3≤x<4-3 \le x < 4 (b) x>7x > 7 (c) x≤−2x \le -2 (d) 0<x≤10 < x \le 1.

(a) [−3,4)[-3, 4) (b) (7,∞)(7, \infty) (c) (−∞,−2](-\infty, -2] (d) (0,1](0, 1]

Exam­ple 2

Write each inter­val as an inequal­ity and describe its pic­ture: (a) (−1,6](-1, 6] (b) [5,∞)[5, \infty) (c) (−∞,0)(-\infty, 0).

(a) −1<x≤6-1 < x \le 6: open cir­cle at −1-1, filled dot at 6, shaded between.

(b) x≥5x \ge 5: filled dot at 5, shaded to the right with­out end.

(c) x<0x < 0: open cir­cle at 0, shaded to the left with­out end. This is the set of neg­a­tive real num­bers.

Exam­ple 3

Write {x∈R:−4<x≤0}\{x \in R : -4 < x \le 0\} in inter­val nota­tion, and find the length.

It is (−4,0](-4, 0], with length 0−(−4)=40 - (-4) = 4.

Exam­ple 4

Which of the num­bers −2-2, 00, 12\displaystyle \frac{1}{2}, 11, 2\sqrt{2} and 33 belong to the inter­val (0,2](0, \sqrt{2}]?

The inter­val con­tains the num­bers greater than 0 and at most 2\sqrt{2} (about 1.414). So 12\displaystyle \frac{1}{2}, 11 and 2\sqrt{2} belong to it. The num­bers −2-2 and 00 do not (0 is excluded), and nei­ther does 3.

Exam­ple 5

Write in inter­val nota­tion the set of real num­bers whose dis­tance from 3 is less than 2.

These are the num­bers between 3−2=13 - 2 = 1 and 3+2=53 + 2 = 5, not includ­ing the ends. So the set is (1,5)(1, 5).

Inter­vals and sets of inte­gers

Some­times a prob­lem asks only for the inte­gers in an inter­val.

Exam­ple 6

List the inte­gers in [−2,3)[-2, 3), and find how many inte­gers lie in (−2.5,4.1)(-2.5, 4.1).

The inte­gers xx with −2≤x<3-2 \le x < 3 are −2,−1,0,1,2-2, -1, 0, 1, 2.

The inte­gers in (−2.5,4.1)(-2.5, 4.1) are −2,−1,0,1,2,3,4-2, -1, 0, 1, 2, 3, 4: seven of them.

Prac­tice

  1. Write as inter­vals: (a) 1<x<91 < x < 9 (b) −5≤x≤−1-5 \le x \le -1 (c) 2≤x<2.52 \le x < 2.5 (d) x≥−3x \ge -3 (e) x<10x < 10
  2. Write as inequal­i­ties: (a) [0,7)[0, 7) (b) (−∞,4](-\infty, 4] (c) (−3,∞)(-3, \infty) (d) [−1,1][-1, 1]
  3. Describe the pic­ture of [−2,3)[-2, 3) on the num­ber line.
  4. Write {x∈R:x>−1}\{x \in R : x > -1\} and {x∈R:−6≤x<−2}\{x \in R : -6 \le x < -2\} in inter­val nota­tion.
  5. Find the length of (−3.5,2](-3.5, 2].
  6. Which of −1-1, 00, 22, 2.52.5, 44 belong to [0,2.5)[0, 2.5)?
  7. List the inte­gers in (−3,2](-3, 2].
  8. How many inte­gers are in [−4,4][-4, 4]? How many in (−4,4)(-4, 4)?
  9. Write in inter­val nota­tion the set of real num­bers whose dis­tance from −1-1 is at most 3.
  10. Is {x∈R:4<x<4}\{x \in R : 4 < x < 4\} an inter­val? What set is it?

Answers

Show answers
  1. (a) (1,9)(1, 9) (b) [−5,−1][-5, -1] (c) [2,2.5)[2, 2.5) (d) [−3,∞)[-3, \infty) (e) (−∞,10)(-\infty, 10)
  2. (a) 0≤x<70 \le x < 7 (b) x≤4x \le 4 (c) x>−3x > -3 (d) −1≤x≤1-1 \le x \le 1
  3. A filled dot at −2-2, an open cir­cle at 3, and the stretch between them shaded.
  4. (−1,∞)(-1, \infty) and [−6,−2)[-6, -2)
  5. 2−(−3.5)=5.52 - (-3.5) = 5.5
  6. Only 0 and 2. The end point 2.5 is excluded, −1-1 is too small and 4 is too large.
  7. −2,−1,0,1,2-2, -1, 0, 1, 2
  8. 9 inte­gers in [−4,4][-4, 4] and 7 in (−4,4)(-4, 4).
  9. [−4,2][-4, 2]
  10. No num­ber is both greater than 4 and less than 4, so it is the empty set ϕ\phi.