Home › Calculus › Lesson 4

Limits, Continuity and Uniform Continuity

Lesson 4 of 14

Key idea of this section

lim (x → a) f(x) = L  ⇔  ∀ε > 0 ∃δ > 0 : 0 < |x − a| < δ ⇒ |f(x) − L| < ε
f uniformly continuous  ⇔  ∀ε > 0 ∃δ > 0 ∀x, y : |x − y| < δ ⇒ |f(x) − f(y)| < ε

The ε–δ definition

Let f be defined on a set D ⊆ ℝ and let a be a limit point of D (every interval around a contains points of D other than a). We say lim (x → a) f(x) = L if for every ε > 0 there exists δ > 0 such that |f(x) − L| < ε whenever x ∈ D and 0 < |x − a| < δ. This formulation, implicit in Cauchy and Bolzano and made fully explicit by Weierstrass, eliminates infinitesimals: every statement about "x close to a" becomes a statement about inequalities between real numbers.

Worked example: lim (x → 2) x² = 4. Factor |x² − 4| = |x − 2||x + 2|. If we first insist δ ≤ 1, then |x − 2| < 1 forces 1 < x < 3 and |x + 2| < 5. So |x² − 4| < 5|x − 2|, and δ = min(1, ε/5) works. The trick of restricting δ first to control the "other factor" is standard.

Theorem 4.1 (Sequential criterion). lim (x → a) f(x) = L iff f(xₙ) → L for every sequence xₙ in D \ {a} with xₙ → a.

The sequential criterion is the easiest way to show that a limit fails to exist. For f(x) = sin(1/x), the sequences xₙ = 1/(2πn) and yₙ = 1/(2πn + π/2) both tend to 0, but f(xₙ) = 0 and f(yₙ) = 1. So sin(1/x) has no limit at 0.

Continuity

f is continuous at a ∈ D if for every ε > 0 there is δ > 0 with |f(x) − f(a)| < ε whenever x ∈ D and |x − a| < δ. Sums, products, quotients (with nonzero denominator) and compositions of continuous functions are continuous. Continuity can behave in unexpected ways:

The two great theorems on intervals

Theorem 4.2 (Intermediate value theorem; Bolzano, 1817). If f is continuous on [a, b] and f(a) < y < f(b), there exists c ∈ (a, b) with f(c) = y.

Proof. Let S = {x ∈ [a, b] : f(x) < y}. S contains a and is bounded by b; let c = sup S. If f(c) < y, continuity gives δ with f < y on [c, c + δ), contradicting that c is an upper bound (note c < b since f(b) > y). If f(c) > y, continuity gives δ with f > y on (c − δ, c], so c − δ is an upper bound of S, contradicting minimality. Hence f(c) = y. ∎

Theorem 4.3 (Extreme value theorem). A continuous function on a closed bounded interval [a, b] is bounded and attains its maximum and minimum.

Proof. If f were unbounded, there would be xₙ ∈ [a, b] with |f(xₙ)| > n. By Bolzano–Weierstrass a subsequence converges to some c ∈ [a, b], and by continuity f(xₙₖ) → f(c), contradicting |f(xₙₖ)| → ∞. So M = sup f is finite. Choose xₙ with f(xₙ) > M − 1/n; a subsequence converges to some c, and f(c) = M. ∎

Both theorems fail over ℚ (f(x) = x² − 2 changes sign on [0, 2] ∩ ℚ without vanishing) and on non-closed intervals (1/x on (0, 1] is unbounded). They are statements about completeness and compactness, not about continuity alone.

Uniform continuity

In the definition of continuity, δ may depend on both ε and the point a. f is uniformly continuous on D if one δ works for all points simultaneously. Examples:

Theorem 4.4 (Heine–Cantor). A continuous function on a closed bounded interval is uniformly continuous.

Proof. If not, there is ε > 0 and points xₙ, yₙ with |xₙ − yₙ| < 1/n but |f(xₙ) − f(yₙ)| ≥ ε. By Bolzano–Weierstrass a subsequence xₙₖ → c, and then yₙₖ → c too. Continuity at c gives f(xₙₖ) − f(yₙₖ) → 0, a contradiction. ∎

Uniform continuity is exactly what allows a function on a bounded open interval to be extended continuously to the endpoints: a uniformly continuous f maps Cauchy sequences to Cauchy sequences, so the limits at the endpoints exist. This is why x sin(1/x) on (0, 1) is uniformly continuous (it extends continuously by 0 at x = 0), while sin(1/x) is not.

Exercise

  • (a)
    For lim (x → 3) x² = 9, find a δ that works for ε = 0.1 using the restriction δ ≤ 1.
  • (b)
    Find an explicit δ, as a function of ε, proving lim (x → 1) (x² + x) = 2.
  • (c)
    Is f(x) = sin(1/x) uniformly continuous on (0, 1)? Is g(x) = x sin(1/x)?
Show solution

Answers: (a) |x² − 9| = |x − 3||x + 3| < 7|x − 3| when |x − 3| < 1, so δ = min(1, 0.1/7) = 1/70 works. (b) |x² + x − 2| = |x − 1||x + 2| < 4|x − 1| when |x − 1| < 1, so δ = min(1, ε/4). (c) f is not: the points 1/(2πn) and 1/(2πn + π/2) get arbitrarily close while their values differ by 1. g is: it extends to a continuous function on [0, 1], which is uniformly continuous by Heine–Cantor.

V.3.1