Metric Spaces | Mathematics - Wyatt's Notes
7.1 Definition
Section titled “7.1 Definition”Definition. A metric space is a pair where is a set and satisfies, for all :
- Non-negativity: , with equality iff .
- Symmetry: .
- Triangle inequality: .
Every metric induces a topology: the open sets are unions of open balls .
7.2 Standard Metrics
Section titled “7.2 Standard Metrics”Example 7.1 (Euclidean metric). On :
Example 7.2 (-norm metrics). For :
All of these induce the standard topology on .
Example 7.3 (Discrete metric). For any set :
The discrete metric induces the discrete topology.
7.3 Convergence in Metric Spaces
Section titled “7.3 Convergence in Metric Spaces”Definition. A sequence in converges to (written ) if for every there exists such that for all .
Proposition 7.1. In a metric space, if and only if for every open neighbourhood of , there exists with for all .
Limits in metric spaces are unique (this follows from the Hausdorff property).
7.4 Completeness
Section titled “7.4 Completeness”Definition. A sequence is Cauchy if for every there exists such that for all .
Every convergent sequence is Cauchy. The converse need not hold.
Definition. A metric space is complete if every Cauchy sequence converges.
Example 7.4. with the Euclidean metric is complete.
Example 7.5. with is not complete: the Cauchy sequence does not converge in .
Proposition 7.2. A closed subset of a complete metric space is complete.
Definition. A Banach space is a complete normed vector space.
Example 7.6. — the space of continuous functions on with the sup norm — is a Banach space.
7.5 Contraction Mapping Theorem
Section titled “7.5 Contraction Mapping Theorem”Definition. A map is a contraction if there exists such that for all .
Theorem 5.6 (Banach Fixed Point Theorem). If is a complete metric space and is a contraction, then has a unique fixed point , and for any , the iteration converges to .
Proof. For any , the sequence is Cauchy (by repeated application of the contraction condition), hence converges to some . By continuity of , . Uniqueness follows from the contraction condition: if and , then , so .
7.6 Key Relationships Between Metric Spaces
Section titled “7.6 Key Relationships Between Metric Spaces”| Property | Definition | Example |
|---|---|---|
| Metric space | Set + distance function satisfying triangle ineq | with |
| Complete metric | Every Cauchy sequence converges | , |
| Compact metric | Every open cover has finite subcover | with Euclidean metric |
| Connected metric | Cannot be partitioned into two disjoint open sets | , any interval |
| Totally bounded | For every , finite -net | but not |
Compact complete and totally bounded. Complete + totally bounded compact.
7.7 Common Pitfalls
Section titled “7.7 Common Pitfalls”- Assuming all metrics come from a norm. The discrete metric does not come from any norm (norms are homogeneous: , but for ).
- Confusing completeness with closedness. A subset of a metric space can be closed but not complete (if the ambient space is not complete), and complete but not closed (if complete in a subspace topology).
- Thinking contractions require for all . This is weaker and does not guarantee a fixed point. The strict inequality with is essential.
- Forgetting that convergence of sequences is not enough in arbitrary topological spaces. In metric spaces sequential convergence characterises the topology, but in non-metric spaces nets or filters are needed.
7.8 Applications
Section titled “7.8 Applications”- Numerical analysis: The Banach fixed-point theorem justifies iterative methods like Newton’s method and Picard iterations for ODEs.
- Computer science: Metric spaces model edit distances (Levenshtein, Hamming) for string matching and bioinformatics sequence alignment.
- Image processing: The Hausdorff distance measures similarity between shapes and is used in computer vision for template matching.
- Functional analysis: with the sup norm is a complete metric space, providing the setting for the Stone-Weierstrass approximation theorem.
7.9 Intuition: What Do Metric Spaces Add?
Section titled “7.9 Intuition: What Do Metric Spaces Add?”A metric space formalises the notion of distance. It takes the key properties of distance in (non-negativity, symmetry, triangle inequality) and axiomatises them, allowing you to study convergence and continuity in any setting where a notion of distance makes sense. The Euclidean metric is the most familiar, but other metrics like the taxicab metric () or the maximum metric () give different notions of “closeness” while inducing the same topology on .
Completeness is the metric-space analogue of the completeness axiom for . A complete metric space is one where Cauchy sequences converge, meaning there are no “missing limits.” The Banach fixed-point theorem is the most important consequence: any contraction mapping on a complete metric space has a unique fixed point, and it can be found by iteration. This single theorem justifies Newton’s method, Picard iteration for ODEs, and the contraction mapping principle in functional analysis. The Hausdorff distance measures how far two compact sets are from each other, providing a metric on the space of shapes.
7.10 Worked Examples
Section titled “7.10 Worked Examples”Problem 1. Show that with the Euclidean metric is complete.
Solution. Let be a Cauchy sequence in . Then each coordinate sequence is Cauchy in (since ). is complete, so each coordinate converges to . Then componentwise, and by the triangle inequality .
Problem 2. Let with . Show is not complete.
Solution. The sequence is Cauchy: for any , choose , then for , . But , so the sequence does not converge in . Thus with the Euclidean metric is not complete. However, is complete (closed subset of complete ).
7.11 Common Mistakes
Section titled “7.11 Common Mistakes”Mistake 1: Confusing a metric with a topology Every metric induces a topology (the metric topology), but not every topology comes from a metric. A topological space is metrizable if and only if it satisfies certain separation and countability axioms (Urysohn’s metrization theorem). The cofinite topology on an infinite set is not metrizable because it is not Hausdorff.
Mistake 2: Assuming completeness implies compactness A complete metric space need not be compact; compactness requires both completeness and total boundedness. For example, is complete but not compact (it is not totally bounded). Conversely, a compact metric space is always complete. The Bolzano-Weierstrass property (every bounded sequence has a convergent subsequence) holds in compact metric spaces but not in all complete metric spaces.
Mistake 3: Forgetting that contractions require a uniform contraction constant The Banach fixed-point theorem requires for a fixed and all . A map satisfying for all (strictly contractive but without a uniform constant) need not have a fixed point. For example, on is strictly contractive but has no fixed point.
flowchart TD A[7_Metric Spaces] --> B[Key Concepts] A --> C[Core Principles] A --> D[Practical Applications] B --> E[Fundamental definitions] C --> F[Design patterns] D --> G[Real-world usage]Cross-References
Section titled “Cross-References”Closed Sets, Closure, Interior, and Boundary: The metric topology induces open and closed sets whose properties are studied using closure and interior operations.
Separation Axioms: Every metric space is Hausdorff and normal, placing it high in the separation axiom hierarchy.
Sequences and Limits: Convergence of sequences in metric spaces generalises the real-number convergence studied in analysis.
Introduction to Algebraic Topology: Completeness and compactness of metric spaces are prerequisites for understanding covering spaces and fundamental groups.