Continuous Maps Between Metric Spaces

⚡ Key Takeaways

Continuous maps between metric spaces are functions f:(X,dX)→(Y,dY)f:(X,d_X)\to(Y,d_Y) that preserve "closeness": small changes in input produce small changes in output. Key result: ff is continuous iff the preimage of every open set is open — the topological characterization that frees continuity from the metric. Applies in: analysis, topology, geometry, numerical methods, dynamical systems. Origins: Cauchy and Weierstrass (rigorous ε\varepsilon–δ\delta, 1820s–1870s), Fréchet (abstract metric spaces, 1906).

💡 The Core Insight

Continuity is about preservation of proximity. Three faces of the same idea coexist:

  • Metric (ε\varepsilon–δ\delta): control the output error by controlling the input perturbation.
  • Sequential: xn→ax_n\to a forces f(xn)→f(a)f(x_n)\to f(a).
  • Topological (open sets): f−1(open)f^{-1}(\text{open}) is open.

In metric spaces all three are equivalent. The topological version is the most powerful because it reveals continuity as the natural notion of a "structure-preserving map" for topology.

Formal Statement

DefinitionMetric Space

A metric space is a pair (X,d)(X,d) where XX is a set and d:X×X→[0,∞)d:X\times X\to[0,\infty) satisfies, for all x,y,z∈Xx,y,z\in X:

1
d(x,y)=0  ⟺  x=y\quad d(x,y)=0 \iff x=y

Derivation hint: This is the identity of indiscernibles — distance zero means identical points.

2
d(x,y)=d(y,x)\quad d(x,y)=d(y,x)

Derivation hint: Symmetry — distance does not depend on the direction of measurement.

3
d(x,z)≤d(x,y)+d(y,z)\quad d(x,z)\le d(x,y)+d(y,z)

Derivation hint: The triangle inequality — going via a third point cannot be shorter. The open ball of radius r>0r>0 centered at aa is BX(a,r)={x∈X:dX(x,a)<r}B_X(a,r)=\{x\in X: d_X(x,a)<r\}.

DefinitionContinuity at a Point — ε\varepsilon–δ\delta

Let f:(X,dX)→(Y,dY)f:(X,d_X)\to(Y,d_Y). Then ff is continuous at a∈Xa\in X if

4
∀ ε>0  ∃ δ>0  ∀x∈X: dX(x,a)<δ  ⟹  dY(f(x),f(a))<ε\quad \forall\,\varepsilon>0\ \ \exists\,\delta>0\ \ \forall x\in X:\ d_X(x,a)<\delta \implies d_Y\big(f(x),f(a)\big)<\varepsilon

Derivation hint: Read it as "for every output tolerance ε\varepsilon there is an input tolerance δ\delta that guarantees it." The δ\delta may depend on both ε\varepsilon and aa. Equivalently, in ball notation:

5
∀ ε>0  ∃ δ>0: f(BX(a,δ))⊆BY(f(a),ε)\quad \forall\,\varepsilon>0\ \ \exists\,\delta>0:\ f\big(B_X(a,\delta)\big)\subseteq B_Y\big(f(a),\varepsilon\big)

Derivation hint: Rewrite [4] by collecting the xx with dX(x,a)<δd_X(x,a)<\delta into a ball and noting the conclusion places their images in a ball about f(a)f(a). ff is continuous if it is continuous at every a∈Xa\in X.

TheoremEquivalent Characterizations of Continuity

For f:(X,dX)→(Y,dY)f:(X,d_X)\to(Y,d_Y), the following are equivalent: 1. (ε\varepsilon–δ\delta) ff is continuous at every point per [4]. 2. (Sequential) For every sequence xn→ax_n\to a in XX, f(xn)→f(a)f(x_n)\to f(a) in YY. 3. (Open sets) f−1(U)f^{-1}(U) is open in XX for every open U⊆YU\subseteq Y. 4. (Closed sets) f−1(C)f^{-1}(C) is closed in XX for every closed C⊆YC\subseteq Y. 5. (Closure) f(A‾)⊆f(A)‾f(\overline{A})\subseteq \overline{f(A)} for every A⊆XA\subseteq X.

TheoremUniform Continuity (stronger notion)

ff is uniformly continuous if

6
∀ ε>0  ∃ δ>0  ∀x,y∈X: dX(x,y)<δ  ⟹  dY(f(x),f(y))<ε\quad \forall\,\varepsilon>0\ \ \exists\,\delta>0\ \ \forall x,y\in X:\ d_X(x,y)<\delta \implies d_Y\big(f(x),f(y)\big)<\varepsilon

Derivation hint: The crucial change from [4] is that δ\delta depends only on ε\varepsilon, not on the point — the same δ\delta works everywhere. A Lipschitz map (constant LL) satisfies dY(f(x),f(y))≤L dX(x,y)d_Y(f(x),f(y))\le L\,d_X(x,y) and is automatically uniformly continuous. Implications: Lipschitz ⇒\Rightarrow uniformly continuous ⇒\Rightarrow continuous. None of the reverse implications hold in general.

Why It Holds / Derivation

Proof(ε\varepsilon–δ\delta)   ⟺  \iff (Open sets)

Step 1 — Continuity ⇒\Rightarrow preimages of open sets are open. Assume ff continuous (per [4]) and let U⊆YU\subseteq Y be open. Take any a∈f−1(U)a\in f^{-1}(U), so f(a)∈Uf(a)\in U. Since UU is open, there is ε>0\varepsilon>0 with BY(f(a),ε)⊆UB_Y(f(a),\varepsilon)\subseteq U.

Step 2. By continuity at aa, choose δ>0\delta>0 so that f(BX(a,δ))⊆BY(f(a),ε)⊆Uf(B_X(a,\delta))\subseteq B_Y(f(a),\varepsilon)\subseteq U. Hence BX(a,δ)⊆f−1(U)B_X(a,\delta)\subseteq f^{-1}(U).

Step 3. Every point of f−1(U)f^{-1}(U) is interior, so f−1(U)f^{-1}(U) is open.

Step 4 — Preimages of open sets open ⇒\Rightarrow continuity. Fix a∈Xa\in X and ε>0\varepsilon>0. The ball U=BY(f(a),ε)U=B_Y(f(a),\varepsilon) is open, so by hypothesis f−1(U)f^{-1}(U) is open and contains aa.

Step 5. Openness gives δ>0\delta>0 with BX(a,δ)⊆f−1(U)B_X(a,\delta)\subseteq f^{-1}(U), i.e. dX(x,a)<δ⇒f(x)∈BY(f(a),ε)⇒dY(f(x),f(a))<εd_X(x,a)<\delta\Rightarrow f(x)\in B_Y(f(a),\varepsilon)\Rightarrow d_Y(f(x),f(a))<\varepsilon. This is exactly [4]. ■\blacksquare

∎
Proof(ε\varepsilon–δ\delta)   ⟺  \iff (Sequential)

Step 1 — (⇒)(\Rightarrow). Assume ff continuous at aa and xn→ax_n\to a. Given ε>0\varepsilon>0, pick δ\delta from [4]. Since xn→ax_n\to a, there is NN with dX(xn,a)<δd_X(x_n,a)<\delta for n≥Nn\ge N, whence dY(f(xn),f(a))<εd_Y(f(x_n),f(a))<\varepsilon. Thus f(xn)→f(a)f(x_n)\to f(a).

Step 2 — (⇐)(\Leftarrow), contrapositive. Suppose ff is not continuous at aa. Then there is ε0>0\varepsilon_0>0 such that for every δ>0\delta>0 some xx with dX(x,a)<δd_X(x,a)<\delta has dY(f(x),f(a))≥ε0d_Y(f(x),f(a))\ge\varepsilon_0.

Step 3. Take δ=1/n\delta=1/n and choose xnx_n with dX(xn,a)<1/nd_X(x_n,a)<1/n but dY(f(xn),f(a))≥ε0d_Y(f(x_n),f(a))\ge\varepsilon_0.

Step 4. Then xn→ax_n\to a yet f(xn)↛f(a)f(x_n)\not\to f(a), contradicting the sequential hypothesis. Hence sequential continuity implies ε\varepsilon–δ\delta continuity. ■\blacksquare (Note: this equivalence uses that metric spaces are first-countable; in general topological spaces sequential continuity is weaker.)

∎
🧠 Intuition

Picture an ε\varepsilon-target circle around f(a)f(a) in YY. Continuity is a game: an adversary picks any ε\varepsilon (how close you must land), and you must respond with a δ\delta (a circle around aa) so small that everything inside it lands inside the target. If you can always win, ff is continuous at aa.

Uniform continuity raises the stakes: you must produce a single δ\delta that works at every point at once. Where the graph steepens without bound (like 1/x1/x near 00), you lose — no uniform δ\delta survives.

Figure
The ε\varepsilon–δ\delta game: a δ\delta-ball maps into an ε\varepsilon-ball
Domain (X, d_X) Codomain (Y, d_Y) a δ B_X(a, δ) f(a) ε B_Y(f(a), ε) f(B_X(a,δ)) f
mathematician · Maurice Fréchet | 1878–1973

Fréchet introduced abstract metric spaces in his 1906 doctoral thesis Sur quelques points du calcul fonctionnel, coining the term écart (deviation) for the distance and recognizing that continuity, completeness, and compactness could be studied axiomatically without reference to the real line. His framework unified the ε\varepsilon–δ\delta analysis of Cauchy and Weierstrass with the emerging functional analysis of spaces of functions, paving the way for Hausdorff's general topology (1914). Fréchet also pioneered the notion of compactness via sequential limits and the study of function spaces as metric spaces — directly enabling the modern theory of continuous maps.

Worked Examples

ExampleVerifying continuity of f(x)=x2f(x)=x^2 at a=3a=3

Given: f:R→Rf:\mathbb{R}\to\mathbb{R}, f(x)=x2f(x)=x^2, with d(x,y)=∣x−y∣d(x,y)=|x-y|. Target tolerance ε=0.01\varepsilon=0.01. Find a valid δ\delta at a=3a=3.

Steps: 1. ∣f(x)−f(3)∣=∣x2−9∣=∣x−3∣ ∣x+3∣|f(x)-f(3)| = |x^2-9| = |x-3|\,|x+3|. 2. Restrict ∣x−3∣<1|x-3|<1 so 2<x<42<x<4, giving ∣x+3∣<7|x+3|<7. 3. Then ∣x2−9∣<7∣x−3∣|x^2-9|<7|x-3|. To force this below 0.010.01, require ∣x−3∣<0.01/7≈0.001428|x-3|<0.01/7\approx 0.001428. 4. Combine both: δ=min⁡{1, 0.01/7}=0.001428…\delta=\min\{1,\,0.01/7\}=0.001428\ldots

7
∣x−3∣<δ  ⟹  ∣x2−9∣<7∣x−3∣<7δ=ε\quad |x-3|<\delta \implies |x^2-9|<7|x-3|<7\delta=\varepsilon

Derivation hint: Bound the variable factor ∣x+3∣|x+3| by a constant via a preliminary restriction, then choose δ\delta as the minimum of the restriction radius and ε/(bound)\varepsilon/(\text{bound}).

Answer: δ=0.001428\boxed{\delta = 0.001428} (dimensionless) guarantees ∣x2−9∣<0.01|x^2-9|<0.01.

:::example[Showing f(x)=1/xf(x)=1/x is continuous but NOT uniformly continuous on (0,1](0,1]] Given: f:(0,1]→Rf:(0,1]\to\mathbb{R}, f(x)=1/xf(x)=1/x.

Pointwise continuity at a∈(0,1]a\in(0,1]: 1. ∣1x−1a∣=∣x−a∣∣x∣ a\left|\frac1x-\frac1a\right| = \frac{|x-a|}{|x|\,a}. 2. Restrict ∣x−a∣<a/2|x-a|<a/2 so x>a/2x>a/2, giving 1∣x∣a<2a2\frac{1}{|x|a}<\frac{2}{a^2}. 3. Choose δ=min⁡{a/2, εa2/2}\delta=\min\{a/2,\ \varepsilon a^2/2\}; then ∣f(x)−f(a)∣<2a2∣x−a∣<ε|f(x)-f(a)|<\frac{2}{a^2}|x-a|<\varepsilon. ✓ Continuous.

Failure of uniformity — concrete numbers: Take ε=1\varepsilon=1. Try the points xn=1nx_n=\tfrac1n, yn=1n+1y_n=\tfrac1{n+1}:

8
∣xn−yn∣=1n(n+1)→0,∣f(xn)−f(yn)∣=∣n−(n+1)∣=1\quad |x_n-y_n|=\frac{1}{n(n+1)}\to 0,\qquad |f(x_n)-f(y_n)| = |n-(n+1)| = 1

Derivation hint: As points crowd toward 00 their separation shrinks but the difference of reciprocals stays fixed — no single δ\delta can control all pairs. With n=100n=100: ∣xn−yn∣=1/10100≈9.9×10−5|x_n-y_n|=1/10100\approx 9.9\times10^{-5} yet ∣f(xn)−f(yn)∣=1|f(x_n)-f(y_n)|=1.

Answer: f is continuous on (0,1] but not uniformly continuous\boxed{f \text{ is continuous on }(0,1]\text{ but not uniformly continuous}}; the obstruction is the unbounded steepness near 00.

Common Misconceptions

⚠️ Common mistake

"Continuous = uniformly continuous." False on non-compact domains. 1/x1/x on (0,1](0,1] and x2x^2 on R\mathbb{R} are continuous but not uniformly so. However, by the Heine–Cantor theorem, a continuous map on a compact metric space is automatically uniformly continuous.

"δ\delta can always be chosen independent of the point." No — in [4] the δ\delta legitimately depends on both ε\varepsilon and aa. Independence from aa is precisely the extra demand of uniform continuity [6].

"Continuity preserves Cauchy sequences." Only uniform continuity guarantees that. f(x)=1/xf(x)=1/x maps the Cauchy sequence 1/n1/n to nn, which is not Cauchy.

"A continuous bijection is a homeomorphism." No — the inverse may fail to be continuous (see below). It is a homeomorphism only if both ff and f−1f^{-1} are continuous.

CounterexampleContinuous bijection whose inverse is discontinuous

Let X=[0,2π)X=[0,2\pi) with the usual metric and Y=S1⊂R2Y=S^1\subset\mathbb{R}^2 the unit circle. Define

9
f(t)=(cos⁡t, sin⁡t)\quad f(t)=(\cos t,\ \sin t)

Derivation hint: This wraps the half-open interval once around the circle; it is a continuous bijection because each angle appears exactly once. ff is a continuous bijection. But f−1f^{-1} is discontinuous at (1,0)=f(0)(1,0)=f(0): points just below 2π2\pi map near (1,0)(1,0) from below, yet their preimages (≈2π\approx 2\pi) are far from 00. Formally, the sequence pn=f(2π−1n)→(1,0)=f(0)p_n=f(2\pi-\tfrac1n)\to (1,0)=f(0), but f−1(pn)=2π−1n→2π≠0f^{-1}(p_n)=2\pi-\tfrac1n\to 2\pi\neq 0. So continuity of ff does not imply continuity of f−1f^{-1}.

CounterexampleContinuous image of a closed/bounded set need not be closed/bounded
  • Closedness fails: f(x)=arctan⁡xf(x)=\arctan x maps the closed set R\mathbb{R} onto (−π/2,π/2)(-\pi/2,\pi/2), which is not closed.
  • Boundedness fails: f(x)=1/xf(x)=1/x maps the bounded set (0,1](0,1] onto the unbounded [1,∞)[1,\infty).

The remedy is compactness: continuous images of compact sets are compact (hence closed and bounded in Rn\mathbb{R}^n) — this is the Extreme Value Theorem's engine.

Connections

connection

Continuity sits at the crossroads of analysis and topology.

  • <span class="wiki-link-missing">Topological Spaces</span>: The open-set characterization (item 3 of the theorem) defines continuity in general topology, with metrics dispensed entirely.
  • <span class="wiki-link-missing">Compactness in Metric Spaces</span>: Continuous images of compact sets are compact; continuity on a compact domain upgrades to uniform continuity (Heine–Cantor).
  • <span class="wiki-link-missing">Connectedness</span>: Continuous images of connected sets are connected — the abstract Intermediate Value Theorem.
  • <span class="wiki-link-missing">Complete Metric Spaces</span>: Lipschitz/contraction maps (special continuous maps) drive the Banach Fixed-Point Theorem.
  • <a class="wiki-link" href="/wiki/math-topgeo-homeomorphisms">Homeomorphisms</a>: A bicontinuous bijection; the equivalence relation of topology.
  • <a class="wiki-link" href="/wiki/math-analysis-uniform-convergence">Uniform Convergence</a>: A uniform limit of continuous functions is continuous, but a pointwise limit may not be.

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- 1817 — Bolzano gives an early correct definition of continuity and proves the Intermediate Value Theorem, ahead of his time and largely unnoticed.
- 1821 — Cauchy publishes Cours d'analyse, defining continuity via infinitesimal increments — a major step toward rigor, though still verbally framed.
- 1854 — Riemann uses continuity carefully in the foundations of integration and function theory.
- 1861–1872 — Weierstrass formalizes the modern ε\varepsilon–δ\delta definition in his Berlin lectures and exhibits a continuous but nowhere-differentiable function, shattering naive intuition.
- 1872 — Heine introduces uniform continuity and proves (with Cantor's compactness ideas) that continuous functions on closed intervals are uniformly continuous (Heine–Cantor theorem).
- 1906 — Fréchet defines abstract metric spaces, recasting continuity, completeness, and compactness axiomatically.
- 1914 — Hausdorff develops general topology in Grundzüge der Mengenlehre, giving the open-set definition of continuity its definitive home.
- 1922 — Banach establishes the fixed-point theorem for contraction maps in complete metric spaces, a cornerstone of applied continuity.

Subtleties & Limits

open-problem

Beyond metric spaces. In general topological spaces, sequential continuity is strictly weaker than continuity (the equivalence relies on first-countability, which metric spaces always have). Characterizing which spaces are sequential (where sequences suffice) leads to the theory of Fréchet–Urysohn and sequential spaces.

Extension problems. Given ff uniformly continuous on a dense subset D⊆XD\subseteq X into a complete space YY, it extends uniquely to all of XX — but mere continuity on DD does not. The precise interplay of density, completeness, and continuity is delicate.

Regularity of inverses. Determining when a continuous bijection is a homeomorphism is nontrivial in general; Invariance of Domain (Brouwer, 1912) shows a continuous injection Rn→Rn\mathbb{R}^n\to\mathbb{R}^n is open, but analogous statements fail across dimensions and in infinite dimensions, where compactness is scarce.

Modulus of continuity. Quantifying how continuous a map is (Hölder, Lipschitz, log-Lipschitz exponents) connects to active research in PDE regularity and geometric measure theory.

See Also

Metric Spaces · Uniform Continuity · Compactness in Metric Spaces · Connectedness · Homeomorphisms · Topological Spaces · Complete Metric Spaces · Banach Fixed-Point Theorem · Uniform Convergence