Skip to content
homeaboutworkprojectsthesiswritingresume
Loading
~/blog/metric-and-normed-spaces0%dark
  1. home/
  2. writing/
  3. Metric and Normed Spaces

24 May 2026 · 8 min read · updated 09 June 2026

Metric and Normed Spaces

The convergence theory of the real line depends only on a notion of distance, so it generalises to any set carrying one. We define metric and normed spaces, characterise open, closed, and compact sets, prove that a complete space admits the Banach fixed-point theorem, prove the Heine-Borel theorem identifying the compact subsets of Euclidean space, prove that a continuous image of a compact set is compact and hence that continuous functions attain their extremes, and prove that all norms on a finite-dimensional space are equivalent.

  • 1 equation
  • 12 results
  • 11 connections
  • real-analysis
  • metric-spaces
  • functional-analysis
On this page▾
  • Metric spaces
  • Open, closed, and continuous
  • Completeness and the contraction principle
  • Compactness
  • Normed spaces

8 min left

  • Metric spaces1m
  • Open, closed, and continuous2m
  • Completeness and the contraction principle1m
  • Compactness2m
  • Normed spaces2m

The convergence theory of the previous post used the real line only through the distance ∣an−L∣\abs{a_n-L}∣an​−L∣ between a term and its limit. Nothing in the definition of a limit, or in the Cauchy criterion, needs the order of the reals or their arithmetic, only a way to measure how far apart two points are. Abstracting that measurement gives metric spaces, the setting in which the same analysis runs for sequences of vectors, of functions, or of any objects at all, and it is the language every later post speaks. This post uses the completeness of the reals and the Bolzano-Weierstrass theorem from the chapter on sequences and completeness.

#Metric spaces

A metric is a distance function obeying the three properties any reasonable distance must have.

Definition1

A metric space is a set MMM with a function d:M×M→[0,∞)d:M\times M\to[0,\infty)d:M×M→[0,∞) such that for all x,y,z∈Mx,y,z\in Mx,y,z∈M, first d(x,y)=0d(x,y)=0d(x,y)=0 if and only if x=yx=yx=y, second d(x,y)=d(y,x)d(x,y)=d(y,x)d(x,y)=d(y,x), and third the triangle inequality d(x,z)≤d(x,y)+d(y,z)d(x,z)\le d(x,y)+d(y,z)d(x,z)≤d(x,y)+d(y,z) holds.

The real line is a metric space under d(x,y)=∣x−y∣d(x,y)=\abs{x-y}d(x,y)=∣x−y∣. Euclidean space Rn\R^nRn carries the metric d(x,y)=(∑i(xi−yi)2)1/2d(x,y)=\big(\sum_i(x_i-y_i)^2\big)^{1/2}d(x,y)=(∑i​(xi​−yi​)2)1/2. The set of bounded functions on a domain carries the supremum metric d(f,g)=sup⁡x∣f(x)−g(x)∣d(f,g)=\sup_x\abs{f(x)-g(x)}d(f,g)=supx​∣f(x)−g(x)∣, under which convergence is uniform convergence. A sequence (xn)(x_n)(xn​) in MMM converges to xxx when d(xn,x)→0d(x_n,x)\to 0d(xn​,x)→0 as real numbers, and is Cauchy when for every ε>0\varepsilon>0ε>0 there is an NNN with d(xm,xn)<εd(x_m,x_n)<\varepsilond(xm​,xn​)<ε for m,n≥Nm,n\ge Nm,n≥N. The definitions are the real-line ones with ∣⋅∣\abs{\cdot}∣⋅∣ replaced by ddd, and the proof that limits are unique carries over verbatim from the triangle inequality.

#Open, closed, and continuous

The open ball of radius rrr about xxx is B(x,r)={y:d(x,y)<r}B(x,r)=\{y:d(x,y)<r\}B(x,r)={y:d(x,y)<r}. A set UUU is open when every point of UUU lies in an open ball contained in UUU, and a set FFF is closed when its complement is open. The characterization of closed sets we use is sequential.

Proposition2

A set FFF is closed if and only if it contains the limit of every convergent sequence of its points.

Proof

Suppose FFF is closed and xn→xx_n\to xxn​→x with xn∈Fx_n\in Fxn​∈F. If x∉Fx\notin Fx∈/F then xxx lies in the open complement, so some ball B(x,r)B(x,r)B(x,r) misses FFF entirely, contradicting d(xn,x)→0d(x_n,x)\to 0d(xn​,x)→0. Hence x∈Fx\in Fx∈F. Conversely suppose FFF contains all such limits. If the complement were not open, some x∉Fx\notin Fx∈/F has every ball B(x,1/n)B(x,1/n)B(x,1/n) meeting FFF, giving points xn∈Fx_n\in Fxn​∈F with d(xn,x)<1/nd(x_n,x)<1/nd(xn​,x)<1/n, so xn→xx_n\to xxn​→x, contradicting x∉Fx\notin Fx∈/F, since by hypothesis FFF holds all such limits. The complement is open, so FFF is closed.

A function f:M→M′f:M\to M'f:M→M′ between metric spaces is continuous at xxx when xn→xx_n\to xxn​→x implies f(xn)→f(x)f(x_n)\to f(x)f(xn​)→f(x), equivalently when for every ε>0\varepsilon>0ε>0 there is a δ>0\delta>0δ>0 with d′(f(x),f(y))<εd'(f(x),f(y))<\varepsilond′(f(x),f(y))<ε whenever d(x,y)<δd(x,y)<\deltad(x,y)<δ. For the ball form to the sequential form, given xn→xx_n\to xxn​→x and ε>0\varepsilon>0ε>0 pick the matching δ\deltaδ, then NNN with d(xn,x)<δd(x_n,x)<\deltad(xn​,x)<δ for n≥Nn\ge Nn≥N, so d′(f(xn),f(x))<εd'(f(x_n),f(x))<\varepsilond′(f(xn​),f(x))<ε and f(xn)→f(x)f(x_n)\to f(x)f(xn​)→f(x). For the converse take the contrapositive. If the ball form fails at xxx there is an ε>0\varepsilon>0ε>0 for which every δ=1/n\delta=1/nδ=1/n admits a point xnx_nxn​ with d(xn,x)<1/nd(x_n,x)<1/nd(xn​,x)<1/n but d′(f(xn),f(x))≥εd'(f(x_n),f(x))\ge\varepsilond′(f(xn​),f(x))≥ε, so xn→xx_n\to xxn​→x while f(xn)↛f(x)f(x_n)\not\to f(x)f(xn​)→f(x), against the sequential form.

#Completeness and the contraction principle

A metric space is complete when every Cauchy sequence converges. The reals are complete by the Cauchy criterion, and Rn\R^nRn is complete because a Cauchy sequence is Cauchy in each coordinate, so each coordinate converges and the vector converges to the limit vector. A complete space supports the single most useful existence theorem in analysis.

Theorem3

Let MMM be a nonempty complete metric space and T:M→MT:M\to MT:M→M a contraction, meaning there is a constant c∈[0,1)c\in[0,1)c∈[0,1) with d(Tx,Ty)≤c d(x,y)d(Tx,Ty)\le c\,d(x,y)d(Tx,Ty)≤cd(x,y) for all x,yx,yx,y. Then TTT has a unique fixed point x∗x^\astx∗, and the iterates xn+1=Txnx_{n+1}=Tx_nxn+1​=Txn​ converge to it from any start.

Proof

Fix x0x_0x0​ and set xn+1=Txnx_{n+1}=Tx_nxn+1​=Txn​. Then d(xn+1,xn)≤c d(xn,xn−1)≤⋯≤cnd(x1,x0)d(x_{n+1},x_n)\le c\,d(x_n,x_{n-1})\le\cdots\le c^n d(x_1,x_0)d(xn+1​,xn​)≤cd(xn​,xn−1​)≤⋯≤cnd(x1​,x0​). For m>nm>nm>n the triangle inequality and the geometric sum give

d(xm,xn)≤∑k=nm−1d(xk+1,xk)≤d(x1,x0)∑k=nm−1ck≤cn1−c d(x1,x0),(1)d(x_m,x_n)\le\sum_{k=n}^{m-1}d(x_{k+1},x_k)\le d(x_1,x_0)\sum_{k=n}^{m-1}c^k \le\frac{c^n}{1-c}\,d(x_1,x_0), \tag{1}d(xm​,xn​)≤k=n∑m−1​d(xk+1​,xk​)≤d(x1​,x0​)k=n∑m−1​ck≤1−ccn​d(x1​,x0​),(1)

which tends to zero as n→∞n\to\inftyn→∞, so (xn)(x_n)(xn​) is Cauchy and converges to some x∗x^\astx∗ by completeness. A contraction is Lipschitz, since d(Txn,Tx)≤c d(xn,x)→0d(Tx_n,Tx)\le c\,d(x_n,x)\to 0d(Txn​,Tx)≤cd(xn​,x)→0, hence continuous, so Tx∗=Tlim⁡xn=lim⁡xn+1=x∗Tx^\ast=T\lim x_n=\lim x_{n+1}=x^\astTx∗=Tlimxn​=limxn+1​=x∗, a fixed point. If x∗x^\astx∗ and y∗y^\asty∗ are both fixed, then d(x∗,y∗)=d(Tx∗,Ty∗)≤c d(x∗,y∗)d(x^\ast,y^\ast)=d(Tx^\ast,Ty^\ast)\le c\,d(x^\ast,y^\ast)d(x∗,y∗)=d(Tx∗,Ty∗)≤cd(x∗,y∗) with c<1c<1c<1 forces d(x∗,y∗)=0d(x^\ast,y^\ast)=0d(x∗,y∗)=0, so the fixed point is unique.

The contraction principle is how later posts produce solutions of equations that no formula solves, since the Picard iteration for differential equations is a contraction on a suitable complete space.

#Compactness

A set KKK is sequentially compact when every sequence in KKK has a subsequence converging to a point of KKK. In Euclidean space this is exactly the elementary description.

Theorem4

A subset of Rn\R^nRn is sequentially compact if and only if it is closed and bounded.

Proof

Let K⊆RnK\subseteq\R^nK⊆Rn be closed and bounded and let (xk)(x_k)(xk​) be a sequence in KKK. Each coordinate sequence is bounded, so applying the Bolzano-Weierstrass theorem to the first coordinate gives a convergent subsequence, then to the second coordinate along that subsequence, and after nnn passes a single subsequence converges in every coordinate, hence in Rn\R^nRn. Its limit lies in KKK because KKK is closed, by Proposition 2, so KKK is sequentially compact. Here bounded means sup⁡x∈K∥x∥<∞\sup_{x\in K}\norm{x}<\inftysupx∈K​∥x∥<∞. Conversely, if KKK is not bounded this supremum is +∞+\infty+∞, so for each kkk there is xk∈Kx_k\in Kxk​∈K with ∥xk∥>k\norm{x_k}>k∥xk​∥>k, giving ∥xk∥→∞\norm{x_k}\to\infty∥xk​∥→∞, and every subsequence is likewise unbounded and so cannot converge, since a convergent sequence is bounded. If KKK is not closed it has a sequence converging to a point outside KKK, whose every subsequence has that same outside limit. Either failure breaks sequential compactness, so a sequentially compact set is closed and bounded.

Compactness is preserved by continuous maps, which is the source of every existence-of-extremum result.

Theorem5

The continuous image of a sequentially compact set is sequentially compact. In particular a continuous real function on a sequentially compact set attains a maximum and a minimum.

Proof

Let f:M→M′f:M\to M'f:M→M′ be continuous and KKK sequentially compact, and let (yk)(y_k)(yk​) be a sequence in f(K)f(K)f(K), say yk=f(xk)y_k=f(x_k)yk​=f(xk​). Some subsequence xkj→x∈Kx_{k_j}\to x\in Kxkj​​→x∈K, and continuity gives ykj=f(xkj)→f(x)∈f(K)y_{k_j}=f(x_{k_j})\to f(x)\in f(K)ykj​​=f(xkj​​)→f(x)∈f(K), so f(K)f(K)f(K) is sequentially compact. When M′=RM'=\RM′=R the set f(K)f(K)f(K) is closed and bounded by Theorem 4, so it is bounded, giving a supremum and infimum, and closed, so it contains them, and they are attained.

#Normed spaces

When the set is a vector space the natural metrics come from a length.

Definition6

A norm on a real vector space VVV is a function ∥⋅∥:V→[0,∞)\norm{\cdot}:V\to[0,\infty)∥⋅∥:V→[0,∞) with ∥x∥=0\norm{x}=0∥x∥=0 only at x=0x=0x=0, homogeneity ∥αx∥=∣α∣ ∥x∥\norm{\alpha x}=\abs{\alpha}\,\norm{x}∥αx∥=∣α∣∥x∥, and the triangle inequality ∥x+y∥≤∥x∥+∥y∥\norm{x+y}\le\norm{x}+\norm{y}∥x+y∥≤∥x∥+∥y∥. It induces the metric d(x,y)=∥x−y∥d(x,y)=\norm{x-y}d(x,y)=∥x−y∥, and a complete normed space is a Banach space.

In finite dimensions the choice of norm does not matter for any convergence question, because all norms are comparable.

Theorem7

Any two norms on a finite-dimensional real vector space are equivalent, meaning there are constants 0<m≤M0<m\le M0<m≤M with m∥x∥a≤∥x∥b≤M∥x∥am\norm{x}_a\le\norm{x}_b\le M\norm{x}_am∥x∥a​≤∥x∥b​≤M∥x∥a​ for all xxx.

Proof

It suffices to compare an arbitrary norm ∥⋅∥\norm{\cdot}∥⋅∥ with the Euclidean norm ∥⋅∥2\norm{\cdot}_2∥⋅∥2​ in a fixed basis, since equivalence is transitive. By the triangle inequality and homogeneity, ∥x∥=∥∑ixiei∥≤∑i∣xi∣∥ei∥≤M∥x∥2\norm{x}=\norm{\sum_i x_i e_i}\le\sum_i\abs{x_i}\norm{e_i}\le M\norm{x}_2∥x∥=∥∑i​xi​ei​∥≤∑i​∣xi​∣∥ei​∥≤M∥x∥2​ with M=(∑i∥ei∥2)1/2M=\big(\sum_i\norm{e_i}^2\big)^{1/2}M=(∑i​∥ei​∥2)1/2 by Cauchy-Schwarz, which also shows ∥⋅∥\norm{\cdot}∥⋅∥ is continuous with respect to ∥⋅∥2\norm{\cdot}_2∥⋅∥2​, since ∣∥x∥−∥y∥∣≤∥x−y∥≤M∥x−y∥2\abs{\norm{x}-\norm{y}}\le\norm{x-y}\le M\norm{x-y}_2∣∥x∥−∥y∥∣≤∥x−y∥≤M∥x−y∥2​, where the first step is the reverse triangle inequality ∥x∥≤∥x−y∥+∥y∥\norm{x}\le\norm{x-y}+\norm{y}∥x∥≤∥x−y∥+∥y∥ and its symmetric counterpart. The Euclidean unit sphere {x:∥x∥2=1}\{x:\norm{x}_2=1\}{x:∥x∥2​=1} is closed and bounded, hence sequentially compact by Theorem 4, so the continuous function ∥⋅∥\norm{\cdot}∥⋅∥ attains a minimum mmm on it by Theorem 5, and m>0m>0m>0 because the norm vanishes only at the origin, which the sphere excludes. Scaling by homogeneity, m∥x∥2≤∥x∥m\norm{x}_2\le\norm{x}m∥x∥2​≤∥x∥ for all xxx, and combined with the upper bound this is the equivalence.

Equivalence of norms is why finite-dimensional analysis is coordinate-free, since convergence, continuity, and compactness do not depend on which norm measures them. It fails in infinite dimensions, where the supremum and integral norms on function spaces are genuinely different, and that failure is the reason the next posts must choose their norms with care.

The completeness of a metric space is what makes the Lebesgue space LpL^pLp a Banach space and the inner product space L2L^2L2 a Hilbert space, the contraction principle constructs solutions of stochastic differential equations, and compactness is the property that the spectral theory of operators turns into eigenvalues. Distance, completeness, and compactness are the three words the rest of the curriculum is built from.

Part 3 of 6 in Real Analysis

← previousContinuity and Limits of Functionsnext →Differentiation and Taylor's Theorem

Explore connections

see in the atlas →

related

  • Compact Operators and the Spectral Theorem
  • Inner Product Spaces
  • Sequences and Completeness

referenced by (6)

  • Compact Operators and the Spectral Theorem
  • Continuity and Limits of Functions
  • Convex Sets and Functions
  • Eigenvalues and the Spectral Theorem
  • Inner Product Spaces
  • Sigma-Algebras and Measures
cite
@misc{metric-and-normed-spaces,
  author = {Zac Kienzle},
  title  = {Metric and Normed Spaces},
  year   = {2026},
  month  = {05},
  url    = {https://zackienzle.com/blog/metric-and-normed-spaces}
}