0% found this document useful (0 votes)
183 views23 pages

Complete Metric Spaces

Uploaded by

Ayesha Jamil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
183 views23 pages

Complete Metric Spaces

Uploaded by

Ayesha Jamil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

1 Metric Spaces

1.1 Metric Space.


Definition 1.1.1.

1. A metric, d on X is a function defined on X × X such that for all x, y, z ∈ X, we


have:

(M1) d is real-valued, finite and nonnegative.


(M2) d(x, y) = 0 if and only if x = y.
(M3) d(x, y) = d(y, x). (Symmetry).
(M4) d(x, y) ≤ d(x, z) + d(z, y). (Triangle Inequality).

2. A metric subspace (Y, d) ˜ of (X, d) is obtained if we take a subset Y ⊂ X and


restrict d to Y × Y ; thus the metric on Y is the restriction

d˜ = d|Y ×Y .

d˜ is called the metric induced on Y by d.

3. We take any set X and on it the so-called discrete metric for X, defined by
(
1 if x 6= y,
d(x, y) =
0 if x = y.

This space (X, d) is called a discrete metric space.

• Discrete metric space is often used as (extremely useful) counterexamples to


illustrate certain concepts.

1. Show that the real line is a metric space.

Solution: For any x, y ∈ X = R, the function d(x, y) = |x − y| defines a metric


on X = R. It can be easily verified that the absolute value function satisfies the
axioms of a metric.

2. Does d(x, y) = (x − y)2 define a metric on the set of all real numbers?

Solution: No, it doesn’t satisfy the triangle inequality. Choose x = 3, y = 1 and


z = 2, then
d(3, 1) = (3 − 1)2 = 22 = 4
but
d(3, 2) + d(2, 1) = (3 − 2)2 + (2 − 1)2 = 2.

Page 2
p
3. Show that d(x, y) = |x − y| defines a metric on the set of all real numbers.

Solution: Fix x, y, z ∈ X = R, we need to verify the axioms of a metric. (M1)


to (M3) follows easily from properties of absolute value. To verify (M4), for any
x, y, z ∈ R we have
h i2
d(x, y) = |x − y| ≤ |x − z| + |z − y|
p p
≤ |x − z| + |z − y| + 2 |x − z| |z − y|
p p
= ( |x − z| + |z − y|)2
h i2
= [d(x, z) + d(z, y) .

Taking square root on both sides yields the triangle inequality.

4. Find all metrics on a set X consisting of two points. Consisting of one point only.

Solution: If X has only two points, then the triangle inequality property is a
consequence of (M1) to (M3). Thus, any functions satisfy (M1) to (M3) is a
metric on X. If X has only one point, say, x0 , then the symmetry and triangle
inequality property are both trivial. However, since we require d(x0 , x0 ) = 0, any
nonnegative function f (x, y) such that f (x0 , x0 ) = 0 is a metric on X.

5. Let d be a metric on X. Determine all constants k such that the following is a metric
on X
(a) kd,

Solution: First, note that if X has more than one point, then the zero func-
tion cannot be a metric on X; this implies that k 6= 0. A simple calculation
shows that any positive real numbers k lead to kd being a metric on X.

(b) d + k.

Solution: For d + k to be a metric on X, it must satisfy (M2). More


precisely, if x = y, then d(x, y) + k must equal to 0; but since d is a metric
on X, we have that d(x, y) = 0. This implies that d(x, y) + k = k = 0. Thus,
k must be 0.

6. Show that d(x, y) = sup |ξj − ηj | satisfies the triangle inequality for any x, y in l∞ .
j∈N

Page 3
Solution: Fix x = (ξj ), y = (ηj ) and z = (ζj ) in l∞ . Usual triangle inequality
on real numbers yields

|ξj − ηj | ≤ |ξj − ζj | + |ζj − ηj |


≤ sup |ξj − ζj | + sup |ζj − ηj |
j∈N j∈N

= d(x, z) + d(z, y).

Taking supremum over j ∈ N on both sides gives the desired inequality.

7. If A is the subspace of l∞ consisting of all sequences of zeros and ones, what is the
induced metric on A?

Solution: For any distinct x, y ∈ A, d(x, y) = 1 since they are sequences of zeros
and ones. Thus, the induced metric on A is the discrete metric.

8. Show that another metric d˜ on C[a, b] is defined by


Z b
˜ y) =
d(x, |x(t) − y(t)| dt.
a

Solution: (M1) and (M3) are satisfied, as we readily see. For (M4),
Z b Z b
d(x, y) = |x(t) − y(t)| dt ≤ |x(t) − z(t)| + |z(t) − y(t)| dt
a a
= d(x, z) + d(z, y)

For (M2), the if statement is obvious. For the only if statement, suppose d(x, y) =
0. Then
Z b
|x(t) − y(t)| dt = 0 =⇒ |x(t) − y(t)| = 0 for all t ∈ [a, b]
a

since the integrand |x − y| is a continuous function on [a, b].

9. Show that the discrete metric is in fact a metric.

Solution: (M1) to (M4) can be checked easily using definition of the discrete
metric.

10. (Hamming distance) Let X be the set of all ordered triples of zeros and ones.
Show that X consists of eight elements and a metric d on X is defined by d(x, y) =

Page 4
number of places where x and y have different entries. (This space and similar spaces
of n-tuples play a role in switching and automata theory and coding. d(x, y) is called
the Hamming distance between x and y.

Solution: X has 23 = 8 elements. Consider the function d defined above. (M1)


to (M3) follows easily by definition. Verifying (M4) is a little tricky, but still
doable.

• Note that (M4) is trivial if x, y, z ∈ X are not distinct, so suppose they


are distinct; this assumption together with definiton of d both imply that
d(x, y), d(x, z), d(z, y) has 1 as their mininum and 3 as their maximum.

• (M4) is trivial if d(x, y) = 1 or d(x, y) = 2, so consider the case when


d(x, y) = 3. It can then be shown that for any z 6= x, y, we have that
d(x, z) + d(z, y) = 3.

Thus, (M4) is satisfied for any x, y, z ∈ X and we conclude that d is a metric on


X.

11. Prove the generalised triangle inequality.

d(x1 , xn ) ≤ d(x1 , x2 ) + d(x2 , x3 ) + . . . + d(xn−1 , xn ).

Solution: We prove the generalised triangle inequality by induction. The case


n = 3 follows from definition of a metric. Suppose the statement is true for n = k.
For n = k + 1,

d(x1 , xk+1 ) ≤ d(x1 , xk ) + d(xk , xk+1 )


≤ d(x1 , x2 ) + d(x2 , x3 ) + . . . + d(xk−1 , xk ) + d(xk , xk+1 )

where the last inequality follows from the induction hypothesis. Since k ≥ 3 is
arbitrary, the statement follows from induction.

12. (Triangle inequality) The triangle inequality has several useful consequences. For
instance, using the generalised triangle inequality, show that

|d(x, y) − d(z, w)| ≤ d(x, z) + d(y, w).

Solution: Suppose (X, d) is a metric space. For any x, y, z, w in X, the gener-


alised triangle inequality yields

d(x, y) ≤ d(x, z) + d(z, w) + d(w, y)


=⇒ d(x, y) − d(z, w) ≤ d(x, z) + d(w, y)

Page 5
h i
= d(x, z) + d(y, w) by (M3) .
d(z, w) ≤ d(z, x) + d(x, y) + d(y, w)
=⇒ d(z, w) − d(x, y) ≤ d(z, x) + d(y, w)
h i
= d(x, z) + d(y, w) by (M3) .

Combining these two inequalities yields the desired statement.

13. Using the triangle inequality, show that


|d(x, z) − d(y, z)| ≤ d(x, y).

Solution: Suppose (X, d) is a metric space. For any x, y, z in X, (M4) yields:

d(x, z) ≤ d(x, y) + d(y, z)


=⇒ d(x, z) − d(y, z) ≤ d(x, y)
d(y, z) ≤ d(y, x) + d(x, z)
=⇒ d(y, z) − d(x, z) ≤ d(y, x) = d(x, y) by (M3) .

Combining these two inequalities yields the desired statement.

14. (Axioms of a metric) (M1) to (M4) could be replaced by other axioms without
changing the definition. For instance, show that (M3) and (M4) could be obtained
from (M2) and
d(x, y) ≤ d(z, x) + d(z, y). (†)

Solution: We first prove (M3). Fix x, y ∈ X. Choose z = y, then


d(x, y) − d(y, x) ≤ d(z, x) + d(z, y) − d(y, x)
= d(y, x) + d(y, y) − d(y, x) = 0 from (M2).
Choose z = x, then
d(y, x) − d(x, y) ≤ d(z, y) + d(z, x) − d(x, y)
= d(x, y) + d(x, x) − d(x, y) = 0 from (M2).
Combining these two inequalities gives |d(x, y) − d(y, x)| ≤ 0 =⇒ d(x, y) =
d(y, x) for any x, y ∈ X.

To prove (M4), we apply (†) twice. More precisely, for any x, y, z ∈ X,


d(x, y) ≤ d(z, x) + d(z, y)
≤ d(w, z) + d(w, x) + d(z, y)
(M4) follows from (M2) and choosing w = x.

Page 6
15. Show that the nonnegativity of a metric follows from (M2) to (M4).

Solution: The only inequality we have is (M4), so we start from (M4). Choose
any x ∈ X. If z = x, then for any y ∈ X,
h i
d(x, z) ≤ d(x, y) + d(y, z) from (M4)
h i
=⇒ d(x, x) ≤ d(x, y) + d(y, x) = 2d(x, y) from (M3)
h i
=⇒ d(x, y) ≥ 0 from (M2)

Since x, y ∈ X were arbitrary, this shows the nonnegativity of a metric.

Page 7
1.2 Further Examples of Metric Spaces.
We begin by stating three important inequalities that are indispensable in various theo-
retical and practical problems.
∞ ∞
! p1 ∞
! 1q
X X X
Holder inequality : |ξj ηj | ≤ |ξk |p |ηm |q ,
j=1 k=1 m=1
1 1
where p > 1 and + = 1.
p q
∞ ∞
! 21 ∞
! 21
X X X
Cauchy-Schwarz inequality : |ξj ηj | ≤ |ξk |2 |ηm |2 .
j=1 k=1 m=1


! p1 ∞
! p1 ∞
! p1
X X X
Minkowski inequality : |ξj + ηj |p ≤ |ξk |p + |ηm |p ,
j=1 k=1 m=1

where p > 1.

1. For x = (ξj ) and y = (ηj ), the function



X 1 |ξj − ηj |
d(x, y) =
j=1
2j 1 + |ξj − ηj |

defines a metric on the sequence space s.PShow that we can obtain another metric
by replacing 1/2j with µj > 0 such that µj converges.

Solution: The proofP for triangle inequality is identical. To ensure finiteness of


d, we require that µj converges since
∞ ∞
X |ξj − ηj | X
d(x, y) = µj < µj < ∞.
j=1
1 + |ξj − η j | j=1

2. Suppose we have that for any α, β positive numbers,


αp β q
αβ ≤ + .
p q
where p, q are conjugate exponents. Show that the geometric mean of two positive
numbers does not exceed the arithmetic mean.

1 1
Solution: Choose p = q = 2, which are conjugate exponents since + = 1;
2 2
a2 b 2
we then have ab ≤ + . Multiplying by 2 and adding 2ab to both sides yield:
2 2
2ab + 2ab ≤ a2 + b2 + 2ab

Page 8
4ab ≤ (a + b)2
 2
a+b
ab ≤ .
2

Since ab is a positive quantity, the desired statement follows from taking square
root of both sides.

3. Show that the Cauchy-Schwarz inequality for sums implies

(|ξ1 | + · · · + |ξn |)2 ≤ n(|ξ1 |2 + . . . + |ξn |2 ).

Solution: An equivalent formulation of the Cauchy-Schwarz inequality for


(finite) sums is
n
!2 n
! n
!
X X X
|ξj ηj | ≤ |ξk |2 |ηm |2 .
j=1 k=1 m=1

Choosing ηj = 1 for all j ≥ 1 yields the desired inequality.

4. (Space lp ) Find a sequence which converges to 0, but is not in any space lp , where
1 ≤ p < +∞.

Solution: Consider the sequence (bj ) with numbers a(k), N (k) times, where for
1
k ≥ 1, a(k) = and N (k) = 2k , i.e.
k
 
1 1 1 1 1 1 1 1 1 1 1 1
(bj ) =  1, 1, , , , , , , , , , , , , . . . . . . .
 
|{z} |2 2{z2 2} |3 3 3 3{z3 3 3 3}
2 times
4 times 8 times

 p∞ ∞
1 X
p
X
j
By construction, (bj ) −→ 0 as j −→ ∞ and |bj | = 2 . However,
j=1 j=1
j
2j
since for all p ≥ 1, −→
6 0 as j −→ ∞, Divergence Test for Series implies
jp

X
that the series |bj |p diverges for all p ≥ 1. By definition, this means that
j=1
/ lp for all p ≥ 1.
(bj ) ∈

Page 9
5. Find a sequence x which is in lp with p > 1 but x ∈
/ l1 .

 
1
Solution: The sequence (an ) = belongs to lp with p > 1 but not l1 .
n

6. (Diameter, bounded set) The diameter δ(A) of a nonempty set A in a metric


space (X, d) is defined to be
δ(A) = sup d(x, y).
x,y∈A

A is said to be bounded if δ(A) < ∞. Show that A ⊂ B implies δ(A) ≤ δ(B).

Solution: This follows from property of least upper bound.

7. Show that δ(A) = 0 if and only if A consists of a single point.

Solution: Suppose δ(A) = 0, this means that d(x, y) = 0 for all x, y ∈ A; (M2)
then implies x = y, i.e. A has only one element. Conversely, suppose that A
consists of a single point, say x; (M2) implies that δ(A) = 0 since d(x, x) = 0.

8. (Distance between sets) The distance D(A, B) between two nonempty subsets A
and B of a metric space (X, d) is defined to be
D(A, B) = inf d(a, b).
a∈A
b∈B

Show that D does not define a metric on the power set of X. (For this reason we use
another symbol, D, but one that still reminds us of d.)

Solution: Consider X = {1, 2, 3} with d being the absolute value function, and
consider its power set A = {1} and B = {1, 2}. By construction, D(A, B) = 0
but A 6= B.

9. If A ∩ B 6= ∅, show that D(A, B) = 0 in Problem 8. What about the converse?

Solution: If A ∩ B 6= ∅, then for any x ∈ A ∩ B,

0 ≤ D(A, B) ≤ d(x, x) = 0 =⇒ D(A, B) = 0.


 
1 1
The converse does not hold. Consider X = Q, with A = {0} and B = 1, , , . . . .
2 3
1
Then D(A, B) = lim d(0, 1/n) = lim = 0, but A ∩ B = ∅.
n→∞ n→∞ n

Page 10
1.3 Open Set, Closed Set, Neighbourhood.
Definition 1.3.1.
1. Given a point x0 ∈ X and a real number r > 0, we define three types of sets:
Br (x0 ) = {x ∈ X : d(x, x0 ) < r} (Open ball).
B̃r (x0 ) = {x ∈ X : d(x, x0 ) ≤ r} (Closed ball).
Sr (x0 ) = {x ∈ X : d(x, x0 ) = r} (Sphere).
In all three cases, x0 is called the center and r the radius.
2. A subset M of a metric space X is said to be open if it contains a ball about each
of its points. A subset K of X is said to be closed if its complement (in X) is
open, that is, K C = X \ K is open.
3. We call x0 an interior point of a set M ⊂ X if M is a neighbourhood of x0 . The
interior of M is the set of all interior points of M and may be denoted by Int(M ).
• By neighbourhood of x0 we mean any subset of X which contains an ε-neighbourhood
of x0 .
• Int(M ) is open and is the largest open set contained in M .

Definition 1.3.3 (Continuous mapping). Let X = (X, d) and Y = (Y, d) ˜ be metric


spaces. A mapping T : X −→ Y is said to be continuous at a point x0 ∈ X if for every
ε > 0, there is a δ > 0 such that
˜ x, T x0 ) < ε
d(T for all x satisfying d(x, x0 ) < δ.
T is said to be continuous if it is continuous at every point of X.

Theorem 1.3.4 (Continuous mapping). A mapping T of a metric space X into a metric


space Y is continuous if and only if the inverse image of any open subset of Y is an open
subset of X.

Definition 1.3.5. Let M be a subset of a metric space X. A point x0 of X (which may


or may not be a point of M ) is called an accumulation point of M (or limit point of
M ) if every neighbourhood of x0 contains at least one point y ∈ M distinct from x0 . The
set consisting of the points of M and the accumulation points of M is called the closure
of M and is denoted by M̄ . It is the smallest closed set containing M .

Page 15
Solution:

• An open ball B1 (x0 ) in R is the open interval (x0 − 1, x0 + 1).

• An open ball B1 (x0 ) in C is the open disk D = {z ∈ C : |z − x0 | < 1}.

• Given x0 ∈ C[a, b], an open ball B1 (x0 ) in C[a, b] is any continuous function
x ∈ C[a, b] satisfying sup |x(t) − x0 (t)| < 1.
t∈[a,b]

3. Consider C[0, 2π] and determine the smallest r such that y ∈ B̃(x; r), where x(t) =
sin(t) and y(t) = cos(t).

Solution: We want to maximise y(t) − x(t) over t ∈ [0, 2π]. Consider z(t) =
cos(t) − sin(t), differentiating gives z 0 (t) = − sin(t) − cos(t), which is equal to 0
if and only if sin(t) + cos(t) = 0, or
3π 7π
tan(t) = −1 =⇒ tc = , .
4 4

Evaluating z(t) at√ tc gives z(tc ) = ± 2. Thus, the smallest r > 0 such that
y ∈ B̃r (x) is r = 2.

Page 17
(a) Show that this is always the case for X and ∅.

Solution: ∅ is open since ∅ contains no elements. For any x ∈ X, choose


ε = 1 > 0, then Bε (x) ⊂ X by definition. This immediately implies that ∅
and X are both closed since ∅C = X and X C = ∅ are both open.

(b) Show that in a discrete metric space X, every subset is open and closed.

Solution: Consider any subset A in X. For any x ∈ A, there exists an open


ball around x that is contained in A by the structure of the discrete metric.
Indeed, with 0 < ε < 1, Bε (x) = {x} ⊂ A. Similarly, A is closed by the same
argument. Indeed, for any y ∈ AC , with 0 < ε < 1, Bε (y) = {y} ⊂ AC .

Page 18
1.4 Convergence, Cauchy Sequence, Completeness.
Definition 1.4.1. A sequence (xn ) in a metric space X = (X, d) is said to converge or
to be convergent if there exists an x ∈ X such that

lim d(xn , x) = 0.
n→∞

x is called the limit of (xn ).

Lemma 1.4.2 (Boundedness, limit). Let X = (X, d) be a metric space.


(a) A convergent sequence in X is bounded and its limit is unique.

(b) If xn −→ x and yn −→ y in X, then d(xn , yn ) −→ d(x, y).

Definition 1.4.3 (Cauchy sequence, completeness). A sequence (xn ) in a metric space


X = (X, d) is said to be Cauchy if for every ε > 0, there is an N = N (ε) such that

d(xm , xn ) < ε for every m, n > N.

The space X is said to be complete if every Cauchy sequence in X converges, that is,
has a limit which is an element of X.

Theorem 1.4.4. Every convergent sequence in a metric space is a Cauchy sequence.

Theorem 1.4.5 (Closure, closed set). Let M be a non-empty subset of a metric space
(X, d) and M̄ its closure.
(a) x ∈ M̄ if and only if there is a sequence (xn ) in M such that xn −→ x.

(b) M is closed if and only if the situation xn ∈ M , xn −→ x implies that x ∈ M .

Theorem 1.4.6 (Complete subspace). A subspace M of a complete metric space X is


itself complete if and only if the set M is closed in X.

Theorem 1.4.7 (Continuous mapping). A mapping T : X −→ Y of a metric space (X, d)


˜ is continuous at a point x0 ∈ X if and only if
into a metric space (Y, d)

xn −→ x0 =⇒ T xn −→ T x0 .

• The only if direction is proved using ε-δ definition of continuity, whereas the if di-
rection is a proof by contradiction.

Page 22
5. Is boundedness of a sequence in a metric space sufficient for the sequence to be
Cauchy? Convergent?

Solution: It turns out that boundedness of a sequence in a metric space does


not imply Cauchy or convergent. Consider the sequence (xn ), where xn = (−1)n ;
it is clear that (xn ) is bounded in (R, d), where d(xm , xn ) = |xm − xn |.

1
• (xn ) is not Cauchy in R since if we pick ε = > 0, then for all N , there
2
exists m, n > N (we could choose m = N + 1, n = N + 2 for example) such
1
that d(xm , xn ) = d(xN +1 , xN +2 ) = 1 > .
2
• (xn ) is not convergent in R since it is not Cauchy.

6. If (xn ) and (yn ) are Cauchy sequences in a metric space (X, d), show that (an ), where
an = d(xn , yn ), converges. Give illustrative examples.

Solution: Let (xn ) and (yn ) be Cauchy sequences in a metric space (X, d) and
fix an ε > 0. By definition, there exists N1 , N2 such that
ε
d(xm , xn ) < for all m, n > N1 .
2
ε
d(ym , yn ) < for all m, n > N2 .
2
Define a sequence (an ), with an = d(xn , yn ); observe that (an ) is a sequence in R.
Thus to show that (an ) converges, an alternative way is to show that (an ) is a
Cauchy sequence. First, generalised triangle inequality of d yields the following
two inequalities:

am = d(xm , ym ) ≤ d(xm , xn ) + d(xn , yn ) + d(yn , ym )


= d(xm , xn ) + an + d(ym , yn )
=⇒ am − an ≤ d(xm , xn ) + d(ym , yn ).
an = d(xn , yn ) ≤ d(xn , xm ) + d(xm , ym ) + d(ym , yn )
= d(xm , xn ) + am + d(ym , yn )
=⇒ an − am ≤ d(xm , xn ) + d(ym , yn ).

Choose N = max{N1 , N2 }. Combining these inequalities yields:

|am − an | ≤ d(xm , xn ) + d(ym , yn )


ε ε
< + = ε for all m, n > N.
2 2
Since ε > 0 was arbitrary, this shows that the sequence (an ) is Cauchy in R.
Consequently, (an ) must converge.

Page 24
7. Give an indirect proof of Lemma 1.4-2(b).

Solution: We want to prove that if xn −→ x and yn −→ y in a metric space


(X, d), then d(xn , yn ) −→ d(x, y). Choose any ε > 0. By definition, there exists
N1 , N2 such that
ε
d(xn , x) < for all n > N1 .
2
ε
d(yn , x) < for all n > N2 .
2
Generalised triangle inequality of d yields the following two inequalities:

d(xn , yn ) ≤ d(xn , x) + d(x, y) + d(y, yn )


=⇒ d(xn , yn ) − d(x, y) ≤ d(xn , x) + d(yn , y).
d(x, y) ≤ d(x, xn ) + d(xn , yn ) + d(yn , y)
=⇒ d(x, y) − d(xn , yn ) ≤ d(xn , x) + d(yn , y).

Now choose N = max{N1 , N2 }. Combining these inequalities yields:

|d(xn , yn ) − d(x, y)| ≤ d(xn , x) + d(yn , y)


ε ε
< + = ε for all n > N.
2 2
This proves the statement since ε > 0 was arbitrary.

8. If d1 and d2 are metrics on the same set X and there are positive numbers a and b
such that for all x, y ∈ X,
ad1 (x, y) ≤ d2 (x, y) ≤ bd1 (x, y), (†)
show that the Cauchy sequences in (X, d1 ) and (X, d2 ) are the same.

Solution: Suppose (xn ) is any Cauchy sequence in (X, d1 ). Given ε > 0, there
ε
exists an N1 such that d(xm , xn ) < for all m, n > N1 . Using the second
b
inequality in (†),
ε
d2 (xm , xn ) ≤ bd1 (xm , xn ) < b = ε for all m, n > N1 .
b

Thus, (xn ) is also a Cauchy sequence in (X, d2 ).

Now suppose (yn ) is any Cauchy sequence in (X, d2 ). Given ε > 0, there exists
an N2 ∈ N such that d(ym , yn ) < aε for all m, n > N2 . Using the first inequality
in (†),
1 1
d1 (ym , yn ) ≤ d1 (ym , yn ) < (
aε) = ε for all m, n > N2 .
a a

Thus, (yn ) is also a Cauchy sequence in (X, d1 ).

Page 25
9. The Cartesian product X = X1 × X2 of two metric spaces (X1 , d1 ) and (X2 , d2 ) can
be made into a metric space (X, d) in many ways. For instance, for x = (x1 , x2 ) and
y = (y1 , y2 ), we proved previously that the following are metrics for X.
da (x, y) = d1 (x1 , y1 ) + d2 (x2 , y2 ).
p
db (x, y) = d1 (x1 , y1 )2 + d2 (x2 , y2 )2 .
dc (x, y) = max{d1 (x1 , y1 ), d2 (x2 , y2 )}.
Using Problem 8, show that (X, da ), (X, db ) and (X, dc ) all have the same Cauchy
sequences.

Solution: We simply need to establish a few related inequalities.

da = d1 + d2 ≤ 2 max{d1 , d2 } = 2dc =⇒ da ≤ 2dc .


dc = max{d1 , d2 } ≤ d1 + d2 = da =⇒ dc ≤ da .
db = d1 + d2 ≤ d21 + d22 + 2d1 d2 = (d1 + d2 )2 = d2a
2 2 2
=⇒ db ≤ da .
q q q
dc = max{d1 , d2 } = max{ d21 , d22 } ≤ d21 + d22 = db =⇒ dc ≤ db .
da ≤ 2dc ≤ 2db =⇒ da ≤ 2db .
db ≤ da ≤ 2dc =⇒ db ≤ 2dc .

Consequently, we have the following inequality:

da ≤ 2dc ≤ 2db ≤ 2da .

10. Using the completeness of R, prove completeness of C.

Solution: Let (zn ) be any Cauchy sequence in C, where zn = xn + iyn . For any
ε > 0, there exists an N ∈ N such that for all m, n > N ,
p
dC (zm , zn ) = |zm − zn | = (xm − xn )2 + (ym − yn )2 ≤ ε
=⇒ (xm − xn )2 + (ym − yn )2 ≤ ε2 .
The last inequality implies that for all m, n > N ,
(xm − xn )2 ≤ ε2 =⇒ |xm − xn | ≤ ε.
(ym − yn )2 ≤ ε2 =⇒ |ym − yn | ≤ ε.
Thus, both sequences (xn ) and (yn ) are Cauchy in R, which converges to, say, x
and y respectively as n −→ ∞ by completeness of R. Define z = x + iy ∈ C, then
convergence of (xn ) and (yn ) implies that dR (xn , x) and dR (yn , y) both converge
to 0 as n −→ ∞. Expanding the definition of dC (zn , z) gives
p
dC (zn , z) = |zn − z| = (xn − x)2 + (yn − y)2
p
= dR (xn , x)2 + dR (yn , y)2 −→ 0 as n −→ ∞.
This shows that z ∈ C is the limit of (zn ). Since (zn ) was an arbitrary Cauchy
sequence in C, this proves completeness of C.

Page 26
1.5 Examples. Completeness Proofs.
To prove completeness, we take an arbitrary Cauchy sequence (xn ) in X and show that it
converges in X. For different spaces, such proofs may vary in complexity, but they have
approximately the same general pattern:

1. Construct an element x (to be used as a limit).

2. Prove that x is an element of the space considered.

3. Prove convergence xn −→ x (in the sense of the metric).

1. Let a, b ∈ R and a < b. Show that the open interval (a, b) is an incomplete subspace
of R , whereas the closed interval [a, b] is complete.

 
Solution: Consider a sequence (xn ) in the metric space (a, b), | · | , where xn =
1 2
a + . Given any ε > 0, choose N ∈ N such that N > , then for any m, n >
n ε
2
N> ,
ε
1 1 1 1
d(xm , xn ) = − ≤ +
m n m n
ε ε
< + = ε.
2 2
This shows that (xn ) is a Cauchy sequence in (a, b). However, (xn ) −→ a ∈
/ (a, b)
as n −→ ∞. This shows that (a, b) is an incomplete subspace of R. Since [a, b]
is a closed (metric) subspace of R (which is a complete metric space), it follows
that the closed interval [a, b] is complete.

2. Let X be the space of all ordered n-tuples x = (ξ1 , . . . , ξn ) of real numbers and
d(x, y) = maxj |ξj − ηj |, where y = (ηj ). Show that (X, d) is complete.

 
n (m) (m)
Solution: Consider any Cauchy sequence (xm ) in R , where xm = ξ1 , . . . , ξn
.
Since (xm ) is Cauchy, given any ε > 0, there exists an N such that for all
m, r > N ,
(m) (r)
d(xm , xr ) = max |ξj − ξj | < ε
j=1,...,n

In particular, for every fixed j = 1, . . . , n,


(m) (r)
|ξj − ξj | < ε for all m, r > N. (†)
(1) (2)
Hence, for every fixed j, the sequence (ξj , ξj , . . .) is a Cauchy sequence of real
(m)
numbers. It converges by completeness of R, say, ξj −→ ξj as m −→ ∞.

Page 27
Using these n limits, we define x = (ξ1 , . . . , ξn ). Clearly, x ∈ Rn . From (†), with
r −→ ∞,
(m)
|ξj − ξj | < ε for all m > N.
Since the RHS is independent of j, taking maximum over j = 1, . . . , n in both
sides yields
(m)
d(xm , x) = max |ξj − ξj | < ε for all m > N.
j=1,...,n

This shows that xm −→ x. Since (xm ) was an arbitrary Cauchy sequence, Rn


with the metric d(x, y) = max |ξj − ηj | is complete.

3. Let M ⊂ l∞ be the subpace consisting of all sequences x = (ξj ) with at most finitely
many nonzero terms. Find a Cauchy sequence in M which does not converge in M ,
so that M is not complete.

Solution: Let (xn ) be a sequence in M ⊂ l∞ , where

 1 if j ≤ n,

(n)
ξj = j
0 if j > n.

 
1 1 1
i.e. xn = 1, , , . . . , , 0, 0, . . . . . . . Given any ε > 0, choose N such that
2 3 n
1
N + 1 > , then for any m > n > N ,
ε
(m) (n) 1 1
d(xm , xn ) = sup ξj − ξj = ≤ < ε.
j∈N n+1 N +1
 
1
This shows that (xn ) is Cauchy in M . However, it is clear that xn −→ x =
n
as n −→ ∞, but since x ∈ / M , (xn ) does not converge in M .

4. Show that M in Problem 3 is not complete by applying Theorem 1.4-7.

Solution: It is easy to see that M is a subspace of l∞ . The sequence in Problem


3 shows that xn −→ x in l∞ since
1
d(xn , x) = −→ 0 as n −→ ∞.
n+1
However, x doesn’t belong to M since it has infinitely many nonzero terms. This
shows that M is not a closed subspace of l∞ , and therefore not complete.

Page 28
5. Show that the set X of all integers with metric d defined by d(m, n) = |m − n| is a
complete metric space.

Solution: Observe that for any two distinct integers m, n, d(m, n) ≥ 1. This
implies that the only Cauchy sequences in X are either constant sequences or
sequences that are eventually constant. This shows that the set X of all integers
with the given metric is complete.

6. Show that the set of all real numbers constitutes an incomplete metric space if we
choose d(x, y) = | arctan x − arctan y|.

Solution: Consider the sequence (xn ), where xn = n. We claim that (xn ) is


Cauchy but not convergent in R.
π
• Since arctan n −→ as n −→ ∞, given any ε > 0, there exists an N such
2
π ε
that arctan(n) − < for all n > N . Thus, for all m, n > N ,
2 2
π π
d(xm , xn ) = | arctan(m) − arctan(n)| ≤ arctan(m) − + − arctan(n)
2 2
ε ε
< + = ε.
2 2

• Suppose, for contradiction, that (xn ) converges in R with the given metric.
By definition, there exists an x ∈ R such that

lim d(xn , x) = lim | arctan(n) − arctan(x)| = 0.


n→∞ n→∞

π
which then implies that arctan(x) must equal to , by uniqueness of limits.
2
π
This contradicts the assumption that x ∈ R, since arctan(x) < for any
2
x ∈ R.

7. Let X be the set of all positive integers and d(m, n) = |m−1 − n−1 |. Show that (X, d)
is not complete.

Solution: Consider a sequence (xn ) ∈ X, where xn = n. With the given metric,

1 1
d(xm , xn ) = −
m n

and similar argument in Problem 1 shows that (xn ) is a Cauchy sequence. If (xn )
were to converge to some positive integer x, then it must satisfy

1 1
d(xn , x) = − −→ 0 as n −→ ∞.
n x

Page 29
1
Clearly, must be 0, which is a contradiction since no positive integers x gives
x
1
= 0.
x

8. (Space C[a, b]) Show that the subspace Y ⊂ C[a, b] consisting of all x ∈ C[a, b]
such that x(a) = x(b) is complete.

Solution: Consider Y ⊂ C[a, b] defined by Y = {x ∈ C[a, b] : x(a) = x(b)}. It


suffices to show that Y is closed in C[a, b], so that completeness follows from
Theorem 1.4.7. Consider any f ∈ Ȳ , the closure of Y . There exists a sequence of
functions (fn ) ∈ Y such that fn −→ f in C[a, b]. By definition, given any ε > 0,
there exists an N ∈ N such that for all n > N , we have

d(fn , f ) = max |fn (t) − f (t)| < ε.


t∈[a,b]

In particular, for every t ∈ [a, b], |fn (t) − f (t)| < ε for all n > N . This shows that
(fn (t)) converges to f (t) uniformly on [a, b]. Since the fn0 s are continuous function
on [a, b] and the convergence is uniform, the limit function f is continuous on [a, b].
We are left with showing f (a) = f (b) to conclude that f ∈ Y . Indeed, triangle
inequality for real numbers gives:

|f (a) − f (b)| ≤ |f (a) − fn (a)| + |fn (a) − fn (b)| + |fn (b) − f (b)|
= |f (a) − fn (a)| + |fn (b) − f (b)|
≤ 2 max |fn (t) − f (t)|
t∈[a,b]

= 2d(fn , f ) −→ 0 as n −→ ∞.

9. In 1.5-5 we referred to the following theorem of calculus. If a sequence (xm ) of a


continuous functions on [a, b] converges on [a, b] and the convergence is uniform on
[a, b], then the limit function x is continuous on [a, b]. Prove this theorem.

Solution: The proof employs the so called ε/3 proof, which is widely used in
proofs concerning uniform continuity. Choose any t0 ∈ [a, b] and ε > 0.

• Since (fn ) converges to f uniformly, there exists an N ∈ N such that for all
ε
t ∈ [a, b] and for all n > N , we have |fn (t) − f (t)| < .
3
• Since fN +1 is continuous at t0 ∈ [a, b], there exists an δ > 0 such that
ε
|fN +1 (t) − fN +1 (t0 )| < for all t ∈ [a, b] satisfying |t − t0 | < δ.
3
• Thus, if |t − t0 | < δ, triangle inequality gives:

|f (t) − f (t0 )| ≤ |f (t) − fN +1 (t)| + |fN +1 (t) − fN +1 (t0 )| + |fN +1 (t0 ) − f (t0 )|

Page 30
ε ε ε
< + + =ε
3 3 3
This shows that f is continuous at t0 .

Since t0 ∈ [a, b] was arbitrary, f is continuous on [a, b] or f ∈ C[a, b].

10. (Discrete metric) Show that a discrete metric space is complete.

Solution: Let (X, d) be a discrete metric space, for any two distinct x, y ∈ X,
d(x, y) = 1. This implies that the only Cauchy sequences in X are either constant
sequences or sequences that are eventually constant. This shows that a discrete
metric space is complete.

(n)
11. (Space s) Show that in the space s, we have xn −→ x if and only if ξj −→ ξj for
 
(n)
all j = 1, 2, . . . , where xn = ξj and x = (ξj ).

Solution: The sequence space s consists of the set of all (bounded or unbounded)
sequences of complex numbers and the metric d defined by

X 1 |ξj − ηj |
d(x, y) = .
j=1
2j 1 + |ξj − ηj |

where x = (ξj ) and y = (ηj ).


 
(n)
Suppose xn −→ x in s, where xn = ξj . For every j ≥ 1, given any ε > 0,
there exists an N such that for all n > N we have:
(n)
1 ξj − ξj 1 ε
≤ d(xn , x) <
2j 1 + ξ (n) − ξ 2j 1 + ε
j j

(n)
ξj − ξj ε
<
1+
(n)
− ξj
ξj 1+ε
h i
(n) (n)
ξj − ξj (1 + ε) < ε 1 + ξj − ξj
(n)
ξj − ξj < ε

(n)
This shows that ξj −→ ξj as n −→ ∞. Since j ≥ 1 was arbitrary, the result
follows.

Page 31
 
(n) (n)
Conversely, suppose −→ ξj for all j ≥ 1, where xn =
ξj ξj and x = (ξj ).
This implies that for every fixed j ≥ 1,
(n)
1 ξj − ξj
−→ 0 as n −→ ∞.
2j 1 + ξ (n) − ξ
j j

This shows that d(xn , x) −→ 0 as n −→ ∞.

12. Using Problem 11, show that the sequence space s is complete.

 
(n)
Solution: Consider any Cauchy sequence (xn ) in s, where xn = ξj . Since
(xn ) is Cauchy, for every j ≥ 1, given any ε > 0, there exists an N such that for
all m, n > N we have
(m) (n)
1 ξj − ξj 1 ε
≤ d(x m , xn ) < .
2j 1 + ξ (m) − ξ (n) 2j 1 + ε
j j

(m) (n)
In particular, for every j ≥ 1, ξj − ξj < ε for all m, n > N . Hence, for
 
(1) (2)
every j ≥ 1, the sequence ξj , ξj , . . . is a Cauchy sequence of real numbers.
(n)
It converges by completeness of R, say, ξj −→ ξj as n −→ ∞. Since j ≥ 1
(n)
was arbitrary, this shows that ξj −→ ξj as n −→ ∞ for all j ≥ 1. Identifying
x = (ξj ), we have xn −→ x as n −→ ∞ from Problem 11. Since (xn ) was an
arbitrary Cauchy sequence in s, this proves completeness of s.

13. Let X be the set of all continuous real-valued functions on J = [0, 1], and let
Z 1
d(x, y) = |x(t) − y(t)| dt.
0

Show that the sequence (xn ) is Cauchy in X, where


 1
n
 if 0 ≤ t ≤ 2 ,
n
xn (t) = 1 1
√
 if 2 ≤ t ≤ 1.
t n

Solution: WLOG, take m > n. Sketching out |xm (t) − xn (t)|, we deduce that
Z 1 Z 1  
m2 n2 1
d(xm , xn ) = (m − n) dt + √ −n dt
0 1
m2
t

Page 32
   
1 1 1 1 1 1 1
= (m − n) 2 + 2 − −n 2
− 2 = − .
m n m n m n m

Similar argument in Problem 1 shows that (xn ) is a Cauchy sequence in C[0, 1].

14. Show that the Cauchy sequence in Problem 13 does not converge.

Solution: For every x ∈ C[0, 1],


Z 1
d(xn , x) = |xn (t) − x(t)| dt
0
1
Z Z 1
n2 1
= |n − x(t)| dt + √ − x(t) dt
0 1
n2
t

Since the integrands are nonnegative, so is each integral on the right. Hence,
d(xn , x) −→ 0 would imply that each integral approaches zero and, since x is
1
continuous, we should have x(t) = √ if t ∈ (0, 1]. But this is impossible for a
t
continuous function, otherwise we would have discontinuity at t = 0. Hence, (xn )
does not converge, that is, does not have a limit in C[0, 1].

15. Let X be the metric space of all real sequencesP x = (ξj ) each of which has only
finitely many nonzero terms, and d(x, y) = |ξj − ηj |, where y = (ηj ). Note that
this is a finite
  sum but the number of terms depends on x and y. Show that (xn )
(n)
with xn = ξj ,
 1

(n) for j = 1, . . . , n,
ξj = j 2
0 for j > n.

is Cauchy but does not converge.


X 1
Solution: Since is convergent and it is a sum of positive terms, given any
j=1
j2

X 1
ε > 0, there exists an N1 such that 2
< ε for all n > N1 . Choose N = N1 ,
j=n
j
then for all m > n > N ,
m ∞ ∞
X 1 X 1 X 1
d(xm , xn ) = 2
≤ 2
≤ < ε.
j=n+1
j j=n+1
j j=N +1
j2

This shows that (xn ) is a Cauchy sequence. For every x = (ξj ) ∈ X, there exists
an N = Nx such that ξj = 0 for all j > N . Then for all n > N ,
1 1 1 1
d(xn , x) = |1 − ξ1 | + − ξ2 + . . . + 2
− ξN + 2
+ ... + 2.
4 N (N + 1) n

You might also like