From Continuity to Uniform Continuity

Lipschitz functions and modulus of continuity

Lipschitz functions

A function ff is said to be kk-Lipschitz on II if there exists a constant k≥0k \geq 0 such that

∀(x,y)∈I2,∣f(x)−f(y)∣≤k∣x−y∣\forall (x, y) \in I^2,\quad \lvert f(x) - f(y) \rvert \leq k \lvert x - y \rvert

Such a function is uniformly continuous: for a given ε>0\varepsilon > 0, the choice δ=εk\delta = \dfrac{\varepsilon}{k} works everywhere when k>0k > 0, and any δ\delta works if k=0k = 0.

In practice, the mean value inequality provides the most convenient criterion: if ff is differentiable on II with ∣f′(x)∣≤k\lvert f'(x) \rvert \leq k for every xx, then ff is kk-Lipschitz, hence uniformly continuous.

A hierarchy to remember

Lipschitz  ⟹  uniformly continuous  ⟹  continuous\text{Lipschitz} \implies \text{uniformly continuous} \implies \text{continuous}

Neither implication can be reversed.

The square root function shows it: on [0 ; +∞[\left[0 \,;\, +\infty\right[, the inequality ∣x−y∣≤∣x−y∣\lvert \sqrt{x} - \sqrt{y} \rvert \leq \sqrt{\lvert x - y \rvert} gives uniform continuity with δ=ε2\delta = \varepsilon^2. Yet it is not Lipschitz on any neighborhood of 00, since

x−0x−0=1x→x→0++∞\frac{\sqrt{x} - \sqrt{0}}{x - 0} = \frac{1}{\sqrt{x}} \xrightarrow[x \to 0^+]{} +\infty

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}\omega_f(t) = \sup \left\{ \lvert f(x) - f(y) \rvert \;:\; (x, y) \in I^2,\; \lvert x - y \rvert \leq t \right\}

The function ff is uniformly continuous on II if and only if ωf(t)→0\omega_f(t) \to 0 as t→0+t \to 0^+. It is a reformulation, but it makes error bounds much easier to read.

ff II ωf(t)\omega_f(t) Uniformly continuous?
x↦3x+1x \mapsto 3x + 1 R\mathbb{R} 3t3t yes
x↦sin⁡xx \mapsto \sin x R\mathbb{R} ≤t\leq t yes
x↦xx \mapsto \sqrt{x} [0 ; +∞[\left[0 \,;\, +\infty\right[ t\sqrt{t} yes, not Lipschitz
x↦x2x \mapsto x^2 R\mathbb{R} +∞+\infty no
x↦1xx \mapsto \dfrac{1}{x} ]0 ; 1]\left]0 \,;\, 1\right] +∞+\infty no
x↦1xx \mapsto \dfrac{1}{x} [1 ; +∞[\left[1 \,;\, +\infty\right[ ≤t\leq t yes, 11-Lipschitz

Classic pitfall

Believing that a continuous and bounded function is automatically uniformly continuous. Counterexample: f(x)=sin⁡ ⁣(1x)f(x) = \sin\!\left(\dfrac{1}{x}\right) on ]0 ; 1]\left]0 \,;\, 1\right] only takes values in [−1 ; 1][-1 \,;\, 1], and yet, with

xn=12πn+π2andyn=12πnx_n = \frac{1}{2\pi n + \tfrac{\pi}{2}} \qquad \text{and} \qquad y_n = \frac{1}{2\pi n}

we get ∣xn−yn∣→0\lvert x_n - y_n \rvert \to 0 while ∣f(xn)−f(yn)∣=1\lvert f(x_n) - f(y_n) \rvert = 1 for every nn. What is missing here is not the boundedness of ff, but the closedness of the interval at 00.