Compact subsets of the real line
A set is compact if every open cover has a finite subcover. In , Heine–Borel says this is equivalent to being closed and bounded; it is also equivalent to every sequence in having a subsequence converging to a point of . The closedness requirement keeps the subsequential limit in the set; boundedness permits extraction. We use the sequential form in the proofs below.
Theorem
Extreme value theorem
If is nonempty and compact and is continuous, then is bounded and attains both a maximum and a minimum on .
Proof
Extract a maximizing subsequence
If were unbounded above, choose with . A subsequence exists; continuity would give , contradicting divergence to infinity. The same reasoning applied to gives boundedness below. Let . Choose with . A convergent subsequence tends to some , and continuity implies . Apply the argument to for a minimum.
Worked example
Which hypothesis fails?
The continuous function on is bounded but has no maximum or minimum: and are not in the domain. The set is bounded but not closed, hence not compact. On , both endpoints are present and the extrema are attained. Compactness is a sufficient global hypothesis, not a condition required for every individual function to attain extrema.
Uniform continuity
Definition
One delta for the entire domain
A function is uniformly continuous on if for every there exists such that for all , implies . The chosen can depend on but not on or .
Theorem
Heine–Cantor theorem
Every continuous real-valued function on a compact set is uniformly continuous.
Proof
Contradiction using compactness
If uniform continuity failed, some would permit, for every , points with but . Compactness supplies a subsequence . Since the paired distances tend to zero, also . Continuity gives both and , contradicting the output separation.
Worked example
Pointwise but not uniform on an unbounded domain
The function is continuous on but not uniformly continuous there. Take and . Then , but . On any closed bounded interval, Heine–Cantor does give uniform continuity. It is also direct: if , then .
Method comparison
Use compactness and continuity to guarantee boundedness, attainment and one common continuity scale; check both closedness and boundedness in . Use a Lipschitz estimate to prove uniform continuity directly, even on noncompact domains. To disprove uniform continuity, construct pairs whose input distances approach zero while output differences stay above a fixed positive threshold.
Practice
- Prove is uniformly continuous on .
- Show is not uniformly continuous on .
- Does every continuous function on attain its maximum and minimum? State the theorem used.
- Is compactness necessary for to be uniformly continuous on ?
Full solutions
- Given , choose . Then whenever .
- Take and for . Their distance tends to zero, but , which does not tend to zero. Thus no single works for .
- Yes. The interval is nonempty and compact and the function continuous; the extreme value theorem guarantees both extrema are attained.
- No. The zero function is uniformly continuous on any domain; the compactness hypothesis is sufficient, not necessary.
Synthesis
Compactness allows sequences to yield limits inside the domain. Continuity then turns these limits into global attainment and a uniform input scale. The absence of compactness removes these guarantees, but does not force every conclusion to fail.