Maths WorkshopMaths problems with full solutions
Exercise 490Algebra › InequalitiesHigh schoolAdded 3 Nov 2026

The triangle inequality

#triangle inequality#absolute value#real numbers

Statement

Prove that for all a,b∈Ra,b\in\mathbb{R}:
∣a+b∣≤∣a∣+∣b∣.|a+b|\le|a|+|b|.

Hint

Square both sides and compare, or use case analysis on the signs of aa and bb.

Show solutionHide solution

Solution

Squaring. Both sides are nonnegative, so it suffices to compare their squares:
∣a+b∣2=(a+b)2=a2+2ab+b2,|a+b|^2=(a+b)^2=a^2+2ab+b^2,
(∣a∣+∣b∣)2=a2+2∣ab∣+b2.(|a|+|b|)^2=a^2+2|ab|+b^2.
Since ab≤∣ab∣ab\le|ab|, we get (a+b)2≤(∣a∣+∣b∣)2(a+b)^2\le(|a|+|b|)^2, hence ∣a+b∣≤∣a∣+∣b∣|a+b|\le|a|+|b|.

Equality case. Equality holds iff ab=∣ab∣ab=|ab|, i.e. ab≥0ab\ge0: the two numbers have the same sign (or one is zero).

Remark. The triangle inequality generalizes to any number of terms: ∣a1+⋯+an∣≤∣a1∣+⋯+∣an∣|a_1+\cdots+a_n|\le|a_1|+\cdots+|a_n|.