Unit-1
Unit-1
SPACES
Structure Page No.
1.1 Introduction 7
Objectives
1.2 Definitions and Examples 8
1.3 Open Sets 16
1.4 Closed Sets 26
1.5 Continuous Functions 3ofE8
1.6 Summary 40
1.7 Hints/Solutions 40
- - -
1.1 INTRODUCTION
In this unit, we introduce you to the notion of metric spaces. As we already
pointed out in the course introduction and block introduction, the metric spaces
arose from extending the notions of continuity and convergence on the real line
to more abstract spaces.
A metric space is just a set which is equipped with a function called metric
which measures the distance between the elements of various pairs from the set.
We shall first give the definition of a metric and a metric space and consider
various examples in Section 1.2. Then we shall study various properties of these
spaces. In Section 1.3 and Section 1.4, we shall consider open and closed sets.
Objectives
After studying this unit, you should be able to
state the properties that define a metric and apply them;
explain a discrete metric space and other metric spaces such as function spaces;
check whether
i) a subset of a metric space is open;
ii) a subset of a metric space is closed;
h lctric Spaces iii) a function defined on a metric space is continuous;
iv) a function defined on a metric space is uniformly continuous;
DEFINITIONS'AND EXAMPLES
We Begin our study of metric spaces by extending those aspects of real and
complex number systems that help us in studying their analytical structure and
functions on them. What do you think are the most important concepts in
Analysis, then? You would agree that the limit and continuity are the ones
which come to your mind. Whatever you studied later had made use of these
building blocks. Now, instead of a set of real numbers, if we start with any
arbitrary set of objects, how can we introduce limit and continuity on it?
Obviously, it would have to have some extra properties. Now, if you go back
and recall the definition of a limit, we say the limit of f(x) as x approaches a is l,
if f(x) gets arbitrarily close to l as x gets sufficiently close to a. To be precise,
Vc > 0 , 3 6 > 0, s.t.
Here Ix - a1 and If(x) - C(denote the distance between x and a and between
f(x) and C, respectively.
So, it seems that if we can introduce the notion of 'distance' on our arbitrary set
of objects, we would be able to talk about limits in this new set up also.
h
2) d(x,y) =d(y,x),
<
3) 4x1 Y) 4 x 1 2) + 4 2 1 Y),x, Y, z E X.
For x, y E X, d(x, y) is called the distance between x and y.
0 the distance between x and y is the same as the distance between y and x.
This is the property of symmetry,
0 the distance between x and y is not more than the distances between x
and z and that between z and y, added together. This is called the triangle
inequality.
Take a minute and think. Aren't these precisely the properties that we expect
from 'distance', based on our previous knowledge? And where does our
previous knowledge come from? From R or R~ of course, and so, our first
example of a metric space comes from R.
Example 1: Let us consider R, the set of real numbers. Define a function d on Introduction to Metric
R x R by d(x, y) = Jx- yl. Then d has the three properties listed in Definition Spaces
1, and thus, is a metric on R. We refer to d as the usual metric or the
standard metric or Euclidean metric and if we refer to R as a metric space,
we assume that the metric is given by the usual metric d unless otherwise
specified. Note that the triangle inequality follows from the inequality
Elements of X are referred to as points of the metric space (X, d). When there is
no ambiguity about the metric on X, we may also denote the metric space
simply by X.
,-
Our next example identifies C also as a metric space. You need to recall the
definition of the absolute value of a complex number.
E~ample2: Consider the function d : C x C -+ R such that
4%22) = Iz1 - 221.
Now, since the absolute value function on C has the following properties,
i) JzJ>Oandlzl=Oifandonlyifz=O,
ii) 1 - zJ = lzl.
It is easy to verify that d satisfies conditions (I) and (2) in Definition 1. To show
the trianglilar inequality d(zl, z2) < d.(zl, z3) + d(z3,z2), we use the inequality
) z + wl 5 lzl + Iw1 with z = zl - z3, w = z3 - z2. Youcanverify this
inequality. This shows that d is a metric.
Note that in both Examples 1 and 2, we have defined the metric with the help of
b
the absolute value function which already existed on those sets. You will see
soon, that this is how we are going to come'up with many more metric spaces.
But now we introduce a metric, which is trivial, but throws up a very interesting
space, which serves as an example for some new concepts.
Example 3: Let X be a non-empty set. We define
0, i f x = y
1, i f x f y .
This means that the distance of a point from any other point is exactly 1. Are
you convinced that this a metric? Try this by yourself and figure out why it is
called a trivial metric (see El). This metric is called the discrete metric.
Remark 1: The above example shows that every set X has atleast one metric on
i.
it. C
C
where pl = (xl, yl) and pz = (x2, y2) represent any two elements in R2.You
recall that the expression on the Right Hand Side of Eqn(1) represents the
Euclidean distance between two points in R2. Therefore we can easily verify
the condition (I), (2) and (3) in Definition 1. Note that the condition (3) follows
from the property of triangles which states that the length of one side of a
triangle is always less than or equal to the sum of the lengths of the other two
sides(see Fig. 1). Thus the name triangle inequality is justified. This shows that
the function d defined by Eqn.(l) is a metric on R2.The metric d is called the
b
Euclidean metric or the usual metric on or the standard metric on R2.Fig. 2
Fig. 1
gives the geometrical picture of the distance measured by this metric.
Fig. 2
We claim that dl is another metric on R2.DO you agree with us? Convince
yourself by doing E2. The following figure gives the geometrical picture of the
distance measured by this metric.
- -
Introduction to Metric
Spaces
Pig. 3
Then d, satisfies all the properties of metric. We leave this as an exercise for
you to verify (see E2). Fig. 2 gives the geometrical picture of the distance.
$.
Pig. 4
If you closely look at the examples above, you will see that similar metrics can
be defined for the higher dimensional spaces Rn.In the next example we
consider this.
Example 7: Let Rndenote the set of elements x = (xl,.... x,) where xi E R
f o r i = 1,. . . . n.
Now define d, dl, d, on Rnx Rn -+ R,as follows:
Metric Spaces
The metric d is called the usual metric (or the Euclidean metric) and (R", d) is
called the Euclidean space. The metric dl is called the Taxicab metric on R n .
Remark 2: To verify the triangle inequality for the metric d in (4) we need the
following two inequalities which are useful in many other contexts also.
I
from which it follows.that
~ )1x1 - X Z ~ ) Y I- ~ 2 where
~ ( P I , P= ) pl = ( x l , y ~ and is a
) pz = (x2,y~)
metric or not.
E6) Let (X, d) be a metric space. Show that the following functions give
metrics on X.
d(x1y)
i) D(x, y) =
1+ d(x1Y)
So far we have been considering sets whose elements are finite or infinite
sequences of real or complex numbers. But quite often we need to consider sets
whose elements are either functions or matrices. In the next few examples we
consider such sets and discuss certain metrics on these sets.
Example 9: Let T = [a,b] and let B(T) denote the set of all real-valued
bouilded functions defined on T. For f, g E B(T), let
Remark 3: Inthe two examples above the only difficulty is to verify the
triangle inequality. For that you only need to show the following inequality for
f, g, h E C(T) or BQ.
Fig. 5
where the integral is the Riemann integral. We first of all note that the integral
on the R.H.S (8) exists since 1 (f - g)1 is a continuous function. We claim that dl
is a metric. All conditions except the condition (1) follows from the properties
of Riemann integral. The condition (1) follows from a result which we state Introduction to Metric
below. Spaces
Proposition 2: Let f : [O, 111 -t R be continuous with f(t) 2 0 for t E [0, 11.
Then J,' f(t)dt = 0 if and only if f(t) = 0 for all t E [0, 11.
You might be already familiar with this result from your undergraduate Real
Analysis course.
The figure below illustrates the geometric meaning of dl (f, g).
E7) Let X = R[a, b] denote the set of all Riemann integrable functions on [a,
b]. Define a function d on X x X -+ R by
d(f>g) = Jb, lf(t) - g(t1ldt
kt
I Metric Spaces where f, g E X. Check whether d defines a metric on X.
Definition 4: (Product Metric):. Let (XI,dl) and (X2, d2)be two metric
spaces. Let X = X1 x X2, i.e. the Cartesian product of X1 and X2. Then define
a function d on X x X by
Can you think of.other metrics on X1 x X2 coming from the original metrics on
X1 and X2? What about the D and p given by
..
E8) ~ e(Xl,
t dl) and (X2,d2)be two discrete metric spaces. Then verify that
the product metric on X1 x X2 is discrete.
We hope that you have understood the new concept of distance. In what follows,
we shall try to see what other new concepts can be developed inthis context.
first introduce two related terms: 'the distance of a point from a set', and 'the Introduction to Metric
diameter of a set'. Spaces
Let us consider a metric space (X, d). Let A be a non-empty subset of X. Then
for any x E X, consider the set A, = {d(x, y) : y E A). Then what can we say
about the set A,?
>
From the condition 2 in the definition of a metric, we have d(x, y) 0 for all
x, y E X. That means Ax is a non-empty set of non-negative real numbers which
is bounded below by 0. Then this set has a greatest lower bound (infimum).
TT 7 r
[
Example 14: Let us consider the function space C 0, - ~ e t i].
g(t)=0,O<t<;andfn(t)=sinnt,O<t<;.LetA=[fn:n~N].Then
L L
<
you can observe that d(g, A) = 1. This follows from the fact that - 1 fn(t) <1
for all n E N and t E 0 and also that for any n, there exists some t,
O <t
m-
< r,
[ 7 5 1
For any non-empty subset A of a metric space (X,d), we consider another set
D(A) given by
D(A) = {d(al, a2) : all a2 E A).
Then D(A) is a non-empty set of non-negative real numbers and therefore has a
supremum ( or least upper bound) in the extended real number system. The
supremum of this set is called the diameter of A.
\
Remark 7: Note that d(A) > 0 since D(A) is non-empty and consists of
non-negative numbers.
>
We have observed here that if A # 4, then d(A) 0. The diameter of a set may
not be a finite number. It is possible that d(A) = co.You can easily see that for
the set Z in R with the usual metric, d(Z) = oo.
So, what are the possible value of the diameter of a non-empty subset of X? It
could be a non-negative real number or it could be +oo.
If the diameter of a set is not infinity, it is called a 'bounded set'.
d
Metric Spaces Note that any non-empty subset of a bounded set is bounded. Also a non-empty
finite set is bounded. It is for these reasons that we term the empty set q5 also to
be a bounded set even though
There are metric spaces where any set is bounded.' Can you give an example?
Try these exercises now.
Now we shall discuss an important class of sets in a metric space (X, d).
You are already familiar with the concept of a ball in Euclidean space Rn.Let
us for example, consider R3. Then the open ball of radius r with centre
a = (al, a2,as) is the set B (a, r) given by
Definition 7: Let (X, d) be a metric space. Let x E X and r > 0. The subsets
are respectively called the open and closed balls centred at x with radius r with
respect to the metric d. We use the notation Bd(x,r) or Bd[x,r] only when we
want to emphasize that the metric under consideration is d. If no confusion
arises, we denote Bd(x,r) by B(x, r) and B ~ [ xS), by B[x, s].
Example 15: Consider X = R with the standard metric. Then we note that
B(x, r) = (X - r, x + r).
If we look at the shape of the unit balls defined by the three metrics on R2
considered in Examples 4, 5 and 6, we will be able to find the difference
between the metrics.
Note that in R2, the unit balls with respect to the three metrics are given
CL2.
Fig. 7
Example 17: Consider C[O, 11, the set of conunuous rea valued functions on
[O, 11, with supremum metric,
How will you visualize B(f, a)for an f E C[O, 11 and a > O? For instance, let us
consider B(0, a).Note that here 0 denotes the function which is identically 0 on
ro, 11.
We first note that an element g E C[O, 11 lies in B(0, a)if and only if (or iff)its
graph lies in the region bounded by the lines y = fa and x = 0 and x = 1
excluding the horozontal lines y = fa.Similarly, g lies in B(f, a)iff its graph
lies in the region bounded by the curves y = f f cr and x = 0 and x = 1
excluding the curves y = f fa (see Fig. 8).
(a) (h)
Fig. 8
integral
How do we visualize open balls in this situation? For instance, let us consider
B(O, 1).
We shall look at the geometric meaning of the integral illustrated by Fig.9.
Then, g E B(0,l) iff the area 'under the graph' of (gJis less than I . So, we can
say that the function g given in Fig. 9(a) lies in B(0,l) whereas 4 in Fig. 9(b)
does not.
1- g is not in B(O.1)
y =-1
(a)
Fig. 9
***
Proposition 3: Let (X, d) be a metric space. Then given two distinct points
x, y E X, there exists r > 0 such that B(x, r) n B(y, r) = q5 (See Fig.10). (This
property is called (Hausdoe Property)). '
1
Proof: Since x and y are distinct d(x, y) > 0. Let 0 5 r 5 -d(x, y).
2
Let V = B(x, r) and W = B(y, r) (see Fig. 10). Then V and W are open in X
and x E V, y E W. Also V n W,= 4. Hence the result.
Try these exercises now. Lntroduction to Metric
Spaces
If there is no confusion about which metric is being used, we shall simply refer
to as an open set rather than as a d-open set.
Fig. 11
Thus, we observe that to show that a set is open, we have to show that every
point in it is the centre of an open ball fully contained in the set.
Since the empty set 4 does not contain any point, we term the empty set as an
open set.
Now if x E X, B(x,r) C X for any r > 0. ~ e n cisiopen.
~
This means that in any metric space (X, d), 4 and X are open sets.
What are the other open sets in a metric space (X, d)? As the name suggests, we
expect that each open ball is an open set. How do we prove this? The next
proposition shows this.
Proposition 4: In anymetric space (X, d), each open ball is an open set.
Proof : Consider the open ball B( q , r) in X, and let x E B(xo,r). Then
d(x, q ) = rl < r.
i
Metric Spaces Now take r, = r - rl. Then r, is a positive real number.
Now let y E B(x, r,). Then d(y, x) < rx = r - rl.
Fig. 12 Now we shall prove a theorem which brings out the strong connection between
open sets and open balls.
Theorem 1: Let X be a metric space. A subset of X is open if and only if it is
a union of open balls.
Proof : Suppose A is a subset of X, which is the union of a class U of open balls
of X. Now if U is empty, then A = 4, and is thus open.
Next, if U is non-empty, then A is also non-empty.
Let a E A. Then a belongs to some open ball B(xo,r) in U.As in the proof of
the proposition above we can choose r, s.t.
B(a,ra) c B(xo,r) c A
Thus, around every point of A we can find an open ball fully contained in A.
This shows that A is open.
On the other hand, suppose A C X, and A is open. If A is empty, then it is the
union of the empty class of open balls. If A is non-empty, then for every a E A
there is an open ball B(a, r,) which is fully contained in A. That is,
a E B(a,r,) c A.
So A = UB(x, r,) Let U be the class of all such opem balls B(x, rx),x E A.
xEA
Then A = Ux c UB(x, r.) c A. Thus A is the union of open balls in U.
xEA XEA
This means that the openness of a set is a relative concept. It depends on the
metric space to which it belongs. We fuaher note that if r > 1then
D(B(0, r)) = 1 < 2r and if 0 < r 5 1then D(B(0, r)) = r < 2r. This means that
the diameter of a set and diameter of a ball in the usual sense axe not the same
Next we shall see how open balls w.r.t. to the induced metric differ from the Introduction to Metric
open balls in the original space. Let A be a nonempty subset of a metric space Spaces
(X, d). Let us continue to denote by the same letter d the induced metric on A.
Let BA(x,r) denote the open ball in the metric space (A, d) with centre a and
radius r. Then BA(x,r) = B(x, r) n A, where B(x, r) is the open ball in X
centred at x with radius r.
I
I
B(x, r,) c A,.
Let r = min{rl, r2,r3,. . . ,rn). Then r > 0
Further, B (x, r) C B(x, ri) C Ai for each i = I, . . . n.
Therefore B (x, r) c nn
i=l
Ai = B.
So, around every element of B we can find an op'en ball fully contained in
B. Thus, B is open.
According to the theorem above, union of any arbitrary class (finite or infinite)
of open sets is open. But for intersections, the class is taken to be finite. In fact,
you will see in the example below that an infinite intersection of open sets need
not be open.
Example 20: Consider R with the standard metric. Let us consider the class
,?,f = (1 -A,![.
n n
E N) of open in R Then] -!,![is
n n
open for alln E N
But n]
n€N
- 1/n, 1/n[= {O) and is not open in R, since any
Observe that an interval (a, b) is open if and only if all its points are
interior points. You can observe the same feature for discs in the plane also.
How do we express this for metric spaces? Let us see.
The set of all interior points of A is called the 'Interior of A', and is denoted by
Int(A). Thus,
Int(A)= {x E A : B(x,r) c Aforsomer > 0).
We can prove that Int(A) is clearly an open subset of A (see E16). Infact Int A
is the largest open set in X contained in A. How do you show this? For that we
have to show that Int A contains all open subsets of X that are contained in A.
To see that, let us take an open subset A. of X contained in A. Then we have to
show that A. c Int(A). Let x E Ao. Since A. is open, there is an open ball
B(x, r), such that
x€B(x,r) CA.
Remark 8: If x and y are distinct points of a metric space X, then there exists
disjoint open sets V and W in X such that x E V and y E W.
So far we have been discussing open sets in a metric space. As we stated earlier,
the concept of openness changes from one metric to another. In this connection
we introduce you to another concept called equivalence of metrics
Definition 10: Two metrics dl and d2 on a set X are called equivalent if a set
A is open in X w.r.t. dl if and only if it is open w.r.t. d2.
(b) .
Fig. 13
E15) Let (X, d) be a metric space and let a E X and r > 0.Can B[a, r] be an
open set? Justify your answer.
E17)Let A1 and A2 be open sets in metric spaces (XI, dl) and (X,,dz)
respectively. Show that Al x A2 is open in the metric space (XI x Xz), d)
where d is the product metric defined in Section 1.2.Use this result to
show that a rectangle ]a, b[x]c, d[ is open in R x R.
In the next section we shall consider sets which are complements of open sets.
* Metric Spaces
1.4 CLOSED SETS
A notion which is related to "openness" is "closedness". Here we shall define
closed sets in metric spaces. .
Before defining closed sets, we talk about 'limit points' of a set. We have the
following definition.
Example 22: Let A = [O, 11 C R. Then 1 is a limit point of A, that is, every
open interval around 1 contains points of A, apart from 1. In fact, you will
realize that every point of [0, 11 is its limit point.
Example 24: Let us consider B = [3,4[.All points of B are its limit points. In
addition, 4 is also a limit point of B.
Let A be the union of x and y-axes; i.e: A = {(x, y) E R2 : xy = 0). Then all
the points of A are its limit points.
Let B be the set given by B = {(x, y) E R2 : x2 + y2 L 1,x # 0, y # 0). Then
(0,O) is a limit of B which do not lie in B.
***
From these examples, we see that a point in a set may or may not be its limit
point. On the other hand, a limit point of a set may or may not belong to it.
.We now define closed sets.
Consider a discrete metric space X. In this space, any open ball with radius less
than or equal to 1 contains only its centre. It cannot contain any other point of
X. This means no subset of X can have a limit point. So, a discrete space is a
metric space in which every subset is a closed set. When we compare this with
E(17),in which you have been asked to show that every subset of a discrete
space X is open, we get that in a discrete space every set is both open and
closed in a discrete space.
Here we want to ask a question. What are the sets which are both open and
closed in R?
You will find an answer to this in Unit 4.
k Unbelievable in the real sense, isn't it? This is what makes a set different from
real objects like "Doors"!
Proof : Suppose A is closed. This means it contains all its limit points. That is,
no point of A" can be its limit point. Thus, if x E A", then we can find an open
ball B(x,r) which does not contain any point of A, which means that it is fully
contained in A'. This proves that A" is open.
Now suppose A" is open. Let x be a limit point of A such that x 4 A. Then
x E Ac and since A" is open, we can find an open ball B(x, r) contained in A".
That means B(x, r) does not contain any point of A. This is not possible since x
is a limit of A. Thus all the limit points of A lie in A. Hence A is closed.
Example 26: Let A = {(xl, x2,0) : (xl, x2) E R 2 ) . Then A is closed in R3.
Let x =(xl, x2,O) where (xl, x2) E R2.Then x E A. For r > 0, put
r i).
y = ( x I , x ~ , Then y E B(x,r). But y $! A. SoB(x,r) A. Thusx $! IntA
and therefore A is not open. Hence A is closed.
***
r Proposition 6: Let (X,d) be a metric space. Every closed ball B[x, r] in X is
closed in X.
Proof: Suppose y is a limit point of B[x, r], and that d(y,x) = rl. Let, if
possible, rl > r. This means r2 = rl - r > 0, Now consider B(y, rz). This open
ball around y must contain a point, say z, of B[x, r]. Then
This is a contradiction. Hence our assumption that rl > r is not possible. There-
fore rl < r, and hence y E B[x, r]. That is B[x,r] contains all its limit points.
Therefore B[x,r] is a closed set in X.
Metric Spaces Theorem 5: In a metric space X, the following results hold:
i) Any arbitrary intersection of closed sets is closed, and
ii) A finite union of closed sets is closed.
Proof : Let {Ai)iGlbe a collection of closed sets. Then is collection of
We will be using De U
open sets. Thus A: is open and therefore by De Morgan's law.
Morgan's law quite often
without actually referring . .
id
to it always.
is closed. Hence the result. We leave the proof of the second part of this theorem
as an exercise for you to verify (Refer E19).
Definition 13: Let A be a subset of a metric space X. The union of A with the
set of its limit points is called the closure of A and is denoted by A.
Obviously, if A is closed, then A = x. In general, A c A.
Theorem 6: If A is a subset of a metric space X, then is closed in X.
Let d(x, y) = rl and let r2 = r - rl . Then r2 > 0. Since y E A,the open ball
B(y, r2) contains an element z of A other than y. Then
This shows that z E B(x, r). Also z # x simply because x $ A. Thus we got that
x is a limit point of A and therefore x E x.
Since A contains all its limit points, A is closed. Hence the result.
The following figure illustrates that the definitions of boundary, closure and Introduction to Metric
interior coincides with our geometric intuition, for some specific subsets of R2 Spaces
with the standard metric.
Fig. 14
But this is not the case always. We shall illustrate this with an example. Before
that we establish the following result.
Now we prove a result relating to closure, interior and boundary.
Proposition 7: If A is a subset of a metric space X then
bdry(A) = - Int(A).
Example 27: Let us find the interior, closure a'nd boundary of the following
sets in the given spaces
i) B = {(x, y) E R2: y = 0) in R2.
We shall first show that Int B = 4. Let if, possible there exists
p = (%, yo) E Int B. Then there exists r > 0 such that B(p, r) c B. Let
Metric Spaces
?
q = (xu, i). Then
You are already familiar with this concept for the Euclidean spaces R, R2 and
so on. In this section we shall formulate a definition of continuity for general
metric spaces that will include these spaces. Then we shall study some
properties.
You might be already familiar with continuous functions from R" -+ Rmwith
the standard metrics (see IGNOU Maths Course MTE-07). Here are some
examples.
i) The function t -+ (cos t, sin t) from R to R2 is continuous on R,
ii) The function (x, y) -+ (cos x, sin x sin y, exsin y) from R2 + R3 is
continuous on R2.
Like these you must have seen many continuous functions from one Euclidean
space to another Euclidean space. You know that in the case of real line R there
are different ways of defining continuity. For instance, " E - 6 definition"
"convergent sequence definition" and so on. We shall try to generalise these
definitions to metric spaces.
Before we do this we shall familiarise you with some notations.
Suppose (X, dl) and (Y, d2) are two metric spaces and consider a function Introduction to Metric
f : X -+ Y. Let A be any subset of X. Then the image of A by f is the set Spaces
4
In other words, f(A) is the set of the values that f assigns to the elements of A.
Suppose that B is a subset of Y. Then the inverse image of B denoted by f-'(B),
is given by
) {x E X I f(x) E B).
t ' ( ~=
Definition IS: Let (X, d l ) and (Y, d2) be two metric spaces and f : X + Y.
Then f is said to be continuous at a point xo E X, if given E > 0 3 a 6 > 0 such
that
Many of you might have faced problems with E - 6 definitions of limit and
continuity in your earlier Calculus and Analysis courses. The following real-life
situation may help you to have a better understanding.
The above situation might have helped you to understand the E - 6 definition of
continuity in a better way. By now you must be clear about which one out of E
or 6 in the definition of continuity, needs to be considered first. It is important to
know this because this is what is used by scientists and engineers.
Example 29: Let (X, d) be a metric space. For any fixed a E X, define a
function fa : X --+ R by
Theti fa is continuous on X.
To see this, let us apply E - 6 definition.
Let xo E X. Let E > 0. Then we have to show that there exists a 6 > 0 such that
Example 30: Let A be a nonempty subset of a metric space (X, d). We define a
function on X to R by dA on X to R by
.dA(x)= d ( ~A)
,
.r
Thus,
E24) Let (X, dl) and (Y, dZ)be two metric spaces. For any fixed c E Y the
function f : X 4 Y defined by f(x) = c for all x E X is continuous. (f is
called a constant function.)
E25) Let X = C[O, I] with sup metric. Then the following functions are
continuous
4 : X -+R given
$(f) = / 0
1
f(t)dt, f E
is continuous.
ii) 4 :X -+ R given by 4(f) = f (i) is continuous.
Theorem 7: Let (X, dl) and (Y, d2) be metric spaces. Let c E X, Then the
following are equivalent.
(a) f is continuous at c.
(b) Given an open set V containing f(c) in Y, we can find an open set U
containing c in X such that f(U) C V.
1
dl(x, c) < 6 =+-dz(f(x),f(c)) < E .
Let U = B(c, 6). Then U is an open set containing c. We claim that f(U) c V. i
To show this let us consider b E f(U). Then v = f(x) for some x F-U. This
implies that
Let f be a function such that (b) holds. We have to show that f is continuous at
c E X. Let e > 0 be given. Now we apply the condition (b) to the open set
,-
B(f(c): E).Then we get that 3 an open set U containing c such that
f(U) c B(ftc), 4.
Since U is open and c E U, 3 a 6 > 0 SUC that
the fact that f(U) 2 B(f(c), E), shows tha1
E27) Show that the result in Theorem 7 is true if we replace open sets by closed
sets.
E28) Let (X, dl), (Y, d2) and (Z, dJ) be three metric spaces. Let f : X + Y be
. continuous at x E X and g. Y + Z be continuous at y = f(x). Then
composite map gof : X + Z is continuous at x E X.
r
E29) Let f : (X, dl) + (Y, d2) be continuous. Let A c X. Show that the
restriction fJAis a continuous function from (A, dl) to (Y, d2).
1
v, = {X E X : f(x) < t)
w,= {X E X : f(x) > t)
are open sets in X.
/
Next we shall state some basic properties of continuous functions which you
can verify by yourself.
Theorem 9: Let f, g : X 4 R be continuous at a E X. Then the functions
f+g,f-g,f.gdefinedby
f
are all continuous on X at a E X. If g(x) # 0 for all x E X, then - is also
g
continuous at a E X.
Now we shall prove a theorem which shows that two mutually disjoint closed
sets in a metric spaee ean be separated by a continuous funetion. The theorem is
called Urysohn's Lemma. Lemma is a proved
statement used as a
Theorem 10: (Urysohn's Lemma): Let A, B be two disjoint non-empty stepping-stone towards
closed subsets of a metric space X. Then there exists a continuous function the proof of another
<
f : X + RsuchthatO f 5 l , f = Oon Aandf = 1 onB. statement 35
3
i4
Metric Spaces Before we start proving this we recall that dAand dBare continuous on X which
vanish on A and B respectively. So various combinations of them can work as
the required function. For example, any a > 0 and consider f given by,
Thus it follows that f '(B) is the union of open sets {f-'(Bi) n Ai,i E I) and
hence is open. This proves the continuity off on X.
It is natural to ask whether such a continuous gluing is possible for closed sets. Introduction to Metric
The following example shows that it is not possible in general. Spaces
and
and
. .
Proof : The proof of this is very similar to the earlier proof, except that we use
the characterization of continuity by means of inverse images of closed sets. Let
C c Y be a closed set. We shall show that f-'(C) is closed in X. As in the
earlier case, we find that f-'(C) fl Ai = f i - ' ( ~nAi
) and that it is closed in Ai and
~ e t r i Spaces
c hence in X. We then express f--'(C) as a finite union of closed sets of the form
as follows:
f
Definition 16: Let us consider a function f : (X, dl-) -+ (Y, d2). We say that f is
uniformly continuous on X if for a given E > 0, there exists a b > 0 such that
whenever xl, x2 E X are such that dl (xl,x2) < 6, we have d2(f(xl),.f(x2))< E .
40
Introduction to Metric
ii) Conditions 1 and 2 are immediate from the definition of p. To check
the triangle inequality we take any let x, y, z E X. Since p(x,.z) 5 1 Spaces
the required inequality
-
This
- is a contradiction. Thus d(x, A) = 0.Thus we have
A C {x:d(x,A) = 0 )
Let B(x, r) be a balI containing x. To show that B(x, r) n A # 4. Let
B(x, r) n A =-4. This implies that d(x, y) > r for all y € A which
contradicts the fact that d(x, A) = 0.Therefore B(x, r) n A # 4. Hence
xE x.
E22) Try by yourself.
E23) Let {Ai)icIbe a finite collection of dosed sets. Then {lqe}iEI is an open
Ff. Each is operi. :. nn
i=l
is open. Hence the
result.
E24) Try by yourself
E25) Hint :
i) Use the inequality
for f E C[O,11
ii) Try it by yourself.
E26) Take x E f '(V). Then y = f(x) f V. Since V is open, it contain an open
ball B(y, E) for some E. Since f is continuous given > 0, there exists
5 > 0 such that x1 E B(x, 5) + f(xl) E B(y ,E) .This means that
E31) Kint : Note that V, = f-I{(-oo, t)) and W,= f'(t, oo)) and
(00,t), (t, oo) are open sets in R.
I E33) Hint : A careful look on the last line in the Example 30 helps.