Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

which are within the same interval is equal or less to the difference of the marginal values of the interval?

I have the following inequalities: $$a \le x \le b$$ $$a \le y \le b$$

How to prove that: $$|x - y| \le b - a $$

I tried subtracting y from the first inequality to get:

$$a - y \le x - y \le b - y$$ but don't know how to conclude: $$| x - y | \le b - a$$ ?

share|cite|improve this question
up vote 4 down vote accepted

Hint: Multiply the second inequality with $-1$ and then add the two. Can you continue this reasoning? Also note that $$\left|x\right|\le y\iff -y\le x\le y$$ for $y\ge 0$

share|cite|improve this answer
So if I understood it correctly: $$ a \le x \le b $$ $$ a \le y \le b $$ $$\implies$$ $$ a \le x \le b $$ $$ -a \ge -y \ge -b $$ $$\implies$$ $$ a \le x \le b $$ $$ -b \le -y \le -a $$ $$ \implies a - b \le x - y \le b - a $$ $$ a - b = - (b - a) $$ and by using $$ -p \le q \le p \implies |q| \le p $$ I get $$ |x - y | \le b - a $$ is that correct? – AltairAC Dec 28 '12 at 16:07
@Shirohige You are 100% correct. – Nameless Dec 28 '12 at 17:47

Hint Prove that

$$x-y \leq b-a \, \mbox{and} \, y-x \leq b-a \,.$$

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.