1. Home
  2. Explore
  3. Mathematics
  4. Connectedness in Metric Spaces

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Connectedness in Metric Spaces

Transcript

This is lecture 15 of A2: metric spaces,   and the first one corresponding to chapter  seven of the notes. Chapter seven is about various different notions of what  it means for a metric space to be   somehow joined up. And there are really  two different notions that will explore: the notion of connectedness and  the notion of path connectedness.   And we'll also look at the  links between those two notions. So in this lecture, we'll look at what's  called connectedness on metric space. To define what it means to be connected will  first say what it means to not be connected. So we say that a metric space is disconnected,   somehow can be separated  into two different blocks. So if you can write it as the disjoint  union of two non-empty open sets.

And we say that the space is connected, if you  can't do that, so if it's not disconnected. If you can disconnect it, if you  write it as a disjoint union of   two, not-empty sets U and V, then we  say that those two sets disconnect X. So let's give a little  example of a disconnected set. Consider the set X contained  in R consisting of the closed   interval [0,1] union, the closed interval [2,3].

Now, we remarked earlier in the  course that, relative to X, the   closed interval [0,1] is actually an open  set, even though it's not open at all. And so is it closed interval [2,3]. So I can  take those to be my U and V, respectively. That clearly disjoint, their union is the  whole of X and therefore they disconnect X. It's a bit harder to give an example of a  subset of the reals other than a single point   that's connected. Later on we'll show you that, in fact,  every interval in R is a connect set. And in fact, the converse is true as well.

It's often convenient to have a few different  ways of formulating the notion of connectedness. And that's what the next  lemma is about. So here are   three different ways of expressing what  it means for a space to be connected. Let X be a metric space and the following  three statements are equivalent. First, that X is connected.  Second, that any continuous map   from X to the two point space consisting  of just two elements, zero and one is constant. And thirdly, that the only  subsets of X, which are both open and closed   are the whole space X and the empty set.

So just to clarify, the set {0,1} here, you  can view it in either two equivalent ways, either as a subset of the reals or just as a  set of two elements with a discrete metric. So they are actually the same metric. Let's prove that those three properties,  one, two and three are equivalent. So let's first prove that one implies  two, so that if you're connected, then any   continuous zero one body function is constant.

So let X be a connected space. And  suppose that I have a continuous function   from X to the set {0,1}. Now, the singleton sets  consisting of zero and one, respectively, they are both  open sets in the space {0,1}. And I know that the inverse image of an  open set under a continuous map is open, that is an important   characterisation of continuous maps that  we established earlier in the course. Therefore, f inverse of the singleton set {0},  which we usually write as f inverse of zero   and f inverse of one that both open subsets of X.

And they're certainly disjoint because nothing  maps under f to both zero one at the same time. And their union is the whole space X. Therefore,  since X is connected, one of them must be empty. And that means that f is constant. I  mean, if f inverse of zero is empty, that means that everything maps to one. So  f inverse of one must be the whole space. And similarly, if f inverse of one is empty, then f takes the constant value zero.  Now, let's prove two implies three. So in other words, if every  continuous maps to {0,1} is constant, then the only open and closed sets  are the whole space and the empty set.

So supposing you have a set A in  X that is both open and closed. Well, then, it's complement is also both open  and closed. And, in particular, it's open. So what that means is that if you define  a function f from X to the set {0,1}   by defining it to be one on A  and zero on the complement of A, then that's continuous. So why is that  continuous? Well, the inverse image of zero   is a complement which is open, and the inverse image of one is A which is opened. And therefore the image, the  inverse image of every open set is open because the only other open sets are  the empty set of the whole space {0,1}.

Now, so we've got this continuous  function from X to {0,1}, but we're assuming that any such function is  constant. Now, it could be the constant one, and in that case,   A is the whole of X; or it could be the constant  zero and that corresponds to A being empty. But we've shown that the only open and closed  subsets of A are the whole set and the empty set. Now, let's turn to three  implies one. So I suppose I know   that the only open and closed sets are the  empty set and the whole set, the whole of X, and I want to conclude that X is connected.

So suppose that X is written as the  disjoined union of open sets U and V. Well, then the complement of U is equal to V. And that's open, so complement of U  is open, which means that U is closed. So U is both open and closed. And if we're assuming that  every such set is either X or   the empty set, that means so that U  is either X or it's the empty set. And similarly for V. And so  there is no way to disconnect   X because however I write it as the union  of U and V with U and V open at disjoint, one of those two sets must be empty.

So that is the end of the proof that  those three properties are all equivalent. So one being connected, two being that  continuous zero one valued function are constant, and three being that the only open and  closed sets are X and the empty set. Next topic I want to look at is the issue of  when a subspace of a metric space is connected. And this comes up a couple of  times, so it's useful to have a nice   portable criterion for this rather than  returning to first principles every time. And here is a lemma to that effect. So let's X  be a metric space and take a subspace Y of X.

Then Y is connected as a metric space  if and only if the following is true: if U and V are open subsets of X such that the intersection of U,V and Y is empty - so  nothing lies in all three of U, V and Y - and if Y is contained in U union V, then either  Y is contained in U or Y is contained in V. So let's look at the proof of this. The key point  here is to recall what are the open set in Y, and remember that we showed earlier in  the course that the open sets in Y are exactly the things of the form U intersect  Y, where U it's an open set in X.

So let's take a pair U intersect  Y and V intersect Y of open sets. So when do they disconnect Y? Well, for them  to disconnect Y they'd have to be disjoint,   which means U intersect V intersect Y is empty. They'd have to cover Y, which  is equivalent to Y being contained in U union V. And it would have to be  the case that neither is empty. So Y is connected if and only if the first  two things written down here imply that,   in fact, one of U intersect  Y and V intersect Y is empty. So in other words, that  there's no disconnection of Y.

And it's quite easy to see that  that's equivalent - given conditions   one and two - to asking that either Y is  contained in U or that Y is contained in V. So this is a convenient little lemma. It's characterising when a subspace Y is  connected in terms of the open sets in X   rather than the open sets just intrinsic to Y. Now we're going to look at a few basic  properties of the notion of connectedness.

First one would call the sunflower  lemma because the setup it describes, well, I'll explain in a second. So we're going  to take a collection of connected subsets of X. We'll call them A_i, where i  ranges for some index in set I. And suppose that the intersection  of all of these is non-empty, so you can think of there being a  sort of central point and these set   all containing that central point,  looking a bit like a sunflower. Then the claim is that the union of all  of those sets is a connected set as well.

And this is an example where it's convenient, rather than using the initial  definition of connectedness   in terms of open sets to use  another characterisation. So we'll show that every continuous  {0,1} valued function on this sunflower, the union of the A_i, is constant. So  suppose I have such a continuous function f. Now, the intersection of  all of the A_i is not empty,   so pick a point x_0 in there,  doesn't matter which one.

And now I take an arbitrary  point x in the union of the A_i. So, in particular, that x will of  course lie in one of the sets A_i. But A_i is assumed to be connected and f restricts  to be a continuous {0,1} valued function on A_i. And therefore, f is constant on A_i.  And since both x and x_0 lie in A_i. Well, we're forced to conclude  that f(x) equals f(x_0).

But x was an arbitrary point, so f of everything,  f of an arbitrary point is equal to f(x_0), which, of course, means that f is constant.   And so that concludes the proof that  the union of the A_i. is connected. So that's the Sunflower Lemma. The next property that connectedness enjoys is   that if you take a set that's connected and  form its closure, then that's still connected. Perhaps not too surprising, but  the same is true also for any set B   that lies between A and the closure of A.

So to prove this one, we're  talking here about subspaces of X. And so we'll use that lemma characterising  when a subspace is connected. So let's put ourselves in the situation of that  lemma, so suppose B is contained in U union V, where U and V are open in X at the intersection  of the three sets, U, V and B is empty. And U and B are disjoint. Sorry U and  V are not disjoint, the intersection of U, V and B is empty. Now what we want to  show is that either B is contained in U or B is contained in V.

Well, we certainly know that A is contained  in U union V because A is contained B. And we also know that A intersect U intersect  V is empty again because A is contained in B. And we know that A is connected, so applying that lemma about connected subspaces   we conclude that either A is  contained in U or A is contained in V. And without loss of generality,  A is contained in U. Now, there's no point that's  in all three of A, U and V.

And since A it's is contained in U,  well, this forces us to conclude that   A is also contained in V complement.  If A wasn't contained in V complement, it would contain a point of V and that  point would be in all three of A, U and V. So A is contained in V complement. Now  V is open and so V complement is closed, and so it is equal to its own closure. So now  we're going to take closures of a few things.   By assumption, B is contained in the closure of A.

Now, A is contained in V complement, so if I take closure's of that  inclusion, I get that the closure of A   is contained in the closure of V complement. But the closure of V complement  is just V complement, again,   because V complement is a closed set. And so what I've deduced is that  B is contained in V complement. However, I'm assuming that B is  contained in the union of U and V, and if he is also contended in V complement,   well, the only conclusion I can draw  from this is that B is contained in U. And so I fulfilled my wish to show that either  B is contained in U, or B is contained in V.

That concludes the proof. Again, the key thing  here is to use the lemma that I proved earlier, characterising when a subspace is connected  in terms of open sets in the metric space X. The final basic property of  connectedness that I want to cover   is the continuous image of a connected set. So it turns out that continuous maps  preserve connectedness. You can't take   a somehow connected joined up set and disconnect it by apply a continuous map. You  can't pull - a continuous map won't pull it apart.

Let X be a connected metric space, take a  continuous map f from X to Y, where Y is some other metric space, then f(X)  is connected. Looking at the proof. Well, we may as well suppose the f is  subjective. Otherwise, just replace Y with F(X). There's no need to worry about points  of Y that are not in the image of f. So we'll suppose that some f(X) is connected. So we just need to show that Y is  -- so suppose that f is subjective so we just need to show that Y is a connected   space. Suppose that U and V are  disjoint open subsets of Y with U union V equal to Y. So we're  going to try and disconnect Y.

Then that inverse images f  inverse of U and F inverse of V, well, they are disjoint open subsets  of X. That disjoint joint because you can't map under f something that's in  both U and V because U and V are disjoint   and they're open because the  inverse image of an open set under continuous maps is open.  And their union is all of X.

So X is connected, and therefore that means that  one of them say the inverse image of U is empty. But that then means that U is empty.  So the inverse image of U is empty. That means nothing maps into  U. But f is a surjective map, and so have nothing maps into U that forces  us to conclude that there's nothing in U. So U an empty set. So we've shown that if I've got a partition of  U into open sets, U and V, that is disjoint, one of them's empty. That's exactly  what it means for Y to be connected.

Finally, I want to just have a look  at the topic of connected components. Let's go back to the sunflower lemma.   Maybe I'll just flip back to the  statement of the sunflower lemma to remind us. That's the  sunflower lemma. So if I've got some connected subsets of a metric space X, whose intersection contains at least one point,  then the union of all those subsets is connected. So what that means is that for each x in X there is a unique, maximal  connected subset of X containing x.

And the reason -- so that is the union -- that set   can be constructed as the union of all  connected subsets of X containing x. But the point is that that is a  connected set by the Sunflower lemma and therefore, it must be the  maximal connected subset of   X containing x because it's the  union of all such connected sets. So for every x, there's a unique maximal connected  subset of X which contains that point, x.

And that has a name. It's called the  connected components of X containing x. I will denote it by capital gamma of x. So  that's the connected component containing x. And those connected components  partition the space, as it turns out. And moreover, space is connected  precisely if it has just one connected component. Well, let's prove this fact. So suppose I  have two different connected components,   gamma of X and gamma of Y, and suppose that they're not disjoint.   Suppose there's an element a in the  intersection of gamma of X and gamma of y.

Well, then we wish to show that they're  actually the same set. So this is what it means   for these sets to partition the space: either that it's disjoint or the same.  Well, if I apply the sunflower lemma again Well, the union of these two sets,  gamma of of x and gamma of y,   is connected because they're  individually connected, gamma of x is connected, gamma of Y is  connected, and they meet in the point a. So I've got a connected set, gamma of  x union gamma for y, which contains a. But by the definition of  connected component, gamma of x   is the union of all connected sets that contain x.

And therefore, gamma of x must  contain gamma of x union gamma of y. The only way that can happen is if  gamma of y is contented in gamma of x. Similarly, gamma of x is contained in gamma of  y, and therefore gamma of x equals gamma of y. So if I've got two connected  components that are not disjoint,   then in fact they coincide,  therefore they partition the space. Well, a space is connected. Well, the second  statement is kind of obvious with what you know. Yeah. I mean, the space is  connected if and only if the maximal connected space containing  every point is the whole space. So that's if and only if  the whole space is connect.

Ok, so that is a discussion of  the notion of connectedness. We'll turn in the next lecture to the somewhat  different notion of path connectedness. And then we'll talk a bit about how those  two concepts are related to one another. This is lecture 15 of A2: metric spaces, and this  is pretty much an entirely non examinable lecture. In the last lecture, we talked about the  notion of connectedness for a metric space.   But we were only really able to give examples  of the spaces that weren't connected. And that's obviously somewhat  unsatisfactory. So in this lecture,   I want to describe the connected  subsets of the real life.

So let me give a definition. Let's  take a subset E of the real line. And we say that E has the interval  property if the following is true. So whenever I have two points  in E, x and y with, let's say, x < y, then the whole of the closed  interval between x and y is contained in E. So we have to prove the following two statements.   So we'll first prove that a subset  of the real line is connected if and only if it has the interval property.

And then second, we'll prove that a subset  of the real line has this interval property, if and only if it really is an interval. And so if you put those two things together,   you've got a theorem that the connected subsets  of the real line are precisely the intervals. Now, let me be clear about what the word interval  means in this context, an interval can be   infinite, either on the left  or the right or both sides, and on either side, it could be either  closed or open. So, for example,   the interval zero one that's open  on the left and closed on the right, that's an interval.

The set of real numbers strictly  greater than two is an interval,   the set of real numbers greater  than or equal to two is an interval. So all of those are intervals. So that's  a complete classification of the connected   subsets of the real line. Ok. So we going to prove these  two statements. We will prove the   number one first, that a subset  of the real line is connected if and only if it has this interval property. So that's the statement  that if I've got two points   in E, then the whole of the closed  interval between them is also in E. And then secondly, I'll show that that property  is equivalent to actually being an interval.

So let's turn to the proof  of this first statement. So there are two things to show there:   an "only if" direction and an "if"  direction. We will do the "only if" first. So suppose that E is a connected  subset of the real line   and that I've got two points x and y in E. So I want to show that he  has the interval property.   So I want to show that the whole of the closed  interval between x and y also lies in E. Well, if x equals y,   that's obvious. So suppose x is not equal  to y and then without loss of generality, let's suppose x is strictly that's the y.

And suppose that it's not the case that  the whole interval closed [x,y] lies in E. Well, if that is not the  case, then there's a point c strictly between x and y that doesn't lie in E. But if we have such a point c, then we  could disconnect E in the following way. So we'll take open sets U and V as  follows. So U is the set of real numbers strictly less than c. So the infinite  open interval, minus infinity up to c. And V is the set of real numbers strictly  bigger than c, so open c up to infinity.

So it's obvious that those two  sets U and V don't intersect. E is contained in U union V.   That's just because you U union V is the  whole real line except for the point c but by assumption c doesn't lie in E.  But we don't have E being contained in U, and that's because y is in E but it's  not in U. And E is not contented V, and that's because x is in E but not in V.

And if you recall from the last lecture, the  criterion for a subspace being disconnected. Well, what we've produced here is exactly a  disconnection of the subspace E of the reals. So E it is not connected, if it  fails to have the interval property. Now, let's turn to the other direction. So  suppose that E does have the interval property   and then we need to conclude  that E is a connected set. So I suppose it's not connected.  Well, then it may be disconnected. So E is contained in the union of two sets,  U and V, where U and V are open subsets of R.

The intersection of U, V and E is empty, but we  don't have E contained in U or E contained in V.  So once again, this is what it  means for E to be not connected. So the intersection of E with U and E with V are both not empty because otherwise we would  have either E contained in U or E contained in V. And so let's take a point in each of  those two intersections. I suppose   x lies in E intersect U and  y lies in E intersect V.

Now, the intersection of all  three sets E, U and V is empty. Therefore, we can't have x =  y. So x it's not equal to y. And we might as well assume that x is strictly  less than y without loss of generality. So now we use the fact that  E has the interval property   and that tells us that the whole of the close  interval between x and y is contained in E. So some of those points will lie in  U and some of them will lie in V.   And we'll define S to be the  set of all z between x and y, so all z inclosed in [x,y] for which z lies in U.

So it's a non-empty set because x lies in it. It's bounded because it's  contained in the closed interval   [x,y], and therefore it has the  supremum, which I'll call c. And whatever that c is that it also  lies in the closed interval [x,y]. So the close interval [x,y] is contained in E, and by assumption E is contained  in the union of U and V, and so the supremum c must lie in either U or V. And we'll look at those two cases separately  and we'll get a contradiction from either case. So suppose first that c lies in U.

Well, then definitely c is not  equal to y, because y lies in V. And since U is an open set, what that means  is that there has to be an open interval - I've just made it half open  on the right - so an interval,   close interval from c up to c plus epsilon that's contained in U and is  also contained in closed [x,y]. So - for that second statement I've  used the fact that c is not equal to y.

So that's just using the  fact that U is an open set. But this then means that the  interval from c up to c plus epsilon,   closed on the left and open on the right, that's contained in in S. That contradicts  the fact that c is an upper bound for S. For instance, the number  c plus epsilon/2 lies in S and it's strictly bigger than  c. So that's a contradiction. Now suppose, on the other hand, the c lies in V. Well, then c is not equal to x because x  lies in U, and because V is an open set, I can find some half open interval, c  minus epsilon up to c, so open on the left, closed on the right, that's contained  V and is also contained in [x,y].

So for that last statement, I've used the  fact that c is strictly bigger than x. Well, in particular, that means that   the closed interval from c minus epsilon  over two up to c is disjoint from S, because it's contained in V. And that contradicts  the fact that c is the least upper bound for S. So c minus epsilon/2 would be  a smaller upper bound for S. So c it couldn't have been  the least upper bound for S.   So in either case, I've got a contradiction here. And therefore, we were wrong to assume that  neither E is contained in U or is contained in V.  So actually, one of those two things  does happen, either E is contained in U   or E is contained in V and therefore is connected.

So that was a little bit long. Let's  just recall what we've achieved here. So we've shown that a set E is connected  - a set E of real numbers is connected   if and only if it has this interval property. And that was, what I called statement one earlier. Now, to complete the classification  of connected subsets of the reals I need to prove what I called statement two,   and that's the statement that a subset  of the reals has the interval property if and only if it is itself an interval. Ok, so we'll have a look at the proof of  that and to prove that it's convenient to   avoid dividing into lots of cases to  introduce a little abusive notation.

So if E is a subset of the reals, we will allow ourselves to talk about the infimum of E  even if E is not it bounded from below. So we let it take the value minus  infinity. And similarly for supremum: so it is a set that's not bounded from above,  we'll defined it supremum to be infinity. So that's a bit of an abusive notation.  Normally, we would only really talk about inf and sup up for bounded sets.

And another little piece of notation  that's convenient as a shorthand is that we'll allow ourselves to write the closed  interval from minus infinity up to a. Well, we don't - that doesn't really make   sense - I mean - that's just  what we mean when we write that is actually the half open interval, the  half line from minus infinity up to a. Similarly, I'll write for example,   close zero up to infinity when what  I mean is zero up to infinity open on the right. So the set of  numbers, greater or equal to zero.   So we'll see in a second why I want  to introduce these abuses of notation. Let's suppose that E has the interval  property, and write c for the infimum of E.

little c for the infimum of E  and C for the supremum of E. So because I'm allowing myself this abuse  of notation that c and C are always defined, even if E is not bounded. I claim  the following two inclusions. So I claim that the open  interval (c,C) is contained in E, and the E is contained in  the closed interval [c,C]. Now, here, when making this  formulation, I'm allowing myself   c could be minus infinity,  C could be plus infinity, so this is why I'm allowing myself to talk about,   for example, the closed interval  for zero up to infinity. So maybe let's just think about what this would  mean. When c is zero and C is plus infinity,

this claim is then the statement  that opens zero up to infinity - so, in other words, the real numbers,  strictly bigger than zero - are contained in E and that E contained in close zero up to infinity,   which by convention is the real  numbers greater than or equal to zero. So that's what this statement then  means. So I claim that inclusion. And that's easily seen to  imply that E an interval. I mean, when you see that inclusion  there are basically four different cases,   which might not actually be distinct cases, if c is minus infinity and/or C is plus  infinity. For example, if c is zero, C is one, well, this inclusion then tells me that (0,1) is  contained in E and that E is contained in [0,1].

And there are precisely four possible  sets E that have that property, so (0,1) (0,1], [0,1) and [0,1]. So you can convince yourself   that if I have a set E that sandwich between an  open interval and a closed interval in this way, that it really is it an interval in the usual  sense. So it remains to prove that claim.

Now, the right-hand inclusion, the fact that it is contained in close   [c,C] is just completely immediate  from the definition of inf and sub, and so the heart of the matter is to show the  left-hand inclusion, that (c,C) is contained in E. So let's do that now. So I  suppose I have a point z (c,C). I want to show you that z lies in E.  Well, there has to be a point x in E,   which is greater than or equal  to C and strictly less than z, because if not, z would  also be a lower bound for E. And it would be bigger than c. But  I'm assuming that c is the inf of E.

Similarly, there's a y in E, y less than or equal to C  and z strictly less than y, because otherwise, y would be an upper bound for E that is smaller than C. So those points x and y lie in E, and therefore by   the interval property the whole of  the closed interval [x,y] lies in E. But z lies in that close interval  [x,y] and therefore z lies in E.

So z was an arbitrary point in (c,C) and I've showed that it lies in E,  therefore the whole of that open interval (c,C) is contained in E, which is what I claimed. So that concludes the proof. Just to finish, let me explain why  the intermediate value theorem is an   application of what we've just shown  and the material of the last lecture. Suppose I have a continuous  function from [a,b] to the reals.

Well, I've just shown that  [a,b] is a connected set, and in the last lecture, I showed that the notion  of connected is preserved under continuous maps. So f([a,b]) is connected. What I have shown -  that this latter set is the image of [a,b] under f it's a connected subset of the reals  and therefore it's an interval. And in particular, it contains  every point c between f(a) and f(b);   so it has the interval property, is  contains every point between f(a) and f(b).

Ok. So, as I said, this  lecture is not examinable, but once you define the notion of connected set,   you really have to ask yourself: what  are the connected subsets of the reals? It's a very basic question. So we've  answered that question. That now gives us a lot of examples of connected sets. And then finally, we observe right at the end   that you can think of the intermediate  value theorem using this language. So that's the end of this lecture,   in the next lecture we will talk about  the notion of path connectedness.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent