Real AnalysisThe Real Numbers

Absolute Value and the Triangle Inequality

|x − a| < ε means x is within ε of a; |a + b| ≤ |a| + |b| and |a| − |b| ≤ |a − b| turn distances into bounds.

Not started Jump to practice

Real analysis is the part of mathematics that proves why calculus works. Almost every proof in it measures how close two numbers are, and the tool for that is the absolute value. You solved inequalities like $|x - 3| < 2$ in Algebra 1, and in Discrete Math you learned to write a direct proof. This course puts the two together.

Key idea

$|x - a|$ is the distance from $x$ to $a$, so $|x - a| < \varepsilon$ means $a - \varepsilon < x < a + \varepsilon$. Two inequalities turn distances into bounds: the triangle inequality $|a + b| \le |a| + |b|$, and the reverse triangle inequality $|a| - |b| \le |a - b|$.

Why it works

Since $-|a| \le a \le |a|$ and $-|b| \le b \le |b|$, adding gives $-(|a| + |b|) \le a + b \le |a| + |b|$, which says exactly $|a + b| \le |a| + |b|$. For the reverse version, write $a = (a - b) + b$ and apply the triangle inequality: $|a| \le |a - b| + |b|$, so $|a| - |b| \le |a - b|$. Swapping $a$ and $b$ gives $|b| - |a| \le |a - b|$ too, so in fact $\big||a| - |b|\big| \le |a - b|$.

Analysts use these two facts in two directions. The triangle inequality gives an upper bound for a sum: if two quantities are each small, so is their sum. The reverse inequality gives a lower bound: a number close to $a$ cannot be much smaller in size than $|a|$. We will use the second one to keep denominators away from $0$.

Worked examples

Worked example: Unwrapping an absolute value

Write the set of $x$ with $|x + 2| < 0.1$ as an interval.
  1. $|x + 2| = |x - (-2)|$ is the distance from $x$ to $-2$.
  2. So $-0.1 < x + 2 < 0.1$, that is, $-2.1 < x < -1.9$.

Answer: $(-2.1, -1.9)$, an open interval because the inequality is strict.

Worked example: Bounding a factor

If $|x - 3| < 1$, how big can $|x + 3|$ be?
  1. From $|x - 3| < 1$: $2 < x < 4$.
  2. Then $5 < x + 3 < 7$, so $|x + 3| < 7$.
  3. This is the step that makes $x^{2}$ continuous at $3$: $|x^{2} - 9| = |x - 3|\,|x + 3| < 7|x - 3|$, which is small when $|x - 3|$ is.

Answer: $|x + 3| < 7$, and no smaller bound works for every such $x$.

Worked example: Keeping away from zero

If $|x - 5| < 2$, show that $|x| > 3$.
  1. Reverse triangle inequality: $|x| \ge |5| - |x - 5|$.
  2. Since $|x - 5| < 2$, we get $|x| > 5 - 2 = 3$.

Answer: $|x| > 3$. (So $\frac{1}{|x|} < \frac{1}{3}$: a bound on a reciprocal, the kind the quotient law needs.)

Common mistake

Running the inequality backward. The tempting "$|a - b| \le |a| - |b|$" is false: with $a = 1$ and $b = 2$, the left side is $1$ and the right side is $-1$. The difference of sizes is a lower bound for the size of the difference. And $|a + b| = |a| + |b|$ holds only when $a$ and $b$ have the same sign (or one is $0$). Check any inequality like these with $a = 1$, $b = -1$ and with $a = 1$, $b = 2$ before you use it.
In a proof you will often see a chain like $|x^{2} - 9| = |x - 3||x + 3| \le |x - 3|(|x - 3| + 6)$. The last step is the triangle inequality: $|x + 3| = |(x - 3) + 6| \le |x - 3| + 6$.

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 2 XP.

Loading practice…

Builds on

Leads to

Sources and further reading

  • Jiří Lebl, Basic Analysis I: Introduction to Real Analysis, section 1.3 (absolute value)
  • MIT OpenCourseWare 18.100A Real Analysis, lecture notes on the real numbers and absolute value
@teddyrookbook GitHub