MA222
Metric Spaces
Revision Guide
WMS
ii MA222 Metric Spaces
Contents
1 Metric Spaces 1
2 Topological Spaces 4
3 Compactness 7
4 Connectedness 10
5 Completeness 12
Introduction
This revision guide for MA222 Metric Spaces has been designed as an aid to revision, not a substitute
for it. As can be seen from the length of this revision guide, Metric Spaces is a fairly long course with
lots of confusing definitions and big theorems; hopefully this guide will help you make sense of how all
the abstraction fits together. Only some proofs are included; the inclusion of a particular proof is no
indication of how likely it is to appear on the exam. Note that this guide is omits material on connections
between compact metric spaces and the Cantor set (Every compact metric space is a continuous image
of the Cantor set).
Disclaimer: Use at your own risk. No guarantee is made that this revision guide is accurate or
complete, or that it will improve your exam performance. Use of this guide will increase entropy,
contributing to the heat death of the universe. Contains no GM ingredients. Your mileage may vary.
All your base are belong to us.
Authors
Originally by Gareth Speight (g.speight@warwick.ac.uk).
Based upon lectures given by David Preiss at the University of Warwick, 2007.
Any corrections or improvements should be entered into our feedback form at http://tinyurl.com/WMSGuides
(alternatively email revision.guides@warwickmaths.org).
History
First Edition: May 23, 2007
Current Edition: May 6, 2013.
MA222 Metric Spaces 1
1 Metric Spaces
We recall that the modulus function on R allows us to calculate the distance between real numbers. The
idea of a metric on a set generalises this and allows us to have notions of distances on any set.
The pair (M, d) is called a metric space. When it is clear which metric we are using we may refer to “the
metric space M ”.
Definition 1.2. A norm on a vector space V over R (or C) is a function k · k : V → R such that for
every x, y ∈ V ,
Every normed vector space is in fact a metric space with metric d(x, y) = kx − yk and we can obtain
several important metrics from normed vector spaces.
• The l∞ norm on Rn or Cn is given by kxk∞ = maxni=1 |xi | and the corresponding metric is
d∞ (x, y) = maxni=1 |xi − yi |.
• kf k = supx∈[a,b] |f (x)| is a norm on the set C([a, b]) of continuous functions [a, b] → R and the
corresponding metric is d(f, g) = kf − gk = supx∈[a,b] |f (x) − g(x)|.
• Let M be any set. Then we can define a metric on M by d(x, y) = 1 whenever x 6= y and d(x, y) = 0
when x = y. We call d the discrete metric on M and (M, d) a discrete space.
Definition 1.4. The open ball centred at a ∈ M with radius r is the set B(a, r) = {x ∈ M : d(x, a) < r}
and the closed ball centred at a ∈ M with radius r is {x ∈ M : d(x, a) ≤ r}.
Definition 1.5. A subset S of a metric space M is bounded if there exists a ∈ M and r > 0 such that
S ⊂ B(a, r).
Equivalently S ⊂ M is bounded if the distance function is bounded on S, i.e. if there exists r > 0
such that d(x, y) ≤ r for all x, y ∈ S.
We can define new metric spaces from existing ones by considering subsets or taking products.
Definition 1.6. Let (M, dM ) be a metric space and let H ⊂ M . Define a metric dH on H by dH (x, y) :=
dM (x, y) for all x, y ∈ H. Then (H, dH ) is a metric space and we refer to it as a subspace of M .
2 MA222 Metric Spaces
It is easy to see a Lipschitz map is continuous by letting δ = ε/C. Sums, products and quotients
(where the quotient function makes sense) of continuous functions M → R are all continuous with similar
proofs to those in the case R → R. The previous proposition shows that, for any a ∈ M , the map M → R,
x 7→ d(a, x) is Lipschitz with constant C = 1.
Definition 1.10. Let M be a metric space. We say U ⊂ M is open in M if for all x ∈ U there exists
δ > 0 such that B(x, δ) ⊂ U . We say F ⊂ M is closed in M if M \ F is open.
Informally U ⊂ M is open if given a point in U you can move some small distance δ > 0 in any
direction and still remain in U . It is important to stress that a set could be both open and closed or
neither open nor closed. In any metric space M both ∅ and M are open and closed while in R the
interval [0, 1) is neither open nor closed.
We now prove a few elementary properties about open balls and open sets.
Proposition 1.11. An open ball B(a, r) is open.
Proof. Take x ∈ B(a, r) and define δ = r−d(x, a) > 0. Let y ∈ B(x, δ). Then d(y, a) ≤ d(y, x)+d(x, a) <
δ + d(x, a) = r. Hence B(x, δ) ⊂ B(a, r).
Tk
Proof. Take x ∈ i=1 Ui . Then, for each i, x ∈ Ui and Ui is open so there is δi > 0 such that B(x, δi ) ⊂
Tk
Ui . Let δ = min(δ1 , . . . , δk ). Then B(x, δ) ⊂ B(x, δi ) ⊂ Ui for each i and hence B(x, δ) ⊂ i=1 Ui .
T
Note that k being finite really is necessary here. n∈N (−1/n, 1/n) = 0 is a countable intersection of
open sets which is not open.
Proposition 1.13. The union of any collection of sets open in M is open in M .
S
Proof. Write U = i∈I Ui . Take x ∈ U . Then x ∈ Ui for some i. Since Ui is open there is δ > 0 such
that B(x, δ) ⊂ Ui ⊂ U .
Proposition 1.14. H ⊂ M is open if and only if it is a union of open balls.
Proof. By the above proposition a union of open balls is open. Suppose
S H ⊂ M is open. Then for all
x ∈ H there is δx > 0 such that B(x, δx ) ⊂ H. We can write H = x∈H B(x, δx ).
Definition 1.15. A sequence xn ∈ M converges to x ∈ M if d(xn , x) → 0 as n → ∞.
MA222 Metric Spaces 3
This definition of convergence can be reformulated to provide an equivalent definition in the language
of open sets.
Proposition 1.16. xn → x if and only if for every open set U containing x there is N ∈ N such that
xn ∈ U for all n ≥ N .1
Proof. (=⇒) Suppose xn → x. Since U is open and contains x there is δ > 0 such that B(x, δ) ⊂ U .
As xn → x there is N ∈ N such that n ≥ N =⇒ d(xn , x) < δ =⇒ xn ∈ B(x, δ) ⊂ U . So
n ≥ N =⇒ xn ∈ U .
(⇐=) Let ε > 0. B(x, ε) is open so there is N such that n ≥ N =⇒ xn ∈ B(x, ε) =⇒ d(xn , x) < ε.
Convergence of sequences and closed sets are also closely related.
Theorem 1.17. Let F be a subset of a metric space M , and let xn ∈ F be a sequence with xn → x ∈ M .
Then F is closed if and only if x ∈ F ; that is, a subset F of a metric space M is closed if and only if for
every sequence xn ∈ F that converges to some x ∈ M we have x ∈ F .
Proof. (=⇒) Suppose F is closed, xn ∈ F and xn → x ∈ M . Suppose x ∈ M \ F which is open. Then
there is N such that n ≥ N =⇒ xn ∈ M \ F , contradicting xN ∈ F .
(⇐=) Suppose F is not closed. Then M \ F is not open and consequently there is x ∈ M \ F such
that for every n > 0 we have B(x, 1/n) not contained in M \ F , i.e. B(x, 1/n) ∩ F is nonempty. Choose
xn ∈ B(x, 1/n) ∩ F . Then d(xn , x) < 1/n → 0 so xn → x with x ∈ / F , giving a contradiction.
As in R we have the notion of sequential continuity and its relation to continuity.
Theorem 1.18. A function f : M1 → M2 where M1 , M2 are metric spaces, is continuous at x ∈ M1 if
and only if for every sequence xn ∈ M1 with xn → x ∈ M1 we have f (xn ) → f (x).2
Recall that for a function f : X → Y we define the preimage of a set U under f by f −1 (U ) =
{x : f (x) ∈ U }. The following theorem reformulates continuity in terms of open sets, motivating our
progression to topological spaces.
Theorem 1.19. A function f : M1 → M2 is continuous if and only if for every open set U ⊂ M2 , the
preimage f −1 (U ) is open in M1 . In other words, f is continuous if and only if the preimage of every
open set is open.
Proof. (=⇒) Let U be open in M2 and take x ∈ f −1 (U ). Then f (x) ∈ U so, as U is open, there
is ε > 0 such that B(f (x), ε) ⊂ U . Since f is continuous at x there exists δ > 0 such that (y ∈
M1 , d1 (y, x) < δ) =⇒ d2 (f (y), f (x)) < ε. In other words y ∈ B(x, δ) =⇒ f (y) ∈ B(f (x), ε) ⊂ U .
Hence B(x, δ) ⊂ f −1 (U ). Hence f −1 (U ) is open.
(⇐=) Let x ∈ M1 and ε > 0. B(f (x), ε) is open in M2 so f −1 (B(f (x), ε)) is open in M1 . Furthermore
x ∈ f −1 (B(f (x), ε)) so there is δ > 0 such that B(x, δ) ⊂ f −1 (B(f (x), ε)). In other words (y ∈
M1 , d1 (y, x) < δ) =⇒ d2 (f (y), f (x)) < ε so f is continuous at x. Since x ∈ M1 was arbitrary f is
continuous.
As well as providing a concise formulation of continuity the above theorem allows us to show subsets
are open by using continuous maps.
Example 1.20. Define U = {(x, y) ∈ R2 :x2 − y 2 > 1,y > 0}. Define f (x, y) = x2 − y 2 and g(x, y) = y.
Then f and g are continuous so f −1 (1, ∞) , g −1 (0, ∞) are open and hence f −1 (1, ∞) ∩g −1 (0, ∞) =
U is open.
Theorem 1.21. Let d1 , d2 be two metrics on a set M . Then the following statements are equivalent:
• For every metric space (N, d), every f : M → N is (d1 , d)-continuous if and only if it is (d2 , d)-
continuous.
• For every metric space (N, d), every g : N → M is (d, d1 )-continuous if and only if it is (d, d2 )-
continuous.
1 This is the idea behind convergence of sequences in general topological spaces.
2 Sequential continuity and continuity are not equivalent in general topological spaces.
4 MA222 Metric Spaces
Bd1 (x, δ/C) = {y ∈ M : d1 (y, x) < δ/C} ⊂ {y ∈ M : d2 (y, x) < δ} = Bd2 (x, δ) ⊂ U
so U is d1 open. The converse follows from the inequality (1/C)d2 (x, y) ≤ d1 (x, y) ≤ (1/c)d2 (x, y).
Example 1.24. The norms dp on Rn are topologically equivalent for p = 1, 2, . . . , ∞. To see this note
that d∞ (x, y) ≤ dp (x, y) ≤ n1/p d∞ (x, y) for all x, y ∈ Rn , so dp is equivalent to d∞ for any p ≥ 1.
Definition 1.25. A bijection f : M1 → M2 between two metric spaces is called an isometry if
d2 (f (x), f (y)) = d1 (x, y) for every x, y ∈ M1 . We say M1 , M2 are isometric if there is an isometry
between them.
Isometric metric spaces are essentially the same as metric spaces, just with points relabelled.
Definition 1.26. A bijection f : M1 → M2 between two metric spaces is called a homeomorphism if
U is open in M1 if and only if f (U ) is open in M2 . We say M1 , M2 are homeomorphic if there is a
homeomorphism between them.
Equivalently a homeomorphism is a bijection f : M1 → M2 where both f and f −1 are continuous.
Homeomorphic metric spaces give the same answers for questions involving continuity and open sets.
We say a property is a topological property or a topological invariant of metric spaces if whenever
M has the property so does every metric space homeomorphic to it. In other words the property is
a topological invariant if it is preserved by homeomorphisms. If one space has a certain topological
property and another doesn’t then the two spaces cannot be homeomorphic.
2 Topological Spaces
Definition 2.1. A topology on a set T is a collection T of subsets of T , whose members are called open
sets, such that
The pair (T, T ) is called a topological space; if the topology is implicit from the context, we often
write “the topological space T”. We say a subset F of T is closed if its complement is open.
There is symmetry between open and closed sets. In particular the intersection of any collection of
closed sets is closed and the union of any finite collection of closed sets is closed.4 We could, equivalently,
define a topology in terms of closed sets and call subsets open if their complements are closed.
Examples 2.2. Some examples of topologies:
3 It is not difficult to see that being topologically equivalent gives an equivalence relation on the set of metrics on M .
Any metric is equivalent to itself. If d1 and d2 are equivalent then d2 and d1 are equivalent. If d1 , d2 and d2 , d3 are
equivalent pairs then d1 , d3 are equivalent.S T T S
4 To see this, recall De Morgan’s Laws ( c c c c
i∈I Ai ) = i∈I Ai , ( i∈I Ai ) = i∈I Ai for sets Ai , i ∈ I, where I is some
index set.
MA222 Metric Spaces 5
• If d is a metric on T then the collection of d-open sets is a topology on T . We often refer to this
as the topology induced by the metric.
• The discrete topology on T is the topology in which all subsets of T are open.
• The indiscrete topology on T is the topology in which only ∅ and T are open.
We use our motivation from continuous functions between metric spaces to define a continuous func-
tion between topological spaces.
Definition 2.3. A map f : T1 → T2 between two topological spaces is said to be continuous if for every
open set U ⊂ T2 the set f −1 (U ) is open in T1 .
Continuous functions are useful because they preserve important properties that a topological space
might have. We will see later that continuous functions preserve compactness and connectedness.
Examples 2.4. Any constant map f : T1 → T2 is continuous (the preimage of an open set is either T1
or ∅. The identity map f : T → T is continuous (the preimage of an open set is the same open set in the
same space). Continuous maps between metric spaces are continuous maps between the corresponding
topological spaces.
Theorem 2.5. If T1 , T2 , T3 are topological spaces and f : T1 → T2 and g : T2 → T3 are continuous then
g ◦ f : T1 → T3 is continuous.
Proof. Let U be open in T3 and apply the formula (g ◦ f )−1 (U ) = f −1 (g −1 (U )).
To describe a topology on a set it isn’t necessary to list every element. As a topology is closed under
unions and finite intersections it is enough to list the elements that generate the topology on the set.
Definition 2.6. A basis for a topology T on T is a collection B ⊂ T such that every set from T is a
union of sets from B.
A sub-basis for a topology T on T is a collection B ⊂ T such that every set from T is a union of
finite intersections of sets from B.5
Example 2.7. In a metric space M a set is open if and only if it is a union of open balls. Hence open balls
form a basis for the topology induced by the metric. The collection of open intervals {(a, ∞), (−∞, b) :
a, b ∈ R} is a sub-basis for the Euclidean topology of R.
Proposition 2.8. Let B be a collection of subsets of a set T . Suppose T is the union of sets from B
and the intersection of any two sets from B is a union of sets from B. Then there is a unique topology
on T with basis B. It can also be described as the weakest (or smallest) topology containing B. Its open
sets are exactly the unions of sets from B.
Proposition 2.9. If B is any collection of subsets of a set T then there is a unique topology on T with
sub-basis B. Its open sets are exactly the unions of finite intersections of sets from B.
Just as in metric spaces, we can define new topological spaces from old ones using subsets and
products.
Definition 2.10. If (T, T ) is a topological space and S ⊂ T we define the subspace topology on S as
TS = {(U ∩ S : U ∈ T }. We call (S, TS ) a (topological ) subspace of T .
We say subsets of a space have a particular property (such as compactness or connectedness which
we see later) if they do when regarded as subspaces under the subspace topology.
Definition 2.11. If (T1 , T1 ), (T2 , T2 ) are topological spaces, the product topology on T1 × T2 is the
topology with basis B = {U1 × U2 : U1 ∈ T1 , U2 ∈ T2 }. We call T1 × T2 the topological product of T1 , T2 .
Notice that the open sets of T1 × T2 are not simply the products of open sets from T1 and T2 . We
have to take the unions of all such products to obtain the topology on T1 × T2 . This is because the set
of products of open sets isn’t necessarily closed under unions (though it is under finite intersections).
5 We use the sensible convention that the union of an empty collection of sets is the empty set while the intersection of
Proposition 2.12. Define the first projection of T1 ×T2 onto T1 by π1 (x, y) = x and the second projection
by π2 (x, y) = y. Then the projections of a topological product to its factors are continuous.
A particular use of a sub-basis is that it suffices to check continuity only for the sets in a sub-basis.
Proposition 2.13. Suppose that T1 , T2 are topological spaces and B is a sub-basis for T2 . Then
f : T1 → T2 is continuous if and only if f −1 (U ) is open for every U ∈ B.
Examples 2.15. If f, g : T → R are continuous and c ∈ R, then cf , |f |, max(f, g), min(f, g), f + g, f g
and, if defined, f /g are all continuous. Proof for f + g:
[ [
(f + g)−1 (a, ∞) = f −1 (r, ∞) ∩ g −1 (a − r, ∞),
{x : f (x) > r} ∩ {x : g(x) > a − r} =
r∈R r∈R
which is open. Similarly (f + g)−1 (−∞, b) is open and since (a, ∞), (−∞, b) constitute a sub-basis of
R we see that f + g is continuous.
Homeomorphic topological spaces behave the same for questions phrased in terms of open sets and
continuity.
The idea of topological invariants is useful when we want to distinguish between different spaces. If
one space has a particular topological property but another does not, then they cannot be homeomorphic.
Remark 2.17. A bijection f : T1 → T2 is a homeomorphism if and only if f and f −1 are both continuous.
The inverse of a homeomorphism is a homeomorphism and the composition of two homeomorphisms is
a homeomorphism.
• The closure H of a set H ⊂ T is the set of points x such that every neighbourhood of x meets H,
i.e. every neighbourhood of x has nonempty intersection with H.
Examples 2.21. On R we have (a, b) = [a, b], [a, b]◦ = (a, b), Q = R, Q◦ = ∅. Note though that the
space we are working in is important. In [a, b] we have [a, b]◦ = [a, b] ([a, b] is open in [a, b]) while in (a, b)
we have (a, b) = (a, b) ((a, b) is closed in (a, b)).
Remark 2.22. The following follow easily from the definitions and the proposition:
• H ◦ is the largest open subset contained in H and H is the smallest closed set containing H.
• (H ◦ )◦ = H ◦ and H = H.
• H ⊂ K =⇒ H ◦ ⊂ K ◦ and H ⊂ K.
• (H ∩ K)◦ = H ◦ ∩ K ◦ and H ∪ K = H ∪ K.
Definition 2.23. The boundary ∂H of H is the set of points x whose every neighbourhood meets both
H and its complement.
Example 2.26 (Cantor set). Define C0 = [0, 1], C1 = [0, 1/3] ∪ [2/3, 1], . . . so that at each stage we
remove the open middle third of each of the closed intervals in the union. We define the Cantor set to
be the intersection C = ∞
T
n=0 Cn . Since each Cn is closed it follows C is closed. The only open set
contained in C is ∅ so C has empty interior. C also has uncountably many points.
In many cases the notion of a topological space is too general and we might wish to impose some
additional axioms. Separation axioms allow a way to distinguish between points and sets. One of
the most used separation axioms is the Hausdorff condition. Informally we say a topological space is
Hausdorff if any two points can be separated by neighbourhoods.
Definition 2.27. A topological space T is said to be Hausdorff if for any two distinct points x, y ∈ T
there are disjoint open sets U , V containing x, y respectively.
Proof. If x 6= y let r = d(x, y) > 0. Then the open balls B(x, r/2), B(y, r/2) are disjoint.
Remark 2.29. The property of being Hausdorff is a topological invariant since it is phrased in terms
of open sets.
3 Compactness
Definition 3.1. We say a topological space T is compact if every open cover of T has a finite subcover.
To be precise,
The word ‘every’ in the definition of compactness is important. T is always covered by {T } which is
an open cover with the finite subcover {T }.
Example 3.2. {(a, 1] : 0 < a < 1} is an open cover of (0, 1] which has no finite subcover.
8 MA222 Metric Spaces
Remark 3.3. Suppose T is a subspace of another topological space S. Then the notion of compactness
is the same regardless of whether we think of a cover of T by open subsets of T or by sets open in S.
Proof. Let U be a cover of [a, b] by sets open in R. Let A denote the set of x ∈ [a, b] such that [a, x] can
be covered by a finite subfamily of U. Then a ∈ A so A 6= ∅ and is bounded above by b. Let c = sup A.
Then a ≤ c ≤ b so c ∈ U for some U ∈ U. Since U is open there is δ > 0 such that (c − δ, c + δ) ⊂ U .
Since c = sup A there is x ∈ A with x > c − δ. So,
can be covered by a finite subfamily of U since [a, x] can be covered by a finite subfamily and (c − δ, c + δ)
is covered by the single set U .
So any element of [a, b] that is also contained in (c, c + δ) belongs to A but is strictly bigger than c,
contradicting c = sup A. Consequently (c, c + δ) ∩ [a, b] = ∅, so c = b and [a, b] = [a, c] can be covered
by a finite subfamily of U.
Proof. Let U be a cover of C by sets open in T . Adding to this collection the open set T \ C gives an
open cover of T . This has a finite subcover of T . Remove T \ C if it appears in this collection. We are
then left with a finite subcover of C.
It is sometimes said that compactness is the next best thing to finiteness since we can use open covers
to move from working with infinite collections of sets to finite collections. Try to see this in some of the
proofs.
Proof. This is trivial if T = C. Suppose not and let a ∈ T \ C. Since T is Hausdorff for each x ∈ C
there are disjoint T -open sets Ux containing x and TnVx containing a. Ux form an open cover of C. Let
Ux1 , . . . , Uxn be a finite subcover of C. Then V = i=1 Vxi is an open set containing a and disjoint from
C. Hence a is contained in an open set contained in T \ C, so a ∈ (T \ C)◦ . Hence T \ C ⊂ (T \ C)◦ .
But (T \ C)◦ ⊂ T \ C always holds so (T \ C)◦ = T \ C. Thus T \ C is open and C is closed.
Proof.S Let a ∈ M . Then the balls B(a, r), r > 0 form an open cover of C so there are r1 , . . . , rn with
n
C ⊂ i=1 B(a, ri ) = B(a, max(r1 , . . . , rn )).
Theorem 3.8. Let F be a collection of non empty closed subsets of a compact space T such that every
finite subcollection of F has a non empty intersection. Then the intersection of all sets from F is non
empty.
T
Proof. Write F = {F Si : i c∈ I} for some cindex set I. Suppose i∈I Fi = ∅. Then applying De
Morgan’s laws gives i∈I Fi S= T . Hence Fi , i ∈ I is an open cover of T and so has a T finite subcover
{Ficj : 1 ≤ j ≤ n}. Thus nj=1 Ficj = T so applying De Morgan’s laws again gives nj=1 Fij = ∅,
contradicting the statement of the theorem.
Corollary
T∞3.9. Let F1 ⊃ F2 ⊃ F3 ⊃ . . . be a sequence of non empty closed subsets of a compact space
T . Then k=1 Fk 6= ∅.
A useful property of continuous functions is that they allow us to easily show spaces are compact.
4 Connectedness
Definition 4.1. A topological space T is connected if for every decomposition T = A ∪ B, A ∩ B = ∅
into open subsets A and B, either A or B is empty. Otherwise T is said to be disconnected.
Remark 4.2. It is important to remember that here open means open in T , even if T is a subspace of
some other space.
To get around this difficulty there are other equivalent definitions.
Definition 4.3. A subset T of a set S is separated by U, V ⊂ S if
T ⊂ U ∪ V, U ∩ V ∩ T = ∅, U ∩ T 6= ∅, V ∩ T 6= ∅.
(i) T has a subset which is open, closed and different from ∅ and T .
(ii) There exists a non-constant continuous function from T to a two point discrete space.
Remark 4.10. Together with the description of connected subsets of R this implies the Intermediate
Value Theorem: the image of a continuous function on an interval is another interval.
Example 4.11. Curves in the plane, and graphs of continuous functions on intervals, are connected
subsets of R2 .
The following proposition is very useful for showing connectedness.
Proposition 4.12 (Octopus). If C and Cj , S
j ∈ J, are connected subspaces of a topological space T and
if Cj ∩ C 6= ∅ for each j ∈ J then K = C ∪ j∈J Cj is connected.
Theorem 4.24. Any two points of a connected open subset U of Rn may be joined by a (piecewise
linear) path in U . That is, any open subset U is path-connected.
Proof. Let C be a component of U and x ∈ C. Find δ > 0 such that B(x, δ) ⊂ U . Since B(x, δ) is
connected and C is the union of all connected subsets of U that contain x we have B(x, δ) ⊂ C. Hence
C is open.
Theorem 4.26. A subset U of R is open if and only if it is a union of countably many disjoint open
intervals.
5 Completeness
Definition 5.1. A sequence (xn ) in a metric space M is Cauchy if ∀ ε > 0, ∃ k ∈ N such that n, m ≥
k =⇒ d(xn , xm ) < ε.
Definition 5.2. We say a metric space M is complete if every Cauchy sequence in M converges (to a
point of M ).
√
Intuitively a metric space is complete if it doesn’t have any holes. Q is not complete because 2 (for
example) is missing, though we can choose a Cauchy sequence which converges (in R) to it.
Remark 5.3. Completeness is not a topological invariant. R is complete while (0, 1), homeomorphic to
it, is not. Completeness is a property of the metric, not of the topology.
Proof. Let ε > 0. Then there is nε such that n ≥ nε =⇒ d(xn , x) < ε/2. Hence m, n ≥ nε =⇒
d(xm , xn ) ≤ d(xm , x) + d(xn , x) < ε.
Recall that a subset S of a metric space M is closed if and only if for every sequence xn ∈ S converging
to a point x ∈ M we have x ∈ S.
Proof. Let (xn ) be a Cauchy sequence in S. Then it is Cauchy in M so converges to a point of M , which,
since S is closed, belongs to S. Hence xn → x ∈ S.
Proposition 5.7. A sequence (xn ) in a metric space M is Cauchy if and only if there is a sequence
εn ≥ 0 such that εn → 0 and d(xm , xn ) ≤ εn for m > n.
Proposition 5.8. Let (xn ) be a sequence in a metric space M for which there are τn ≥ 0 such that
P ∞
n=1 τn < ∞ and d(xn , xn+1 ) ≤ τn for each n. Then the sequence xn is Cauchy.
Proposition 5.9. For any set S, the space B(S) of bounded real-valued functions on S with the norm
kf k = supx∈S |f (x)| is complete.
MA222 Metric Spaces 13
Proof. Let (fn ) be a Cauchy sequence. Given ε > 0 there is nε such that m, n ≥ nε =⇒ supx∈S |fm (x)−
fn (x)| < ε. Hence for each fixed x ∈ S there sequence (fn (x)) is Cauchy in R so converges to some f (x) ∈
R. Let n ≥ nε . Then taking the limit m → ∞ in supx∈S |fm (x) − fn (x)| < ε gives kf (x) − fn (x)k ≤ ε
for every x ∈ S, n ≥ nε . Hence (fn ) converges (in supremum norm) to some f ∈ B(S).
Example 5.10. If K is a compact topological space then the space C(K) of continuous functions on K
with the norm kf k = maxx∈K |f (x)| is complete.
Definition 5.11. Let M be a metric space. A set S ⊂ M is dense in M if S = M .
Definition 5.12. A completion of M is a complete metric space N such that M is a dense subspace of
N.
The more modern definition is that a completion of M is a complete metric space N together with
an isometry i of M onto a subset of N such that i(M ) is dense in N .
Example 5.13. Q is dense in R so R is a completion of Q.
Theorem 5.14. Any metric space can be isometrically embedded into a complete metric space. In other
words, for any metric space M , there is an isometry from M onto a subset of a complete metric space.
Corollary 5.15. Any metric space has a completion.
Proof. Embed M into a complete metric space N . Then M (taking the closure in N ) is complete and
M is dense in M . Hence M is a completion of M .
Definition 5.16. Let f : S → S. A point x ∈ S such that f (x) = x is called a fixed point of f .
Definition 5.17. Let M be a metric space. A map f : M → M is a contraction if there is a constant
κ < 1 such that d(f (x), f (y)) ≤ κd(x, y) for every x, y ∈ M .
Theorem 5.18 (Banach’s Contraction Mapping Theorem). If f is a contraction on a complete metric
space M then f has a unique fixed point.
Proof. If f (x) = x and f (y) = y then d(x, y) = d(f (x), f (y)) ≤ κd(x, y) implies d(x, y) = 0, so x = y,
establishing uniqueness.
Choose x0 ∈ M and set xn+1 = f (xn ). Then
The Contraction Mapping Theorem is useful in proving the existence of solutions for complicated
sets of equations, including differential equations, as well as solving them numerically.
Definition 5.19. The diameter of a non empty subset S of a metric space is defined by diam(S) =
supx,y∈S d(x, y).
Theorem 5.20 (Cantor’s Theorem). Let (Fn ) be a decreasing sequence of nonempty
T∞ closed subsets of
a complete metric space, i.e. F1 ⊃ F2 ⊃ · · · , such that diam(Fn ) → 0. Then n=1 Fn 6= ∅.
Proof. Choose xn ∈ Fn . For i ≥ n, xi ∈ Fi ⊂ Fn . For i, j ≥ n we have xi , xj ∈ Fn so d(xi , xj ) ≤
diam(Fn ). Since diam(Fn ) → 0 the sequence (xn ) is Cauchy so, by completeness of M T, converges to
some x ∈ X. Again xi ∈ Fn for i ≥ n so since Fn is closed, we have x ∈ Fn . Hence x ∈ ∞
n=1 Fn .
• (everywhere) dense in M if S = M .
• nowhere dense in M if M \ S is dense in M .
14 MA222 Metric Spaces
• meagre in M (or of the first category in M ) if it is a union of countably many nowhere dense sets.
Example 5.22. In R one point sets are nowhere dense. Hence the countable set Q is meagre in R.
R \ Q = ∅ so Q is not nowhere dense in R.
Theorem 5.23 (Baire’s Category Theorem). A non empty complete metric space is not meagre in
itself.S In other words, if Sn are nowhere dense subsets of a non empty complete metric space M then
∞
M \ n=1 Sn 6= ∅.
Proof. Let Gk = M \ Sk . Gk are dense in M (since Sk are nowhere dense), open (since Sk are closed) so
G1 6= ∅. Choose x1 ∈ G1 and use that G1 is open to find δ1 > 0 such that B(x1 , δ1 ) ⊂ G1 . In general
use the fact that Gk is dense to find xk ∈ Gk ∩ B(xk−1 , δk−1 /2) and then use that Gk is open to find
0 < δk < δk−1 /2 so that B(xk , δk ) ⊂ Gk . T∞
The choice of δk implies that δk → 0 and B(xk , δk ) ⊂ B(xk−1 , δk−1 ). So k=1 B(xk , δk ) 6= ∅ by
Cantor’s Theorem. Let x belong to this set. Then x ∈ B(xk+1 , δk+1 ) ⊂ B(xk , δk ) for each k, so x ∈ Gk
for each k and so x belongs to no Sk .
Baire’s theorem is very useful and can be used in proving existence. Generally if we want to show
that something exists then it suffices to show that the set of objects which are not of the required type
can be given as a union of countably many nowhere dense subsets of a complete metric space. This idea
can, for example, be used to show there is a continuous but nowhere differentiable function [0, 1] → R.
Definition 5.24. A metric space M is totally bounded if for any ǫ > 0 there is a finite set F ⊂ M such
that {B(f, ǫ) : f ∈ F } covers M .
Theorem 5.25. A metric space M is totally bounded iff every sequence in M has a Cauchy subsequence.
Theorem 5.26. A subspace C of a complete metric space M is compact iff closed and totally bounded.
Definition 5.27. A subset S of a metric space C(M ) = {continuous functionsf : M → R} is said to be:
• equicontinuous at x if for every ǫ > 0 there is δ > 0 such that |f (x) − f (y)| < ǫ whenever f ∈ S
and y ∈ B(x, δ).
• equicontinuous if it is equicontinuous at every x ∈ M .
• uniformly equicontinuous if for every ǫ > 0 there is δ > 0 such that |f (x) − f (y)| < ǫ whenever
f ∈ S and d(x, y) < δ.
Theorem 5.28 (Arzelà-Ascoli). Let M be a compact metric space. A subset of C(M ) is totally bounded
iff it is bounded and equicontinuous. proof: examinable, in notes.
Corollary 5.29. Consider a sequence of real-valued continuous functions fn defined on a closed and
bounded interval [a, b]. If this sequence of functions is uniformly bounded and equicontinuous, then there
exists a subsequence fnk which converges uniformly
Closing Remarks
As you can see, there’s quite a lot of material in Metric Spaces, and it’s easy to get confused with all
the abstract definitions. Being able to accurately state definitions and key theorems is important (and
easy marks in the exam), so learn them well. While a smattering of short proofs might be examined, it’s
more likely that you’ll be asked questions about simple examples to test your understanding, so know
how to apply the key theorems as well as what they state.
Above all though, practice is the best medicine, especially through past exam questions; the format
isn’t likely to change all that much compared to previous years. For even more practice questions, you
can turn to W. A. Sutherland’s excellent Introduction to Metric and Topological Spaces, which is very
reasonably priced and contains many examples as well as lots of questions at the right level; there’s
barely anything irrelevant in it, and even if it is irrelevant it will undoubtedly help your understanding.