Course 212: Michaelmas Term 2000 Part I: Limits and Continuity, Open and Closed Sets, Metric Spaces
Course 212: Michaelmas Term 2000 Part I: Limits and Continuity, Open and Closed Sets, Metric Spaces
Course 212: Michaelmas Term 2000 Part I: Limits and Continuity, Open and Closed Sets, Metric Spaces
Contents
1 Review of Real Analysis
1.1 The Real Number System . . . . . . . . . . . . . .
1.2 Infinite Sequences of Real Numbers . . . . . . . . .
1.3 Monotonic Sequences . . . . . . . . . . . . . . . . .
1.4 Subsequences and the Bolzano-Weierstrass Theorem
1.5 Cauchys Criterion for Convergence . . . . . . . . .
1.6 Limits of Functions of a Real Variable . . . . . . .
1.7 Continuous Functions of a Real Variable. . . . . . .
1.8 The Intermediate Value Theorem . . . . . . . . . .
1.9 Continuous Functions on Closed Bounded Intervals
.
.
.
.
.
.
.
.
.
2
2
4
7
8
9
10
13
16
17
19
25
28
29
30
3 Metric Spaces
3.1 Convergence and Continuity in Metric Spaces . .
3.2 Open Sets in Metric Spaces . . . . . . . . . . . .
3.3 Closed Sets in a Metric Space . . . . . . . . . . .
3.4 Continuous Functions and Open and Closed Sets
3.5 Homeomorphisms . . . . . . . . . . . . . . . . . .
3.6 Complete Metric Spaces . . . . . . . . . . . . . .
3.7 The Completion of a Metric Space . . . . . . . . .
32
33
35
37
39
41
41
43
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
1.1
12. (the Trichotomy Law ) if x and y are real numbers then one and only
one of the three statements x < y, x = y and y < x is true,
13. if x, y and z are real numbers and if x < y and y < z then x < z,
14. if x, y and z are real numbers and if x < y then x + z < y + z,
15. if x and y are real numbers which satisfy 0 < x and 0 < y then 0 < xy,
The operations of subtraction and division are defined in terms of addition
and multiplication in the obvious fashion: xy = x+(y) for all real numbers
x and y, and x/y = xy 1 provided that y 6= 0. The absolute value |x| of a
real number x is defined by
n
x
if x 0;
|x| =
x if x < 0.
Note that |x| 0 for all real numbers x and that |x| = 0 if and only if x = 0.
Also |x + y| |x| + |y| and |xy| = |x||y| for all real numbers x and y.
Let D be a subset of R. A real number u is said to be an upper bound of
the set D if x u for all x D. The set D is said to be bounded above if
such an upper bound exists.
Definition Let D be some set of real numbers which is bounded above.
A real number s is said to be the least upper bound (or supremum) of D
(denoted by sup D) if s is an upper bound of D and s u for all upper
bounds u of D.
Example Indeed the real number 2 is the least upper bound of the sets
{x R : x 2} and {x R : x < 2}. Note that the first of these sets
contains its least upper bound, whereas the second set does not.
The axioms (1)(15) listed above describing the algebraic and ordering
properties of the real number system are not in themselves sufficient to fully
characterize the real number system. (Indeed any property of real numbers
that could be derived solely from these axioms would be equally valid for
rational numbers.) We require in addition the following axiom:
the Least Upper Bound Axiom: if D is any non-empty subset
of R which is bounded above then there exists a least upper
bound sup D for the set D.
1.2
Example The infinite sequence a1 , a2 , a3 , . . . defined by an = n is not convergent. To prove this formally, we suppose that it were the case that
lim an = l for some real number l, and derive from this a contradiction. On
n+
1
2
1
2
=1
for all n N , contradicting the fact that un un+1 = 2 for all n. Thus the
sequence cannot converge.
Definition We say that an infinite sequence a1 , a2 , a3 , . . . of real numbers is
bounded above if there exists some real number B such that an B for all n.
Similarly we say that this sequence is bounded below if there exists some real
number A such that an A for all n. A sequence is said to be bounded if
it is bounded above and bounded below, so that there exist real numbers A
and B such that A an B for all n.
Lemma 1.1 Every convergent sequence of real numbers is bounded.
Proof Let a1 , a2 , a3 , . . . be a sequence of real numbers converging to some
real number l. On applying the formal definition of convergence (with = 1),
we deduce the existence of some natural number N such that |an l| < 1
for all n N . But then A an B for all n, where A is the minimum
of a1 , a2 , . . . , aN 1 and l 1, and B is the maximum of a1 , a2 , . . . , aN 1 and
l + 1.
Proposition 1.2 Let a1 , a2 , a3 , . . . and b1 , b2 , b3 , . . . be convergent infinite sequences of real numbers. Then the sum, difference and product of these sequences are convergent, and
lim (an + bn ) =
n+
lim (an bn ) =
lim an + lim bn ,
n+
n+
lim an lim bn ,
n+
lim (an bn ) =
lim an
lim bn .
n+
n+
n+
n+
n+
n+
n+
n+
n+
n+
n+
n+
n+
Thus an bn lm as n +.
Next we show that if w1 , w2 , w3 , . . . is an infinite sequence of non-zero
real numbers, and if wn 1 as n + then 1/wn 1 as n +. Let
> 0 be given. Let 0 be the minimum of 21 and 12 . Then there exists some
natural number N such that |wn 1| < 0 whenever n N . Thus if n N
then |wn 1| < 21 and 12 < wn < 23 . But then
1
1 wn |wn 1|
wn 1 = wn = |wn | 2|wn 1| < .
We deduce that 1/wn 1 as n +. If we apply this result with wn =
bn /m, where m 6= 0, we deduce that m/bn 1, and thus 1/bn 1/m as
n +. The result we have already obtained for products of sequences
then enables us to deduce that an /bn l/m as n +.
Example On using Proposition 1.2, we see that
lim (6 (4/n))
6n2 4n
6 (4/n)
6
n+
lim
= lim
=
= = 2.
2
2
2
n+ 3n + 7
n+ 3 + (7/n )
lim (3 + (7/n ))
3
n+
1.3
Monotonic Sequences
An infinite sequence a1 , a2 , a3 , . . . of real numbers is said to be strictly increasing if an+1 > an for all n, strictly decreasing if an+1 < an for all n,
non-decreasing if an+1 an for all n, or non-increasing if an+1 an for all n.
A sequence satisfying any one of these conditions is said to be monotonic;
thus a monotonic sequence is either non-decreasing or non-increasing.
Theorem 1.3 A non-decreasing sequence of real numbers that is bounded
above is convergent. Similarly a non-increasing sequence of real numbers
that is bounded below is convergent.
Proof Let a1 , a2 , a3 , . . . be a non-decreasing sequence of real numbers that
is bounded above. It follows from the Least Upper Bound Axiom that there
exists a least upper bound l for the set {an : n N}. We claim that the
sequence converges to l.
Let > 0 be given. We must show that there exists some natural number N such that |an l| < whenever n N . Now l is not an upper
bound for the set {an : n N} (since l is the least upper bound), and therefore there must exist some natural number N such that aN > l . But then
l < an l whenever n N , since the sequence is non-decreasing and
7
a2n 2
2an
a2 + 2
= n
and a2n+1 = a2n (a2n 2) +
2an
a2n 2
2an
2
=2+
a2n 2
2an
2
.
It therefore follows by induction on n that an > 0 and a2n > 2 for all natural
numbers n. But then an+1 < an for all n, and thus the sequence a1 , a2 , a3 , . . .
is decreasing and bounded below. It follows from Theorem 1.3 that this
sequence converges to some real number . Also an > 1 for all n (since an > 0
and a2n > 2), and therefore 1. But then, on applying Proposition 1.2,
we see that
2 2
a2n 2
.
= lim an+1 = lim an
=
n+
n+
2an
2
Thus 2 = 2, and so = 2.
1.4
(i.e., S is the set of all natural numbers n with the property that an is greater
than or equal to all the succeeding members of the sequence).
First let us suppose that the set S is infinite. Arrange the elements of S in
increasing order so that S = {n1 , n2 , n3 , n4 , . . .}, where n1 < n2 < n3 < n4 <
. It follows from the manner in which the set S was defined that an1
an2 an3 an4 . Thus an1 , an2 , an3 , . . . is a non-increasing subsequence
of the original sequence a1 , a2 , a3 , . . .. This subsequence is bounded below
(since the original sequence is bounded). It follows from Theorem 1.3 that
an1 , an2 , an3 , . . . is a convergent subsequence of the original sequence.
Now suppose that the set S is finite. Choose a natural number n1 which
is greater than every natural number belonging to S. Then n1 does not
belong to S. Therefore there must exist some natural number n2 satisfying
n2 > n1 such that an2 > an1 . Moreover n2 does not belong to S (since n2 is
greater than n1 and n1 is greater than every natural number belonging to S).
Therefore there must exist some natural number n3 satisfying n3 > n2 such
that an3 > an2 . We can continue in this way to construct (by induction on j)
a strictly increasing subsequence an1 , an2 , an3 , . . . of our original sequence.
This increasing subsequence is bounded above (since the original sequence is
bounded) and thus is convergent, by Theorem 1.3. This completes the proof
of the Bolzano-Weierstrass Theorem.
1.5
Proof First we show that convergent sequences are Cauchy sequences. Let
x1 , x2 , x3 , . . . be a convergent sequence, and let l = lim xj . Let > 0 be
n+
given. Then there exists some natural number N such that |xn l| < 12 for
all n N . Thus if m N and n N then |xm l| < 12 and |xn l| < 21 ,
and hence
|xm xn | = |(xm l) (xn l)| |xm l| + |xn l| < .
Thus the sequence x1 , x2 , x3 , . . . is a Cauchy sequence.
Conversely we must show that any Cauchy sequence x1 , x2 , x3 , . . . is convergent. Now Cauchy sequences are bounded, by Lemma 1.5. The sequence
x1 , x2 , x3 , . . . therefore has a convergent subsequence xn1 , xn2 , xn3 , . . ., by the
Bolzano-Weierstrass Theorem (Theorem 1.4). Let l = limj+ xnj . We
claim that the sequence x1 , x2 , x3 , . . . itself converges to l.
Let > 0 be given. Then there exists some natural number N such
that |xn xm | < 21 whenever m N and n N (since the sequence is a
Cauchy sequence). Let j be chosen large enough to ensure that nj N and
|xnj l| < 12 . Then
|xn l| |xn xnj | + |xnj l| < 12 + 12 =
whenever n N , and thus xn l as n +, as required.
1.6
Note that lim f (x) = l if and only if lim f (s + h) = l: this follows directly
xs
h0
Lemma 1.7 Let f : D R be a real-valued function defined over some subset D of R, and let s be a limit point of D. Then the limit lim f (x), if it
xs
exists, is unique.
Proof Suppose that lim f (x) = l and lim f (x) = m. We must show that
xs
xs
l = m. Let > 0 be given. Then there exist 1 > 0 and 2 > 0 such that
|f (x) l| < whenever x D satisfies 0 < |x s| < 1 and |f (x) m| <
whenever x D satisfies 0 < |x s| < 2 . Choose x D satisfying 0 <
|x s| < , where is the minimum of 1 and 2 . (This is possible since s is
a limit point of D.) Then |f (x) l| < and |f (x) m| < , and hence
|l m| |l f (x)| + |f (x) m| < 2
by the Triangle Inequality. Since |l m| < 2 for all > 0, we conclude that
l = m, as required.
Example We show that lim 14 x2 = 0. Let > 0 be given. Suppose that
x0
= 31 . Then > 0. Moreover if 0 < |x| < then |3x cos(1/x)| < , as
required.
Proposition 1.8 Let f : D R and g: D R be functions defined over
some subset D of R. Let s be a limit point of D. Suppose that lim f (x) and
xs
lim g(x) exist. Then lim (f (x) + g(x)), lim (f (x) g(x)) and lim (f (x)g(x))
xs
xs
xs
xs
exist, and
lim (f (x) + g(x)) = lim f (x) + lim g(x),
xs
xs
xs
xs
xs
xs
xs
xs
xs
If in addition g(x) 6= 0 for all x D and lim g(x) 6= 0, then lim f (x)/g(x)
xs
xs
exists, and
lim f (x)
f (x)
xs
=
.
lim
xs g(x)
lim g(x)
xs
11
xs
must prove that there exists some > 0 such that |f (x) + g(x) (l + m)| <
for all x D satisfying 0 < |x s| < . Now there exist 1 > 0 and 2 > 0
such that |f (x) l| < 12 for all x D satisfying 0 < |x s| < 1 , and
|g(x) m| < 21 for all x D satisfying 0 < |x s| < 2 , since l = lim f (x)
xs
0 < |x s| < then |f (x) l| < 21 and |g(x) m| < 12 , and hence
|f (x) + g(x) (l + m)| |f (x) l| + |g(x) m| < 21 + 12 =
This shows that lim (f (x) + g(x)) = l + m.
xs
Let c be some real number. We show that lim (cg(x)) = cm. The case
xs
when c = 0 is trivial. Suppose that c 6= 0. Let > 0 be given. Then there
exists some > 0 such that |g(x) m| < /|c| whenever 0 < |x s| < .
But then |cg(x) cm| = |c||g(x) m| < whenever 0 < |x s| < . Thus
lim (cg(x)) = cm.
xs
If we combine this result, for c = 1, with the previous result, we see
that lim (g(x)) = m, and therefore lim (f (x) g(x)) = l m.
xs
xs
Next we show that if p: D R and q: D R are functions with the
property that lim p(x) = lim q(x) = 0, then lim (p(x)q(x)) = 0. Let > 0 be
xs
xs
xs
given. Then there exist real numbers 1 >0 and 2 > 0 such that |p(x)| <
whenever 0 < |x s| < 1 and |q(x)| < whenever 0 < |x s| < 2 . Let
be the minimum of 1 and 2 . If 0 < |x s| < then |p(x)q(x)| < . We
deduce that lim (p(x)q(x)) = 0.
xs
We can apply this result with p(x) = f (x) l and q(x) = g(x) m for
all x D. Using the results we have already obtained, we see that
0 = lim (p(x)q(x)) = lim (f (x)g(x) f (x)m lg(x) + lm)
xs
xs
xs
xs
xs
xs
0 be the minimum of 12 and 12 . Then there exists some > 0 such that
|h(x) 1| < 0 whenever 0 < |x s| < . Thus if 0 < |x s| < then
|h(x) 1| < 21 and 21 < h(x) < 32 . But then
1
h(x) 1 |h(x) 1|
h(x) 1 = h(x) = |h(x)| < 2|h(x) 1| < .
12
We deduce that lim 1/h(x) = 1. If we apply this result with h(x) = g(x)/m,
xs
where m 6= 0, we deduce that lim m/g(x) = 1, and thus lim 1/g(x) = 1/m.
xs
xs
The result we have already obtained for products of functions then enables
us to deduce that lim (f (x)/g(x)) l/m.
xs
1.7
The following lemma describes the relationship between limits and continuity.
Lemma 1.9 Let D be a subset of R, and let s D.
(i) Suppose that s is a limit point of D. Then a function f : D R with
domain D is continuous at s if and only if lim f (x) = f (s);
xs
|f |(x) = |f (x)|.
Remark Proposition 1.10 can also be proved directly from the formal definition of continuity by a straightforward adaptation of the proof of Proposition 1.8. Indeed suppose that f : D R and g: D R are continuous at
s, where s D. We show that f + g is continuous at s. Let > 0 be given.
Then there exist 1 > 0 and 2 > 0 such that |f (x) f (s)| < 21 for all
14
and that the function g is continuous at l. Then lim g(f (x)) = g(l).
xs
Proof Let > 0 be given. Then there exists some > 0 such that |g(u)
g(l)| < for all u E satisfying |u l| < . But then there exists > 0
such that |f (x) l| < for all x D satisfying 0 < |x s| < . Thus if
0 < |x s| < then |g(f (x)) g(l)| < . Hence lim g(f (x)) g(l).
xs
15
1.8
Theorem 1.14 (The Intermediate Value Theorem) Let a and b be real numbers satisfying a < b, and let f : [a, b] R be a continuous function defined
on the interval [a, b]. Let c be a real number which lies between f (a) and f (b)
(so that either f (a) c f (b) or else f (a) c f (b).) Then there exists
some s [a, b] for which f (s) = c.
Proof We first prove the result in the special case in which c = 0 and
f (a) 0 f (b). We must show that there exists some s [a, b] for which
f (s) = 0. Let S be the subset of [a, b] defined by S = {x [a, b] : f (x) 0}.
The set S is non-empty and bounded above (since a S and b is an upper
bound for the set S). Therefore there exists a least upper bound sup S for
the set S. Let s = sup S. Then a s b, since a S and S [a, b]. We
show that f (s) = 0.
Now if it were the case that f (s) 6= 0. An application of the definition
of continuity (with 0 < |f (s)|) shows that there exists some > 0 such
that f (x) has the same sign as f (s) for all x [a, b] satisfying |x s| < .
(Thus if f (s) > 0 then f (x) > 0 whenever |x s| < , or if f (s) < 0 then
f (x) < 0 whenever |x s| < .)
In particular, suppose that it were the case that f (s) < 0. Then s < b
(since f (b) 0 by hypothesis), and hence f (x) < 0, and thus x S, for some
x [a, b] satisfying s < x < s + . But this would contradict the definition
of s.
Next suppose that it were the case that f (s) > 0. Then s > a (since
f (a) 0 by hypothesis), and hence f (x) > 0, and thus x 6 S, for all
x [a, b] satisfying x > s . But then f (x) > 0 for all x s , and
thus s would be an upper bound of the set S, which also contradicts
the definition of s. The only remaining possibility is that f (s) = 0, which is
what we are seeking to prove.
The result in the general case follows from that in the case c = 0 by
applying the result in this special case to the function x 7 f (x) c when
f (a) c f (b), and to the function x 7 cf (x) when f (a) c f (b).
Corollary 1.15 Given any positive real number b and natural number n,
there exists some positive real number a satisfying an = b.
Proof Let f (x) = xn b, and let c = max(b, 1). Then f (0) < 0 and
f (c) 0. It follows from the Intermediate Value Theorem (Theorem 1.14)
that f (a) = 0 for some real number a satisfying 0 < a c. But then an = b,
as required.
16
1.9
We give two proofs of this theorem. The first uses the Bolzano-Weierstrass
Theorem which states that every bounded sequence of real numbers possesses
a convergent subsequence. The second makes use of the Least Upper Bound
Axiom.
1st Proof Suppose that the function were not bounded on the interval [a, b].
Then there would exist a sequence x1 , x2 , x3 , . . . of real numbers in the interval
[a, b] such that |f (xn )| > n for all n. The bounded sequence x1 , x2 , x3 , . . .
would possess a convergent subsequence xn1 , xn2 , xn3 , . . ., by the BolzanoWeierstrass Theorem (Theorem 1.4). Moreover the limit l of this subsequence
would belong to [a, b]. But then f (xnk ) f (l) as k +, by Lemma 1.12.
It follows that there exists some natural number N with the property that
|f (xnk ) f (l)| < 1 whenever k N , so that |f (xnk )| |f (l)| + 1 whenever
k N . But this is a contradiction, since |f (xnk )| > nk for all k and nk
increases without limit as k +. Thus the function f is indeed bounded
on the closed interval [a, b].
2nd Proof Define S = { [a, b] : f is bounded on [a, ]}. Clearly a S
and S [a, b]. Thus the set S is non-empty and bounded. It follows from
the Least Upper Bound axiom that there exists a least upper bound for the
set S. Let s = sup S. Then s [a, b]. The function f is continuous at s.
Therefore there exists some > 0 such that |f (x) f (s)| < 1, and thus
|f (x)| < |f (s)| + 1, for all x [a, b] satisfying |x s| < .
Now s is not an upper bound for the set S and hence s < s for
some S. But then the function f is bounded on [a, ] (since S) and
on [, s] (since |f (s)| + 1 is an upper bound on this interval). We conclude
that f is bounded on [a, s], and thus s S. Moreover if it were the case that
s < b then the function f would be bounded on [a, x], and thus x S, for
all x [a, b] satisfying s < x < s + , contradicting the definition of s as the
least upper bound of the set S. Thus s = b. But then b S, so that the
function f is bounded on the interval [a, b] as required.
Theorem 1.19 Let f : [a, b] R be a continuous real-valued function defined
on the interval [a, b]. Then there exist u, v [a, b] with the property that
f (u) f (x) f (v) for all x [a, b].
Proof Let C = sup{f (x) : a x b}. If there did not exist any v [a, b] for
which f (v) = C then the function x 7 1/(C f (x)) would be a continuous
function on the interval [a, b] which was not bounded above on this interval,
thus contradicting Theorem 1.18. Thus there must exist some v [a, b] with
the property that f (v) = C. A similar proof shows that there must exist some
u [a, b] with the property that g(u) = c, where c = inf{f (x) : a x b}.
But then f (u) f (x) f (v) for all x [a, b], as required.
18
=
=
=
=
(x1 + y1 , x2 + y2 , . . . , xn + yn ),
(x1 y1 , x2 y2 , . . . , xn yn ),
(x1 , x2 , . . . , xn ),
x1 y1 + x2 y2 + + xn yn ,
q
|x| =
x21 + x22 + + x2n .
The quantity x y is the scalar product (or inner product) of x and y, and
the quantity |x| is the Euclidean norm of x. Note that |x|2 = x x. The
Euclidean distance between two points x and y of Rn is defined to be the
Euclidean norm |y x| of the vector y x.
Lemma 2.1 (Schwarz Inequality) Let x and y be elements of Rn . Then
|x y| |x||y|.
Proof We note that |x + y|2 0 for all real numbers and . But
|x + y|2 = (x + y).(x + y) = 2 |x|2 + 2x y + 2 |y|2 .
Therefore 2 |x|2 + 2x y + 2 |y|2 0 for all real numbers and . In
particular, suppose that = |y|2 and = x y. We conclude that
|y|4 |x|2 2|y|2 (x y)2 + (x y)2 |y|2 0,
so that (|x|2 |y|2 (x y)2 ) |y|2 0. Thus if y 6= 0 then |y| > 0, and hence
|x|2 |y|2 (x y)2 0.
But this inequality is trivially satisfied when y = 0. Thus |x y| |x||y|, as
required.
19
It follows easily from Schwarz Inequality that |x + y| |x| + |y| for all
x, y Rn . For
|x + y|2 = (x + y).(x + y) = |x|2 + |y|2 + 2x y
|x|2 + |y|2 + 2|x||y| = (|x| + |y|)2 .
It follows that
|z x| |z y| + |y x|
for all points x, y and z of Rn . This important inequality is known as the
Triangle Inequality. It expresses the geometric fact the the length of any
triangle in a Euclidean space is less than or equal to the sum of the lengths
of the other two sides.
Definition A sequence x1 , x2 , x3 , . . . of points in Rn is said to converge to a
point p if and only if the following criterion is satisfied:
given any real number satisfying > 0 there exists some natural
number N such that |p xj | < whenever j N .
We refer to p as the limit lim xj of the sequence x1 , x2 , x3 , . . . .
j+
j+
|xj p|2 =
(xji pi )2 < n(/ n)2 = 2 ,
i=1
so that xj p as j +.
Definition A sequence x1 , x2 , x3 , . . . of points in Rn is said to be a Cauchy
sequence if and only if the following criterion is satisfied:
given any real number satisfying > 0 there exists some natural
number N such that |xj xk | < whenever j N and k N .
20
Proof Let > 0 be given. Then there exists some > 0 such that
|f (x) f (p)| < for all x X satisfying |x p| < , since the function f is continuous at p. Also there exists some natural number N such
that |xj p| < whenever j N , since the sequence x1 , x2 , x3 , . . . converges to p. Thus if j N then |f (xj ) f (p)| < . Thus the sequence
f (x1 ), f (x2 ), f (x3 ), . . . converges to f (p), as required.
Let X and Y be a subsets of Rm and Rn respectively, and let f : X Y
be a function from X to Y . Then
f (x) = (f1 (x), f2 (x), . . . , fn (x))
for all x X, where f1 , f2 , . . . , fn are functions from X to R, referred to as
the components of the function f .
Proposition 2.6 Let X and Y be a subsets of Rm and Rn respectively. A
function f : X Y is continuous if and only if its components are continuous.
Proof Note that the ith component fi of f is given by fi = i f , where
i : Rn R is the continuous function which maps (y1 , y2 , . . . , yn ) Rn onto
its ith coordinate yi . Now any composition of continuous functions is continuous, by Lemma 2.4. Thus if f is continuous, then so are the components
of f .
Conversely suppose that the components of f are continuous at p X.
Let > 0 be given. Thenthere exist positive real numbers 1 , 2 , . . . , n such
that |fi (x) fi (p)| < / n for x X satisfying |x p| < i . Let be the
minimum of 1 , 2 , . . . , n . If x X satisfies |x p| < then
2
|f (x) f (p)| =
n
X
i=1
Example The interval (1, 1) and the real line R are homeomorphic. Indeed
if h: (1, 1) R is defined by h(t) = tan(t/2), then h is a homeomorphism
from (1, 1) to R.
Example Let B n = {x Rn : |x| < 1}, and let : B n Rn be the function
defined by
1
(x) =
x.
1 |x|2
The function is a bijection from B n to Rn whose inverse 1 : Rn B is
given by
p
1 + 1 + 4|x|2
x if x 6= 0;
1 (x) =
2|x|2
0
if x = 0.
n
n
1
n
We claim that : B R and : R B are continuous. Now 1 (x) =
f (|x|)x for all x Rn , where f : R R is the continuous function defined by
(
1 + 1 + 4t2
if t 6= 0;
f (t) =
2t2
1
if t = 0.
(The continuity of this function at 0 follows from a straightforward application of lHopitals rule.) Straighforward applications of Lemma 2.4,
Proposition 2.6 and Proposition 2.8 show that and 1 are continuous.
Thus : B n Rn is a homeomorphism from B n to Rn . In particular, on
setting n = 1, we conclude that the function k: (1, 1) R defined by
k(t) = t/(1 t2 ) for all t (1, 1) is a homeomorphism from (1, 1) to R.
Example Let S n denote the n-sphere, defined by S n = {x Rn+1 : |x| = 1},
and let p be the point of S n with coordinates (0, 0, . . . , 0, 1). We show that
S n \ {p} is homeomorphic to Rn . Define a function h: S n \ {p} Rn by
x2
xn
x1
h(x1 , x2 , . . . , xn , xn+1 ) =
,
,...,
.
1 xn+1 1 xn+1
1 xn+1
The function h is a bijection whose inverse h1 : Rn S n \ {p} is given by
2y1
2y2
2yn
|y|2 1
1
h (y1 , y2 , . . . , yn ) =
,
,..., 2
,
|y|2 + 1 |y|2 + 1
|y| + 1 |y|2 + 1
(where |y|2 = y12 + y22 + + yn2 ). A straightforward application of Propositions 2.6 and 2.8 shows that the functions h and h1 are continuous. Thus
h: S n \ {p} Rn is a homeomorphism. This homeomorphism represents
stereographic projection from S n \ {p} to Rn .
24
Let X and Y be subsets of Rm and Rn , and let h: X Y be a homeomorphism. A sequence x1 , x2 , x3 , . . . of points of X converges in X to some
point p if and only if the sequence h(x1 ), h(x2 ), h(x3 ), . . . converges in Y to
h(p). (This follows on applying Lemma 2.5 to h: X Y and h1 : Y X.)
Also a function f : Y Z mapping Y into some subset Z of Rp is continuous
if and only if f h: X Z is continuous, and a function g: W X mapping
some subset W of Rk into X is continuous if and only if h g: W Y is
continuous.
2.1
{(x1 , x2 , . . . , xn ) Rn : xi < ci }
1
4
for some n Z}
27
1
2
about
2.2
SA
SA
SA
2.3
2.4
30
31
Metric Spaces
Example Let C([a, b]) denote the set of all continuous real-valued functions
on the closed interval [a, b], where a and b are real numbers satisfying a < b.
Then C([a, b]) is a metric space with respect to the distance function d, where
d(f, g) = supt[a,b] |f (t) g(t)| for all continuous functions f and g from X
to R. (Note that, for all f, g C([a, b]), f g is a continuous function
on [a, b] and is therefore bounded on [a, b]. Therefore the distance function d
is well-defined.)
3.1
3.2
(i) the empty set and the whole set X are both open sets;
(ii) the union of any collection of open sets is itself an open set;
(iii) the intersection of any finite collection of open sets is itself an open set.
Proof The empty set is an open set by convention. Moreover the definition
of an open set is satisfied trivially by the whole set X. Thus (i) is satisfied.
Let A be any collection of open sets in X, and let U denote the union of
all the open sets belonging to A. We must show that U is itself an open set.
Let x U . Then x V for some open set V belonging to the collection A.
Therefore there exists some > 0 such that BX (x, ) V . But V U , and
thus BX (x, ) U . This shows that U is open. Thus (ii) is satisfied.
Finally let V1 , V2 , V3 , . . . , Vk be a finite collection of open sets in X, and let
V = V1 V2 Vk . Let x V . Now x Vj for all j, and therefore there
exist strictly positive real numbers 1 , 2 , . . . , k such that BX (x, j ) Vj
for j = 1, 2, . . . , k. Let be the minimum of 1 , 2 , . . . , k . Then > 0.
(This is where we need the fact that we are dealing with a finite collection
of open sets.) Moreover BX (x, ) BX (x, j ) Vj for j = 1, 2, . . . , k, and
thus BX (x, ) V . This shows that the intersection V of the open sets
V1 , V2 , . . . , Vk is itself open. Thus (iii) is satisfied.
Remark For each natural number n, let Vn denote the open set in the
complex plane C defined by
Vn = {z C : |z| < 1/n}.
The intersection of all of these sets (as n ranges over the set of natural
numbers) consists of the set {0}, and this set is not an open subset of the
complex plane. This demonstrates that an intersection of an infinite number
of open sets in a metric space is not necessarily an open set.
Lemma 3.7 Let X be a metric space. A sequence x1 , x2 , x3 , . . . of points
in X converges to a point p if and only if, given any open set U which
contains p, there exists some natural number N such that xj U for all
j N.
Proof Let x1 , x2 , x3 , . . . be a sequence satisfying the given criterion, and let
> 0 be given. The open ball BX (p, ) of radius about p is an open set
(see Lemma 3.4). Therefore there exists some natural number N such that,
if j N , then xj BX (p, ), and thus d(xj , p) < . Hence the sequence (xj )
converges to p.
36
3.3
{x X : d(x, x0 ) r}
are closed. In particular, the set {x0 } consisting of the single point x0 is a
closed set in X.
Let A be some collection of subsets of a set X. Then
[
\
\
[
X\
S=
(X \ S),
X\
S=
(X \ S)
SA
SA
SA
SA
(i) the empty set and the whole set X are both closed sets;
(ii) the intersection of any collection of closed sets in X is itself a closed
set;
(iii) the union of any finite collection of closed sets in X is itself a closed
set.
Lemma 3.10 Let F be a closed set in a metric space X and let (xj : j N)
be a sequence of points of F . Suppose that xj p as j +. Then p also
belongs to F .
Proof Suppose that the limit p of the sequence were to belong to the complement X \ F of the closed set F . Now X \ F is open, and thus it would
follow from Lemma 3.7 that there would exist some natural number N such
that xj X \ F for all j N , contradicting the fact that xj F for all j.
This contradiction shows that p must belong to F , as required.
Definition Let A be a subset of a metric space X. The closure A of A is
the intersection of all closed subsets of X containing A.
Let A be a subset of the metric space X. Note that the closure A of A
is itself a closed set in X, since the intersection of any collection of closed
subsets of X is itself a closed subset of X (see Proposition 3.9). Moreover if
F is any closed subset of X, and if A F , then A F . Thus the closure A
of A is the smallest closed subset of X containing A.
Lemma 3.11 Let X be a metric space with distance function d, let A be a
subset of X, and let x be a point of X. Then x belongs to the closure A of
A if and only if, given any > 0, there exists some point a of A such that
d(x, a) < .
Proof Let x be a point of X with the property that, given any > 0, there
exists some a A satisfying d(x, a) < . Let F be any closed subset of X
containing A. If x did not belong to F then there would exist some > 0
with the property that BX (x, ) F = , where BX (x, ) denotes the open
ball of radius about x. But this would contradict the fact that BX (x, ) A
is non-empty for all > 0. Thus the point x belongs to every closed subset F
of X that contains A, and therefore x A, by definition of the closure A of
A.
Conversely let x A, and let > 0 be given. Let F be the complement
X \ BX (x, ) of BX (x, ). Then F is a closed subset of X, and the point x
does not belong to F . If BX (x, ) A = then A would be contained in F ,
and hence x F , which is impossible. Therefore there exists a A satisfying
d(x, a) < , as required.
38
3.4
Also a subset of a metric space is closed if and only if its complement is open.
The following result therefore follows directly from Proposition 3.12.
Corollary 3.13 Let X and Y be metric spaces, and let f : X Y be a
function from X to Y . The function f is continuous if and only if f 1 (G)
is a closed set in X for every closed set G in Y .
Let f : X Y be a continuous function from a metric space X to a metric
space Y . Then, for any point y of Y , the set {x X : f (x) = y} is a closed
subset of X. This follows from Corollary 3.13, together with the fact that
the set {y} consisting of the single point y is a closed subset of the metric
space Y .
Let X be a metric space, and let f : X R be a continuous function from
X to R. Then, given any real number c, the sets
{x X : f (x) > c},
{x X : f (x) < c}
{x X : f (x) c},
{x X : f (x) = c}
are closed subsets of X. Also, given real numbers a and b satisfying a < b,
the set
{x X : a < f (x) < b}
is an open subset of X, and the set
{x X : a f (x) b}
is a closed subset of X.
Similar results hold for continuous functions f : X C from X to C.
Thus, for example,
{x X : |f (x)| < R},
{x X : |f (x)| > R}
{x X : |f (x)| R},
{x X : |f (x)| = R}
40
3.5
Homeomorphisms
3.6
+ =
2 2
whenever j N and k N .
Definition A metric space (X, d) is said to be complete if every Cauchy
sequence in X converges to some point of X.
41
The spaces R and C are complete metric spaces with respect to the distance function given by d(z, w) = |z w|. Indeed this result is Cauchys
Criterion for Convergence. However the space Q of rational numbers (with
distance function d(q, r) = |q r|) is not complete. Indeed one can construct
an
infinite sequence q1 , q2 , q3 , . . . of rational numbers which converges (in R)
to 2. Such a sequence of rational numbers is a Cauchy sequence in both R
and Q. However this Cauchy
sequence does not converge to an point of the
|pj q| =
n
X
((pj )m qm )2 < 2 .
m=1
42
3.7
43
Lemma 3.19 Let X be a metric space with distance function d, and let (xj ),
(yj ) and (zj ) be Cauchy sequences of points in X. Then
0 lim d(xj , zj ) lim d(xj , yj ) + lim d(yj , zj ).
j+
j+
j+
Proof This follows immediately on taking limits of both sides of the Triangle
Inequality.
Lemma 3.20 Let X be a metric space with distance function d, and let (xj ),
(yj ) and (zj ) be Cauchy sequences of points in X. Suppose that
lim d(xj , yj ) = 0 and lim d(yj , zj ) = 0.
j+
j+
j+
j+
j+
j+
j+
lim
j+
j+
j+
d(x0j , yj0 ).
Similarly lim d(x0j , yj0 ) lim d(xj , yj ). It follows that lim d(xj , yj ) =
lim
j+
j+
0
d(xj , yj0 ), as
j+
j+
required.
j+
44
the element y of X
of the sequence x1 , x2 , x3 , . . ..
Let > 0 be given. Then there exists some positive integer M such that
M > 3/ and d(
xp , xq ) < 31 whenever p M and q M . It follows from
that if p M and q M then
the definition of the distance function on X
1
d(xp,k , xq,k ) < 3 for all sufficiently large natural numbers k. If p M and
k N (p) then
d(yp , xp,k ) = d(xp,N (p) , xp,k ) < 1/p 1/M < 13
It follows that if p M and q M , and if k is sufficiently large, then
d(yp , xp,k ) < 13 , d(yq , xq,k ) < 13 , and d(xp,k , xq,k ) < 13 , and hence d(yp , yq ) <
. We conclude that the sequence y1 , y2 , y3 , . . . of points of X is indeed a
Cauchy sequence.
which is represented by the Cauchy sequence
Let y be the element of X
y1 , y2 , y3 , . . . of points of X, and, for each natural number m, let ym be the
represented by the constant sequence ym , ym , ym , . . . in X. Now
element of X
d(
y , ym ) = lim d(yp , ym ),
p+
45
and therefore d(
y , ym ) 0 as m +. Also
d(
ym , xm ) = lim d(xm,N (m) , xm,j )
j+
1
m
and hence d(
ym , xm ) 0 as m +. It follows from this that d(
y , xm ) 0
converges
as m +, and therefore the Cauchy sequence x1 , x2 , x3 , . . . in X
We conclude that X
is a complete metric space, since
to the point y of X.
is convergent.
we have shown that every Cauchy sequence in X
Remark In a paper published in 1872, Cantor gave a construction of the real
number system in which real numbers are represented as Cauchy sequences
of rational numbers. The real numbers represented by two Cauchy sequences
of rational numbers are equal if and only if the difference of the Cauchy
sequences converges to zero. Thus the construction of the completion of
a metric space, described above, generalizes Cantors construction of the
system of real numbers from the system of rational numbers.
46