Skip to main content

Exercises Exercises

1.

Let X be a set. Show that the function d (the discrete metric) defined by
d(x,y)={0 if x=y1 if xβ‰ y
is a metric.

2.

Let X={1,3,5}βŠ‚Z and define d:XΓ—Xβ†’R by d(x,y)=xyβˆ’1(modn). That is, d(x,y) is the remainder when xyβˆ’1 is divided by n.
  • For each value of n, determine if d defines a metric on X. Prove your answers.
  • The unit circle in R2 with metric d is the set of all points in R2 whose distance from the origin is 1. If we let the distance be less than 1, then we have what we call an open ball. We can make this same definition in any metric space.

    Definition 3.11.

    Let (Y,dY) be a metric space. For any positive real number r, the open ball centered at b of radius r in (Y,dY) is the the set
    B(b,r)={y∈Y∣dY(y,b)<r}.
    If (X,d) is a metric space for a given value of n, determine all of the open balls in X centered at 1. If (X,d) is not a metric space, explain why.

3.

Let Q be the set of all rational numbers in reduced form. A rational number rs is in reduced form if s>0 and r and s have no common factors larger than 1. Define d:Q×Q→R by
d(ab,rs)=max{|aβˆ’r|,|bβˆ’s|}.

(b)

A metric allows us to determine which elements in our metric space are ’’close’’ together. Describe the set of elements in Q that are a distance no more than 1 from 23 using this metric d. In other words, describe the open ball centered at 23 with radius 1 (see Definition 3.11).

(c)

If a, b, and c are elements of a metric space (X,dX), we say that b is between a and c if dX(a,c)=dX(a,b)+dX(b,c). Using the Euclidean metric on Q, there are infinitely many different rational numbers between 0 and 1 (the rational numbers between 0 and 1 that lie on the Euclidean line through 0 and 1. Describe all of the points in (Q,d) that are between 0 and 1.

4.

Let (Q,d) be the metric space from Exercise 3. If a, b, and c are elements of a metric space (X,dX), we say that b is between a and c if dX(a,c)=dX(a,b)+dX(b,c). Using the Euclidean metric on Q, there are infinitely many different rational numbers between 0 and 1 (the rational numbers between 0 and 1 that lie on the Euclidean line through 0 and 1. In this exercise we explore numbers that are between others in the space (Q,d).

(a)

Find all of the elements in (Q,d) that are between 0 and 1.

(c)

Now find all of the elements in (Q,d) that are between 0 and 13.

7.

If x=(x1,x2,…,xn), we let |x|=x12+x22+β‹―+xn2. For x=(x1,x2,…,xn) and y=(y1,y2,…yn), define dH:RnΓ—Rnβ†’R by
dH(x,y)={0 if x=y|x|+|y| otherwise .

(b)

(i)
Let a=(12,0). Explicitly describe which points are in the set B(a,1) in (R2,dH). (See Exercise 2 for the definition of an open ball.)
(ii)
Let a=(3,4). Explicitly describe which points are in the set B(a,1) in (R2,dH).

8.

Let Z be the set of integers and let p be a prime. For each pair of distinct integers m and n there is an integer t=t(m,n) such that |mβˆ’n|=kΓ—pt, where p does not divide k. For example, if p=5, m=34, and n=7, then mβˆ’n=27=27Γ—50. So t(43,7)=27. However, if m=54 and n=4, then mβˆ’n=50=2Γ—52. So t(54,4)=2. Define d:ZΓ—Zβ†’R by
d(m,n)={0 if m=n1pt if mβ‰ n.

(a)

Determine the values of d(62,170) using p=3 and d(14008,2003) using p=7.

(d)

Let p=3. Describe the set of all elements x in (Z,d) such that d(x,0)=1.

(e)

Continue with p=3. Describe the set of all elements x in (Z,d) such that d(x,0)<12.

9.

Let (X,dX) and (Y,dY) be metric spaces. We can make the Cartesian product XΓ—Y into a metric space by defining a metric dβ€² on XΓ—Y as follows. If (x1,y2) and (x2,y2) are in XΓ—Y, then
dβ€²((x1,y1),(x2,y2))=max{dX(x1,x2),dY(y1,y2)}.
You may assume without proof that dβ€² is a metric on XΓ—Y.

(a)

Let (X,dX)=(R2,dM) and (Y,dY)=(R2,dT). Let u=((1,2),(1,βˆ’1)) and v=((0,5),(2,βˆ’2)). What is
dβ€²(u,v)?
Recall that
dM((x1,x2),(y1,y2))=max{|x1βˆ’y1|,|x2βˆ’y2|}
dT((x1,x2),(y1,y2))=|x1βˆ’y1|+|x2βˆ’y2|.

(b)

Let (X,dX)=(R,dE) and (Y,dY)=(R,d), where d is the discrete metric. Let
A={(x,y)∈RΓ—Rβˆ£βˆ’1≀x≀1 and βˆ’1≀y≀1}
in XΓ—Y. Let a=(0,1) in XΓ—Y. Describe, geometrically, what the open ball B(a,1) looks like in the product space XΓ—Y. Draw a picture of this open ball.

10.

Let X=R+, the set of positive reals, and define d:X×X→R by
d(x,y)=|ln⁑(y/x)|.
Is d is a metric on X? Prove your answer.

11.

Let d:R×R→R be defined by
d(x,y)=|xβˆ’y||xβˆ’y|+1.
Show that d is a metric on R. (Hint: For the triangle inequality, note that d(x,y)=f(|xβˆ’y|) where f(t)=tt+1, and f is an increasing function.)

12.

Let (X,d) be a metric space and k be a constant. Define kd:X×X→R by
(kd)(x,y)=kd(x,y).
Under what, if any, conditions is kd a metric on X. Justify your answer.

13.

A real valued function f on an interval is concave if
(3.3)f((1βˆ’Ξ±)x+Ξ±y)β‰₯(1βˆ’Ξ±)f(x)+Ξ±f(y)
for all α∈[0,1] and all x and y in the interval. Note that the expression (1βˆ’Ξ±)x+Ξ±y is linear in Ξ± and is equal to x when Ξ±=0 and y when Ξ±=1. So (1βˆ’Ξ±)x+Ξ±y is a parameterization of the line segment joining x to y. As Figure 3.12 indicates, equation (3.3) implies that the graph of a concave function f on any interval [x,y] lies above the secant line joining the points (x,f(x)) and (y,f(y)).
Figure 3.12. A concave function.

(a)

Let f(x)=βˆ’x2 map R to R with the standard Euclidean metric. Show that f is concave on the interval [βˆ’1,1].
Hint.
Start with the fact that Ξ±(1βˆ’Ξ±)(xβˆ’y)2β‰₯0.

(b)

Show that if f is a concave function on [0,∞) and f(0)β‰₯0, an interval and a and b are in the interval, then
f(a)+f(b)β‰₯f(a+b).
Hint.
Consider (3.3) with y=0. Then use the fact that aa+b is in [0,1].

(c)

Suppose (X,d) is a metric space and f:[0,∞)β†’[0,∞) is an increasing, concave function such that f(x)=0 if and only if x=0. Prove that f∘d is a metric on X.

14.

For each of the following, answer true if the statement is always true. If the statement is only sometimes true or never true, answer false and provide a concrete example to illustrate that the statement is false. If a statement is true, explain why.

(a)

The function d:RΓ—Rβ†’R defined by d(x,y)=(xβˆ’y)2 is a metric on R.

(c)

It is possible to define an infinite number of metrics on every set containing at least two elements.

(d)

Let (X,dX) and (Y,dY) be metric spaces with |X|β‰₯2. Then the function d:XΓ—Yβ†’R defined by d((a,b),(c,d))=dX(a,c)dY(b,d) is a metric on XΓ—Y.

(e)

Let (X,d) be a metric space. If X is infinite, then the range of d is also an infinite set.