Triangle Inequality for a Metric

Click For Summary
SUMMARY

The discussion focuses on proving the triangle inequality for a specific metric defined as d((x1, x2), (y1, y2)) = |x2| + |y2| + |x1 - y1| if x1 ≠ y1, and d((x1, x2), (y1, y2)) = |x2 - y2| if x1 = y1. Participants analyze two cases: when x1 = y1 and when x1 ≠ y1. The proof involves breaking down the metric into manageable parts and applying the triangle inequality for real numbers, |x + y| ≤ |x| + |y|, to demonstrate the validity of the metric.

PREREQUISITES
  • Understanding of metric spaces and properties of metrics
  • Familiarity with the triangle inequality for real numbers
  • Basic knowledge of absolute values and their properties
  • Ability to manipulate inequalities in mathematical proofs
NEXT STEPS
  • Study the properties of metric spaces in detail
  • Explore examples of different metrics and their implications
  • Learn about advanced topics in real analysis, such as convergence and continuity
  • Practice proving inequalities using various mathematical techniques
USEFUL FOR

Mathematics students, particularly those studying real analysis or metric spaces, educators teaching these concepts, and anyone interested in understanding the foundational principles of metrics and inequalities.

tylerc1991
Messages
158
Reaction score
0

Homework Statement



Prove the triangle inequality for the following metric [itex]d[/itex]

[itex]d\big((x_1, x_2), (y_1, y_2)\big) = \begin{cases}<br /> |x_2| + |y_2| + |x_1 - y_1| & \text{if } x_1 \neq y_1 \\<br /> |x_2 - y_2| & \text{if } x_1 = y_1<br /> \end{cases},[/itex]

where [itex]x_1, x_2, y_1, y_2 \in \mathbb{R}.[/itex]

Homework Equations



We may assume the triangle inequality for real numbers. That is, [itex]|x + y| \leq |x| + |y|[/itex] for [itex]x, y \in \mathbb{R}[/itex]
[itex]d[/itex]

The Attempt at a Solution



We wish to show that

[itex]d\big( (x_1, x_2), (z_1, z_2) \big) \leq d\big( (x_1, x_2), (y_1, y_2) \big) + d\big( (y_1, y_2), (z_1, z_2) \big)[/itex]

We may write
[itex]d\big( (x_1, x_2), (z_1, z_2) \big) \leq |x_2| + |z_2| + |x_1 - z_1|[/itex]
[itex]d\big( (x_1, x_2), (y_1, y_2) \big) \leq |x_2| + |y_2| + |x_1 - y_1|[/itex]
[itex]d\big( (y_1, y_2), (z_1, z_2) \big) \leq |y_2| + |z_2| + |y_1 - z_1|[/itex],
although I am not sure if this is helpful.

There are essentially two cases to consider: (i) [itex]x_1 = y_1[/itex] and [itex]y_1 = z_1[/itex], and (ii) [itex]x_1 \neq y_1[/itex] or [itex]y_1 \neq z_1[/itex]

I can do the first case, since [itex]|x_2 - z_2| = |x_2 - y_2 + y_2 - z_2| \leq |x_2 - y_2| + |y_2 - z_2|[/itex], which completes this case.

I have problems with the second case though. I feel like there is some trick that I am missing. Or maybe I shouldn't be handling cases at all? Any help would be appreciated!
 
Physics news on Phys.org
tylerc1991 said:

Homework Statement



Prove the triangle inequality for the following metric [itex]d[/itex]

[itex]d\big((x_1, x_2), (y_1, y_2)\big) = \begin{cases}<br /> |x_2| + |y_2| + |x_1 - y_1| & \text{if } x_1 \neq y_1 \\<br /> |x_2 - y_2| & \text{if } x_1 = y_1<br /> \end{cases},[/itex]

where [itex]x_1, x_2, y_1, y_2 \in \mathbb{R}.[/itex]

Homework Equations



We may assume the triangle inequality for real numbers. That is, [itex]|x + y| \leq |x| + |y|[/itex] for [itex]x, y \in \mathbb{R}[/itex]
[itex]d[/itex]

The Attempt at a Solution



We wish to show that

[itex]d\big( (x_1, x_2), (z_1, z_2) \big) \leq d\big( (x_1, x_2), (y_1, y_2) \big) + d\big( (y_1, y_2), (z_1, z_2) \big)[/itex]

We may write
[itex]d\big( (x_1, x_2), (z_1, z_2) \big) \leq |x_2| + |z_2| + |x_1 - z_1|[/itex]
[itex]d\big( (x_1, x_2), (y_1, y_2) \big) \leq |x_2| + |y_2| + |x_1 - y_1|[/itex]
[itex]d\big( (y_1, y_2), (z_1, z_2) \big) \leq |y_2| + |z_2| + |y_1 - z_1|[/itex],
although I am not sure if this is helpful.

There are essentially two cases to consider: (i) [itex]x_1 = y_1[/itex] and [itex]y_1 = z_1[/itex], and (ii) [itex]x_1 \neq y_1[/itex] or [itex]y_1 \neq z_1[/itex]

I can do the first case, since [itex]|x_2 - z_2| = |x_2 - y_2 + y_2 - z_2| \leq |x_2 - y_2| + |y_2 - z_2|[/itex], which completes this case.

I have problems with the second case though. I feel like there is some trick that I am missing. Or maybe I shouldn't be handling cases at all? Any help would be appreciated!

For your case (ii) there are 3 cases
1. x1≠y1≠z1, where
d1+d2=|x1-y1|+|y1-z1|+|x2|+|y2|+|y2|+|z2|
≥|x1-y1+y1-z1|+|x2|+0+0+|z2|
=d
2. x1=y1≠z1, where
d1+d2=|x2-y2|+|y1-z1|+|y2|+|z2|
=|x2-y2|+|y2|+|x1-z1|+|z2|
≥|x2-y2+y2|+|x1-z1|+|z2|
=|x2|+|x1-z1|+|z2|
=d
3. x1≠y1=z1, same as 2
 
sunjin09 said:
For your case (ii) there are 3 cases
1. x1≠y1≠z1, where
d1+d2=|x1-y1|+|y1-z1|+|x2|+|y2|+|y2|+|z2|
≥|x1-y1+y1-z1|+|x2|+0+0+|z2|
=d
2. x1=y1≠z1, where
d1+d2=|x2-y2|+|y1-z1|+|y2|+|z2|
=|x2-y2|+|y2|+|x1-z1|+|z2|
≥|x2-y2+y2|+|x1-z1|+|z2|
=|x2|+|x1-z1|+|z2|
=d
3. x1≠y1=z1, same as 2

That makes much more sense. Thank you so much!
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
Replies
7
Views
4K
  • · Replies 2 ·
Replies
2
Views
586
  • · Replies 5 ·
Replies
5
Views
2K
Replies
15
Views
3K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K