Uniform Continuity

Uniform continuity demands one δ\delta that works at every point xx — δ\delta may depend on ε\varepsilon alone, never on xx. Watch the required δ\delta shrink as xx grows for f(x)=x2f(x) = x^2, so no single δ\delta covers all of R\mathbb{R}.

δ=x2+ε−∣x∣\delta = \sqrt{x^2+\varepsilon} - \lvert x\rvert
δ=ε/2\delta = \varepsilon / 2

Part of these learning paths

Examples & Exercises

Prove a Lipschitz function (some LL with ∣f(x)−f(y)∣≤L∣x−y∣\lvert f(x)-f(y)\rvert \leq L\lvert x-y\rvert) is uniformly continuous.

δ=ε/L\delta = \varepsilon / L
f(x)=2xf(x) = 2x, x=2x = 2, ε=0.5\varepsilon = 0.5 — a Lipschitz function with L=2L = 2.
Show proof
  1. Let ff be Lipschitz with constant L≥0L \geq 0. If L=0L = 0, then ff is constant and any δ>0\delta > 0 works. Assume L>0L > 0.
  2. Given ε>0\varepsilon > 0, put δ=ε/L\delta = \varepsilon/L — δ\delta depends on ε\varepsilon alone, never on xx.
  3. For any x,yx, y with ∣x−y∣<δ\lvert x - y\rvert < \delta we have ∣f(x)−f(y)∣≤L∣x−y∣<Lδ=ε\lvert f(x) - f(y)\rvert \leq L\lvert x - y\rvert < L\delta = \varepsilon.
  4. Hence the same δ\delta works at every point xx, so ff is uniformly continuous.

Prove f(x)=x2f(x)=x^2 is uniformly continuous on [0,1][0,1].

∣x2−y2∣=∣x−y∣∣x+y∣≤2∣x−y∣\lvert x^2-y^2\rvert = \lvert x-y\rvert\lvert x+y\rvert \leq 2\lvert x-y\rvert
x=0.5x = 0.5, ε=0.5\varepsilon = 0.5 — on [0,1][0,1] the single δ=ε/2\delta = \varepsilon/2 suffices.
Show proof
  1. Let x,y∈[0,1]x, y \in [0,1]. Then ∣x2−y2∣=∣x−y∣∣x+y∣\lvert x^2 - y^2\rvert = \lvert x - y\rvert \lvert x + y\rvert, and since x+y≤2x + y \leq 2, we get ∣x2−y2∣≤2∣x−y∣\lvert x^2 - y^2\rvert \leq 2\lvert x - y\rvert — i.e. x2x^2 is Lipschitz on [0,1][0,1] with constant 22.
  2. Given ε>0\varepsilon > 0, put δ=ε/2\delta = \varepsilon/2 — independent of xx. If ∣x−y∣<δ\lvert x - y\rvert < \delta, then ∣x2−y2∣≤2∣x−y∣<2δ=ε\lvert x^2 - y^2\rvert \leq 2\lvert x - y\rvert < 2\delta = \varepsilon.
  3. Hence f(x)=x2f(x) = x^2 is uniformly continuous on [0,1][0,1]. — on a bounded interval the "slope factor" ∣x+y∣\lvert x + y\rvert is capped, so one δ\delta suffices.

Prove f(x)=x2f(x)=x^2 is not uniformly continuous on R\mathbb{R}.

xn=n,yn=n+δ/2x_n = n,\quad y_n = n + \delta/2
x=3x = 3, ε=0.5\varepsilon = 0.5 — at large xx the admissible δ\delta shrinks to almost nothing.
Show proof
  1. Take ε0=1\varepsilon_0 = 1. Let δ>0\delta > 0 be arbitrary — a δ\delta depending only on ε0\varepsilon_0 would have to work for every pair of points.
  2. Choose an integer n>1/δn > 1/\delta and put x=nx = n, y=n+δ/2y = n + \delta/2. Then ∣x−y∣=δ/2<δ\lvert x - y\rvert = \delta/2 < \delta.
  3. But ∣x2−y2∣=∣y−x∣∣y+x∣=δ2(2n+δ2)=nδ+δ24>1=ε0\lvert x^2 - y^2\rvert = \lvert y - x\rvert \lvert y + x\rvert = \frac{\delta}{2}\left(2n + \frac{\delta}{2}\right) = n\delta + \frac{\delta^2}{4} > 1 = \varepsilon_0, since n>1/δn > 1/\delta gives nδ>1n\delta > 1.
  4. Hence no δ\delta works for all pairs, so f(x)=x2f(x) = x^2 is not uniformly continuous on R\mathbb{R}. — the required δ\delta tends to 00 as xx grows.

3. Continuity