A function f is said to be k-Lipschitz on I if there exists a constant k≥0 such that
∀(x,y)∈I2,∣f(x)−f(y)∣≤k∣x−y∣
Such a function is uniformly continuous: for a given ε>0, the choice δ=kε works everywhere when k>0, and any δ works if k=0.
In practice, the mean value inequality provides the most convenient criterion: if f is differentiable on I with ∣f′(x)∣≤k for every x, then f is k-Lipschitz, hence uniformly continuous.
A hierarchy to remember
Lipschitz⟹uniformly continuous⟹continuous
Neither implication can be reversed.
The square root function shows it: on [0;+∞[, the inequality ∣x−y∣≤∣x−y∣ gives uniform continuity with δ=ε2. Yet it is not Lipschitz on any neighborhood of 0, since
x−0x−0=x1x→0++∞
The modulus of continuity
The tool that measures all of this at once is the modulus of continuity:
ωf(t)=sup{∣f(x)−f(y)∣:(x,y)∈I2,∣x−y∣≤t}
The function f is uniformly continuous on I if and only if ωf(t)→0 as t→0+. It is a reformulation, but it makes error bounds much easier to read.
f
I
ωf(t)
Uniformly continuous?
x↦3x+1
R
3t
yes
x↦sinx
R
≤t
yes
x↦x
[0;+∞[
t
yes, not Lipschitz
x↦x2
R
+∞
no
x↦x1
]0;1]
+∞
no
x↦x1
[1;+∞[
≤t
yes, 1-Lipschitz
Classic pitfall
Believing that a continuous and bounded function is automatically uniformly continuous. Counterexample: f(x)=sin(x1) on ]0;1] only takes values in [−1;1], and yet, with
xn=2πn+2π1andyn=2πn1
we get ∣xn−yn∣→0 while ∣f(xn)−f(yn)∣=1 for every n. What is missing here is not the boundedness of f, but the closedness of the interval at 0.