21 - Continuous functions
These lecture notes are slightly repetitive with those of the previous lesson except here we do prove Theorem 4.8 in Rudin. It just takes a while longer to get there.
Where we left off last time
- Recap: Last time we said what it means for a function to be continuous. To say the function is continuous means the following:
-
Closeness: At each , for every , there is a such that there exists where implies that . That is, close enough points map to close points. That is, you have some function that is taking some space into some space , and we want to say it's continuous if it doesn't tear the space up in some way. For example, you could have a function that looks something like the following (poorly drawn but idea is face is split in half and separated):
The above would not be a continuous function. Why is that? Well, because, morally speaking, there are close points in , as and pictured above, which get mapped far away in some sense, namely to and .
To be a little more precise, we want to say this function is continuous at a point if no matter how close you are in the codomain you can find a ball in the domain such that if you're within a ball from point then the image is within that of the image of . So let's try to model this with our picture:
Is continuous at for the chosen above (the drawing is bad but the idea should still come across)? No. Why not? Well, not the entire image of everything in the -ball ends up in the -ball (the slight corner that's missing):
So we'd say no, the function is not continuous at the pictured because there is an -ball (such as the one pictured) such that there is no -ball around that will map entirely into the -ball.
-
Sequences: Just to make this connection more integrated with some of the things we have seen, we also saw there was a sequence version of continuity as well, namely the following: For every convergent sequence in , we have
that is, the limit of the images is the image of the limit. (Continuous functions preserve limits.)
In our picture, let's pick a point where we think the function is continuous. How about the point :
So if we look at sequences that actually converge to , let's call those points , then is it the case that their images, , converge to ? If the answer is yes for all such sequences, then the function is continuous at that point .
-
Topological definition of continuity
What was the topological definition of continuity and how do we prove it?
-
Theorem statement: The function is continuous if and only if for every open set in we have that is open in .
-
Remark about inverse images or preimages: Worth noting is to recall how the inverse image (also called the preimage) is defined: . So the inverse image is the set of all points that get mapped into . Particularly worth noting is that the inverse image need not be a function (the inverse is a function if and only if is one-to-one and onto). More precisely, if is any function (not necessarily invertible), then the inverse image or preimage of an element is the set of all elements of that map to :
The preimage of can be though of as the image of under the (multivalued) full inverse of the function . Similarly, if is any subset of (just like we are dealing with an open set as a subset of in our theorem), then the inverse image of is the set of all elements of that map to :
For example, take a function defined by . This function is not invertible. Yet inverse images may be defined for subsets of the codomain:
The inverse image of a single element , namely the singleton set , is sometimes called the fiber of . When is the set of real numbers, it is common to refer to as a level set.
In our context, maybe we have the following picture:
We could ask what the inverse image of is here. What is that? It will be the set of all points in that are mapped into . As noted above, the function may not actually have a corresponding inverse function, but the image of will have an inverse image. Consider the following picture:
Suppose we have the following mappings:
We see that the inverse image of is even though , , all map to . So the function would not have an inverse function. However, the function would have an inverse function.
-
Revisiting theorem: What does it mean for a function to be continuous? We claim it's equivalent to saying the inverse image of any open set in is open. Let's consider the following picture of a function:
What is the inverse image of for the figure above? Well, it's the set of all points that get mapped into . We can figure that out by just looking at what gets mapped in there. What gets mapped into ? Well, it looks like two intervals:
Note that the sets on the -axis are open are they not? So consists of those two sets. We see that the sets on the -axis do not contain their endpoints because how we've drawn does not contain its endpoints either. Maybe we consider another open set :
What will the inverse image of be?
Notice that there no points get mapped to above the curve in , but there are points that get mapped to in the indicated region. So the inverse image of any open set is open so long as the function is continuous. What would go wrong if the function were not continuous? Suppose we have the following function:
Can you show me an open set in for the function above whose inverse image is not open in ? How about an open set that encloses the bolded dot but not the open one? How about the following:
We see that is actually not open. We have a half-open interval. Since we found just one open set in whose inverse image was not open, we know the function pictured above is not continuous.
Maybe we consider a function , where is not the whole real line but just some subset of it (in the picture below the subset is just the point on the -axis along with the open interval):
Is the function above continuous? Yes. The only place where we worry about it not being continuous is at the single point (let's call it ) off to the left when we are using the - definition or if you use the limit definition. There's only one sequence that converges to the point on the -axis, namely , and the limit of the images of this sequence is , and so it satisfies the sequence characterization of continuity. Is it the case here that the inverse image of open sets is open? We might be worried about the following set:
What's for the identified open set above? It's just the point on the -axis. Is this a problem? No, why not? The inverse image is just a single point, but this point is open in . Why? Because there is a ball around that point in , and the ball only contains that one point so that point by itself is open in .
So our pictures and example problems jibe with the definition of continuity we have given. Let's now try the proof.
-
Restatement of theorem (as seen in [17]): A mapping of a metric space into a metric space is continuous on if and only if is open in for every open st in .
-
Forward direction (proof): Let's remind ourselves what it means for a function to be continuous. What it means for a function to be continuous is no matter which point you are at in the codomain, let's say we pick in the domain and in the codomain, then you draw an -ball around , and there is a corresponding -ball in the domain whose image is mapped completely into the -ball. That's the - definition of continuity. So we'll be able to use that fact if we need it.
Now, what's our goal in this part of the proof? We are proving the forward direction which means we are assuming that is continuous on (i.e., for every point in ). So the goal, assuming continuity of , is to show that the inverse image of open sets is open. So we should start with an arbitrary open set in . Maybe we have a picture that looks like the following:
Our goal, in fact, is to show that the inverse image of or (i.e., the set of all points in which get mapped into ) is also open in . We have no idea what the inverse image of looks like, but maybe it looks something like the following:
Who knows whether or not the blobs in pictured above are open? The two blobs together form . How do we show is open? How do we show any set is open? Pick a point inside of , say :
What do we do with this point ? We want to show that is an interior point. How do we show that is an interior point of ? There's a ball around whose images lie completely within . But why is that? Why is there a tiny little ball around whose image lies completely in the set ? Because is continuous! What does that have to do with it? Let's consider the image of our point in :
Why should there be a ball around ? Because is open. Good. So that means is interior of so that's some ball of radius . So let's draw an -ball around to represent this:
Now, because of continuity, there's a -ball around :
What's true about the -ball around ? Its image ``blob'' lies completely in the -ball:
Since this blob lies completely in the -ball, then it lies completely within . Let's write out explicitly what we have done in our picture(s).
Given open in , consider . We will show is an interior point of . Note , where is open. Thus, there exists an -ball . By continuity, there exists a -ball that maps into . Thus, . So is an interior point of , as desired, thus concluding the proof of the forward direction of the theorem.
-
Backward direction (proof): For the reverse direction, we want to assume that inverse images of open sets are open. And we want to show that, in fact, the function is continuous, and we'll use the - definition. So how do we do that? Well, start by fixing some in no matter which one. (We don't care because this will be a general argument.)
Fix , and pick some . To show continuity, we want to show that for every there is a such that blah blah blah. So our job is to find a . That's our goal. Now, you will hopefully use the idea that inverse images of open sets are open (otherwise there would be little sense in claiming the concepts are equivalent). How will we use this idea? Let's draw a picture of the starting situation, where a has been fixed:
Now, just like before, we'll start off by looking at :
We'll take an -ball around :
Our job here is to find a -ball around such that the -ball maps completely into the -ball. Now, the inverse image of open sets is open. Is there an open set on which we can use that fact to our advantage? How about the -ball? It's an open set. Thus, its inverse image, whatever it is, could look very strange:
It may be helpful to introduce some notation here: Let the -ball around be denoted by , and by hypothesis, the inverse image of or is open in :
Why does that mean there is a -ball that maps completely into that -ball? Since is open, and lives in the inverse image of , what can we say? We know maps onto the -ball. The point is interior to the open set and must therefore have a ball around it. And we'll call the radius of this ball , and that will be the we want to use:
Let's try to formalize what we've communicated with pictures above.
Let be an -ball about in . Then , which is open by assumption. Since is an interior point of , there exists some ball that lies completely within . This has the required property. Why? It is certainly true that if you are within this -ball then the image lies in the -ball. Why? Because the -ball lies in the inverse image of , the -ball. In summary, the chosen has the required property that ensures , as desired. Thus, is continuous.
As a side note, it should be observed that in the picture(s) above, the -ball could very will be partially outside of , where there would then be no preimage for part of it. But that is fine. We're verifying whether or not our function is continuous at . So we'll be looking at some . Thus, at the very least, the point will have a preimage. But we don't necessarily know that anything around it has a preimage. It could be the case that the entire blob pictured above in gets mapped to the single point . That's fine. But then what does an open set around look like? It will be a ball, but the only thing it will have in its preimage will be that blob.
Let's now see why this characterization of continuity is very useful.
-
Continuity with compositions (see [17]): Consider the continuous functions and or simply . The composition of and is then continuous; that is, is continuous.
Rudin proves this using the - definition, but we can have more fun with it now given the definition of continuity involving open sets. So we can use the - definition if we like, but it's messier than it needs to be. Let's think about this in terms of the open set characterization of continuity.
If we want to show the composition is continuous, where we do first and then , all we have to do is show that the inverse image of an open set in is open in . What should we do? Given open in , is open in since is continuous. Then is open in since is continuous. But this is just , which is thus open and what we wanted to show, thus concluding the proof.
-
Another consequence (concerning closed sets): If the inverse image of open sets is open, what is likely to be the inverse image of closed sets? A closed set. Why? By taking complements. Here's the theorem:
The function is continuous if and only if for all closed then