Two definitions that look alike
First, let us recall ordinary continuity of f on an interval I, written with its quantifiers:
∀x∈I,∀ε>0,∃δ>0,∀y∈I,∣y−x∣≤δ⟹∣f(y)−f(x)∣≤ε
Uniform continuity on I moves a single quantifier, and that changes everything:
∀ε>0,∃δ>0,∀(x,y)∈I2,∣x−y∣≤δ⟹∣f(x)−f(y)∣≤ε
Where is the difference?
| Notion |
Order of quantifiers |
What δ depends on |
| Continuity on I |
∀x,∀ε,∃δ |
on ε and on x |
| Uniform continuity on I |
∀ε,∃δ,∀x |
on ε only |
In the second case, one and the same δ must work everywhere on I: that is the meaning of the word "uniform". We immediately deduce the implication
f uniformly continuous on I⟹f continuous on I
and the converse is false in general, as the following example shows.
Example: x↦x2 is not uniformly continuous on R
Let f(x)=x2 and, for n≥1:
xn=nandyn=n+n1
The two points get as close as we like, since ∣yn−xn∣=n1→0. Yet their images stay apart:
∣f(yn)−f(xn)∣=(n+n1)2−n2=2+n21≥2
With ε=1, no δ>0 can work for all x at once: it suffices to take n such that n1≤δ to break the definition. The function is indeed continuous at every point, but far from the origin δ must be chosen smaller and smaller, because the slope f′(x)=2x blows up.
Classic pitfall
Never write "let δ be associated with ε by the continuity of f" before having fixed x: this δ depends on x. If your proof then needs the same δ for another point, you are silently using uniform continuity — which is exactly what Heine's theorem will allow, but only on a closed bounded interval.