Let a,bβR with a<b, and let f:[a,b]βR be continuous on [a,b]. We prove that f is uniformly continuous on [a,b].
Suppose, to the contrary, that f is not uniformly continuous on [a,b]. Then by Uniform Continuity on a Subset of the Real Numbers, there exists Ξ΅0β>0 such that for every Ξ΄>0 there exist x,yβ[a,b] with β£xβyβ£<Ξ΄ and
β£f(x)βf(y)β£β₯Ξ΅0β.
We will construct a nested sequence of closed intervals
Inβ=[Ξ±nβ,Ξ²nβ]β[a,b]
with the following properties:
In+1ββInβ,Ξ²nββΞ±nβ=2nbβaβ,
and for each n the restriction of f to Inβ is not uniformly continuous.
Set I0β=[a,b]. Since f is not uniformly continuous on I0β, at least one of the two halves
[a,2a+bβ],[2a+bβ,b]
also has the property that the restriction of f to that half is not uniformly continuous; otherwise both restrictions would be uniformly continuous, and then f would be uniformly continuous on all of [a,b]. Choose that half to be I1β. Continuing inductively, once Inβ is chosen, bisect it into two halves and let In+1β be a half on which the restriction of f is not uniformly continuous.
The left endpoints (Ξ±nβ) form an increasing sequence, and every right endpoint Ξ²nβ is an upper bound for the set {Ξ±nβ:nβN}. By the least upper bound property Least Upper Bound Property of the Real Numbers, there exists
c=sup{Ξ±nβ:nβN}βR.
Since Ξ±nββ€c for all n, and since Ξ²nβ is an upper bound for the set of left endpoints, one also has cβ€Ξ²nβ for all n. Thus
cβInβ
for every n.
Now f is continuous at c because it is continuous on [a,b]. Hence there exists Ξ΄>0 such that whenever β£tβcβ£<Ξ΄, one has
β£f(t)βf(c)β£<2Ξ΅0ββ.
Choose n so large that the length of Inβ is less than Ξ΄. Since cβInβ, every point tβInβ satisfies β£tβcβ£<Ξ΄. Therefore for all x,yβInβ,
β£f(x)βf(y)β£β€β£f(x)βf(c)β£+β£f(c)βf(y)β£<Ξ΅0β.
This shows that the restriction of f to Inβ is uniformly continuous, contradicting the construction of Inβ.
The contradiction shows that f is uniformly continuous on [a,b].