MathorynMathematical Formula Database

Algebra

Triangle Inequality

The triangle inequality states that the absolute value of a sum never exceeds the sum of the absolute values; equality holds when aa and bb have the same sign. It is used to bound errors, to estimate sums and, for vectors, says one side of a triangle is never longer than the other two together.

∣a+b∣≤∣a∣+∣b∣|a+b|\le|a|+|b|
LaTeX|a+b|\le|a|+|b|

Variables

a, ba,\ b
real numbers (or vectors with lengths)
∣⋅∣|\cdot|
absolute value or length

Example

Check the inequality for a=5, b=−3a=5,\ b=-3.

  1. ∣a+b∣=∣2∣=2|a+b|=|2|=2.
  2. ∣a∣+∣b∣=5+3=8|a|+|b|=5+3=8.

Answer: 2≤82\le8.

Related formulas