ConceptComplete

Metric Spaces

A metric space is a set equipped with a notion of distance satisfying natural axioms. Metric spaces generalize Rn\mathbb{R}^n with the Euclidean distance and provide the abstract framework for analysis. Concepts like convergence, continuity, and compactness extend seamlessly to metric spaces, unifying diverse areas of mathematics.


Definition

Definition8.1Metric 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) is a metric (or distance function) satisfying:

  1. Positivity: d(x,y)โ‰ฅ0d(x, y) \geq 0, with equality iff x=yx = y.
  2. Symmetry: d(x,y)=d(y,x)d(x, y) = d(y, x).
  3. Triangle inequality: d(x,z)โ‰คd(x,y)+d(y,z)d(x, z) \leq d(x, y) + d(y, z).
ExampleEuclidean metric on R^n

d(x,y)=โˆฅxโˆ’yโˆฅ=โˆ‘i=1n(xiโˆ’yi)2d(x, y) = \|x - y\| = \sqrt{\sum_{i=1}^n (x_i - y_i)^2} is the standard Euclidean metric on Rn\mathbb{R}^n.

ExampleDiscrete metric

On any set XX, define d(x,y)=0d(x, y) = 0 if x=yx = y and d(x,y)=1d(x, y) = 1 if xโ‰ yx \neq y. This is the discrete metric โ€” every subset is open!

ExampleMetric on C([a, b])

On C([a,b])C([a, b]) (continuous functions on [a,b][a, b]), define d(f,g)=supโกxโˆˆ[a,b]โˆฃf(x)โˆ’g(x)โˆฃd(f, g) = \sup_{x \in [a, b]} |f(x) - g(x)| (the uniform norm). This makes C([a,b])C([a, b]) a metric space.

ExampleLยน metric on sequences

On the space of absolutely summable sequences, d(x,y)=โˆ‘n=1โˆžโˆฃxnโˆ’ynโˆฃd(x, y) = \sum_{n=1}^\infty |x_n - y_n| defines a metric (the โ„“1\ell^1 metric).


Convergence and continuity

Definition8.2Convergence in metric spaces

A sequence (xn)(x_n) in (X,d)(X, d) converges to xโˆˆXx \in X if d(xn,x)โ†’0d(x_n, x) \to 0 as nโ†’โˆžn \to \infty.

Definition8.3Continuity

A function f:(X,dX)โ†’(Y,dY)f : (X, d_X) \to (Y, d_Y) is continuous at xโˆˆXx \in X if for every ฯต>0\epsilon > 0, there exists ฮด>0\delta > 0 such that dX(x,y)<ฮดd_X(x, y) < \delta implies dY(f(x),f(y))<ฯตd_Y(f(x), f(y)) < \epsilon.

RemarkGeneralization

All definitions from R\mathbb{R} (open sets, closed sets, compactness, completeness) extend naturally to metric spaces by replacing โˆฃxโˆ’yโˆฃ|x - y| with d(x,y)d(x, y).


Open and closed sets

Definition8.4Open ball

The open ball of radius rr centered at xx is Br(x)={yโˆˆXโˆฃd(x,y)<r}B_r(x) = \{y \in X \mid d(x, y) < r\}.

Definition8.5Open set

UโІXU \subseteq X is open if for every xโˆˆUx \in U, there exists r>0r > 0 such that Br(x)โІUB_r(x) \subseteq U.

ExampleAll sets are open in discrete metric

In the discrete metric, every set is open (since B1/2(x)={x}B_{1/2}(x) = \{x\}).


Summary

Metric spaces provide the abstract framework for analysis:

  • Distance function dd satisfying positivity, symmetry, triangle inequality.
  • Convergence, continuity, open/closed sets defined via dd.
  • Examples: Rn\mathbb{R}^n, function spaces, sequence spaces.
  • Unifies diverse mathematical structures.

See Complete Metric Spaces and Compactness.