The Triangle Inequality
Theorem
For all numbers a and b, we have
∣a+b∣≤∣a∣+∣b∣
Proof
We will consider 4 cases:
(1)a≥0,b≥0
(2)a≥0,b≤0
(3)a≤0,b≥0
(4)a≤0,b≤0
In case (1) we also have a+b≥0, and the theorem is obvious; in fact,
∣a+b∣=a+b=∣a∣+∣b∣
so that in this case equality holds.
In case (4) we have a+b≤0, and again equality holds:
∣a+b∣=−(a+b)=−a+(−b)=∣a∣+∣b∣
In case (2), when a≥0 and b≤0, we must prove that
∣a+b∣≤a−b
This case may therefore be divided into two subcases. If a+b≥0, then we must prove that
a+b≤a−b
i.e.,b<=−b
which is certainly true since b<0 and hence −b>0. On the other hand, if a+b≤0, we must prove that
−a−b≤a−b
i.e.,−a≤a
which is certainly true since a≥0 and hence −a≤0.
Finally, note that case (3) may be disposed of with no additional work, by applying case (2) with a and b interchanged.
Reference: Calculus Micheal Spivak. 1. Basic Properties of Numbers