Continuity gives a local scale near each point, and those scales can shrink as the point moves. Compactness prevents an escaping sequence from defeating every common scale. This is why the same structural condition supplies both attained extrema and uniform continuity, although each conclusion uses a different contradiction argument.
The open-cover/sequential equivalence is proved in the later compactness foundations note; the extraction proofs here explain its two principal uses.
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 3.2.1
(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 3.2.2
(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.
Quick check
(Does on attain a maximum and a minimum? Which hypothesis of the extreme value theorem fails, and does its conclusion fail?)
Find the supremum and the infimum of the values separately.
Solution · Answer
On we have , so the values satisfy . The minimum is attained at . The supremum is , approached as , but it is not attained: forces , and neither lies in the domain. The domain is bounded but not closed, hence not compact. The conclusion fails only in part: the minimum exists and the maximum does not, consistent with compactness being a sufficient hypothesis rather than a necessary one.
Uniform continuity
Definition 3.2.3
(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 3.2.4
(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 3.2.5
(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 .
The explorer below turns each proposed δ = 1/k into the defeating pair n, n + 1/n, and separately shows the working δ = 1/(2M) on [−M, M] for ε = 1.
Counterexample mode
Bounded outputs still need not give a uniform scale
The preceding example has both an unbounded domain and unbounded outputs. Neither feature is needed for uniform continuity to fail. Consider
This function is continuous at every point of its domain, as a composition of continuous functions there, and . To see why one common scale still fails, choose a peak and the next trough of the sine wave:
Both points lie in and tend to zero. Their distance is
but and , so the output distance is always . Fix . For any proposed , a sufficiently large gives while . This negates the uniform-continuity definition in its proper order: the same positive defeats every proposed .
There is no contradiction with ordinary continuity: both sequences approach , which is outside the domain, so continuity at a domain point cannot be applied at their common limit. The function also has no continuous extension to , since the two sequences would force incompatible limiting values. By contrast, restricting the same function to for restores uniform continuity by compactness. Boundedness of the outputs and boundedness of the domain alone do not replace the missing endpoint.
A uniform scale can exist without a derivative bound
Compactness proves existence of one for every , but an explicit estimate shows how to choose it. For , assume . Then
so . Given , therefore works on all of , which is not compact. The derivative is unbounded near zero, so a bounded-derivative test cannot establish this fact on that domain. Uniform continuity is weaker than being Lipschitz.
There is no finite Lipschitz constant even on : comparing and would require for every , or , impossible. This does not contradict the uniform bound, whose modulus is a square root rather than a constant multiple of the input difference.
Worked example 3.2.6
(Moving the domain away from the singularity)
On the function is not uniformly continuous, as the second practice item below shows. Restrict it instead to with . For ,
So is Lipschitz with constant on , and works for every ; for this is . The domain is unbounded and not compact, so Heine–Cantor does not apply; the explicit estimate does the work.
The admissible scale must shrink as decreases. Take and . The pair , has and , so every that works for on satisfies . These bounds tend to as , which is why no single survives on .
Quick check
(Show that is uniformly continuous on with an explicit .)
Factor and bound the second factor on the interval.
Solution · Answer
For , and . Hence , and works for every . Heine–Cantor guarantees that some exists; the factorization produces one. On all of the same function is not uniformly continuous: for and , the input distance is , while .
Practice. Prove that a uniformly continuous sends every Cauchy sequence in to a Cauchy sequence. Does ordinary continuity suffice?
Full solution. Given , uniform continuity gives a single . Choose so for all ; then . Ordinary continuity does not suffice: is Cauchy in , but the continuous map sends it to , which is not Cauchy. The missing limit point zero lies outside the domain; pointwise scales can shrink along the sequence. This is the mechanism behind the closure-extension theorem in the later unit.
Two close-point tests that look alike
Uniform continuity sends every Cauchy sequence in the domain to a Cauchy sequence. It also has a different sequential characterization: it controls two sequences whose terms become close, even if neither sequence is Cauchy. The difference matters when the close pairs move farther and farther out in an unbounded domain.
Theorem 3.2.7
(The two-sequence criterion)
Let . A function is uniformly continuous if and only if, for every two sequences satisfying , we have .
Proof X-ray
Negate the quantifiers before choosing the pairs
If is uniformly continuous, fix and choose its one . The input distances are eventually below , so the output distances are eventually below ; this proves convergence to zero.
Conversely, if uniform continuity fails, there is an such that for every some satisfy but . For each positive integer , choose such a pair with . Then the input distances tend to zero, but the output distances never fall below . The constructed pairs violate the stated sequential condition, so that condition implies uniform continuity. The fixed is essential: it is chosen once before the sequence of pairs.
Counterexample mode
Preserving Cauchy sequences is weaker
Consider the subset of and the real-valued function
The definition is unambiguous: , so the second kind of point is never an integer and points belonging to different lie in disjoint intervals . Take , for . Their distance tends to zero, but for every . The two-sequence criterion shows that is not uniformly continuous.
Nevertheless, sends every Cauchy sequence in to a Cauchy sequence. Indeed, a Cauchy sequence in is bounded, while any bounded part of contains only finitely many points: only finitely many indices are possible. If the finite set has more than one point, its distinct points have a smallest positive separation . Eventually the Cauchy sequence has all its terms within of one another, so those terms must be equal. The single-point case is immediate. Thus every Cauchy sequence in is eventually constant, and so is its image under .
Each point of is isolated: within distance 1 of it there are only finitely many points of , so a small enough neighborhood contains no other one. Consequently is also continuous at every point of its domain. There is no contradiction: the bad paired sequences above escape to infinity and are not themselves Cauchy. The two-sequence criterion does not demand that they be Cauchy or have a common limit.
Check. Why can the sequence not be used as a counterexample to preservation of Cauchy sequences? It is unbounded, hence not Cauchy. What defeats uniform continuity is instead the pairwise distance together with the fixed output separation 1.
Quick check
(Let be uniformly continuous on the bounded interval . Prove that is bounded.)
Take the for and control by finitely many sample points.
Solution · Answer
Choose such that implies . Pick an integer and the points for , all in . Every lies within distance less than of some , so , where . Thus is bounded. Ordinary continuity is not enough, as on shows; the uniform scale is what lets finitely many sample points control the whole interval.
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.