The Real Number Line and Intervals
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.
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 |
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$.
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}$.
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.
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$ |
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$.
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.
Find the values of $x$ that satisfy the equation $|x - 4| = 9$.
Find the values of $x$ that satisfy the equation $|x - 4| = 9$.
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$.
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}.$$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.
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$.
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$.
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.
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.
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.
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.
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.
The intersection is only where both lines are thick. The union is where at least one is thick.
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)$.
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$.
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.
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$.
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$.
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 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.
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$.
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.
Absolute values can also be added. Split the number line at the points where each absolute value changes behavior, and solve each case separately.
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$.
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.
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.
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.
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$:
-
Find the gap $q - p$.
-
Choose a whole number $N$ so large that $\sqrt{2}/N$ is smaller than the gap.
-
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.
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.
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.
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.
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.