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.)
On
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$$
On
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*}