Professional Documents
Culture Documents
Very roughly speaking, a set U of real numbers is said to be an open set if around every point of U there is some room to move in both the direction of increasing real numbers and decreasing real numbers without leaving the set U . The formal denition is as follows:
1
Denition [Open set of real numbers] A set U R is an open set (or is open) if for every y U there is some = (y ) > 0 such that (y , y + ) U .
We write
can, and will, generally, depend on y : that is, y is given and we then nd a suitable .
Example The open interval U = (1, 2) is open. To see this, let y U . Then y is between 1 and 2. Provided we take to be no more than the smaller
A similar argument shows that any open interval (a, b) is open (which is a relief, since we refer to it as an open interval!).
example depends on y here. For example, if y = 1/2 U , we can take = 1/2, and
(y , y + ) = (1, 2) = U U.
But Then
(y , y + ) = (3/4, 7/4) U.
Example The interval U = (1, 2] is not open, because if we take x = 2 then no matter how small is, the interval (2 , 2 + ) contains numbers greater than 2 and hence does not lie entirely in U = (1, 2].
(Note that, although there is an open interval in U around every other point of U , the fact that this fails to hold for the single point 2 is enough to show that U is not open: to be open, we would need the condition to hold for every point of U .)
It should not be thought that all open sets are open intervals: although every open interval is open, there are many other types of open set. For example, the set (1, 2) (3, 4) is open, but it is not an open interval.
Collections of sets
Suppose that S is some set and I is some nonempty (indexing) set such that for each i I , we have a set Ai S . Thus, {Ai : i I } is a collection, or family, of sets. The intersection and union of the sets in the family are easily dened:
Ai = {x : x Ai for all i I }
iI
Ai =
I
(S \ Ai),
S\
I
Ai =
I
(S \ Ai).
Whats the point here? Well, we could imagine having a set Ai for each positive integer i. But we could have even more sets: one for each i in some interval of real numbers, for example.
Ai = (0, 2].
Theorem The union of any collection of open sets is again an open set.
Proof. Let I be an indexing set, and for each i I , let Ai be an open set. Let A = iI Ai. We want to prove that A is open. Take x0 A. Then there exists i0 I such that x0 Ai0 . Since Ai0 is open, there exists that (x0 , x0 + ) Ai0 A. > 0 such
We also have the notion of closed sets. But before dening what this means, we need to clear up one source of potential confusion. By analogy with the use of the words open and closed in everyday language, we might think that a given set of real numbers must be either open or closed, and that if it is not open, it is closed.
This, unfortunately, will not be the case: as we shall see, sets can be open but not closed, closed but not open, both open and closed, or neither open nor closed!
Denition A set C R is a closed set (or is closed) if whenever (xn) is a convergent sequence and xn C for all n, then the limit of the sequence, lim xn, is in C .
So a set C is closed if for any convergent sequence of members of C , the limit of the sequence is in C .
This is a tricky denition to work with, but as we shall see shortly, there is another way of describing closed sets.
Example The interval C = [0, 1] is closed. To see this, suppose that (xn) is any sequence in C , converging to a limit L. Then for each n, xn C , so 0 xn 1. Now, it follows from this that 0 L 1, so L C , and hence C is closed.
Example The interval C = (0, 1] is not closed. Consider the sequence (xn) where xn = 1/n. For all n, xn C . The sequence converges to 0, but 0 is not in C . So C is not closed.
We mentioned that closed is not the opposite of open, but the following result linking open sets and closed sets is very useful.
Theorem A set C of real numbers is closed if and only if its complement R \ C is open.
Proof Because this is an if and only if result, there are two things to prove here: rst, that if C is closed then R \ C is open; secondly, that if R \ C is open then C is closed.
Suppose, rst, that C is closed and consider its complement U = R \ C . We want to show U is open. Suppose it isnt. Then there is some y U such that for no > 0 do we have (y , y + ) U . In other > 0, the interval (y , y + ) does not
= 1/n. Then
there is some xn (y 1/n, y + 1/n) such that xn C . Because |xn y | < 1/n, we have that xn y as n . So here we have a sequence (xn) in C such that lim xn = y C . But this cannot happen since C is closed. So whats gone wrong? Well, we supposed that R \ C was not open, and this supposition must therefore be wrong. So R \ C is open.
Next, suppose that R \ C is open. To prove that C is closed, we need to show that the limit of any convergent sequence of points of C is in C . So suppose (xn) is a convergent sequence, with xn C , and L = lim xn. We need to show L C .
R \ C , so there is some
(L , L + ) R \ C . Now, because xn L, there is some N such that for n > N , |xn L| < , that is xn (L , L + ). But then for n > N , xn R \ C . This is a contradiction to the fact that xn C . So we have gone wrong in assuming that L is not in C . Therefore it is in C , and C is closed.
This theorem is an extremely useful characterisation of closed sets. In fact, we could, if we had wanted, have taken the denition of a closed set to be a set C whose complement R \ C is open, and many texts do this.
Example Consider again the set C = [0, 1]. We can show it is closed by considering its complement. For,
R \ C = R \ [0, 1] = (, 0) (1, ),
and this is open because it is the union of two open sets. So, since the complement of C is open, C is closed.
Week 8 Lectures
Open and closed subsets of Rm Open balls For m > 1, the counterpart in Rm to the open interval in R is the open ball. Denition [Open Ball] For x Rm and open ball of radius around x is > 0, the
B (x) = {y : x y < } . This is the set of y whose distance from x is less than .
Example When m = 1, B (x) is exactly the open interval (x , x + ). Example In R2 the open ball B (x) is the region enclosed by a circle of radius centred at x. Note that the points on this circle do not lie in B (x). (Just like the points x (x , x + ).) and x + do not lie in
We have already investigated the notion of open sets of real numbers. All the ideas and results extend to
Rk .
Denition A subset U of Rn is open if for any y U , there is = (y) > 0 such that B (y) U.
This is just a generalisation of the denition of an open set in R: Denition A subset U of R is open if for any y U , there is = (y) > 0 such that (y , y + ) U.
Informally, a set is open if, from any point of the set, we can move some positive distance in any direction without going outside the set.
Theorem. For any x Rn and r > 0, the open ball Br (x) is an open set.
y Br (x); we need to nd
B (y) Br (x). Let have
zx
= <
zy+yx zy + yx
+ x y = r x y + x y = r.
But there are other types of open set. Just as for open sets in R, the union of any collection of open subsets of Rn is again open. Theorem The union of any collection of open sets is again an open set.
Proof. Let I be an indexing set, and for each i I , let Ai be an open set. Let A = iI Ai. We want to prove that A is open. Take x0 A. Then there exists i0 I such that
> 0 such
It is also true that the intersection of a nite number of open sets is open.
Theorem Let k be a positive integer, and let A1, A2, . . . , Ak be open sets in Rn. Then the intersection A = k i=1Ai is also open.
Proof. Let x A; then x Ai for i = 1, 2, . . . , k. Since each of the Ai is open, for each i = 1, 2, . . . , k, we can nd i > 0 such that B i (x) Ai. Let = min{ i : i = 1, 2, . . . , k} > 0. Then
However, it is not true that the intersection of an arbitrary collection of open sets is open.
For an example, take Ai = (1/i, 1/i) for each i N. Then each Ai is an open interval and hence an open set in R, but A = i=1Ai = {0}, and this is not an open set in R. (Check!)
Closed sets in Rm Just as for subsets of R, we can dene the notion of a closed subset of Rm. Denition A set C Rm is a closed set (or is closed) if whenever (xn) is a convergent sequence and xn C for all n, then the limit of the sequence, lim xn, is in C .
So a set C is closed if for any convergent sequence of members of C , the limit of the sequence is in C .
As for the case m = 1 investigated above, we have the following result, the proof of which is similar to the one given earlier. Theorem A set C Rm is closed if and only if its complement Rm \ C is open.
Proof Because this is an if and only if result, there are two things to prove here: rst, that if C is closed then Rm \ C is open; secondly, that if Rm \ C is open then C is closed.
Suppose, rst, that C is closed and consider its complement U = Rm \ C . We want to show U is open. Suppose it isnt. Then there is some y U such that for no > 0 do we have B (y) U . In > 0, the ball B (y) does not lie
= 1/n. Then
there is some xn B1/n(y) such that xn C . Because xn y < 1/n, we have that xn y as n . So here we have a sequence (xn) in C such that lim xn = y C . But this cannot happen since C is closed. So whats gone wrong? Well, we supposed that Rm \ C was not open, and this supposition must therefore be wrong. So Rm \ C is open.
Next, suppose that Rm \ C is open. To prove that C is closed, we need to show that the limit of any convergent sequence of points of C is in C . So suppose (xn) is a convergent sequence, with xn C , and L = lim xn. We need to show L C .
Rm \ C , so there is some
B (L) Rm \ C . Now, because xn L, there is some N such that for n > N , xn L < , that is
As in the case of R, this theorem is an extremely useful characterisation of closed sets. Again, we could have taken the denition of a closed set to be a set C whose complement Rm \ C is open, and many texts do this.
Theorem The intersection of any collection of closed sets is again a closed set.
Theorem Let k be a positive integer. For i = 1, 2, . . . , k, let Ai be a closed set in Rn. Then the
n. union A = k A is a closed set in R i=1 i
Proof. For i = 1, . . . , k, let Bi = Rn \ Ai. Then Bi is open for i = 1, 2, . . . , k, so B = k i=1Bi is also open. But
n\ k (Rn \ A ) = Rn\ k B = Rn\B, A = k A = R i i=1 i i=1 i i=1
The denition of continuity of a function f : Rn Rm at a Rn can also, straightforwardly, be phrased in terms of open balls. Theorem The function f : Rn Rm is continuous at
To see this, recall that f is continuous at a if, given > 0, there exists > 0 such that the condition
is
Thus x B (a) implies that f (x) B (f (a)), i.e. the image f (B (a)) B (f (a)).
We have a simple characterisation of continuity (on the whole of Rn). To state this succinctly, we need a new notation. Suppose that f : Rn Rm, and that B Rm. Then we denote by f 1(B ) the subset {x Rn : f (x) B } of Rn consisting of all points which f maps into B .
The use of the notation f 1 should not be taken as meaning that the inverse function f 1 of f exists: the same symbol is used here, but it means something dierent. (In particular, f 1 as dened here is not a mapping from Rm to Rn but is, instead, a mapping from all subsets of Rm to subsets of Rn.)
Theorem Suppose f : Rn Rm. Then f is continuous if and only if for all open subsets U of
Let us prove this result. Since it is an if and only if statement, there are two things to prove.
Assume rst that f is continuous. This means that, for each point a Rn, f is continuous at a. Take an open set U in Rm: we want to show that f 1(U ) is an open subset of Rn. This means that, for any
Take a f 1(U ). Then f (a) U . Since U is open, there exists > 0 such that B (f (a)) U .
nd > 0 such that f (B (a)) B (f (a)) U . Thus for every point y B (a), f (y) gets mapped into B (f (a)), and thus into U . But this means exactly that B (a) f 1(U ), so this does the job.
In other words, we want to show that, given any > 0, and thus any open ball B (f (a)), there exists > 0 such that f (B (a)) B (f (a)) .
Take
Then, by assumption, inverse image f 1(B (f (a))) is an open subset of Rn. Since f (a) B (f (a)), a f 1(B (f (a))). Since f 1(B (f (a))) is open, there exists > 0 such that B (a) f 1(B (f (a))). But this means that f (B (a)) B (f (a)), as required.
Here is an alternative characterisation of continuity. Theorem Suppose f : Rn Rm. Then f is continuous if and only if for all closed subsets C of
Proof. We already know that f is continuous if and only if, for all open subsets U of Rm, f 1(U ) is an open subset of Rn. Suppose f is continuous. Let C be a closed set in
Here we have used the following fact: if U1, U2 are two subsets of Rm, then f 1(U1 U2) = f 1(U1) f 1(U2).
Theorem. Suppose that (Ui : i I ) is a collection of subsets of Rm, and suppose that f : Rn Rm is a function. Then f 1 (iI Ui) = iI f 1(Ui).
Proof. Let x f 1 (iI Ui). By denition, f (x) iI Ui, so there exists i0 such that f (x) Ui0 . Thus x f 1(Ui0 ), which implies that
x iI f 1(Ui).
Thus we have shown that f 1 (iI Ui) iI f 1(Ui).
Conversely, suppose that x iI f 1(Ui); then there exists i0 such that x f 1(Ui0 ), and so f (x) Ui0 . Thus f (x) iI Ui, and this implies that
x f 1 (iI Ui).
Thus we have shown that iI f 1(Ui) f 1 (iI Ui) .
Compactness
Compact sets
The idea of a compact set is extremely important in analysis. There are a number of ways of dening what we mean by a compact set. The rst (and main) approach we take is through what is sometimes called sequential compactness.
Theorem [Bolzano-Weierstrass Theorem] Every bounded sequence (xn) in Rm has a convergent subsequence.
Consider a closed bounded interval [a, b] of real numbers (where a < b). Suppose that (xn) is a sequence of real numbers each belonging to [a, b]. The Bolzano-Weierstrass theorem tells us that this has a convergent subsequence. Since each member of the subsequence is between a and b, so too is L. So we have established:
But what exactly are the compact subsets of R, and, more generally, Rm? The following characterisation, known as the Heine-Borel Theorem, is very useful. Theorem [Heine-Borel Theorem] A subset C of Rm is compact if and only if it is both closed and bounded.
For example, the subset [1, 2] [3, 6] of R is compact, but [1, 2) is not.
Some texts dene compactness by saying that a set is compact if and only if it is closed and bounded. This is a reasonable approach when dealing with Rm, but the denition of compactness we have given is substantially more general. It can apply (as we shall see) to metric spaces other than Rm.
Conside the rst half of the theorem. Namely, we want to prove that, if C is compact, then it must be closed and bounded.
Suppose that C is compact. Let us show it is closed. That is, we need to prove that, for every sequence
By compactness, such a sequence xn has a subsequence xnk such that x = limk xnk is contained in C .
However, xn converges to x, and thus so also do all its subsequences. Thus x = x lies in C . So C is closed.
Let us now show that C is bounded. Suppose for a contradiction it is not bounded.
xn > n.
We show that the sequence xn has no convergent subsequence, contradicting the compactness of C . Suppose that xnk is a subsequence and that xnk x as k . Then there is some N such that for all k N , xnk x 1. Hence, for all k N ,
But also
xnk > nk k ,
as k .
Conversely, assume that C is a closed and bounded subset of Rm. We want to show C is compact. Take a sequence (xn) such that xn C for each n. We want to show that there is a subsequence (xnk ) of (xn) such that (xnk ) converges to an element of C.
Since C is bounded, (xn) is bounded. By Bolzano-Weierstrasss Theorem, there is indeed a convergent subsequence (xnk ) of (xn). Since each xnk C and since C is closed, the limit limk xnk lies in C as required.
Theorem. Let C and D be compact sets in Rn. Then the union C D is a compact subset of Rn.
Without loss of generality, assume that innitely many members of (xn) are in C . Consider the subsequence of these members, (xn)nI , for some I N. This is a sequence of vectors in the compact set C , so has a subsequence (xn)nJ (J I ), such that (xn)nJ converges to some x C . (xn)nJ is therefore a subsequence of (xn) that converges to an element of C D.
Theorem. Let k N and let A1, A2, . . . , Ak be compact sets in Rn. Then the union A = k i=1Ai is a compact subset of Rn.
However, it is not true that the union of an arbitrary collection of compact sets is also compact.
For example, consider Ai = [0, i] for each i N. Then each Ai is a closed and bounded interval in R, and hence compact. However, iNAi = R+ is unbounded and hence not compact.
For another example, let Ai = [1/i, 1] for each i N. Then each Ai is a closed and bounded set in R, and hence compact. However, iNAi = (0, 1] is not closed and hence not compact.
The following result is useful. Earlier we mentioned that a continuous real function on a closed interval [a, b] of the real numbers is bounded on the interval and attains its maximum and minimum. That result can be seen as a special case of the following one.
Theorem Suppose that f : Rn Rm is continuous and that C Rn is compact. Then the image of C under f , f (C ) = {f (x) : x C } is a compact subset of Rm.
Proof. We want to show that f (C ) = {f (x) : x C } is compact in Rm. In other words, we need to show that, for any sequence (yn) in f (C ), (yn) has a subsequence converging to some element of f (C ). For each n, since yn f (C ), there exists xn C such that yn = f (xn). Consider the sequence (xn) in C . Since C is compact, there is a subsequence (xnk ) of (xn) converging to a limit x C .
We show that ynk = f (xnk ) f (x) as k . Let > 0. By continuity of f , there exists > 0 such provided x y < .
Since xnk converges to x there exists an N such that whenever nk k > N , xnk x < . Then, as long as nk k > N , f (xnk ) f (x) < . Since > 0 was arbitrary, f (xnk ) f (x) as k .
We now use the fact that f (C ) is bounded and closed to prove that it achieves its maximum and minimum.
Let M = sup f (C ) = sup{f (x) : x C }, and let m = inf f (C ) = inf {f (x) : x C }. Since f (C ) is bounded, these are nite real numbers.
By denition of sup and inf, for each n N, there exist yn f (C ) and yn f (C ) such that M 1/n < yn M and m + 1/n > yn m.
Then yn M and yn m as n . Since f (C ) is closed, M f (C ) and m f (C ). But then there exists x1, x2 C such that f (x1) = M and f (x2) = m.
Worked example. Prove that the subset C = {x : x = (x, y )T R2, x 2, x + y 0} is closed, stating clearly any results that you use.
We have C = C1 C2, where C1 = {x : x = (x, y )T R2, x 2} and C2 = {x : x = (x, y )T R2, x + y 0}. Since the intersection of any nite collection of closed sets is closed, it is enough to show that both C1 and C2 are closed.
Now, a set is closed if and only if its complement is open, so it is enough to show that the complements
c and C c are both open. C1 2
We have
c = {x : x = (x, y )T R2, x > 2}, C1 c then B c , so C c is and if x = (x, y )T C1 ( x ) C x 2 1 1 open.
Similarly,
c = {x : x = (x, y )T R2, x + y < 0}, C2 c then B c , so C c and if x = (x, y )T C2 ( x ) C (x+ y ) 2 2 is open.