3.11. Special TopicsΒΆ

This section covers details on specific functions from the perspective of metric spaces

3.11.1. Distance from a PointΒΆ

Theorem 3.122 (Distance function is uniformly continuous)

Let (X,d) be a metric space. Fix some point a∈X. Define a function f:Xβ†’R as:

f(x)=d(x,a)βˆ€x∈X.

Then, f is uniformly continuous on X.

Proof. Let x,y∈X. Recall from triangle inequality that:

|d(x,a)βˆ’d(y,a)|≀d(x,y).
  1. Let Ο΅>0.

  2. Choose Ξ΄=Ο΅.

  3. Assume d(x,y)<Ξ΄.

  4. Then

    |f(x)βˆ’f(y)|=|d(x,a)βˆ’d(y,a)|≀d(x,y)<Ξ΄=Ο΅.
  5. Thus, d(x,y)<δ⟹|f(x)βˆ’f(y)|<Ο΅.

  6. Thus, f is uniformly continuous.

3.11.2. Distance from a SetΒΆ

Recall from Definition 3.5 that the distance between a point x∈X and a set AβŠ†X is given by:

d(x,A)=inf{d(x,a)βˆ€a∈A}.

Proposition 3.32 (Distance from a singleton set)

For every x,y∈X,

d(x,{y})=d(x,y).

Proof. Let A={y} be a singleton set. Then

d(x,A)=d(x,{y})=inf{d(x,y)}=d(x,y).

Proposition 3.33 (Distance from a subset)

Let βˆ…β‰ AβŠ†BβŠ†X. Then, for any x∈X

d(x,A)β‰₯d(x,B).

Proof. We note that since AβŠ†B, hence:

{d(x,a)βˆ€a∈A}βŠ†{d(x,a)βˆ€a∈B}.

The infimum over a larger set is smaller. Hence,

d(x,B)≀d(x,A).

Proposition 3.34 (Distance from a containing subset)

Let x∈AβŠ†X. Then

d(x,A)=0.

Proof. We note that:

d(x,x)∈{d(x,a)βˆ€a∈A}

since x∈A.

Thus,

d(x,A)=d(x,x)=0.

Theorem 3.123 (Continuity of set distance function)

Let AβŠ†X be nonempty. Then, the function f:Xβ†’R given by:

f(x)=d(x,A)=inf{d(x,a)βˆ€a∈A}

is continuous.

We provided a proof in Example 3.16. We rephrase it here.

Proof. Let a∈X. We shall show that f is continuous at a.

  1. Let r>0.

  2. Consider the open ball/interval V=B(f(a),r) in R.

  3. Consider the open ball in X given by U=B(a,r).

  4. Let x∈U and let y∈A.

  5. Then, using triangle inequality:

    d(a,y)+d(x,a)β‰₯d(x,y)

    and

    d(a,x)+d(x,y)β‰₯d(a,y).
  6. Taking the infimum over y∈A in both the inequalities, we get:

    d(a,A)+d(x,a)β‰₯d(x,A)

    and

    d(x,a)+d(x,A)β‰₯d(a,A).
  7. Rewriting it further, we get:

    d(x,A)≀d(a,A)+d(x,a)

    and

    d(a,A)βˆ’d(x,a)≀d(x,A).
  8. Since d(a,x)<r, hence, we obtain:

    d(a,A)βˆ’r<d(x,A)<d(a,A)+r.
  9. Substituting f(x)=d(x,A) and f(a)=d(a,A),

    f(a)βˆ’r<f(x)<f(a)+r.
  10. Thus, f(x)∈B(f(a),r)=V.

  11. In other words, f(U)βŠ†V.

We have shown that for every r>0, there exists δ=r such that x∈B(a,δ) implies f(x)∈B(f(a),r). Thus, f is continuous at a.

Theorem 3.124 (Open neighborhoods of a set)

Let AβŠ†X be nonempty. Let Ο΅>0 and consider the set AΟ΅ given by

Aϡ={x∈X|d(x,A)<ϡ}.

Then AΟ΅ is open for every Ο΅>0.

Proof. We established in Theorem 3.123 that f(x)=d(x,A) is continuous. The set AΟ΅ is the inverse image of the open interval (βˆ’Ο΅,Ο΅) in R. Since f is continuous, hence the inverse image of an open interval is an open set.

Following is a direct proof.

  1. Let x∈Aϡ.

  2. Then, there is y∈A such that d(x,y)<ϡ.

  3. Let Ξ΄>0 be small enough such that d(x,y)+Ξ΄<Ο΅.

  4. Consider the open ball B(x,Ξ΄).

  5. For all z∈B(x,δ), we have:

    d(z,y)≀d(z,x)+d(x,y)<Ξ΄+d(x,y)<Ο΅.
  6. Thus, d(z,A)<ϡ since y∈A.

  7. Thus, z∈Aϡ.

  8. Thus, B(x,Ξ΄)βŠ†AΟ΅.

  9. Thus, AΟ΅ is open.

Theorem 3.125 (Closure and set distance)

Let AβŠ†X be a nonempty set. Then, for any x∈X, d(x,A)=0 if and only if x∈clA.

In other words, the distance of a point from a set is zero if and only if the point is a closure point of the set.

Proof. Let x∈clA.

  1. Then either x∈A or x∈bdA.

  2. If x∈A, then by Proposition 3.34, d(x,A)=0.

  3. Now, assume xβˆ‰A and x∈bdA.

  4. Let r>0.

  5. Since x∈bdA, hence there exists y∈A such that d(x,y)<r.

  6. Therefore,

    d(x,A)=inf{d(x,y)|y∈A}<r.
  7. Since this is true for every r>0, hence d(x,A)=0.

Now assume that xβˆ‰clA.

  1. Thus, there exists an open ball B(x,r) for some r>0 such that B(x,r)∩A=βˆ….

  2. Therefore, for every a∈A, d(x,a)β‰₯r>0.

  3. Therefore,

    d(x,A)=inf{d(x,a)|a∈A}β‰₯r>0.

Corollary 3.4

Let AβŠ†X be a nonempty closed set. Then, for any x∈X, d(x,A)=0 if and only if x∈A.

Proof. A closed set contains all its closure points. Thus, d(x,A)=0 if and only if x is a closure point of A if and only if x∈A.

Theorem 3.126 (Distance minimizer in a compact set)

Let A be a nonempty compact subset of X. Let x∈X. Then, there exists an a∈A such that

d(x,A)=d(x,a).

Proof. For a fixed x∈X, consider the real valued function f:Xβ†’R given by:

f(y)=d(y,x)βˆ€y∈X.

Then, f is continuous as it is a distance function from a singleton set {x}.

Hence, f(A) attains a minimum value at some a∈A. See Theorem 3.85.

Theorem 3.127 (Distance minimizer in a closed set)

Let X be a Euclidean metric space. Let AβŠ†X be a nonempty closed set. Let x∈X. Then, there exists an a∈A such that

d(x,A)=d(x,a).

In other words, the infimum of the distance between x and points of A is realized at a point in A.

Proof. Since A is nonempty, we can pick some b∈A and compute r=d(x,b). Clearly,

d(x,A)≀d(x,b)=r.

Consider the set

C={a∈A|d(x,a)≀d(x,b)=r}=A∩B[x,r].

In other words, C is the intersection of A and the closed ball B[x,r] centered at x and of radius r. Since A is closed and B[x,r] is closed, hence C is closed.

It is easy to see that

d(x,A)=d(x,C).

For any points u,v∈C, we have:

d(u,v)≀d(u,x)+d(x,v)≀r+r=2r.

Thus, C is closed and bounded. By Heine-Borel theorem, C is compact.

Now, for a fixed x∈X, consider the function f:Xβ†’R given by:

f(y)=d(y,x)βˆ€y∈X.

Then, f is continuous.

  1. By Theorem 3.78, f(C) is compact (continuous images of compact sets are compact).

  2. But f(C)βŠ†R.

  3. Hence, f(C) is closed and bounded as R is Euclidean (Heine-Borel theorem).

  4. Hence, f(C) attains a minimum value at some a∈C. See Theorem 3.85.

3.11.3. Distance Between SetsΒΆ

Recall from Definition 3.6 that the distance between two subsets of a metric space is given by

d(A,B)=inf{d(a,b)|a∈A,b∈B}.

Theorem 3.128 (Distance between disjoint compact and closed sets)

Let (X,d) be a metric space. Let A,BβŠ†X be disjoint (i.e., A∩B=βˆ…). Assume that A is compact and B is closed.

Then, there is Ξ΄>0 such that

|xβˆ’y|β‰₯Ξ΄βˆ€x∈A,y∈B.

In other words, the distance between A and B is nonzero; i.e., d(A,B)>0.

Proof. We prove this by contradiction.

  1. Assume that there is no such Ξ΄>0.

  2. Then there exist sequences {xn} of A and {yn} of B such that

    limnβ†’βˆž|xnβˆ’yn|=0.
  3. Since A is compact, hence {xn} has a convergent subsequence, say {xnk} which converges to some x∈A.

  4. Now,

    |xβˆ’ynk|≀|xβˆ’xnk|+|xnkβˆ’ynk|.
  5. Since {xnβˆ’yn} is a convergent sequence, hence {xnkβˆ’ynk} also converges to 0.

  6. Thus,

    limnβ†’βˆž|xβˆ’ynk|≀limnβ†’βˆž|xβˆ’xnk|+limnβ†’βˆž|xnkβˆ’ynk|=0+0=0.
  7. Thus, {ynk} is a convergent sequence of B converging to x.

  8. Since B is closed, hence x∈B.

  9. But then, x∈A∩B.

  10. Thus, A∩Bβ‰ βˆ… which is a contradiction.