Metric Spaces
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 general topology. In metric spaces sequential convergence characterises the topology, but in general topological 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 Worked Examples
Section titled “7.9 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 ).