Technopedia

The technologist’s encyclopedia

Limits and continuity

Limits and continuity provide the rigorous language for describing how functions behave near a point. They are the foundation on which differentiation and integration are built: every derivative is a limit of a difference quotient, and every integral is a limit of sums. This page covers the ε–δ definition, uniform versus pointwise convergence of function sequences, and the compactness theorems (Bolzano–Weierstrass, Heine–Borel) that turn local control into global control.

Authoritative sources

The ε–δ definition of a limit

Definition. Let f:D→Rf: D \to \mathbb{R} and a∈Ra \in \mathbb{R} be a limit point of DD. We write lim⁡x→af(x)=L\lim_{x \to a} f(x) = L if for every ε>0\varepsilon > 0 there exists δ>0\delta > 0 such that for all x∈Dx \in D with 0<∣x−a∣<δ0 < |x - a| < \delta, we have ∣f(x)−L∣<ε|f(x) - L| < \varepsilon.

Details

Why ε–δ?

Before the 19th century, “limit” meant an intuitive idea: f(x)f(x) gets “arbitrarily close” to LL as xx gets “arbitrarily close” to aa. Cauchy (1821) and Weierstrass (1860s) replaced this with a quantifier-based definition that makes the notion checkable.

The logic reads: “No matter how tight a band around LL you demand (that is ε\varepsilon), I can find a window around aa (that is δ\delta) so that every input in that window lands in the band.”

Worked example

Prove lim⁡x→2(3x−1)=5\lim_{x \to 2} (3x - 1) = 5.

Proof. Let ε>0\varepsilon > 0. Choose δ=ε/3\delta = \varepsilon / 3. If 0<∣x−2∣<δ0 < |x - 2| < \delta, then

∣f(x)−5∣=∣3x−1−5∣=3∣x−2∣<3δ=ε.|f(x) - 5| = |3x - 1 - 5| = 3|x - 2| < 3\delta = \varepsilon.

∎

Continuity

Definition. ff is continuous at aa if lim⁡x→af(x)=f(a)\lim_{x \to a} f(x) = f(a). Equivalently: for every ε>0\varepsilon > 0 there exists δ>0\delta > 0 such that ∣x−a∣<δ  ⟹  ∣f(x)−f(a)∣<ε|x - a| < \delta \implies |f(x) - f(a)| < \varepsilon.

The only difference from the limit definition is that x=ax = a is included and the target is f(a)f(a) rather than an abstract LL.

Example problem

Problem. Prove that f(x)=x2f(x) = x^2 is continuous at x=3x = 3.

Solution

We need ∣x2−9∣<ε|x^2 - 9| < \varepsilon whenever ∣x−3∣<δ|x - 3| < \delta.

Factor: ∣x2−9∣=∣x−3∣∣x+3∣|x^2 - 9| = |x - 3||x + 3|.

If δ≤1\delta \leq 1, then ∣x+3∣≤∣x−3∣+6≤7|x + 3| \leq |x - 3| + 6 \leq 7.

So ∣x2−9∣≤7∣x−3∣|x^2 - 9| \leq 7|x - 3|. Choose δ=min⁡(1,ε/7)\delta = \min(1, \varepsilon/7).

Then ∣x−3∣<δ  ⟹  ∣x2−9∣<7δ≤ε|x - 3| < \delta \implies |x^2 - 9| < 7\delta \leq \varepsilon. ∎

Pointwise versus uniform convergence

Definition (pointwise). A sequence fn:X→Rf_n: X \to \mathbb{R} converges pointwise to ff if for every x∈Xx \in X and every ε>0\varepsilon > 0 there exists NN (depending on xx) such that n≥N  ⟹  ∣fn(x)−f(x)∣<εn \geq N \implies |f_n(x) - f(x)| < \varepsilon.

Definition (uniform). fn→ff_n \to f uniformly on XX if for every ε>0\varepsilon > 0 there exists NN (independent of xx) such that n≥N  ⟹  ∣fn(x)−f(x)∣<εn \geq N \implies |f_n(x) - f(x)| < \varepsilon for all x∈Xx \in X.

Key theorem. If fnf_n are continuous on XX and fn→ff_n \to f uniformly, then ff is continuous on XX. Pointwise convergence does not preserve continuity.

Details

The distinction in one picture

The difference is where NN may depend on xx:

Classic counterexample

On [0,1][0,1], let fn(x)=xnf_n(x) = x^n. Then fn→ff_n \to f pointwise where f(x)=0f(x) = 0 for x∈[0,1)x \in [0,1) and f(1)=1f(1) = 1. The limit is discontinuous at x=1x = 1, so the convergence is not uniform.

To see non-uniformity directly: sup⁡x∈[0,1]∣xn−f(x)∣=1\sup_{x \in [0,1]} |x^n - f(x)| = 1 for every nn (take x=1x = 1), so no NN works for ε=1/2\varepsilon = 1/2.

Uniform limit theorem (proof sketch)

Given ε>0\varepsilon > 0, uniform convergence gives NN with ∣fN(x)−f(x)∣<ε/3|f_N(x) - f(x)| < \varepsilon/3 for all xx. Since fNf_N is continuous at aa, there is δ\delta with ∣x−a∣<δ  ⟹  ∣fN(x)−fN(a)∣<ε/3|x - a| < \delta \implies |f_N(x) - f_N(a)| < \varepsilon/3. Then the triangle inequality gives ∣f(x)−f(a)∣<ε|f(x) - f(a)| < \varepsilon.

Example problem

Problem. Show that gn(x)=xng_n(x) = \frac{x}{n} converges uniformly to 00 on [0,1][0, 1]. Does it converge uniformly on R\mathbb{R}?

Solution

On [0,1][0,1]: sup⁡x∈[0,1]∣x/n∣=1/n→0\sup_{x \in [0,1]} |x/n| = 1/n \to 0, so convergence is uniform.

On R\mathbb{R}: sup⁡x∈R∣x/n∣=∞\sup_{x \in \mathbb{R}} |x/n| = \infty for every nn, so convergence is not uniform. It is pointwise (for each fixed xx, x/n→0x/n \to 0).

This illustrates why the domain matters: uniform convergence is a property of the sequence on a set, not just of the pointwise limit. ∎

Compactness: Bolzano–Weierstrass and Heine–Borel

Definition (Bolzano–Weierstrass). Every bounded sequence in R\mathbb{R} has a convergent subsequence.

Definition (Heine–Borel). A subset K⊆RK \subseteq \mathbb{R} is compact if and only if it is closed and bounded.

Theorem (continuous image of compact is compact). If f:K→Rf: K \to \mathbb{R} is continuous and KK is compact, then f(K)f(K) is compact. In particular, ff attains its maximum and minimum on KK.

Details

Why compactness matters

Compactness is the property that lets you pass from “every finite subcollection has a property” to “the whole collection has that property.” In R\mathbb{R}, it is exactly closed + bounded.

Bolzano–Weierstrass in action. Let (an)(a_n) be bounded. The sequence has a convergent subsequence. Proof sketch: by the nested-interval (bisection) argument, there is a point aa such that infinitely many ana_n lie in every neighborhood of aa; pick those indices to form the subsequence.

Heine–Borel in action. The set (0,1)(0, 1) is bounded but not closed, hence not compact. Indeed, the open cover {(1/n,1):n≥2}\{(1/n, 1) : n \geq 2\} has no finite subcover.

Extremum theorem. If ff is continuous on [a,b][a, b], then ff attains a maximum and a minimum. This is the workhorse behind the intermediate value theorem’s “crossing” argument and the existence of solutions in optimization.

Example problem

Problem. Use Bolzano–Weierstrass to show that every bounded sequence in R\mathbb{R} has a convergent subsequence. (Give the bisection argument.)

Solution

Let (an)(a_n) be bounded, say an∈[A,B]a_n \in [A, B].

  1. Bisect [A,B][A, B] into two halves. At least one half contains infinitely many ana_n. Call it I1I_1.
  2. Bisect I1I_1. At least one half contains infinitely many ana_n. Call it I2⊆I1I_2 \subseteq I_1.
  3. Continue inductively: Ik+1⊆IkI_{k+1} \subseteq I_k, each IkI_k contains infinitely many ana_n, and ∣Ik∣=(B−A)/2k→0|I_k| = (B-A)/2^k \to 0.

By the nested-interval property, ⋂kIk={a}\bigcap_k I_k = \{a\} for some aa. Since each IkI_k contains infinitely many terms, we can pick ank∈Ika_{n_k} \in I_k with n1<n2<⋯n_1 < n_2 < \cdots. Then ∣ank−a∣≤∣Ik∣→0|a_{n_k} - a| \leq |I_k| \to 0, so ank→aa_{n_k} \to a. ∎

Quiz

Example problem

Problem. Let fn:[0,1]→Rf_n: [0,1] \to \mathbb{R} be defined by fn(x)=xn(1−x)f_n(x) = x^n(1-x).

(a) Find the pointwise limit f(x)f(x).

(b) Is the convergence uniform? Justify.

(c) Is ff continuous?

Solution

(a) For x∈[0,1)x \in [0,1), xn→0x^n \to 0, so f(x)=0f(x) = 0. At x=1x = 1, fn(1)=0f_n(1) = 0 for all nn, so f(1)=0f(1) = 0. Thus f≡0f \equiv 0.

(b) Compute sup⁡x∈[0,1]xn(1−x)\sup_{x \in [0,1]} x^n(1-x). Differentiate: g(x)=xn(1−x)g(x) = x^n(1-x), g′(x)=nxn−1(1−x)−xn=xn−1(n−(n+1)x)g'(x) = nx^{n-1}(1-x) - x^n = x^{n-1}(n - (n+1)x). Setting g′=0g' = 0: x=n/(n+1)x = n/(n+1). Then

g(n/(n+1))=(nn+1)n⋅1n+1≈1e(n+1)→0.g(n/(n+1)) = \left(\frac{n}{n+1}\right)^n \cdot \frac{1}{n+1} \approx \frac{1}{e(n+1)} \to 0.

So sup⁡∣fn−f∣→0\sup |f_n - f| \to 0: the convergence is uniform.

(c) Since f≡0f \equiv 0, it is continuous. (Consistent with the uniform limit theorem.) ∎