Triangle inequality
Start your free 7-days trial now!
Triangle inequality
For all $a\in\mathbb{R}$ and $b\in\mathbb{R}$, the following is true:
This means that the absolute value of the sum of two real numbers is always less than or equal to the sum of their absolute values.
Proof. Let $a\in\mathbb{R}$ and $b\in\mathbb{R}$. By definition of absolute values, the following is true:
For example:
if $a$ is a positive number like $5$, then $5\le5$ is true.
if $a$ is a negative number like $-6$, then $-6\le\vert{-6}\vert$ is true.
Adding the two inequalities in \eqref{eq:PCwFwysSWTt37PSocwN} gives:
The right-hand side of \eqref{eq:JVs1Ho9a1hqDZPIbwNR} matches the right-hand side of the triangle inequality. We will be using this inequality shortly.
Let's now consider the left-hand side of the triangle inequality. $\vert{a+b}\vert$ can be expressed as:
In the 1st case, if $a+b\ge0$, then $a+b=\vert{a+b}\vert$. Substituting this into \eqref{eq:JVs1Ho9a1hqDZPIbwNR} gives us the desired result:
Next, we consider the 2nd case when $a+b\lt0$, which implies $-(a+b)=\vert{a+b}\vert$. Let's simplify this:
We now use the property of absolute values \eqref{eq:PCwFwysSWTt37PSocwN} to obtain the following inequalities:
Adding the two inequalities in \eqref{eq:f3TgfKyiiGEy9i4oub6} gives:
Applying inequality \eqref{eq:d1SA5UD9w1ytPHI7icz} to \eqref{eq:xVaeOu1ZFGfxeZu8M8N} gives us the desired result:
This completes the proof.
Intuition behind triangle inequality
We've proven the triangle inequality but let's now plug in some numbers to see that it indeed holds. The triangle inequality states that:
If $a=5$ and $b=-8$, then:
Great, we see that the triangle inequality holds!
Variant of the triangle inequality
If $a\in\mathbb{R}$ and $b\in\mathbb{R}$, then:
This is also equivalent to the following:
Proof. Let $a\in\mathbb{R}$ and $b\in\mathbb{R}$. The triangle inequality states that:
Let $c=a+b$, which implies $a=c-b$. Substituting these values into \eqref{eq:VYcedHjjGcYKY93viHt} gives:
Rearranging this gives:
Since $b\in\mathbb{R}$ and $c\in\mathbb{R}$, this completes the proof of the first part.
We now assume that the following holds:
This must hold for any values $a$ and $b$ in $\mathbb{R}$. This means that we can simply swap the positions of $a$ and $b$, that is:
This completes the proof but let's take a moment to demonstrate why this is true. For example, let $a=5$ and $b=3$. The following two inequalities must hold:
Similarly, consider the second case when $a=3$ and $b=5$. The following must hold:
We see that in both cases, the theorem holds true.
Reverse triangle inequality
For all $a,b\in\mathbb{R}$, we have that:
Proof. We know from the variant triangle inequality that the following inequalities hold:
Since $\vert{a-b}\vert=\vert{b-a}\vert$, the second inequality can be written as:
Multiplying by negative one to both sides gives:
Combining the top inequality of \eqref{eq:GFhehdE3ZtK40DVOqWx} and \eqref{eq:kCW8dpPaYpdFGzAH6Pf} gives:
Now, recall the following basic property of absolute values:
Where $x$ and $y$ are any value in $\mathbb{R}$. Applying this to \eqref{eq:L66ZIfBJviauRNngafv} gives us the desired result:
This completes the proof.