



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Question 1. Recall that we may equip R
2 with the Manhattan metric (also known as the L
1
metric). This distance function is given by the following. Let a = (a 1 , a 2 ) and b = (b 1 , b 2 ), then
d(a, b) = |a 1 − b 1 | + |a 2 − b 2 |.
Show that this distance function on R
2 does indeed form a metric space by showing that it is positive-
definite, symmetric, and satisfies the triangle inequality. In your proof, you may use (without proof)
the various properties of absolute values. In particular, you may use that
|a − c| ≤ |a − b| + |b − c|
for any real numbers a, b, c.
Solution 1. First, we prove that d is positive-definite. First, we note that for any a, b ∈ R
2 ,
d(a, b) = |a 1 − b 1 | + |a 2 − b 2 | ≥ 0
since |a 1 − b 1 | ≥ 0 and |a 2 − b 2 | ≥ 0. Furthermore, note that when a = b, then a 1 = b 1 and a 2 = b 2 ,
so
d(a, b) = d(a, a) = |a 1 − a 1 | + |a 2 − a 2 | = 0 + 0 = 0.
Lastly, if d(a, b) = 0, then |a 1 − b 1 | + |a 2 − b 2 | = 0. The only way for this to happen is if both
|a 1 − b 1 | = 0 and |a 2 − b 2 | = 0. Thus, a 1 = b 1 an a 2 = b 2. So, a = b. Thus, d is positive-definite.
To prove that d is symmetric, we must show that d(a, b) = d(b, a). Using the property that
|c − d| = |d − c|, we obtain
d(a, b) = |a 1 − b 1 | + |a 2 − b 2 | = |b 1 − a 1 | + |b 2 − a 2 | = d(b, a).
Thus, d is symmetric.
To show that d satisfies the triangle inequality, we must show that d(a, c) ≤ d(a, b) + d(b, c). The
triangle inequality on R tells us that |a 1 −c 1 | ≤ |a 1 −b 1 |+|b 1 −c 1 | and that |a 2 −c 2 | ≤ |a 2 −b 2 |+|b 2 −c 2 |.
Adding together these inequalities, we get
d(a, c) = |a 1 − c 1 | + |a 2 − c 2 | ≤ (|a 1 − b 1 | + |b 1 − c 1 |) + (|a 2 − b 2 | + |b 2 − c 2 |) =
(|a 1 − b 1 | + |a 2 − b 2 |) + (|b 1 − c 1 | + |b 2 − c 2 |) = d(a, b) + d(b, c).
Thus, d(a, b) ≤ d(a, b) + d(b, c) and d satisfies the triangle inequality.
Question 2. Consider R
2 , but with the L
p metric (where p ≥ 1). The L
p metric is given as follows:
for any two points a = (a 1 , a 2 ) and b = (b 1 , b 2 ), the L
p distance is given by
dp(a, b) = (|b 1 − a 1 |
p
p )
1 /p .
(a) Show that when p = 1 and p = 2 that you obtain the L
1 and L
2 metrics on R
2 described in
class.
In what follows, we will see what the metric ball of radius 1 about the origin (0, 0) looks like
in the different L
p metrics. If you are using a more sophisticated grapher like the Grapher
application on a Mac, then you can simply input
(|x|
p
p )
1 /p < 1
for whatever p you want and the desired region is shaded.
You can also do this with a graphing calculator like a TI. To do this, you can instead find out
what points are distance exactly 1 from the origin; then, the metric ball of radius 1 about the
origin will be all points inside of this curve. To do this on a TI, we must realize that we are
trying to find where
(|x|
p
p )
1 /p = 1.
By raising both sides to the p power, we get
|x|
p
p = 1.
Solving for y, we get
y = ± (1 − |x|
p )
1 /p .
Thus, you must graph two functions (the “+” equation and the “-” equation from above).
The area they enclose will be your metric ball of radius 1 about the origin.
(b) Use a graphing calculator to find the metric ball of radius 1 about the origin for the L
1 and
L
2 metrics. Do they match what we discussed in class?
(c) Now find the metric ball for the L
3 , L
5 and L
10 metrics.
(d) As p gets bigger, it seems that our metric balls are starting to look like the metric ball from
another metric on R
2 discussed in class. Which other metric is this?
Solution 2a. When p = 1, the L
1 metric
d 1 (a, b) =
|b 1 − a 1 |
1
1
= |b 1 − a 1 | + |b 2 − a 2 |,
which is the L
1 (Manhattan) metric that we learned in class. When p = 2, we get
d 2 (a, b) =
|b 1 − a 1 |
2
2
(b 1 − a 1 )^2 + (b 2 − a 2 )^2 ,
which is the usual L
2 (Euclidean) metric that we learned in class.
Solution 2b & 2c. We have graphed below the balls of radius 1 about the origin in the L
1 , L
2 ,
3 , L
5 , and L
10 metrics, where, as p grows, the balls are larger.
Solution 2d. As p gets larger, the balls of radius 1 in the L
p metrics look more like the ball in the
supremum (or L
∞ metric).
To compute our integral, we must first decide where the inside of the absolute value cos πx − sin πx
is positive and negative. To this end, we compute where it is equal to zero. cos πx − sin πx = 0
when cos πx = sin πx and thus tan πx = 1. This will occur when πx = π/4 and thus when x =
1 4
From 0 to 1/4, cos πx is above sin πx and from 1/4 to 1, sin πx is above cos πx. Thus, we integrate
as follows:
∫ (^1)
0
|cos πx − sin πx| dx =
0
cos πx − sin πx dx +
1 / 4
sin πx − cos πx =
π
sin πx +
π
cos πx
1 / 4
0
π
cos πx −
π
sin πx
1
1 / 4
π
sin
π
π
cos
π
π
sin 0 +
π
cos 0
π
cos π −
π
sin π
π
cos
π
π
sin
π
π
π
-1.2 -0.8 -0.4 0 0.4 0.8 1.2 1.6 2 2.4 2.8 3.
-1.
-0.
-0.
Figure 1.2: A graphical interpretation of d(sin πx, cos πx)
Solution 3b. We must compute
d(x
3
3
1
0
(x
3
3
dx =
1
0
x −
dx.
First, we must see where the inside of the absolute value switches sign. Thus, we investigate where
x −
1 2
= 0, which occurs at x =
1 2
. In between 0 and
1 2
, we can integrate
1 2
− x and from
1 2
to 1, we
can integral x −
1 2
. Thus, we have that
0
(x
3
3
dx =
0
x −
dx =
0
1 / 2 − x dx +
1 / 2
x − 1 / 2 dx =
x
x
2
1 / 2
0
x
2
x
1
1 / 2
-1.2 -0.8 -0.4 0 0.4 0.8 1.2 1.6 2 2.4 2.8 3.2 3.
2
Figure 1.3: A graphical interpretation of d(x
3
3
1 2
Solution 3c. For g(x) = αx
2 to lie in the ball of radius 1 about the zero function f (x) = 0, we
need to know for what values of α d(αx
2 , 0) < 1. In other words, we wish to know when
0
∣αx^2 − 0
∣ (^) dx < 1.
Computing the left-side of the inequality, we have
0
∣αx^2 − 0
∣ (^) dx = |α|
0
x
2 dx = |α| ·
x
3
1
0
= |α|
Thus, ∫ (^1)
0
∣αx^2 − 0
∣ (^) dx < 1
is equivalent to
|α| ·
which leads us to conclude that |α| < 3. Thus, the α’s that work are − 3 < α < 3.
Question 4. In the below question, we will understand how to obtain new metrics from old metrics.
We will show that d
′′ is symmetric. Since d is a metric, it is symmetric so d(a, b) = d(b, a).
Notice that
d
′′ (a, b) = k · d(a, b) = k · d(b, a) = d
′′ (b, a).
Thus, d
′′ is symmetric as well.
To show that d
′′ satisfies the triangle inequality, we note that d satisfies the triangle inequality,
so d(a, c) ≤ d(a, b) + d(b, c). Thus,
d
′′ (a, c) = k · d(a, c) ≤ k(d(a, b) + d(b, c)) = k · d(a, b) + k · d(b, c) = d
′′ (a, b) + d
′′ (b, c).
So, we have shown that d
′′ (a, c) ≤ d
′′ (a, b) + d
′′ (b, c) and so d
′′ satisfies the triangle inequality.
Thus, d
′′ is a metric since it satisfies the three metric axioms.