A14 · Lesson 11 · Open, closed and compact sets
The kind of set where maxima are guaranteed and sequences can't escape
Why does a continuous function on [0, 1] always reach a largest value, while on (0, 1] doesn't, and x on [0, ∞) doesn't either? The answer is a property of the set, not the function: [0, 1] is compact, meaning closed (it contains its edge points) and bounded. Compactness is what guarantees that optimization problems have solutions, that a bounded sequence of designs has a limiting design, and that a continuous error stays uniformly small. This lesson sets up the vocabulary: open sets, closed sets, limit points and compactness.
- The Cantor set: start with [0, 1], remove the open middle third, then the middle third of each piece, forever. Stage n has closed intervals, each long.
- The stems give the total remaining length, , which tends to 0. Yet the set left at the end is closed, bounded, and so compact, and it contains uncountably many points.
- Each stage removes open intervals, so what's left is always closed: a closed set's complement is open.
Predict
Which of these sets is compact?
: it's bounded, and closed because its only limit point, 0, is included. Leave out 0 and the sequence converges to a point outside the set, so it isn't closed. (0, 1] has the same problem at 0, and [0, ∞) is unbounded.
Name it
Open and closed
- A set U is open if every point x in it has a neighborhood inside U.
- A point x is a limit point of S if every neighborhood of x contains a point of S other than x.
- A set F is closed if it contains all its limit points; equivalently, its complement is open; equivalently, whenever a sequence in F converges, its limit is in F.
- The closure is S together with its limit points.
Unions of any number of open sets, and intersections of finitely many, are open. Intersections of any number of closed sets, and unions of finitely many, are closed. ℝ and ∅ are both open and closed; [0, 1) is neither.
Compactness
For a set , these are equivalent:
- K is closed and bounded.
- Every sequence in K has a subsequence converging to a point of K.
- Every cover of K by open sets has a finite subcover.
(The equivalence of 1 and 3 is the Heine–Borel theorem.) In infinite-dimensional spaces of functions, closed and bounded is no longer enough, which matters in lesson 32 onward.
Why it matters
On a compact set a continuous function attains its maximum and minimum, and is uniformly continuous (lesson 13). Sequences in it can't escape to infinity or to a missing edge point.
Worked example
Show that the open cover of (0, 1] has no finite subcover.
Show the solution
- Take any finite subcollection. Any finite collection is contained in , with .
- Find a point it misses. That interval misses the point of (0, 1], so no finite subcollection covers (0, 1].
- Conclude. So (0, 1] isn't compact.
- What 0 would do. Adding the point 0 would break the cover, since no contains 0.
Answer every finite subcollection misses a point , so there's no finite subcover and (0, 1] isn't compact.
Worked example
For x = 0.3 in the open interval (0, 1), what's the largest radius r with ?
Show the solution
- Distance to the nearer end.
- What it shows. Every point of an open interval has such a positive r, which is what makes the interval open; at the point 0 of [0, 1) there's none.
Answer r = 0.3, the distance to the nearer end.
Worked example
Find the interior, closure and boundary of .
Show the solution
- Interior. These are the points with a whole neighborhood inside A. That's (0, 1): 0 fails because points just left of it are outside, and 2 is isolated.
- Closure. A together with its limit points is ; the point 1 is added, since converges to it.
- Boundary. Closure minus interior is .
- Neither open nor closed. A isn't open (0 isn't interior) and isn't closed (it misses its limit point 1).
- The closure is compact. It's closed and bounded, hence compact, so a continuous function on the closure attains its maximum, which A alone doesn't guarantee.
Answer the interior is (0, 1), the closure is , and the boundary is .
Check
How much total length is left after 8 stages of the Cantor construction?
Check
How many intervals make up stage 10 of the Cantor construction?
Check
For x = 1.8 in the open interval (0, 2), what's the largest r with inside it?
Check
Match each set with its description.
- Aneither open nor closed
- Bopen, not closed
- Cboth open and closed
- Dclosed, not bounded
- Eclosed and bounded, so compact
Check
Which statement about the set is true?
Check
A Cantor-like set removes the middle fraction 0.2 of every remaining interval at each stage.
(a)
What total length is left after 5 stages?
(b)
What is its fractal dimension, , where each piece is scaled by ?
Check
Each stage of a Cantor construction removes the middle fraction r of every interval.
Step 1
What length remains after n stages?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What total length has been removed?
Explain why
Why is a closed and bounded set of real numbers the right setting for "a continuous function has a maximum"?
If the set is unbounded, the function can grow forever, like x on [0, ∞). If the set is missing an edge point, the function can approach a value it never reaches there, like near 0 on (0, 1], or like x on [0, 1), which gets arbitrarily close to 1 without reaching it. A closed and bounded set rules out both escapes: any sequence of points whose function values approach the supremum has a subsequence converging to a point of the set (bounded), that point is in the set (closed), and continuity carries the values along, so the supremum is actually attained there.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.