Absolute Value and the Triangle Inequality
How far apart are two real numbers? How do we bound the distance from to using the distances from to and from to ? This is not idle bookkeeping. It is the single estimate that makes calculus possible. Nearly every – argument is secretly an application of it. The absolute value function packages the order axioms of into a notion of "size" or "magnitude." The triangle inequality is the statement that this notion of size behaves the way distance ought to behave. The idea matters because analysis is built on approximation. We replace a number we cannot control by a nearby one we can. We need a reliable way to measure and control the error introduced at each step. Whenever a proof says "the error is at most the sum of two smaller errors," it is invoking the triangle inequality. Often it does so several times in a row. Without it, statements like "the limit of a sum is the sum of the limits" would have no rigorous foothold. The same is true for "a Cauchy sequence converges." The big picture is that , endowed with absolute value, becomes a metric space. This means it is a set with a genuine distance function . This function satisfies positivity, symmetry, and the triangle inequality. This is the first instance — and the model — of the metric structure. That structure reappears throughout analysis, from to function spaces to abstract metric spaces. Everything said here foreshadows The Real Line as a metric space. It also foreshadows the arithmetic conventions used in The Extended Real Number System. This article gives the precise definition of absolute value from the order axioms. It proves its core algebraic laws. It gives a complete proof of the triangle inequality together with its reverse form. It works two asymmetric numerical examples in full detail. It shows exactly which hypothesis is essential by breaking it. It closes with the standard toolkit every analysis student needs at their fingertips.
- Absolute value measures the magnitude of , defined via a case split on the sign of using the order axioms.
- Its two defining algebraic properties are (multiplicativity) and (triangle inequality).
- The triangle inequality is proved directly from the case-split definition, then generalized to terms by induction.
- A key corollary, the reverse triangle inequality , controls how much magnitudes can differ.
- Absolute value turns into a metric space via , the setting for all limit arguments in analysis.
- Dropping subadditivity of "size" (e.g. using instead of improperly) destroys the triangle inequality, showing why the specific definition matters.
- Key idea: absolute value converts order-axiom case analysis into a single algebraic inequality that controls distances additively.
Where this lives today
The triangle inequality for is the seed of the general triangle inequality axiom in every metric space, used throughout topology, functional analysis, and geometry (norms on vector spaces, spaces, the Cauchy–Schwarz-derived triangle inequality in Euclidean space). In numerical analysis and scientific computing, absolute-value bounds control rounding and truncation error propagation: an error bound on a computed sum is obtained exactly via finite subadditivity. In statistics and probability, measures deviation from a mean, and Chebyshev-type and concentration inequalities are triangle-inequality arguments dressed in probabilistic language. In cryptography and coding theory, Hamming and related distances satisfy triangle-inequality axioms modeled directly on this one, enabling error-correcting code design. In physics and engineering, absolute error and tolerance analysis (e.g., propagating measurement uncertainty through a sum of readings) is literally the computation performed in Example 2 above. In computer science, floating-point stability proofs and algorithm error analysis (e.g., in numerical linear algebra) chain triangle-inequality steps to bound accumulated error over many operations.
Ask the tutor: Can you show me how the triangle inequality is used to prove that the limit of a product of sequences equals the product of the limits?
Let be the ordered field of real numbers, with order relation inherited from the order axioms. For , define the absolute value of by
Equivalently, is the unique nonnegative real number satisfying ; equivalently again, . The distance between is defined as .
Intuition
Think of the real line as a physical ruler, with as a fixed reference point. The number answers the question "how far is from , ignoring direction?" A positive number is already its own distance from the origin; a negative number's distance from the origin is obtained by flipping its sign, since distance cannot be negative. This is exactly what the case-split definition encodes: it is a rule for stripping away the sign while preserving magnitude. The triangle inequality generalizes this from distances-to-the-origin to distances between arbitrary points. If you travel from to , you cannot do better than going in a straight line; any detour through an intermediate point is at least as long. Algebraically, is this principle applied with , , (so the two "legs" have lengths and , and the direct path has length ). Equality happens precisely when there is no wasted detour — when and point in the same direction (have the same sign, or one is zero).
The theorem
Let . Then: 1. (Nonnegativity) , and if and only if . 2. (Evenness) . 3. (Multiplicativity) . 4. (Bounding property) For : if and only if . 5. (Triangle Inequality) , with equality if and only if . 6. (Reverse Triangle Inequality) . Consequently satisfies, for all :
We use only the Consequences of the Order Axioms — trichotomy, and the compatibility of order with addition and multiplication — together with the definition of as a case split on sign.
(1) Nonnegativity. By trichotomy, exactly one of , , holds. If then . If then by the order axioms , so . In either case . If , then directly from the definition (the case applies). Conversely, if , then either , giving , or , giving ; either way . This proves the equivalence.
(2) Evenness. Consider three cases. If , then , so and ; these agree. If , then , so and ; these agree. If , then and both sides equal . In all cases .
(3) Multiplicativity. We split into cases based on the signs of and , using the order-axiom fact that a product of two numbers of like sign is nonnegative and a product of numbers of unlike sign is nonpositive (this itself follows from compatibility of order with multiplication, applied to and ).
- If : then , so .
- If : write , with . Then , so (using part 2 for , similarly for ).
- If (the case is symmetric): then , so , since and .
In every case .
(4) Bounding property. Fix . () Suppose . If , then , and also (since gives ). So . If , then , which by the order axioms (adding to both sides, then negating and flipping) gives . Also . So again . () Suppose . If , then directly. If , then , and from we get (negate both sides, flipping the inequality), i.e. .
(5) Triangle inequality. We first record a lemma.
∎lemma[Sign bound] For every , .
::: Proof of lemma. If : , so holds with equality, and (since ). If : , so becomes , true since ; and , an equality. In both cases . Now apply the lemma to and to and add the two chains of inequalities (addition preserves order-compatible inequalities termwise, an order-axiom consequence):
Set (a sum of nonnegatives, by part 1). We have shown . By part (4) applied with this , this is exactly the statement . This proves the inequality. Equality case. We claim equality holds iff . () Suppose . By trichotomy on and combined with , either both or both (if one were strictly positive and the other strictly negative, their product would be negative by the order axioms, contradicting ). If both : , so . If both : , so . () Suppose (i.e. not ); we show equality fails. Then one of is strictly positive and the other strictly negative; say (the other case is symmetric). Then , , so . We compute : since we cannot determine the sign of in general, use instead the strict version of the lemma's second inequality applied to : because , we have is not what we need — instead argue directly. Since , we have actually reduces to which is just , true but not directly useful; instead compare against directly: since , so . Also is checked similarly: since , so too. Hence both and are strictly less than , and since , we conclude , strict inequality. This shows equality forces , completing the biconditional.
(6) Reverse triangle inequality. Write . By the triangle inequality (part 5) applied to the two numbers and :
Rearranging (an order-axiom consequence of adding to both sides):
Symmetrically, writing and using (part 2):
i.e. , equivalently . Combining the two displayed inequalities,
By part (4) with , this is exactly .
Metric properties of . Positivity and the equality case follow immediately from part (1) applied to . Symmetry follows from by part (2). The triangle inequality for follows from part (5): writing ,
For any and real numbers ,
By induction on , the technique being straightforward mathematical induction on the number of terms. Base case : trivially (equality). Inductive step: Suppose the claim holds for some , i.e. . Let . Then, using the triangle inequality (part 5 of the theorem, with the two numbers and ), followed by the inductive hypothesis and monotonicity of addition:
This is the claim for . By induction, the inequality holds for all .
∎Worked examples
Example 1 (Solving an inequality with the bounding property). Solve for , and express the solution as an interval. By part (4) of the theorem with :
Add to all three parts (order-preserving under addition):
Divide by (order-preserving under multiplication by a positive number):
So the solution set is the closed interval . As a check, test an endpoint and an interior point: at , ✓; at , ✓; at (interior), ✓. Test a point outside, : , correctly excluded.
Example 2 (Using the triangle inequality to bound a quantity, with asymmetric numbers). Suppose satisfies and satisfies . Bound . We want to relate to the quantities we control, and . Observe the algebraic identity
which we verify by expanding the right side: . ✓ (This is the key decomposition step — chosen so that each piece is exactly the quantity bounded by a hypothesis.) By the triangle inequality (part 5),
So . To see the bound is essentially tight (cannot be improved much), take (so ) and (so ). Then , and indeed , approaching the bound as approach the endpoints and . We can also illustrate the reverse triangle inequality numerically here: with and ,
and indeed ✓, consistent with part (6).
One might guess that any nonnegative "size" function with would satisfy a triangle-type inequality . This is false in general, and the failure shows exactly why the case-split definition of (equivalently, the sign-bound lemma ) is the essential ingredient, not merely nonnegativity. Let , which is nonnegative and vanishes only at — it satisfies parts of property (1) of the theorem — but drop the requirement that come from an absolute-value-style definition. Take . Then
Since , the inequality fails. So squaring does not give a subadditive notion of size, even though always. The proof of the triangle inequality for used the lemma in an essential way: adding the two chains and gave the bound on directly. For , the analogous statement is simply false for between and (e.g. gives ), so the argument cannot even get started; and as the numerical example shows, the conclusion genuinely fails, not merely the proof method. This is why absolute value — not an arbitrary nonnegative function — is the correct notion of magnitude compatible with additive estimates.
Scope, edge cases & common traps
| Situation | What to remember |
|---|---|
| vs. | The bounding property (part 4) has a strict version too: , proved identically with strict inequalities throughout. |
| Equality in the triangle inequality | Equality holds iff (same sign or one is ) — not only when . |
| vs | These are always equal (evenness), so "distance from to " is unambiguous. |
| -term sums | Use finite subadditivity (proved by induction); do not assume it without proof — it is a corollary, not a restatement. |
| Reverse triangle inequality direction | It bounds , not alone (which can be negative); the absolute value on the left is essential. |
The mathematician behind it
Origins · 1 minRichard Dedekind and how this was discovered
Dedekind did not invent absolute value — the notation and basic idea trace to Weierstrass's rigorization of analysis in the 1850s–1870s — but his 1872 construction of via Dedekind cuts gave the order and field structure on which absolute value and the triangle inequality rest a fully rigorous foundation. Weierstrass's Berlin lectures made -based reasoning, and hence estimates built from the triangle inequality, the working language of analysis.
Why is absolute value defined by cases instead of just as ?
Both definitions are equivalent and both are standard; presupposes the existence and properties of square roots (that every nonnegative real has a unique nonnegative square root), which itself requires the completeness of or at least a separate existence proof. The case-split definition needs only the order axioms — trichotomy and compatibility of order with arithmetic — so it is the more elementary and logically prior definition. In this article's chapter, the order axioms are already assumed, making the case-split the natural starting point; once square roots are established via completeness, the identity becomes a convenient equivalent characterization, not a redefinition.
Does the triangle inequality hold for subtraction, e.g. ?
Yes, and it follows immediately from the addition version. Write , apply the triangle inequality to the pair and , and use evenness : . This is one of the most common invocations of the theorem in practice, since bounding a difference (an error term) is exactly the situation that arises in limit proofs.
What does it mean for equality to hold "iff ," and why not "iff "?
The condition says and have the same sign or at least one of them is zero — geometrically, they point the same direction along the real line (or one is the origin), so adding them involves no cancellation. The condition is far too restrictive: for instance satisfies and gives equality (), even though . Conversely has and , also giving equality, but that's consistent with the correct criterion, not evidence for the wrong one. The theorem's proof derives the exact biconditional; always cite the sign condition, not sameness.
How does the triangle inequality relate to the definition of a limit?
Every – or – proof of a limit statement uses the triangle inequality to split a single hard-to-control quantity into pieces that are each separately controlled by hypothesis. For example, to show given and , one writes , exactly as in Example 2 above, then makes each summand small. This pattern recurs throughout The Real Line and all of elementary analysis.
Is the same as distance, or just related to it?
Absolute value is precisely the distance from to on the real line, and the general distance function built from it satisfies all the axioms of a metric: nonnegativity, identity of indiscernibles, symmetry, and the triangle inequality, each proved in the theorem above. This is not an analogy — is a genuine metric space, the prototype for the abstract notion of metric space introduced later (Fréchet, 1906) and used throughout topology and analysis, including the eventual treatment of The Extended Real Number System where distance-like reasoning must be adapted near .
Does the triangle inequality generalize beyond two or finitely many terms?
For finite sums, yes — this is exactly the corollary on finite subadditivity, proved by induction on the number of terms, extending the two-term case to any . For infinite sums (series), a version survives as , valid whenever the right-hand series converges (this is the definition/criterion for absolute convergence), but this requires the theory of infinite series and limits, which lies beyond the elementary algebraic result proved here.
Why does the proof avoid assuming or facts about limits?
Because this result belongs to the algebraic foundations of , built directly from the Consequences of the Order Axioms, and must not implicitly assume machinery (square roots, limits, continuity) that is typically developed using absolute value and the triangle inequality later on. Proving the theorem via would risk circularity if square-root existence itself is proved using order-and-absolute-value estimates elsewhere in the same foundational development. The case-split proof sidesteps this entirely, so the result is available as a clean, load-bearing tool for everything built afterward.