Triangle inequality
The triangle inequality takes a few common forms, for example: d(x,z)≤d(x,y)+d(y,z)
Another common way of writing it is |a+b|≤|a|+|b|
Contents
[hide]Definition
The triangle inequality is as follows:
- |a+b|≤|a|+|b|
Proof
Style: case analysis
TODO: Take time to write it out
Reverse Triangle Inequality
This is |a|−|b|≤|a−b|
Proof
Take |a|=|(a−b)+b|
|(a−b)+b|≤|a−b|+|b|
Note
However we see |b|−|a|≤|b−a|
That is both:
- |a|−|b|≤|a−b|
- |b|−|a|≤|a−b|
Full form
There is a "full form" of the reverse triangle inequality, it combines the above and looks like: |a−b|≥| |a|−|b| |
It follows from the properties of absolute value, I don't like this form, I prefer just "swapping" the order of things in the abs value and applying the same result