Docsity

Continuous Functions in Metric Spaces: Definition and Examples - Prof. Roberto C. Pelayo, Study notes of Topology

Toggle sidebar
bg1
Math 394 - Topology
Metric Spaces: Continuous Functions
4.1 Motivating Continuous Functions
The major motivation for studying metric spaces was that they provide us with a natural context
in which we can talk about continuous functions on more general spaces (more general than Ror
Rn, that is). Our quasi-definition of a continuous function is that if xand yare close together,
then f(x) and f(y) are also close together. When meditating on this concept, it became clear that
we needed to understand what “close together” meant. What we have seen in the last couple of
chapters is that a metric space allows us to formally discuss what “close” and “far apart” meant in
terms of the metric d. In what follows, we will formalize the definition of a continuous function on
a metric space.
Before we proceed, though, we will recall some of the various notational conventions and defini-
tions for functions.
4.2 Function Basics and Notation
4.2.1 Functions, Domains, and Co-domains
Given any two sets Sand T, a function
f:S→T
is an assignment to every element s∈San element f(s)∈T. Crucial to this definition is that to
every element s∈S, we assign only one f(s)∈T; this feature is known as being well-defined. The
input set Sis known as the domain and the output set Tis known as the co-domain.
4.2.2 Images
We call f(s)∈Tthe image of s. We can also talk about the image of a set of elements. For
example, if U⊂S, then f(U) is called the image of Uand is defined as the set of all images of
elements of U:
f(U) = {t∈T|t=f(u) for some u∈U}.
If we wish to understand all of the outputs that are actually “hit” by out function f, then we can
simply ask for the image of f, denoted by Im(f) and given by
Im(f) = {t∈T|t=f(s) for some s∈S}.
Thus, the image of a function is simply the image of the entire domain: Im(f) = f(S).It should be
noted that it is not necessary (in fact, not even probable) that the image of fis the entire co-domain
T. In general, it is only true that the image is a subset of the co-domain:
Im(f)⊂T.
In the case where Im(f) = T, the function fis said to be onto or surjective.
1
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Continuous Functions in Metric Spaces: Definition and Examples - Prof. Roberto C. Pelayo and more Study notes Topology in PDF only on Docsity!

Math 394 - Topology

Metric Spaces: Continuous Functions

4.1 Motivating Continuous Functions

The major motivation for studying metric spaces was that they provide us with a natural context in which we can talk about continuous functions on more general spaces (more general than R or Rn, that is). Our quasi-definition of a continuous function is that if x and y are close together, then f (x) and f (y) are also close together. When meditating on this concept, it became clear that we needed to understand what “close together” meant. What we have seen in the last couple of chapters is that a metric space allows us to formally discuss what “close” and “far apart” meant in terms of the metric d. In what follows, we will formalize the definition of a continuous function on a metric space. Before we proceed, though, we will recall some of the various notational conventions and defini- tions for functions.

4.2 Function Basics and Notation

4.2.1 Functions, Domains, and Co-domains

Given any two sets S and T , a function

f : S → T

is an assignment to every element s ∈ S an element f (s) ∈ T. Crucial to this definition is that to every element s ∈ S, we assign only one f (s) ∈ T ; this feature is known as being well-defined. The input set S is known as the domain and the output set T is known as the co-domain.

4.2.2 Images

We call f (s) ∈ T the image of s. We can also talk about the image of a set of elements. For example, if U ⊂ S, then f (U ) is called the image of U and is defined as the set of all images of elements of U : f (U ) = {t ∈ T | t = f (u) for some u ∈ U }.

If we wish to understand all of the outputs that are actually “hit” by out function f , then we can simply ask for the image of f , denoted by Im(f ) and given by

Im(f ) = {t ∈ T | t = f (s) for some s ∈ S}.

Thus, the image of a function is simply the image of the entire domain: Im(f ) = f (S). It should be noted that it is not necessary (in fact, not even probable) that the image of f is the entire co-domain T. In general, it is only true that the image is a subset of the co-domain:

Im(f ) ⊂ T.

In the case where Im(f ) = T , the function f is said to be onto or surjective.

4.2.3 Pre-images

As we saw above, images are the outputs of elements of the domain. Pre-images are the analogue of images with respect to input elements. If f (s) = t, then we call s the pre-image of t. Notationally, we frequently write f −^1 (t) = s. Clearly, a pre-image always lies in the domain. Just like with images, we can talk about the pre-image of a set. Given a set V ⊂ T , the pre-image of V is the set of all pre-images of elements in V :

f −^1 (V ) = {s ∈ S | f (s) ∈ V }.

Pre-images of sets are not frequently discussed in much detail in Set Theory or other transitional Mathematics courses. In coming chapters, though, we will see that the concept of a pre-image is paramount in understanding continuous functions in topological spaces.

4.3 Continuous Functions

Now that we are equipped with the basic nomenclature for function theory, we may begin to talk about continuous functions in metric spaces. First, since we are discussing functions, we must bring into the conversation two separate sets. In our case, since the definition of continuity will requite a metric, our domain S and our co-domain T will both have metrics which are probably different. Thus, in what follows, we assume that S is a metric space with metric dS and T is a metric space with metric dT. We will soon define what it means for a function to be continuous at a point a. Thus, we will see that a function can be continuous at a point a while not be continuous at another point b. A function will be called continuous if it is continuous at every point in its domain. Recall that we intuited a continuous function to be one such that if x and y are close together, then f (x) and f (y) are also close together. As with sequences, we may ask “how close?”. Here, though, “close” is applied to both the pre-images x and y as well as their images f (x) and f (y). So, we will need to represent their close distance by two small numbers: ε and δ. Again, similar to sequences, the definition of continuity is phrased in the “for all..., there exists...” format.

Definition - Continuous Function at a. Let S and T be metric spaces with metrics dS and dT , respectively and let a ∈ S. A function f : S → T is called continuous at a if for every ε > 0, there exists a δ > 0 such that whenever x satisfies dS (x, a) < δ, then dT (f (x), f (a)) < ε.

Once again, the definition comes in the form of a challenge. If we wish to prove that f is continuous as a, then we are given some small ε > 0. We are asked to supply a δ > 0 so that whenever x is within distance δ from a, then we can guarantee that its image f (x) is at most distance ε from f (a). Intuitively, we are challenged to find a small enough ball in the domain so that all x in this small ball are mapped very close to f (a). To complete the definition of continuity, we must now define continuity for a function (and not just a function at a point.).

Definition - Continuous Function. Let S and T be metric spaces. A function f : S → T is continuous if it is continuous at every a ∈ S.

4.4 Examples of Continuous Functions in R

Now that we have the general definition of a continuous function between two metric spaces, we can specialize the definition to that of a continuous real function. In other words, in this sub-section,

If m 6 = 0, then given ε > 0, consider δ =

ε |m|

. Notice that δ > 0 since ε > 0 and |m| > 0. Then,

for |x − a| <

ε |m|

, we can cross multiply by |m| > 0 without changing the inequality to obtain

|m| · |x − a| < ε.

Using properties of the absolute value, we distribute the |m| to obtain

|m(x − a)| < ε.

Distributing the m and adding and subtracting a b, we obtain

|(mx + b) − (ma + b)| < ε.

Thus, for |x − a| < δ, we have shown that |f (x) − f (a)| < ε. Thus, f is continuous at any a and thus continuous for all R.

4.5 Continuous Functions in Other Metric Spaces

Above, we saw how our metric space definition of the continuity of a function specialized to the usual Analysis ε − δ definition for real-valued functions. Below, we will see examples of continuous functions in other metric spaces.

4.5.1 Constant Functions

Between any metric spaces, the most basic kinds of functions are those where everything in the domain is mapped to a single element in the co-domain. In other words, if S and T are metric spaces with metrics dS and dT , respectively, a constant function f : S → T is one in which f (s) = c for all s ∈ S. Here, notice that every single s is mapped to exactly the same c. So, in this case, the image of the function is a single point:

Im(f ) = {c}.

Furthermore, the pre-image of c is the entire domain S since the entire domain maps onto c:

f −^1 ({c}) = S.

In the proof that linear real functions are continuous, we showed that constant functions are continuous as one of the cases. Below, we will prove that this is true between general metric spaces.

Proposition. Let S and T be metric spaces with metrics dS and dT , respectively. Any constant function f : S → T given by f (s) = c for all s ∈ S is continuous.

Proof. Given ε > 0, let δ = 1 (any positive δ would work here). For any x ∈ S (in particular, for any x such that dS (x, a) < δ), then

dT (f (x), f (a)) = dT (c, c) = 0 < ε.

Thus, the constant function f is continuous at a. In fact, the constant function is continuous at any a and is thus a continuous function.

4.5.2 Continuous Function with Discrete Metric Spaces

If we think about the definition of a continuous function f : S → T , then we must, given some ε > 0, provide a δ > 0 such that whenever ds(x, a) < δ, then dt(f (x), f (a)) < ε. Of course, when one of our sets has a discrete metric on it, continuity becomes a little uncanny. Recall that in a discrete metric space that if d(x, y) is less than a small enough number (like any number less than or equal to 1, then x = y. This comes from the fact that any two distinct points are distance exactly 1. Thus, to ask that d(x, y) be strictly less than 1 apart means that d(x, y) = 0 and thus x = y by positive-definiteness. So, if our co-domain T is given the discrete metric, then we are given some ε > 0 (think something like ε = .1). We then must find a δ such that whenever dS (x, a) < δ, then dT (f (x), f (a)) < ε. However, if ε = .1, then, since dT is the discrete metric, we must show that f (x) = f (a). Thus, we have to choose a δ small enough so that all points within distance δ from a all map to exactly the same point f (a). This rarely happens. A constant function will certainly satisfy this, but, depending on the metric on S, not many other functions will. On the other hand, if our domain S is given the discrete metric, then continuity is very easy to achieve. In fact, we have the following proposition.

Proposition. Let S be a discrete metric space and let T be any metric space. Then any function f : S → T is continuous.

Discussion. We are given some ε > 0. Our job is to find a δ > 0 such that when dS (x, a) < δ, then dT (f (x), f (a)) < ε. Since S is a discrete metric space, then if we choose δ small enough (like δ = 12 ), then the only x such that dS (x, a) < 12 is a itself. Thus, for x = a, we have f (x) = f (a) and thus dT (f (x), f (a)) = dT (f (a), f (a)) = 0 < ε.

Proof. Let a ∈ S. Given ε > 0, let δ =

. Then, whenever dS (x, a) < δ then x = a because S is a

discrete metric space. Thus, for these x, we have that f (x) = f (a) and so

dT (f (x), f (a)) = dT (f (a), f (a)) = 0 < ε.

Since this proof works for every a, any function f (x) is continuous for at every point in the domain S.

4.5.3 Continuous Functions on C([0, 1])

Below, we will see the first example of a continuous function from specific, yet different metric spaces. The domain of this function will be the space of continuous functions on the interval [0, 1], which we denote as C([0, 1]). Recall that elements of this set are functions, and the metric we usually put on this set is the L^1 metric given by

d(f, g) =

0

|f (x) − g(x)| dx.

We want to build a function ϕ that has as its input a continuous function on [0, 1] and as its output a real number. In other words, we will be describing below a function

ϕ : C([0, 1]) → R.

For such a function to make sense, we will be inputting some element from the domain f ∈ C([0, 1]) and it will output some real number ϕ(f ) ∈ R. So, consider the following:

ϕ(f ) =

0

f (x) dx.

Of course, our lemma provides us with the fact that

∣ ∣ ∣ ∣

0

g(x) − f (x) dx

0

|g(x) − f (x)| dx.

Since we are free to choose δ, let us choose it as δ = ε.

Proof. We will show that ϕ is continuous at any f ∈ C([0, 1]). Given ε > 0, let δ = ε > 0. Then, for all g ∈ C([0, 1]) satisfying (^) ∫ 1

0

|g(x) − f (x)| dx < δ = ε,

we can use the above lemma to get that

|ϕ(g) − ϕ(f )| =

0

g(x) dx −

0

f (x) dx

0

g(x) − f (x) dx

0

|g(x) − f (x)| dx < ε.

Thus, |ϕ(g) − ϕ(f )| < ε, as desired. So, ϕ is continuous at any f ∈ C([0, 1]) and thus ϕ is a continuous function.

4.6 Compositions of Continuous Functions

Recall that if we have two functions f and g where the co-domain of the first function f is the same as the domain of the second function g, then, we may construct a new function called the composition that “inserts” g inside of f. More formally, if we have f : S → T and g : T → R, then we can define the composition function g ◦ f : S → R given by

g ◦ f (s) = g(f (s)).

Thus, the composition map g ◦ f takes s ∈ S and maps it to f (s) ∈ T ; it then takes this and applies g to obtain the final answer of g(f (s)) ∈ R. So, a composition first “does” f to s and then does g to that output to end up with an answer in R. Our main question in this section is if continuity is preserved under compositions. In other words, if we have a continuous functions f : S → T and g : T → R, then will the composition g ◦ f : S → R also be continuous. Notice that here we have three separate metric spaces in play and must thus deal with three separate metrics: dS , dT , and dR.

Theorem. Let S, T , and R be metric spaces. If f : S → T is continuous and g : T → S are continuous, then the composition function

g ◦ f : S → R

is also continuous.

Discussion. We wish to show that g ◦ f is continuous at a. Thus, given some ε > 0, our job is to find a δ > 0 such that whenever dS (x, a) < δ then dR(g(f (x)), g(f (a))) < ε. We know two facts: f is continuous and g is continuous. Thus, since g is continuous at every point in T , it is continuous at f (a). Thus, for any εg > 0 of our choosing (like the ε that was given to us), there exists a δg > 0 such that for any t ∈ T satisfying dT (t, f (a)) < δg, then dR(g(t), g(f (a))) < ε. Now, since f is

continuous at every point in S, it is continuous at a. Thus, for any εf > 0 of our choosing (like εf = δg), we know that whenever x satisfied dS (x, a) < δf , then dT (f (x), f (a)) < εf = δg.

Proof. Let a ∈ S. Given ε > 0, we will find a δ > 0 such that whenever x ∈ S satisfies dS (x, a) < δ, then dR(g(f (x)), g(f (a))) < ε. Since g is continuous at f (a), then for ε > 0, there exists a δg > 0 such that any time y ∈ T satisfies dT (y, f (a)) < δg, then dR(g(y), g(f (a))) < ε. Similarly, since g is continuous at a, then for δg > 0, there exists a δf > 0 such that whenever x satisfied dS (x, a) < δg, then dT (f (x), f (a)) < δg. Thus, we choose our δ to be this δf. Now, we will show that whenever x satisfied dS (x, a) < δ = δf , then dT (g(f (x)), g(f (a))) < ε. If dS (x, a) < δf , then, by the continuity of f at a, this implies that dT (f (x), f (a)) < δg. Since f (x) sat- isfied dT (f (x), f (a)) < δg, then by the continuity of g at f (a), we know that dR(g(f (x)), g(f (a))) < ε, as desired. Thus, we have proven that the composition function g ◦ f is continuous at any a ∈ S, and thus g ◦ f is a continuous function.

4.7 Continuous Functions and Convergent Sequences

The parallels between the convergence of a sequence and the continuity of a function should by now be clear. In particular, the similarities between the definitions, proof methodologies, and examples hint that there may be an actual mathematical connection. In particular, we may ask what happens if we have a function f : S → T continuous at a and a convergent sequence xn → a. Specifically, if we consider a convergent sequence xn → a in S, then we may map this sequence into the co-domain T by considering the new sequence f (xn). This is a sequence in T and we may ask if f (xn) converges. Ideally, if xn → a and f is a continuous function, then we may expect that f (xn) → f (a). We certainly expect this to be true given our intuitive definitions of the convergence of a sequence and the continuity of functions. In particular, note that since xn → a, then as n gets larger, xn gets closer to a. However, by the continuity of f , since for big values of n, xn and a are close, then f (xn) and f (a) are close. Thus, it seems very reasonable that the sequence f (xn) converges to f (a). This happens to be true. We include the theorem below without proof.

Theorem. Let S and T be metric spaces. A function f : S → T is continuous at a if and only if for every convergent sequence xn → a in S, the sequence f (xn) converges to f (a) in T.

4.7.1 Application of Theorem

This theorem is extremely useful because it gives an equivalent characterization for the continuity of a function. In fact, many Analysis texts use the above as a definition of a continuous function at a. Most practically, this theorem is helpful in showing that f is not continuous at some point a. Since our theorem is a biconditional statement, we know that the continuity of f at a is equivalent to f (xn) → f (a) for every convergent sequence xn → a. Thus, to prove that f is not continuous at a, we simply have to find a convergent sequence xn → a where f (xn) 6 → f (a). Consider the function f : R → R given by

f (x) =

0 if x ∈ Q 1 if x 6 ∈ Q

To graph this function would be difficult, but we get the idea that it would look like a series of dots both on the line y = 0 (corresponding to the outputs of rational numbers) and on the line y = 1 (corresponding to the outputs of the irrational numbers.