Skip to main content

Section Continuous Functions Between Metric Spaces

In our preview activity we saw how to formally define what it means for a function f:R→R to be continuous at a point.
Note that Definition 6.2 depends only on being able to measure how close points are to each other. Since that is precisely what a metric does, we can extend this notion of continuity to define continuity for functions between metric spaces. Continuity is an important idea in topology, and we will work with this idea extensively throughout the semester.
If we let dE:RΓ—Rβ†’R be defined by dR(x,y)=|xβˆ’y|, then we have seen that dE is a metric on R (note that dE is the Euclidean metric on R). Using this metric we can reformulate what it means for a function f:Rβ†’R to be continuous at a point.

Definition 6.3. Alternate Definition.

A function f:R→R is continuous at a point a if, given any ϡ>0, there exists a δ>0 so that dE(x,a)<δ implies dE(f(x),f(a))<ϡ.
This alternate definition depends on the metric dE. We could easily replace the metric d with any other metric we choose. This allows us to define continuity at a point for functions between metric spaces.

Definition 6.4.

Let (X,dX) and (Y,dY) be metric spaces. A function f:Xβ†’Y is continuous at a∈X if, given any Ο΅>0, there exists a Ξ΄>0 so that dX(x,a)<Ξ΄ implies dY(f(x),f(a))<Ο΅.
Once we have defined continuity at a point, we can define continuous functions.

Definition 6.5.

Let (X,dX) and (Y,dY) be metric spaces. A function f:X→Y is continuous if f is continuous at every point in X.

Example 6.6.

In general, to prove that a function f:Xβ†’Y is continuous, where (X,dX) and (Y,dY) are metric spaces, we begin by choosing an arbitrary element a in X. Then we let Ο΅ be a number greater than 0 and show that there is a Ξ΄>0 so that dY(f(x),f(a))<Ο΅ whenever dX(x,a)<Ξ΄. The Ξ΄ we need cannot depend on x (since x isn’t known), but can depend on the value of a that we choose, and will likely depend on Ο΅ as well. That is, there is a function C of only the independent variables a and Ο΅ that produces the Ξ΄, or Ξ΄=C(a,Ο΅). As an example, let X=R and let dX be defined as
dX(x,y)=min{|xβˆ’y|,1}.
The proof that dX is a metric is left for Exercise 9. Consider f:Xβ†’Y defined by f(x)=x2, where (Y,dY)=(R,dE). To show that f is continuous, we let a∈R and let Ο΅>0.
Scratch work. What happens next is not part of the proof, but shows how we go about finding a Ξ΄ we need. We are looking for Ξ΄>0 such that dX(x,a)<Ξ΄ implies that dE(f(x),f(a))<Ο΅. That is, we want to make
dE(f(x),f(a))=(f(x)βˆ’f(a))2=|f(x)βˆ’f(a)|=|x2βˆ’a2|<Ο΅
whenever
dX(x,a)=min{|xβˆ’a|,1}<Ξ΄.
Now |x2βˆ’a2|=|(xβˆ’a)(x+a)|=|xβˆ’a| |x+a|. If dX(x,a)<Ξ΄, then min{|xβˆ’a|,1}<Ξ΄. If we choose Ξ΄<1, then dX(x,a)<Ξ΄<1 implies that |xβˆ’a|<1 and so dX(x,a)=|xβˆ’a|. Now
|x+a|=|(xβˆ’a)+2a|≀|xβˆ’a|+2|a|<1+2|a|.
It follows that
|xβˆ’a| |x+a|<Ξ΄(1+2|a|).
To make this product less that Ο΅, we can choose Ξ΄ such that Ξ΄(1+2|a|)<Ο΅ or Ξ΄<Ο΅1+2|a|. That is, there is a function C of Ο΅ that gives us the Ξ΄ we want, namely Ξ΄=C(a,Ο΅)={1,Ο΅1+2|a|}. Now we ignore this paragraph and present the proof, which is essentially reversing the steps we just made. If the steps can’t be reversed, then we have to rethink our argument. The next step in the proof might seem like magic to the uninitiated reader, but we have seen behind the curtain so it isn’t a mystery to us.
Let Ξ΄ be a positive number less than min{1,Ο΅1+2|a|}. Then
dX(x,a)=min{|xβˆ’a|,1}<Ξ΄
implies that dX(x,a)<Ξ΄<1 and so dX(x,a)=|xβˆ’a|<Ξ΄<1. Then
|x+a|=|(xβˆ’a)+2a|≀|xβˆ’a|+2|a|<1+2|a|.
It follows that
dE(f(x),f(a))=(f(x)βˆ’f(a))2=|f(x)βˆ’f(a)|=|x2βˆ’a2|=|(xβˆ’a)(x+a)|=|xβˆ’a| |x+a|<Ξ΄(1+2|a|)<(Ο΅1+2|a|)(1+2|a|)=Ο΅.
We conclude that f is continuous at every point in X and so f is a continuous function.
Not all functions are continuous as we see in the next example.

Example 6.7.

Let X=Y=R and define f:Xβ†’Y by f(x)=x. Let dX be the Euclidean metric and dY the discrete metric. (Recall that dY(x,y)=1 whenever xβ‰ y.) Let a∈X and let 0<Ο΅<1.
Let δ>0, and let x=a+δ2. Then x≠a and dX(x,a)<δ. However,
dY(f(x),f(a))=dY(x,a)=1.
So if 0<Ο΅<1, there is no Ξ΄>0 such that dX(x,a)<Ξ΄ implies that dY(f(x),f(a))<Ο΅. We conclude that f is continuous at no point in X.
Certain functions are always continuous, as the next activity shows.

Activity 6.2.

(a)

Let (X,dX) and (Y,dY) be metric spaces, and let b∈Y. Define f:Xβ†’Y by f(x)=b for every x∈X. Show that f is a continuous function.

(b)

Let (X,d) be a metric space. Define the function iX:Xβ†’X by iX(x)=x for every x∈X. Show that iX is a continuous function. (The function iX is called the identity function on X.)
More complicated examples are in the next activity.

Activity 6.3.

Let X=(R2,dT) and Y=(R2,dM), where
dT((x1,x2),(y1,y2))=|x1βˆ’y1|+|x2βˆ’y2|
is the taxicab metric and
dM((x1,x2),(y1,y2))=max{|x1βˆ’y1|,|x2βˆ’y2|}
is the max metric. Define f:R2β†’R2 by f((a,b))=(a+b,b).

(a)

Is f a continuous function from X to Y? Justify your answer.

(b)

Is f a continuous function from Y to X? Justify your answer.