I have been given the following statement by a professor:
Let $m\leq x\leq M$ and define $K=\max(|m|,|M|)$. Then $|x|\leq K$.
Now I can clearly see that this is true, and working through case-by-case (i.e. $m>0$ and $M>0$, $m<0$ and $M>0$ with $|m|<|M|$ etc) I can also prove it is true for each case. But I feel that there must be a much more elegant proof than the one I have. Can anyone think of one or know one?
Thanks all.
I do not know if this is elegant but I would prove it this way. One has $|m|\leq K$ and $|M|\leq K$ by definition of $K$.
This means $-K\leq m\leq K$ and $-K\leq M\leq K$. Now one has $$-K\leq m\leq x\leq M\leq K$$ i.e $-K\leq x\leq K$ and this is exactly $|x|\leq K$