Proving t is a Metric for Real Numbers Pairs

happyg1
Messages
304
Reaction score
0
Hello,
I'm working on this problem:
If t(P,Q)=max(|x1 - x2|,|y1 - y2|), show that t is a metric for the set of all ordered pairs of real numbers.
I have proved the first three parts of the definition of a metric
1) t(P,Q) >0
2) t(P,Q) =0 IFF P=Q
3) t(P,Q) = t(Q,P)
all not so hard.
I'm having trouble getting started on the 4th part:
4) t(P,Q) <= t(P,R) + t(R,Q)

My confusion lies in where, exactly, I'm trying to go.
I wrote: Let R=|z1-z2|
It appears that I need to go for something that looks like this:
max(|x1 - x2|,|y1 -y2|)<=max(|x1 - x2|,|z1-z2|)+max(|y1 -y2|,|z1-z2|)
So I did this:
t(P,Q)=max(|x1 - x2|,|y1 -y2|)=max(|x1-z1+z1-x2|,|y1+z2-z2+y2|)
now, I could group x1-z1 and z1-x2, together and do the same thing with the second part, but I don't see how this is going to get me any closer to proving that this is a metric. I know I'm just having a block on something. What I have done doesn't seem right, and I don't know which way to go.
Any nudges in the right direction will be greatly appreciated.
CC
 
Physics news on Phys.org
This is presumably a metric on R^2?

Just do it case by case if you must ie suppose that d(x,y) = |x_1 - y_1|, there are only 8 cases to check.
 
happyg1 said:
I'm having trouble getting started on the 4th part:
4) t(P,Q) <= t(P,R) + t(R,Q)

My confusion lies in where, exactly, I'm trying to go.
I wrote: Let R=|z1-z2|
It appears that I need to go for something that looks like this:
max(|x1 - x2|,|y1 -y2|)<=max(|x1 - x2|,|z1-z2|)+max(|y1 -y2|,|z1-z2|)
Correct, that's the triangle inequality. The distance from point P to point Q should be smaller or equal to the sum of distances if you go via some other point R.

So you are given three numbers a=|x_1-x_2|, b=|y_1-y_2|, c=|z_1-z_2|. And you need to show that max(a,b)<=max(a,c)+max(b,c).
It's not difficult if you realize that max(a,c) is larger or equal than a and max(b,c) is larger or equal to b.
 
This way will get you all eight or so cases at once

This way will get you all eight or so cases at once:

Let a,b,c>0 be defined by a=|x_1-x_2|, b=|y_1-y_2|, c=|z_1-z_2|.

Note that:

\mbox{max}(x,y)=\frac{1}{2}\left(x+y+\sqrt{\left(x-y\right) ^2}\right)

(for a reference to this, see here.

and recall that

\mbox{(i) } \left| x - y\right| \leq \left| x\right| + \left| y\right| ,

and note that the obvious statement k\leq \left| k\right| \mbox{ for any }k\in\mathbb{R} with k=\left| x\right| - \left| y\right| yields

\mbox{(ii) } \left| x\right| - \left| y\right| \leq \left| \left| x\right| - \left| y\right| \right|

this implies

\mbox{(iii) } \left| x\right| \leq \left| \left| x\right| - \left| y\right| \right| + \left| y\right|

since a,b,c>0, by (i) we have

\mbox{(1) } \left| a - b\right| \leq a + b,

and by (iii) (twice) we have

\mbox{(2) }a \leq \left| a-c\right| +c,

and

\mbox{(3) }b \leq \left| b-c\right| +c

Adding (2) and (3) gives

\mbox{(4) }a+b \leq 2c + \left| a-c\right| + \left| b-c\right|

Combining (1) and (4) gives

\mbox{(5) } \left| a - b\right| \leq 2c + \left| a-c\right| + \left| b-c\right|

add (a+b) to both sides of (5) to get

\mbox{(6) }a+b+ \left| a - b\right| \leq a+c + \left| a-c\right| + c+b+\left| b-c\right|

then multiply by both sides 0f (6) by 1/2 and replace

\left| a - b\right| ,\left| a-c\right| , \left| b-c\right|

with

\sqrt{\left( a - b\right) ^2} ,\sqrt{\left( a -c\right) ^2} ,\sqrt{\left( c - b\right) ^2} ,

respectively, which, when restated in terms of the equation for max(x,y) given above, gives the required inequality, namely

\mbox{max}(a,b) \leq \mbox{max}(a,c) + \mbox{max}(c,b)

But its kinda, well, long.
 
Last edited:
Not as long as mine!
That's AWESOME!
I did the 8 cases all super rigorus becuase my professor likes it like that, even though it feels like monkey work repeating the same thing over and over...I knew about that max formula, but I didn't think to apply it like that. VERY VERY cool.
Thanks
 
Eh? But it's just a 1 line proof!
Since \max(a,c)\geq a and \max(b,c)\geq b the sum is greater than or equal to both a and b and thus greater than or equal to \max(a,b).

EDIT: You have to use the fact that a,b,c are positive. So I guess that makes it 2 lines. Oh well.
 
Last edited:
Nice one Galileo!

Galileo said:
Eh? But it's just a 1 line proof!
Since \max(a,c)\geq a and \max(b,c)\geq b the sum is greater than or equal to both a and b and thus greater than or equal to \max(a,b).
EDIT: You have to use the fact that a,b,c are positive. So I guess that makes it 2 lines. Oh well.
 

Similar threads

Replies
1
Views
2K
Replies
16
Views
2K
Replies
2
Views
2K
Replies
15
Views
3K
Replies
6
Views
5K
Back
Top