Absolute Value and the Triangle Inequality

How far apart are two real numbers? How do we bound the distance from aa to cc using the distances from aa to bb and from bb to cc? This is not idle bookkeeping. It is the single estimate that makes calculus possible. Nearly every ε\varepsilon–δ\delta argument is secretly an application of it. The absolute value function packages the order axioms of R\mathbb{R} 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 R\mathbb{R}, endowed with absolute value, becomes a metric space. This means it is a set with a genuine distance function d(x,y)=∣x−y∣d(x,y) = |x-y|. 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 Rn\mathbb{R}^n 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.

Key takeaways
  • Absolute value ∣x∣|x| measures the magnitude of xx, defined via a case split on the sign of xx using the order axioms.
  • Its two defining algebraic properties are ∣xy∣=∣x∣∣y∣|xy| = |x||y| (multiplicativity) and ∣x+y∣≤∣x∣+∣y∣|x+y| \le |x|+|y| (triangle inequality).
  • The triangle inequality is proved directly from the case-split definition, then generalized to nn terms by induction.
  • A key corollary, the reverse triangle inequality ∣∣x∣−∣y∣∣≤∣x−y∣\big||x|-|y|\big| \le |x-y|, controls how much magnitudes can differ.
  • Absolute value turns R\mathbb{R} into a metric space via d(x,y)=∣x−y∣d(x,y)=|x-y|, the setting for all limit arguments in analysis.
  • Dropping subadditivity of "size" (e.g. using x2x^2 instead of ∣x∣|x| 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 ∣⋅∣|\cdot| is the seed of the general triangle inequality axiom in every metric space, used throughout topology, functional analysis, and geometry (norms on vector spaces, LpL^p 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, ∣X−μ∣|X - \mu| 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?

DefinitionAbsolute Value

Let R\mathbb{R} be the ordered field of real numbers, with order relation << inherited from the order axioms. For x∈Rx \in \mathbb{R}, define the absolute value of xx by

∣x∣  =  {xif x≥0,−xif x<0.|x| \;=\; \begin{cases} x & \text{if } x \ge 0, \\ -x & \text{if } x < 0. \end{cases}

Equivalently, ∣x∣|x| is the unique nonnegative real number satisfying ∣x∣2=x2|x|^2 = x^2; equivalently again, ∣x∣=max⁡{x,−x}|x| = \max\{x, -x\}. The distance between x,y∈Rx, y \in \mathbb{R} is defined as d(x,y)=∣x−y∣d(x,y) = |x - y|.

Intuition

Think of the real line as a physical ruler, with 00 as a fixed reference point. The number ∣x∣|x| answers the question "how far is xx from 00, 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 aa to cc, you cannot do better than going in a straight line; any detour through an intermediate point bb is at least as long. Algebraically, ∣x+y∣≤∣x∣+∣y∣|x+y| \le |x| + |y| is this principle applied with a=0a = 0, b=xb = x, c=x+yc = x+y (so the two "legs" have lengths ∣x∣|x| and ∣y∣|y|, and the direct path has length ∣x+y∣|x+y|). Equality happens precisely when there is no wasted detour — when xx and yy point in the same direction (have the same sign, or one is zero).

Figure
Absolute value as distance from the origin, and the triangle inequality as a shortcut
0 x = -5 y = 4 |x| = 5 |y| = 4 x + y = -1 |x+y| = 1 Triangle inequality: |x+y| = 1 ≤ |x| + |y| = 9

The theorem

TheoremAlgebraic Properties of Absolute Value and the Triangle Inequality

Let x,y∈Rx, y \in \mathbb{R}. Then: 1. (Nonnegativity) ∣x∣≥0|x| \ge 0, and ∣x∣=0|x| = 0 if and only if x=0x = 0. 2. (Evenness) ∣−x∣=∣x∣|-x| = |x|. 3. (Multiplicativity) ∣xy∣=∣x∣ ∣y∣|xy| = |x|\,|y|. 4. (Bounding property) For a≥0a \ge 0: ∣x∣≤a|x| \le a if and only if −a≤x≤a-a \le x \le a. 5. (Triangle Inequality) ∣x+y∣≤∣x∣+∣y∣|x + y| \le |x| + |y|, with equality if and only if xy≥0xy \ge 0. 6. (Reverse Triangle Inequality) ∣∣x∣−∣y∣∣≤∣x−y∣\big| |x| - |y| \big| \le |x - y|. Consequently d(x,y):=∣x−y∣d(x,y) := |x-y| satisfies, for all x,y,z∈Rx,y,z \in \mathbb{R}:

d(x,y)≥0,d(x,y)=0  ⟺  x=y,d(x,y)=d(y,x),d(x,z)≤d(x,y)+d(y,z).d(x,y) \ge 0,\quad d(x,y)=0 \iff x=y, \quad d(x,y)=d(y,x), \quad d(x,z) \le d(x,y)+d(y,z).
Proof

We use only the Consequences of the Order Axioms — trichotomy, and the compatibility of order with addition and multiplication — together with the definition of ∣x∣|x| as a case split on sign.

(1) Nonnegativity. By trichotomy, exactly one of x>0x>0, x=0x=0, x<0x<0 holds. If x≥0x \ge 0 then ∣x∣=x≥0|x| = x \ge 0. If x<0x < 0 then by the order axioms −x>0-x > 0, so ∣x∣=−x>0≥0|x| = -x > 0 \ge 0. In either case ∣x∣≥0|x| \ge 0. If x=0x = 0, then ∣x∣=0|x| = 0 directly from the definition (the case x≥0x \ge 0 applies). Conversely, if x≠0x \ne 0, then either x>0x > 0, giving ∣x∣=x>0|x| = x > 0, or x<0x < 0, giving ∣x∣=−x>0|x| = -x > 0; either way ∣x∣≠0|x| \ne 0. This proves the equivalence.

(2) Evenness. Consider three cases. If x>0x > 0, then −x<0-x < 0, so ∣x∣=x|x| = x and ∣−x∣=−(−x)=x|-x| = -(-x) = x; these agree. If x<0x < 0, then −x>0-x > 0, so ∣x∣=−x|x| = -x and ∣−x∣=−x|-x| = -x; these agree. If x=0x = 0, then −x=0-x = 0 and both sides equal 00. In all cases ∣−x∣=∣x∣|-x| = |x|.

(3) Multiplicativity. We split into cases based on the signs of xx and yy, 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 x−0x-0 and y−0y-0).

  • If x≥0,y≥0x \ge 0, y \ge 0: then xy≥0xy \ge 0, so ∣xy∣=xy=∣x∣∣y∣|xy| = xy = |x||y|.
  • If x≤0,y≤0x \le 0, y \le 0: write x=−x′x = -x', y=−y′y=-y' with x′,y′≥0x', y' \ge 0. Then xy=x′y′≥0xy = x'y' \ge 0, so ∣xy∣=xy=x′y′=∣x∣∣y∣|xy| = xy = x'y' = |x||y| (using part 2 for ∣x∣=∣−x′∣=x′|x|=|-x'|=x', similarly for yy).
  • If x≥0,y≤0x \ge 0, y \le 0 (the case x≤0,y≥0x\le 0, y \ge 0 is symmetric): then xy≤0xy \le 0, so ∣xy∣=−xy=x(−y)=∣x∣∣y∣|xy| = -xy = x(-y) = |x||y|, since −y=∣y∣-y = |y| and x=∣x∣x = |x|.

In every case ∣xy∣=∣x∣∣y∣|xy| = |x||y|.

(4) Bounding property. Fix a≥0a \ge 0. (⇒\Rightarrow) Suppose ∣x∣≤a|x| \le a. If x≥0x \ge 0, then x=∣x∣≤ax = |x| \le a, and also x≥0≥−ax \ge 0 \ge -a (since a≥0a \ge 0 gives −a≤0-a \le 0). So −a≤x≤a-a \le x \le a. If x<0x < 0, then ∣x∣=−x≤a|x| = -x \le a, which by the order axioms (adding x−ax - a to both sides, then negating and flipping) gives x≥−ax \ge -a. Also x<0≤ax < 0 \le a. So again −a≤x≤a-a \le x \le a. (⇐\Leftarrow) Suppose −a≤x≤a-a \le x \le a. If x≥0x \ge 0, then ∣x∣=x≤a|x| = x \le a directly. If x<0x < 0, then ∣x∣=−x|x| = -x, and from −a≤x-a \le x we get −x≤a-x \le a (negate both sides, flipping the inequality), i.e. ∣x∣≤a|x| \le a.

(5) Triangle inequality. We first record a lemma.

∎

lemma[Sign bound] For every x∈Rx \in \mathbb{R}, −∣x∣≤x≤∣x∣-|x| \le x \le |x|.

::: Proof of lemma. If x≥0x \ge 0: ∣x∣=x|x| = x, so x≤∣x∣x \le |x| holds with equality, and −∣x∣=−x≤0≤x-|x| = -x \le 0 \le x (since x≥0x\ge 0). If x<0x < 0: ∣x∣=−x|x| = -x, so x≤∣x∣x \le |x| becomes x≤−xx \le -x, true since x<0<−xx < 0 < -x; and −∣x∣=x≤x-|x| = x \le x, an equality. In both cases −∣x∣≤x≤∣x∣-|x| \le x \le |x|. ■\blacksquare Now apply the lemma to xx and to yy and add the two chains of inequalities (addition preserves order-compatible inequalities termwise, an order-axiom consequence):

−∣x∣≤x≤∣x∣,−∣y∣≤y≤∣y∣    ⟹    −(∣x∣+∣y∣)≤x+y≤∣x∣+∣y∣.-|x| \le x \le |x|, \qquad -|y| \le y \le |y| \;\;\Longrightarrow\;\; -(|x|+|y|) \le x+y \le |x|+|y|.

Set a=∣x∣+∣y∣≥0a = |x|+|y| \ge 0 (a sum of nonnegatives, by part 1). We have shown −a≤x+y≤a-a \le x+y \le a. By part (4) applied with this aa, this is exactly the statement ∣x+y∣≤a=∣x∣+∣y∣|x+y| \le a = |x|+|y|. This proves the inequality. Equality case. We claim equality ∣x+y∣=∣x∣+∣y∣|x+y| = |x|+|y| holds iff xy≥0xy \ge 0. (⇐\Leftarrow) Suppose xy≥0xy \ge 0. By trichotomy on xx and yy combined with xy≥0xy\ge 0, either both x,y≥0x,y \ge 0 or both x,y≤0x, y \le 0 (if one were strictly positive and the other strictly negative, their product would be negative by the order axioms, contradicting xy≥0xy \ge 0). If both ≥0\ge 0: x+y≥0x+y \ge 0, so ∣x+y∣=x+y=∣x∣+∣y∣|x+y| = x+y = |x|+|y|. If both ≤0\le 0: x+y≤0x + y \le 0, so ∣x+y∣=−(x+y)=(−x)+(−y)=∣x∣+∣y∣|x+y| = -(x+y) = (-x)+(-y) = |x|+|y|. (⇒\Rightarrow) Suppose xy<0xy < 0 (i.e. not xy≥0xy \ge 0); we show equality fails. Then one of x,yx,y is strictly positive and the other strictly negative; say x>0>yx>0>y (the other case is symmetric). Then ∣x∣=x|x|=x, ∣y∣=−y|y|=-y, so ∣x∣+∣y∣=x−y|x|+|y| = x-y. We compute ∣x+y∣|x+y|: since we cannot determine the sign of x+yx+y in general, use instead the strict version of the lemma's second inequality applied to yy: because y<0y<0, we have −∣y∣=y<∣y∣-|y| = y < |y| is not what we need — instead argue directly. Since y<0<xy < 0 < x, we have y<∣y∣y < |y| actually reduces to y<−yy< -y which is just y<0y<0, true but not directly useful; instead compare x+yx+y against x−y=∣x∣+∣y∣x - y = |x|+|y| directly: x−y−(x+y)=−2y>0x - y - (x+y) = -2y > 0 since y<0y<0, so x+y<x−y=∣x∣+∣y∣x+y < x-y = |x|+|y|. Also −(x+y)<x−y-(x+y) < x - y is checked similarly: x−y−(−(x+y))=x−y+x+y=2x>0x-y-(-(x+y)) = x - y + x+y = 2x > 0 since x>0x > 0, so −(x+y)<x−y-(x+y) < x-y too. Hence both x+yx+y and −(x+y)-(x+y) are strictly less than ∣x∣+∣y∣|x|+|y|, and since ∣x+y∣∈{x+y,−(x+y)}|x+y| \in \{x+y, -(x+y)\}, we conclude ∣x+y∣<∣x∣+∣y∣|x+y| < |x|+|y|, strict inequality. This shows equality forces xy≥0xy \ge 0, completing the biconditional.

(6) Reverse triangle inequality. Write x=(x−y)+yx = (x-y) + y. By the triangle inequality (part 5) applied to the two numbers x−yx-y and yy:

∣x∣=∣(x−y)+y∣≤∣x−y∣+∣y∣.|x| = |(x-y)+y| \le |x-y| + |y|.

Rearranging (an order-axiom consequence of adding −∣y∣-|y| to both sides):

∣x∣−∣y∣≤∣x−y∣.|x| - |y| \le |x-y|.

Symmetrically, writing y=(y−x)+xy = (y-x)+x and using ∣−(x−y)∣=∣x−y∣|-(x-y)| = |x-y| (part 2):

∣y∣−∣x∣≤∣y−x∣=∣x−y∣,|y| - |x| \le |y - x| = |x-y|,

i.e. −(∣x∣−∣y∣)≤∣x−y∣-(|x|-|y|) \le |x-y|, equivalently ∣x∣−∣y∣≥−∣x−y∣|x|-|y| \ge -|x-y|. Combining the two displayed inequalities,

−∣x−y∣≤∣x∣−∣y∣≤∣x−y∣.-|x-y| \le |x| - |y| \le |x-y|.

By part (4) with a=∣x−y∣≥0a = |x-y| \ge 0, this is exactly ∣∣x∣−∣y∣∣≤∣x−y∣\big||x|-|y|\big| \le |x-y|.

Metric properties of dd. Positivity and the equality case follow immediately from part (1) applied to x−yx-y. Symmetry d(x,y)=d(y,x)d(x,y)=d(y,x) follows from ∣x−y∣=∣−(y−x)∣=∣y−x∣|x-y| = |-(y-x)| = |y-x| by part (2). The triangle inequality for dd follows from part (5): writing x−z=(x−y)+(y−z)x - z = (x-y)+(y-z),

d(x,z)=∣x−z∣=∣(x−y)+(y−z)∣≤∣x−y∣+∣y−z∣=d(x,y)+d(y,z).d(x,z) = |x-z| = |(x-y)+(y-z)| \le |x-y|+|y-z| = d(x,y)+d(y,z).

■\blacksquare

CorollaryFinite Subadditivity

For any n≥1n \ge 1 and real numbers x1,…,xnx_1, \dots, x_n,

∣x1+x2+⋯+xn∣  ≤  ∣x1∣+∣x2∣+⋯+∣xn∣.|x_1 + x_2 + \cdots + x_n| \;\le\; |x_1| + |x_2| + \cdots + |x_n|.
Proof

By induction on nn, the technique being straightforward mathematical induction on the number of terms. Base case n=1n=1: ∣x1∣≤∣x1∣|x_1| \le |x_1| trivially (equality). Inductive step: Suppose the claim holds for some n≥1n \ge 1, i.e. ∣x1+⋯+xn∣≤∣x1∣+⋯+∣xn∣|x_1+\cdots+x_n| \le |x_1|+\cdots+|x_n|. Let s=x1+⋯+xns = x_1 + \cdots + x_n. Then, using the triangle inequality (part 5 of the theorem, with the two numbers ss and xn+1x_{n+1}), followed by the inductive hypothesis and monotonicity of addition:

∣x1+⋯+xn+xn+1∣=∣s+xn+1∣≤∣s∣+∣xn+1∣≤(∣x1∣+⋯+∣xn∣)+∣xn+1∣.|x_1+\cdots+x_n+x_{n+1}| = |s + x_{n+1}| \le |s| + |x_{n+1}| \le \big(|x_1|+\cdots+|x_n|\big) + |x_{n+1}|.

This is the claim for n+1n+1. By induction, the inequality holds for all n≥1n \ge 1. ■\blacksquare

∎

Worked examples

Example 1 (Solving an inequality with the bounding property). Solve ∣3x−7∣≤5|3x - 7| \le 5 for x∈Rx \in \mathbb{R}, and express the solution as an interval. By part (4) of the theorem with a=5≥0a = 5 \ge 0:

∣3x−7∣≤5  ⟺  −5≤3x−7≤5.|3x-7| \le 5 \iff -5 \le 3x - 7 \le 5.

Add 77 to all three parts (order-preserving under addition):

2≤3x≤12.2 \le 3x \le 12.

Divide by 3>03 > 0 (order-preserving under multiplication by a positive number):

23≤x≤4.\frac{2}{3} \le x \le 4.

So the solution set is the closed interval [23,4]\left[\tfrac{2}{3}, 4\right]. As a check, test an endpoint and an interior point: at x=4x=4, ∣3(4)−7∣=∣5∣=5≤5|3(4)-7| = |5| = 5 \le 5 ✓; at x=23x = \tfrac23, ∣3(23)−7∣=∣2−7∣=5≤5|3(\tfrac23)-7| = |2-7| = 5 \le 5 ✓; at x=1x=1 (interior), ∣3−7∣=4≤5|3-7|=4 \le 5 ✓. Test a point outside, x=5x=5: ∣15−7∣=8>5|15-7|=8 > 5, correctly excluded.

Example 2 (Using the triangle inequality to bound a quantity, with asymmetric numbers). Suppose aa satisfies ∣a−3∣<0.2|a - 3| < 0.2 and bb satisfies ∣b+8∣<0.5|b + 8| < 0.5. Bound ∣a+b+5∣|a + b + 5|. We want to relate a+b+5a+b+5 to the quantities we control, a−3a - 3 and b+8b+8. Observe the algebraic identity

a+b+5=(a−3)+(b+8),a + b + 5 = (a - 3) + (b+8),

which we verify by expanding the right side: (a−3)+(b+8)=a+b+5(a-3)+(b+8) = a+b+5. ✓ (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),

∣a+b+5∣=∣(a−3)+(b+8)∣≤∣a−3∣+∣b+8∣<0.2+0.5=0.7.|a+b+5| = |(a-3)+(b+8)| \le |a-3| + |b+8| < 0.2 + 0.5 = 0.7.

So ∣a+b+5∣<0.7|a+b+5| < 0.7. To see the bound is essentially tight (cannot be improved much), take a=3.19a = 3.19 (so ∣a−3∣=0.19<0.2|a-3| = 0.19 < 0.2) and b=−7.51b = -7.51 (so ∣b+8∣=0.49<0.5|b+8| = 0.49 < 0.5). Then a+b+5=3.19−7.51+5=0.68a+b+5 = 3.19 - 7.51 + 5 = 0.68, and indeed 0.68<0.70.68 < 0.7, approaching the bound as a,ba,b approach the endpoints 3.23.2 and −7.5-7.5. We can also illustrate the reverse triangle inequality numerically here: with x=a=3.19x = a = 3.19 and y=−7.51y=-7.51,

∣∣x∣−∣y∣∣=∣3.19−7.51∣=4.32,∣x−y∣=∣3.19−(−7.51)∣=10.7,\big||x|-|y|\big| = |3.19 - 7.51| = 4.32, \qquad |x-y| = |3.19-(-7.51)| = 10.7,

and indeed 4.32≤10.74.32 \le 10.7 ✓, consistent with part (6).

Figure
Example 2: bounding |a+b+5| via two independent tolerances
3 a=3.19 |a-3| < 0.2 -8 b=-7.51 |b+8| < 0.5 |a+b+5| = |(a-3)+(b+8)| ≤ 0.2 + 0.5 = 0.7
CounterexampleWhy the specific "size" function must satisfy the sign-bound lemma — using x2x^2 in place of ∣x∣|x|

One might guess that any nonnegative "size" function s(x)≥0s(x) \ge 0 with s(0)=0s(0)=0 would satisfy a triangle-type inequality s(x+y)≤s(x)+s(y)s(x+y) \le s(x)+s(y). This is false in general, and the failure shows exactly why the case-split definition of ∣x∣|x| (equivalently, the sign-bound lemma −∣x∣≤x≤∣x∣-|x|\le x \le |x|) is the essential ingredient, not merely nonnegativity. Let s(x)=x2s(x) = x^2, which is nonnegative and vanishes only at 00 — it satisfies parts of property (1) of the theorem — but drop the requirement that ss come from an absolute-value-style definition. Take x=y=3x = y = 3. Then

s(x+y)=s(6)=36,s(x)+s(y)=9+9=18.s(x+y) = s(6) = 36, \qquad s(x)+s(y) = 9+9 = 18.

Since 36>1836 > 18, the inequality s(x+y)≤s(x)+s(y)s(x+y) \le s(x) + s(y) fails. So squaring does not give a subadditive notion of size, even though x2≥0x^2 \ge 0 always. The proof of the triangle inequality for ∣⋅∣|\cdot| used the lemma −∣x∣≤x≤∣x∣-|x| \le x \le |x| in an essential way: adding the two chains −∣x∣≤x≤∣x∣-|x|\le x\le |x| and −∣y∣≤y≤∣y∣-|y| \le y \le |y| gave the bound on x+yx+y directly. For s(x)=x2s(x)=x^2, the analogous statement −x2≤x≤x2-x^2 \le x \le x^2 is simply false for xx between 00 and 11 (e.g. x=12x = \tfrac12 gives x2=14<x=12x^2 = \tfrac14 < x = \tfrac12), 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

SituationWhat to remember
∣x∣≤a|x| \le a vs. ∣x∣<a|x| < aThe bounding property (part 4) has a strict version too: ∣x∣<a  ⟺  −a<x<a|x|<a \iff -a<x<a, proved identically with strict inequalities throughout.
Equality in the triangle inequalityEquality holds iff xy≥0xy \ge 0 (same sign or one is 00) — not only when x=yx=y.
∣x−y∣|x-y| vs ∣y−x∣|y-x|These are always equal (evenness), so "distance from xx to yy" is unambiguous.
nn-term sumsUse finite subadditivity (proved by induction); do not assume it without proof — it is a corollary, not a restatement.
Reverse triangle inequality directionIt bounds ∣∣x∣−∣y∣∣\big||x|-|y|\big|, not ∣x∣−∣y∣|x|-|y| 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
RD
Richard Dedekind
1831–1916 · Foundations of the real numbers, Braunschweig and Göttingen

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 R\mathbb{R} 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 ε\varepsilon-based reasoning, and hence estimates built from the triangle inequality, the working language of analysis.

History
- 1817 — Bernard Bolzano gives an early rigorous treatment of continuity, implicitly using distance estimates on the real line.
- 1841 — Karl Weierstrass begins developing the ε\varepsilon–δ\delta methods (published and lectured widely in the 1850s–70s) that make absolute-value estimates the standard tool of analysis.
- 1872 — Richard Dedekind publishes Stetigkeit und irrationale Zahlen, constructing R\mathbb{R} rigorously via cuts, securing the order axioms absolute value depends on.
- 1872 — Georg Cantor independently constructs R\mathbb{R} via equivalence classes of Cauchy sequences, another route to the same ordered field.
- 1906 — Maurice Fréchet introduces general metric spaces, abstracting the triangle inequality property of ∣x−y∣|x-y| to arbitrary sets.
Why is absolute value defined by cases instead of just as x2\sqrt{x^2}?

Both definitions are equivalent and both are standard; x2\sqrt{x^2} presupposes the existence and properties of square roots (that every nonnegative real has a unique nonnegative square root), which itself requires the completeness of R\mathbb{R} 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 ∣x∣=x2|x|=\sqrt{x^2} becomes a convenient equivalent characterization, not a redefinition.

Does the triangle inequality hold for subtraction, e.g. ∣x−y∣≤∣x∣+∣y∣|x-y|\le |x|+|y|?

Yes, and it follows immediately from the addition version. Write x−y=x+(−y)x - y = x + (-y), apply the triangle inequality to the pair xx and −y-y, and use evenness ∣−y∣=∣y∣|-y|=|y|: ∣x−y∣=∣x+(−y)∣≤∣x∣+∣−y∣=∣x∣+∣y∣|x-y| = |x+(-y)| \le |x| + |-y| = |x|+|y|. 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 xy≥0xy \ge 0," and why not "iff x=yx=y"?

The condition xy≥0xy \ge 0 says xx and yy 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 x=yx=y is far too restrictive: for instance x=1,y=1000x=1,y=1000 satisfies xy>0xy>0 and gives equality (∣1001∣=1+1000|1001|=1+1000), even though x≠yx\ne y. Conversely x=−3,y=−3x=-3,y=-3 has x=yx=y and xy=9≥0xy=9\ge0, 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 ε\varepsilon–δ\delta or ε\varepsilon–NN 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 lim⁡(an+bn)=L+M\lim (a_n+b_n) = L+M given lim⁡an=L\lim a_n = L and lim⁡bn=M\lim b_n=M, one writes ∣(an+bn)−(L+M)∣=∣(an−L)+(bn−M)∣≤∣an−L∣+∣bn−M∣|(a_n+b_n)-(L+M)| = |(a_n-L)+(b_n-M)| \le |a_n-L|+|b_n-M|, exactly as in Example 2 above, then makes each summand small. This pattern recurs throughout The Real Line and all of elementary analysis.

Is ∣x∣|x| the same as distance, or just related to it?

Absolute value ∣x∣|x| is precisely the distance from xx to 00 on the real line, and the general distance function d(x,y)=∣x−y∣d(x,y)=|x-y| 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 — (R,d)(\mathbb{R}, d) 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 ±∞\pm\infty.

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 nn. For infinite sums (series), a version survives as ∣∑k=1∞xk∣≤∑k=1∞∣xk∣\left|\sum_{k=1}^\infty x_k\right| \le \sum_{k=1}^\infty |x_k|, 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 ∣x∣=x2|x|=\sqrt{x^2} or facts about limits?

Because this result belongs to the algebraic foundations of R\mathbb{R}, 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 x2\sqrt{x^2} 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.

Before this

Where this leads