Heine's theorem. Every function that is continuous on a closed bounded interval [a;b] is uniformly continuous on it.
The words closed bounded interval are essential: they denote an interval of R that is both closed and bounded, that is, a compact set. In its general form, due to Heine in 1872, the statement says that a continuous map from a compact metric space to a metric space is uniformly continuous.
The theorem is purely existential: it guarantees that a uniform δ exists, without ever providing it.
Proof by contradiction
Suppose f is continuous on [a;b] but not uniformly continuous. The negation of the definition reads:
∃ε0>0,∀δ>0,∃(x,y)∈[a;b]2,∣x−y∣≤δ and ∣f(x)−f(y)∣>ε0
Apply it successively to δ=n1 for each integer n≥1. We obtain two sequences (xn) and (yn) in [a;b] such that
∣xn−yn∣≤n1and∣f(xn)−f(yn)∣>ε0
The sequence (xn) lives in [a;b], so it is bounded: the Bolzano–Weierstrass theorem provides a strictly increasing extraction map φ and a real number c such that xφ(n)→c. Since [a;b] is closed, the limit c still belongs to [a;b].
The continuity of fat the single point c then gives f(xφ(n))→f(c) and f(yφ(n))→f(c), hence
∣f(xφ(n))−f(yφ(n))∣n→+∞0
which contradicts the strict lower bound ε0>0. The initial assumption is therefore absurd, and f is uniformly continuous on [a;b].
Variant using a covering
A second proof uses the Heine–Borel theorem. For ε>0, continuity at each point x gives a δx>0 such that ∣f(y)−f(x)∣≤2ε whenever ∣y−x∣≤δx. The open intervals centered at x with radius 2δx cover [a;b]; we extract a finite subcover indexed by x1,…,xm, and set
δ=min(2δx1,…,2δxm)>0
This minimum is strictly positive because the family is finite: that is exactly where compactness comes in. The triangle inequality then lets us conclude.
Classic pitfall
The theorem fails as soon as either of the two hypotheses on the interval is dropped.
Interval
Example
Uniformly continuous?
[0;1], closed and bounded
x↦x2
yes, by Heine
]0;1], not closed
x↦x1
no
[0;+∞[, not bounded
x↦x2
no
Another frequent confusion: Heine says nothing about differentiability. The function x↦∣x∣ on [−1;1] is not differentiable at 0 and is still uniformly continuous.