Back to homeMathematics · Precalculus · Change subject
Start for free
Precalculus · Mathematics
Real Numbers · Real Numbers

The Real Number Line and Intervals

Before you start, make sure you know: Intervals, half-lines and neighborhoods (Algebra 1)
Before you start, make sure you know: Inequalities with one unknown (Algebra 1)

A soda factory sets its machine to fill 12-oz cans, but no machine is perfect. The company accepts any can holding between 11.8 oz and 12.2 oz. How can you say that in one line of math, without any ambiguity? In this section you will learn three equivalent ways: an interval, an inequality, and a distance condition.

Intervals and inequalities

Every point on the number line is a real number, and every real number is a point on the line. A set of real numbers, such as "all numbers from $-1$ up to, but not including, $4$," can be written as an inequality or as an interval. Both say exactly the same thing.

Number line showing the interval from -1 (included, closed dot) to 4 (not included, open dot), written as the inequality -1 ≤ x < 4 and as the interval [-1, 4). −1 ≤ x < 4 [−1, 4) −3 −2 −1 0 1 2 3 4 5 6

A closed dot (or square bracket) means the endpoint is included. An open dot (or parenthesis) means it is not included.

Inequality Interval Type
$a < x < b$ $(a, b)$ open
$a \le x \le b$ $[a, b]$ closed
$a \le x < b$ $[a, b)$ half-open
$a < x \le b$ $(a, b]$ half-open
$x > a$ $(a, \infty)$ ray
$x \le b$ $(-\infty, b]$ ray
all real numbers $(-\infty, \infty)$ whole line
Practice★☆☆Not started
Express as an interval and as an inequality the set of real numbers that are greater than or equal to $-3$ and strictly less than $5$.

Express as an interval and as an inequality the set of real numbers that are greater than or equal to $-3$ and strictly less than $5$.

Solve
Practice★☆☆Not started
State which of the following real numbers belong to the interval $[-1, \pi)$: $-1,01$, $-1$, $3,14$, $\frac{22}{7}$, $\sqrt{10}$.

State which of the following real numbers belong to the interval $[-1, \pi)$:

$-1,01$, $-1$, $3,14$, $\frac{22}{7}$, $\sqrt{10}$.

Solve

Absolute value and distance

The absolute value $|x|$ is the distance from $x$ to $0$ on the number line. More generally, the distance between two points $A$ and $B$ is $|A - B|$.

Some problems call absolute value the modulus. It is the same thing.

Number line with points A = -2.5 and B = 4.5. The distance between them is the absolute value of their difference, 7. A = −2.5 B = 4.5 0 d = |4.5 − (−2.5)| = 7

Writing $|x - a|$ means "the distance from $x$ to $a$." That turns equations and inequalities with absolute value into questions about distance:

Statement Meaning Solution
$\lvert x - a \rvert = r$ $x$ is exactly $r$ from $a$ $x = a - r$ or $x = a + r$
$\lvert x - a \rvert \le r$ $x$ is within $r$ of $a$ $a - r \le x \le a + r$, i.e. $[a - r, a + r]$
$\lvert x - a \rvert \ge r$ $x$ is at least $r$ from $a$ $x \le a - r$ or $x \ge a + r$
Practice★☆☆Not started
Write as an interval the set of real numbers that meet the condition $|x| \le 7$.

Write as an interval the set of real numbers that meet the condition $|x| \le 7$.

Solve
Practice★☆☆Not started
Calculate the distance on the real line between the points $A = -4,5$ and $B = 2,3$, and express the mathematical operation using modulus notation.

Calculate the distance on the real line between the points $A = -4,5$ and $B = 2,3$, and express the mathematical operation using modulus notation.

Solve
Practice★☆☆Not started
Find the values of $x$ that satisfy the equation $|x - 4| = 9$.

Find the values of $x$ that satisfy the equation $|x - 4| = 9$.

Solve

Neighborhoods: $E(a, r)$

"A value $a$, give or take $r$" is such a common idea that it has its own name. The neighborhood of center $a$ and radius $r$ is the open interval of all points closer to $a$ than $r$.

Number line showing a neighborhood of center a and radius r, which is the interval from a - r to a + r. r r a − r a a + r

To go from an interval $(p, q)$ back to a neighborhood, find the midpoint and the half-length:

$$a = \frac{p + q}{2}, \qquad r = \frac{q - p}{2}.$$
Practice★☆☆Not started
Express the neighborhood $E(-1, 3)$ as a numerical interval and describe it using a modulus inequality.

Express the neighborhood $E(-1, 3)$ as a numerical interval and describe it using a modulus inequality.

Solve
Practice★☆☆Not started
Given the open interval $(2, 8)$, express it as a neighborhood, explicitly stating its center $a$ and its radius $r$.

Given the open interval $(2, 8)$, express it as a neighborhood, explicitly stating its center $a$ and its radius $r$.

Solve
Practice★★☆Not started
The price of a stock market share fluctuates around a central value. If the fluctuation interval during the week was $[112,5 , 127,5]$, express this range using the…

The price of a stock market share fluctuates around a central value. If the fluctuation interval during the week was $[112,5 , 127,5]$, express this range using the neighborhood notation $E(a, r)$ and a modulus inequality of the form $|x - a| \le r$.

Solve

Tolerances and measurement error

Every measurement comes with a margin of error. A statement like "$L = 8 \pm 0.05$ in." means the true length is within $0.05$ of $8$, so $|L - 8| \le 0.05$ and $L \in [7.95, 8.05]$.

Quality control often states the rejection condition instead of the acceptance condition. The accepted values are then the complement: flip the inequality.

Practice★★☆Not started
A cylindrical engine part has an ideal diameter of $50\text{ mm}$. Quality control rejects the part if the measured diameter $d$ satisfies $|d - 50| > 0,02$. Write the…

A cylindrical engine part has an ideal diameter of $50\text{ mm}$. Quality control rejects the part if the measured diameter $d$ satisfies $|d - 50| > 0,02$. Write the interval of diameters that are accepted by quality control.

Solve
Practice★★☆Not started
In a biology laboratory, an incubator must maintain a temperature $T$ in degrees Fahrenheit that does not differ from $37^{\circ}\text{C}$ by more than…

In a biology laboratory, an incubator must maintain a temperature $T$ in degrees Fahrenheit that does not differ from $37^{\circ}\text{C}$ by more than $0,5^{\circ}\text{C}$. Express this tolerance condition using a modulus inequality and determine the interval of permitted temperatures.

Solve
Practice★★★Not started
The measurement of the radius of a sphere is $r = 5,0 \pm 0,1\text{ cm}$. Using the properties of inequalities and intervals on the real line, determine the strict…

The measurement of the radius of a sphere is $r = 5,0 \pm 0,1\text{ cm}$. Using the properties of inequalities and intervals on the real line, determine the strict interval in which the exact volume of the sphere, $V = \frac{4}{3}\pi r^3$, is found. Consider the unapproximated value of $\pi$ at the endpoints of the resulting interval.

Solve

Union, intersection, and complement

Because intervals are sets, we can combine them.

  • Union $A \cup B$: numbers in $A$ or $B$ (or both).

  • Intersection $A \cap B$: numbers in $A$ and $B$.

  • Complement $\mathbb{R} \setminus I$: all real numbers not in $I$.

The best method is to draw each set on its own number line, one above the other, with the endpoints lined up.

Three stacked number lines showing A = (-3, 2], B = [0, 6), their intersection [0, 2], and their union (-3, 6). A = (−3, 2] B = [0, 6) A ∩ B = [0, 2] A ∪ B = (−3, 6)

The intersection is only where both lines are thick. The union is where at least one is thick.

The interval (-2, 5] on one number line and its complement, the two rays (-infinity, -2] and (5, infinity), on another. I = (−2, 5] −2 5 (−∞, −2] (5, +∞)

Intervals can also have an empty intersection. For example, $(-\infty, 1) \cap [3, \infty) = \varnothing$. And two intervals that touch can merge: $[1, 3] \cup (3, 5) = [1, 5)$.

Practice★☆☆Not started
Given the intervals $A = [-2, 4)$ and $B = (1, 6]$, determine and express as a single interval the result of the union $A \cup B$ and the intersection $A \cap B$.

Given the intervals $A = [-2, 4)$ and $B = (1, 6]$, determine and express as a single interval the result of the union $A \cup B$ and the intersection $A \cap B$.

Solve
Practice★★☆Not started
Consider the interval $I = [-3, 4)$. Determine the complement set $\mathbb{R} \setminus I$ and express it as the union of two intervals.

Consider the interval $I = [-3, 4)$. Determine the complement set $\mathbb{R} \setminus I$ and express it as the union of two intervals.

Solve
Practice★★★Not started
Determine the values of the parameter $k \in \mathbb{R}$ for which the intersection of the intervals $A = (-\infty, 2k]$ and $B = (k + 3, +\infty)$ is an interval of…

Determine the values of the parameter $k \in \mathbb{R}$ for which the intersection of the intervals $A = (-\infty, 2k]$ and $B = (k + 3, +\infty)$ is an interval of length exactly equal to $5$.

Solve

Absolute value inequalities

To solve an absolute value inequality, isolate the absolute value, then split it into one of two forms:

  • $|u| \le c$ (with $c \ge 0$) becomes $-c \le u \le c$ (one chain).

  • $|u| \ge c$ becomes $u \le -c$ or $u \ge c$ (two cases).

Here $u$ can be any expression, such as $3x + 1$.

Practice★★☆Not started
Solve the inequality $|2x - 5| \le 3$ and represent the solution set as an interval.

Solve the inequality $|2x - 5| \le 3$ and represent the solution set as an interval.

Solve
Practice★★★Not started
Solve the inequality with nested moduli $||x - 1| - 2| \le 1$ and express the final solution as the union of two closed intervals.

Solve the inequality with nested moduli $||x - 1| - 2| \le 1$ and express the final solution as the union of two closed intervals.

Solve
Practice★★★Not started
In an optics experiment, the position $x$ of a lens along a one-dimensional rail must simultaneously satisfy two conditions for the image to be in focus: the distance to…

In an optics experiment, the position $x$ of a lens along a one-dimensional rail must simultaneously satisfy two conditions for the image to be in focus: the distance to the light source $A$ (located at $x=10$) must be greater than $5\text{ cm}$, and the distance to the screen $B$ (located at $x=30$) must be less than $12\text{ cm}$. Express these conditions using a system of modulus inequalities and determine the valid interval for the position $x$.

Solve

Quadratic inequalities and sums of absolute values

For a quadratic inequality, move everything to one side, find the zeros, and check the sign on each piece of the number line. If $a > 0$, the parabola opens upward, so it is negative between its zeros and positive outside them.

Sign chart of an upward-opening parabola with two zeros x1 and x2: positive to the left of x1, negative between the zeros, positive to the right of x2. x₁ x₂ + − + x < x₁ sign + x₁ < x < x₂ sign − x > x₂ sign +

Absolute values can also be added. Split the number line at the points where each absolute value changes behavior, and solve each case separately.

Practice★★★Not started
Express as a union of intervals the set of all real numbers that satisfy the quadratic inequality $x^2 - 4x - 5 > 0$.

Express as a union of intervals the set of all real numbers that satisfy the quadratic inequality $x^2 - 4x - 5 > 0$.

Solve
Practice★★★Not started
Find the set of real numbers $x$ that satisfy the inequality $|x + 2| + |x - 3| \le 7$. Express the result as an interval.

Find the set of real numbers $x$ that satisfy the inequality $|x + 2| + |x - 3| \le 7$. Express the result as an interval.

−3 −2 3 4 5 7 f(x) y = 7
Solve

Irrational numbers on the line

Rational numbers are fractions, and their decimals stop or repeat. Irrational numbers, such as $\sqrt{2}$, $\pi$, and $\varphi$, cannot be written as a fraction. Both kinds fill the real line, with no gaps.

Plotting a square root exactly

The Pythagorean Theorem lets you place $\sqrt{n}$ exactly. Write $n$ as a sum of two perfect squares, $n = p^2 + q^2$. Draw a right triangle with legs $p$ and $q$ starting at $0$ on the number line. Its hypotenuse has length $\sqrt{p^2 + q^2} = \sqrt{n}$. Swing a compass with center $0$ and that radius until it hits the line.

Constructing the square root of 10 on the number line: a right triangle with legs 3 and 1 has hypotenuse the square root of 10, and a compass arc carries that length onto the line. 01 23 1 √10 √10 ≈ 3.16

The golden ratio

The golden ratio $\varphi = \dfrac{1 + \sqrt{5}}{2}$ also has a compass-and-straightedge construction on the line. Take a unit square on $[0, 1]$. Let $M$ be the midpoint of its base, at $\tfrac{1}{2}$. Draw the segment from $M$ to the top-right corner. Swing an arc centered at $M$ onto the number line.

Golden ratio construction: a unit square on the number line, a diagonal from the midpoint of its base to the opposite top corner, and an arc landing at 1/2 + √5/2, which is φ. 01/2 1φ √5/2 φ = 1/2 + √5/2 ≈ 1.618

Why this lands exactly at $\varphi$: the right triangle has legs $1$ and $\tfrac{1}{2}$, so the hypotenuse is $\sqrt{1 + \tfrac{1}{4}} = \tfrac{\sqrt{5}}{2}$. Starting at $M = \tfrac{1}{2}$ and moving that far to the right reaches $\tfrac{1}{2} + \tfrac{\sqrt{5}}{2} = \tfrac{1 + \sqrt{5}}{2} = \varphi$. You can also check that $\varphi$ is a zero of $x^2 - x - 1$: $\varphi^2 = \tfrac{6 + 2\sqrt{5}}{4} = \tfrac{3 + \sqrt{5}}{2} = \varphi + 1$.

Irrational numbers between rationals

Between any two real numbers there are both rational and irrational numbers. To find an irrational number between two rationals $p < q$:

  1. Find the gap $q - p$.

  2. Choose a whole number $N$ so large that $\sqrt{2}/N$ is smaller than the gap.

  3. Then $p + \sqrt{2}/N$ is between $p$ and $q$.

It is irrational because a rational number plus an irrational number is irrational: if $p + \sqrt{2}/N$ were a rational $s$, then $\sqrt{2}/N = s - p$ would be rational, which is false.

Practice★★☆Not started
Explain the steps to represent the irrational number $\sqrt{13}$ exactly on the real line using Pythagoras' theorem.

Explain the steps to represent the irrational number $\sqrt{13}$ exactly on the real line using Pythagoras' theorem.

0 1 2 3 4 3 2 √13 √13
Solve
Practice★★★Not started
In the design of a building's facade, the golden ratio $\phi = \frac{1 + \sqrt{5}}{2}$ is used. Based on the attached figure, justify analytically why the construction…

In the design of a building's facade, the golden ratio $\phi = \frac{1 + \sqrt{5}}{2}$ is used. Based on the attached figure, justify analytically why the construction shown determines exactly the value of $\phi$ on the real line.

0 1/2 1 2 φ
Solve
Practice★★★Not started
Prove, by finding an explicit example, that between the rational numbers $\frac{10}{7}$ and $\frac{143}{100}$ there is at least one irrational number.

Prove, by finding an explicit example, that between the rational numbers $\frac{10}{7}$ and $\frac{143}{100}$ there is at least one irrational number.

Solve

Back to the start: a can is accepted when it holds between $11.8$ and $12.2$ oz. As an interval that is $[11.8, 12.2]$. As a distance condition it is $|c - 12| \le 0.2$. And as a closed interval it has center $12$ and radius $0.2$, which is exactly what $|c - 12| \le 0.2$ says. Three ways to say the same thing.

Summary

See all the exercises in this section