94 CHAPTER 3. METRIC SPACES

4−n. Thus there is an increasing sequence {kn} such that d(xn

k ,xn+1l

)< 2−n if k, l ≥ kn

where kn is increasing in n. Let y ={

xnkn

}∞

n=1. For m≥ kn and the triangle inequality,

d (xnm,ym) = d

(xn

m,xmkm

)≤ d

(xn

m,xnkn

)+d(xn

kn,xm

km

)≤ 2−n +

m−1

∑j=n

d(

x jk j,x j+1

km

)< 2−n +

m−1

∑j=n

2− j < 2−n +2−(n−1) < 2−(n−2)

Then y is a Cauchy sequence since it is a subsequence of one and also d ([xn] , [y])→ 0.To show that X is dense in X̂ , let [x] be given. Then for m large enough, d (xk,xm)< ε

whenever k ≥ m. It suffices to let y be the constant Cauchy sequence always equal to xm.■

3.14 Exercises1. Let d (x,y) = |x− y| for x,y ∈ R. Show that this is a metric on R.

2. Now consider Rn. Let ∥x∥∞≡max{|xi| , i = 1, · · · ,n} . Define d (x,y)≡ ∥x−y∥

∞.

Show that this is a metric on Rn. In the case of n = 2, describe the ball B(0,r). Hint:First show that ∥x+y∥ ≤ ∥x∥+∥y∥ .

3. Let C ([0,T ]) denote the space of functions which are continuous on [0,T ] . Define

∥ f∥ ≡ ∥ f∥∞≡ sup

t∈[0,T ]| f (t)|= max

t∈[0,T ]| f (t)|

Verify the following. ∥ f +g∥ ≤ ∥ f∥+∥g∥ . Then use to show that d ( f ,g)≡ ∥ f −g∥is a metric and that with this metric, (C ([0,T ]) ,d) is a metric space.

4. Recall that [a,b] is compact. Also, it is Lemma 3.5.9 above. Thus every open coverhas a finite subcover of the set. Also recall that a sequence of numbers {xn} is aCauchy sequence means that for every ε > 0 there exists N such that if m,n>N, then|xn− xm| < ε . First show that every Cauchy sequence is bounded. Next, using thecompactness of closed intervals, show that every Cauchy sequence has a convergentsubsequence. By Theorem 3.2.2, the original Cauchy sequence converges. ThusR with the usual metric just described is complete because every Cauchy sequenceconverges.

5. Using the result of the above problem, show that (Rn,∥·∥∞) is a complete metric

space. That is, every Cauchy sequence converges. Here d (x,y)≡ ∥x−y∥∞

.

6. Suppose you had (Xi,di) is a metric space. Now consider the product space X ≡∏

ni=1 Xi with d (x,y) = max{d (xi,yi) , i = 1 · · · ,n} . Would this be a metric space?

If so, prove that this is the case.

Does triangle inequality hold? Hint: For each i,

di (xi,zi)≤ di (xi,yi)+di (yi,zi)≤ d (x,y)+d (y,z)

Now take max of the two ends.

94 CHAPTER 3. METRIC SPACES4-". Thus there is an increasing sequence {k,} such that d (x%,xj*!) < 27" if k,l > knwhere k,, is increasing inn. Let y = {x \ ‘ For m > k, and the triangle inequality,n n=m=1 ,d(XnsYim) = d (ox) Sd (ext) $d (xf, af) <2" Y a (xf, xf")janm—1< 274 pPravcar4z eV cae)janThen y is a Cauchy sequence since it is a subsequence of one and also d ([x"] , [y]) > 0.To show that X is dense in X, let [a] be given. Then for m large enough, d (xx,xm) < €whenever k > m. It suffices to let y be the constant Cauchy sequence always equal to x).|3.14 Exercises1. Let d(x,y) = |x—y| for x,y € R. Show that this is a metric on R.2. Now consider R”. Let ||x||,, = max {|x;|,i=1,--- ,n}. Define d(a, y) = ||x—y]|...Show that this is a metric on R”. In the case of n = 2, describe the ball B(0,r). Hint:First show that ||a + y|| < |||] + |ly|l.3. Let C([0,7]) denote the space of functions which are continuous on [0,7]. Definefll = Ilfll.. = sup |f(t)|= max If (t)|1€(0.7] r€(0.TVerify the following. || f + g|| < ||f||+||g|| . Then use to show that d(f,g) = ||f — glis a metric and that with this metric, (C((0,7]),d) is a metric space.4. Recall that [a,b] is compact. Also, it is Lemma 3.5.9 above. Thus every open coverhas a finite subcover of the set. Also recall that a sequence of numbers {x,} is aCauchy sequence means that for every € > 0 there exists N such that if m,n > N, then\Xn —Xm| < €. First show that every Cauchy sequence is bounded. Next, using thecompactness of closed intervals, show that every Cauchy sequence has a convergentsubsequence. By Theorem 3.2.2, the original Cauchy sequence converges. ThusR with the usual metric just described is complete because every Cauchy sequenceconverges.5. Using the result of the above problem, show that (R”,||-||,,) is a complete metricspace. That is, every Cauchy sequence converges. Here d(x, y) = |x — yl...6. Suppose you had (X;,d;) is a metric space. Now consider the product space X =TUL, X; with d(a,y) = max {d (xj, y;),i=1--- ,n}. Would this be a metric space?If so, prove that this is the case.Does triangle inequality hold? Hint: For each i,dj (xi,zi) < di (xi, yi) + di (Vi, zi) < d (x,y) +d (y,z)Now take max of the two ends.