Triangle Inequality
Triangle and reverse triangle inequalities in estimates
The triangle inequality says that the magnitude of a sum cannot exceed the sum of its terms' magnitudes: ∣x+y∣≤∣x∣+∣y∣. It provides an upper bound even when the signs of the terms are unknown. Applying the same idea twice yields a bound on how much a magnitude can change.
Bounding sums
For real x, the inequalities −∣x∣≤x≤∣x∣ hold; the same is true for real y. Adding the lower bounds and the upper bounds gives −(∣x∣+∣y∣)≤x+y≤∣x∣+∣y∣. A number between −B and B, for B≥0, has absolute value at most B, proving the triangle inequality.
Equality is possible when the terms reinforce one another, but cancellation can make the actual magnitude smaller. For example, x=8/3 and y=−5/3 give ∣x+y∣=1, whereas ∣x∣+∣y∣=13/3. Thus the inequality bounds every allowed pair without claiming that every pair reaches the bound.
Bounding a change
Write x=(x−y)+y and apply the triangle inequality to obtain ∣x∣−∣y∣≤∣x−y∣. Interchanging x and y gives ∣y∣−∣x∣≤∣x−y∣. These two directions combine into the reverse triangle inequality, ∣x∣−∣y∣≤∣x−y∣.
This is an error estimate: if two inputs differ by at most ε, their magnitudes differ by at most ε. The conclusion concerns a change in magnitude, not the magnitude of either input by itself. It also needs no assumption that the inputs have the same sign.
Worked example
Suppose ∣r−10∣≤1/4, with 10 as the reference value. The reverse triangle inequality gives ∣r∣−10≤∣r−10∣≤1/4. Consequently, 10−1/4≤∣r∣≤10+1/4, or 9.75≤∣r∣≤10.25.
The endpoints are possible: r=9.75 and r=10.25 each meet the original condition. Checking attainable cases distinguishes a sharp bound from a bound that merely happens to be valid. The calculation uses the distance from the reference value, then translates that distance into an interval for the magnitude.
Suppose |u| = 4.7 and |u − v| ≤ 0.2. What interval is guaranteed to contain |v|?
For every positive integer n, |xn − 3| ≤ 2/n and |yn + 1| ≤ 5/n. Which estimate is guaranteed for the error of xn + yn from 2?