A1411 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 1x 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 2n closed intervals, each 3−n long.
  • The stems give the total remaining length, (2/3)n, 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?

Name it

Open and closed

  • A set U is open if every point x in it has a neighborhood (x−r,x+r) 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 S¯ 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 K⊆ℝ, these are equivalent:

  1. K is closed and bounded.
  2. Every sequence in K has a subsequence converging to a point of K.
  3. 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 {(1n,2):n≥1} of (0, 1] has no finite subcover.

Show the solution
  1. Take any finite subcollection. Any finite collection (1n1,2),…,(1nk,2) is contained in (1N,2), with N=max⁡ni.
  2. Find a point it misses. That interval misses the point 12N of (0, 1], so no finite subcollection covers (0, 1].
  3. Conclude. So (0, 1] isn't compact.
  4. What 0 would do. Adding the point 0 would break the cover, since no (1n,2) contains 0.

Answer every finite subcollection misses a point 12N, 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 (x−r,x+r)⊆(0,1)?

Show the solution
  1. Distance to the nearer end. r=min⁡(0.3,0.7)=0.3
  2. 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 A=[0,1)∪{2}.

Show the solution
  1. 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.
  2. Closure. A together with its limit points is [0,1]∪{2}; the point 1 is added, since 1−1n∈A converges to it.
  3. Boundary. Closure minus interior is {0,1,2}.
  4. Neither open nor closed. A isn't open (0 isn't interior) and isn't closed (it misses its limit point 1).
  5. 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 [0,1]∪{2}, and the boundary is {0,1,2}.

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 (x−r,x+r) inside it?

Check

Match each set with its description.

  1. Aneither open nor closed
  2. Bopen, not closed
  3. Cboth open and closed
  4. Dclosed, not bounded
  5. Eclosed and bounded, so compact

Check

Which statement about the set {1n:n≥1} 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, ln⁡2ln⁡(1/s), where each piece is scaled by s=1−r2?

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°.

Explain why

Why is a closed and bounded set of real numbers the right setting for "a continuous function has a maximum"?

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.