point set topology
Metric Spaces
You should know: open and closed sets
Overview
A metric space is a set X equipped with a distance function d: X × X → ℝ that assigns a nonnegative real number to every pair of points, measuring how 'far apart' they are. This distance function, called a metric, must satisfy three natural axioms: identical points have distance zero (and only identical points do), distance is symmetric, and distances satisfy a triangle inequality. Metric spaces give the most familiar route into topology, because every metric induces a topology — a collection of open sets built from open balls — recovering the usual ε-neighborhood notion of closeness. Many different metrics can induce the very same topology, which is exactly the sense in which topology is a strictly more general framework than metric geometry.
Intuition
Imagine measuring distances on a map with a tape measure: between any two cities you get a nonnegative number, the number is the same whether you measure from city A to city B or back, and a direct route is never longer than a detour through some third city — that detour rule is the triangle inequality. A metric is just this idea made abstract: any rule d(x,y) satisfying those three sensible properties turns any set into a space where 'distance' makes sense, whether the points are cities, functions, or strings of text. Once you can measure distance, you get open disks (balls) around each point for free, and declaring a set 'open' whenever every one of its points has a wiggle-room ball entirely inside it recovers the whole topological structure without extra work.
Formal Definition
A metric on a set X is a function d: X × X → ℝ satisfying, for all x, y, z ∈ X:
Distance is nonnegative and only zero between a point and itself
The distance from x to y equals the distance from y to x
Going directly from x to z is never longer than detouring through y
The set of points within distance ε of x; open balls are the building blocks of the metric topology
The topology generated by d: a set is open iff every point has an open ball around it fully contained in the set
Notation
| Notation | Meaning |
|---|---|
| A metric space: a set X together with a metric d | |
| The open ball of radius ε centered at x | |
| The topology induced on X by the metric d |
Properties
Euclidean metric
Example: The ordinary straight-line distance in ℝⁿ; induces the standard topology on ℝⁿ.
Taxicab (Manhattan) metric
Example: Distance measured along grid-aligned streets in ℝⁿ; a different formula from the Euclidean metric but induces the same topology on ℝⁿ.
Discrete metric
Example: Every subset is open (each singleton is a ball of radius <1), so the induced topology is the discrete topology on X.
Metrizability
Condition: Not every topological space comes from a metric — e.g. non-Hausdorff spaces like the indiscrete topology on a set with ≥2 points are never metrizable.
Worked Examples
Compute the direct distance from x to z.
Compute the detoured sum through y=5.
Compare: 7 ≤ 7 holds (with equality, since 5 lies between 1 and 8).
Answer: The triangle inequality holds, with equality since y=5 lies on the segment between x=1 and z=8.
Practice Problems
Which property is NOT one of the metric axioms?
In the discrete metric on a set X with |X| ≥ 2, what is the open ball B(x, 1)?
Prove that every open ball B(x,ε) in a metric space is an open set in the induced topology.
Quiz
Summary
- A metric space (X,d) is a set with a distance function satisfying nonnegativity/identity of indiscernibles, symmetry, and the triangle inequality.
- Open balls B(x,ε) = {y : d(x,y)<ε} generate the induced topology τ_d: a set is open iff every point has a ball around it inside the set.
- Different metrics (Euclidean, taxicab, discrete) can induce the same or different topologies — metrizability is a strictly stronger property than being merely a topological space.
References
- WebsiteWikipedia — Metric space
Mathematics