Skip to main content
\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)
Mathematics LibreTexts

13.1: The Triangle Inequality

  • Page ID
    24877
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)

    Definitions in calculus and analysis use absolute value extensively. As you know, the absolute value of a real number x is the non-negative number

    \(|x| = \left\{ \begin{array}{ll} {x} & {\text{if} x \ge 0}\\ {-x} & {\text{if} x \le 0} \nonumber \end{array} \nonumber \right.\)

    Fundamental properties of absolute value include \(|xy|=|x|·|y|\) and \(x \le |x|\).

    Another property—used often in proofs—is the triangle inequality:

    Theorem 13.1 (Triangle Inequality)

    If \(x,y,z \in \mathbb{R}\), then \(|x-y| \le |x-z|+|z-y|\).

    Proof: The name triangle inequality comes from the fact that the theorem can be interpreted as asserting that for any “triangle” on the number line, the length of any side never exceeds the sum of the lengths of the other two sides. Indeed, the distance between any two numbers \(a, b \in \mathbb{R}\) is \(|a-b|\). With this in mind, observe in the diagrams below that regardless of the order of x, y, z on the number line, the inequality \(|x-y| \le |x-z|+|z-y|\) holds.

    Screen Shot 2020-06-21 at 10.15.03 PM.png

    (These diagrams show x, y, z as distinct points. If \(x = y, x = z\) or \(y = z\), then \(|x-y| \le |x-z|+|z-y|\) holds automatically.)

    The triangle inequality says the shortest route from x to y avoids z unless z lies between x and y. Several useful results flow from it. Put \(z = 0\) to get

    \[\begin{array}{cc} {|x-y| \le |x|+|y|} & {\forall x,y \in \mathbb{R}} \end{array}\]

    Using the triangle inequality, \(|x+y| = |x-(-y)| \le |x-0|+|0-(-y)| = |x|+|y|\), so

    \[\begin{array}{cc} {|x+y| \le |x|+|y|} & {\forall x,y \in \mathbb{R}} \end{array}\]

    Also by the triangle inequality, \(|x-0| \le |x-(-y)|+|-y-0|\), which yields

    \[\begin{array}{cc} {|x|-|y| \le |x+y|} &{\forall x,y \in \mathbb{R}} \end{array}\]

    The three inequalities (13.1), (13.2) and (13.3) are very useful in proofs.