MathLabs
TheoremProved

Triangle inequality (for real numbers)

Statement

For all real numbers aa and bb, ∣a+b∣≤∣a∣+∣b∣|a+b| \le |a|+|b|, where ∣x∣|x| denotes absolute value; equality holds exactly when aa and bb have the same sign (or one is 00).

Why is it true?

Absolute value measures distance from zero; adding two numbers of opposite sign causes cancellation, so the distance of the sum can only shrink compared to adding the distances separately.

Proof sketch

Every real number xx satisfies −∣x∣≤x≤∣x∣-|x|\le x\le |x| by definition of absolute value. Apply this to both aa and bb: −∣a∣≤a≤∣a∣-|a|\le a\le |a| and −∣b∣≤b≤∣b∣-|b|\le b\le |b|.

Add the two chains of inequalities term by term (allowed since adding preserves direction): −(∣a∣+∣b∣)≤a+b≤∣a∣+∣b∣-(|a|+|b|)\le a+b\le |a|+|b|.

The statement −(M)≤y≤M-(M)\le y\le M for M≥0M\ge 0 is exactly equivalent to ∣y∣≤M|y|\le M by definition of absolute value; here y=a+by=a+b and M=∣a∣+∣b∣M=|a|+|b|, so ∣a+b∣≤∣a∣+∣b∣|a+b|\le |a|+|b|, which is ∣a+b∣≤∣a∣+∣b∣|a+b| \le |a|+|b|.

Equality requires both chained inequalities to be equalities simultaneously, which forces aa and bb to have the same sign (both nonnegative or both nonpositive), since only then does no cancellation occur between aa and bb.

Topics that use this theorem

Step-by-step proofs

No step-by-step proof yet for this theorem.