Illustrated · 1 min
Triangle Inequality
The triangle inequality is a mathematical principle that is used all over mathematics. The way the triangle inequality is used most is in geometry. The triangle inequality states that: For any triangle the length of any two sides of the triangle must be equal to or greater than the third side. Sometimes seen as: The inequality works not only if X and Y are both real numbers (scalars), but also if X and Y are vectors (of the same dimension).

From the above diagram you're able to see that if the sum of and was shorter than then and would be unable to connect at a vertex and the shape would no longer be a triangle.
There are a few different ways you can write the triangle inequality. Any way you choose is correct but certain ways are useful in describing certain situations. Lets start off with the original triangle inequality: Now lets think what would happen if let and . By plugging our new values into the original equation we get: Which is equal to Another way to phrase is: The distance between points and . So what the above version of the triangle inequality is saying that the distance between the points and will always be shorter than or equal to the distance from to plus the distance from to .
Another way to write the triangle inequality is as follows: Let and . By plugging into the original triangle inequality we get: By simplifying that inequality we are able to get: In other words what the above inequality is saying is that the distance between the points and will always be less than or equal to the distance from to and then the distance from to . Which makes logical sense because you can't go to some point in order to shorten the distance from to .