Just this little inequality problem. If $c\leq{a}\leq{d}$ and $c\leq{b}\leq{d}$, why is $\mid {a-b} \mid \leq d-c$?
(Used on p. 125 of Rudin's Principles of Mathematical Analysis to prove a property of integration.)
Just this little inequality problem. If $c\leq{a}\leq{d}$ and $c\leq{b}\leq{d}$, why is $\mid {a-b} \mid \leq d-c$?
(Used on p. 125 of Rudin's Principles of Mathematical Analysis to prove a property of integration.)
Without loss of generality, name $a$, $b$ such ad $a \le b$. Now:
$c \le a \le b \le d$
Taken intervals:
$|a-c|+|b-a|+|d-b|=|d-c|$
and, as all previous terms are zero or greater than zero:
$|b-a| \le d-c$
WLOG assume $a \leq b$. Consider the intervals $[a,b]$ and $[c,d]$.
We have $a \in [c,d]$ and $b \in [c,d]$, thus $[a,b] \subset [c,d]$.
Therefore the diameter of the first interval is smaller than the diameter of the second one.
Without loss of generality, assume $b \le a$, then $c \le b$, thus $-b \le -c$ and $a \le d$, so \begin{align*} |a-b| = a-b \le d-b \le d-c \end{align*}
We have $$a-b\le d-b\le d-c $$ and $$b-a\le d-a\le d-c $$ hence $$|a-b|=\max\{a-b,b-a\}\le d-c$$