Real Analysis · Undergraduate
Open, Closed and Compact Sets in ℝ
Quick answer
A set of real numbers is open when every point has a small interval around it inside the set, and closed when it contains all its limit points. The interval (0, 1) is open, [0, 1] is closed, and (0, 1] is neither. A set is compact when every sequence in it has a subsequence converging to a point of the set. By the Heine–Borel theorem, the compact sets in ℝ are exactly the closed and bounded ones, and a continuous function on a compact set reaches a maximum and a minimum.
What you'll learn
- Decide whether a set of reals is open, closed, both or neither
- Find limit points of a set
- Use the Heine–Borel theorem to identify compact sets
- Apply the extreme value theorem on a compact set
Room around every point
A set is open if every in has some with .
A number is a limit point of if every interval around contains a point of other than . A set is closed if it contains all its limit points, which is the same as its complement being open.
A set is compact if every sequence in has a subsequence that converges to a point of .
| Set | Open? | Closed? | Compact? |
|---|---|---|---|
| yes | no | no | |
| no | yes | yes | |
| no | no | no | |
| no | yes | no | |
| no | yes | yes |
Why closed and bounded means compact
Take a sequence in a closed, bounded set . Being bounded, it has a convergent subsequence by the Bolzano–Weierstrass theorem, which follows from the monotone convergence theorem. Its limit is a limit point of , or a point of already. Since is closed, the limit lies in , so is compact. Without boundedness, has no convergent subsequence; without closedness, in converges to , outside the set.
Worked examples
Common mistakes
Practice problems
-
Find the largest with .
Answer
Full solution
.
-
Find the largest with .
Answer
Full solution
.
-
Is closed?
Answer
Yes
Full solution
Its complement is open.
-
Of the sets , , and , how many are compact?
Answer
Full solution
and are closed and bounded; is not closed and is not bounded.
-
Find the limit point of that is not in the set.
Answer
Full solution
Every interval around contains for large .
-
Find .
Answer
Full solution
is an upper bound, and no smaller number is. It is not in the set, so has no maximum.
-
Find the maximum of on .
Answer
Full solution
It occurs at .
-
A student says is compact because it is bounded. Is compact?
Answer
No
Full solution
The sequence in converges to , so no subsequence has a limit in the set.
Frequently asked questions
What is an open set?
A set U where every point x has some ε > 0 with (x − ε, x + ε) inside U.
What is a closed set?
A set that contains all its limit points. Equivalently, its complement is open.
Can a set be both open and closed, or neither?
Yes. ℝ and ∅ are both. Intervals like (0, 1] are neither.
What does the Heine–Borel theorem say?
A subset of ℝ is compact if and only if it is closed and bounded.
Why does compactness matter?
A continuous function on a compact set attains a maximum and a minimum there.