Log in Sign up
Back to Discover
🔢

Metric space

math Maturity 11-13

We can measure how far things are.

Manhattan distance.svg
Manhattan distance.svg
You can walk in a straight line. Or you can walk along streets. Both ways show a distance. Math helps us find these paths. It helps us see what is close. Can you find something close to you?

47 words

Math helps us measure distance.

Manhattan distance.svg
Manhattan distance.svg
We can measure a straight line. We can also follow streets like a taxi.
Minkowski distance examples.svg
Minkowski distance examples.svg
These paths show different distances. A metric space is a set of points. It uses a rule to find distance. This rule tells us what is close. It can even measure how much things change. A detour will not make a trip shorter. Math uses these rules to study shapes.
Great-circle distance vs straight line distance.svg
Great-circle distance vs straight line distance.svg
It helps us understand our world.

84 words

How do we measure how far apart two things are?

Manhattan distance.svg
Manhattan distance.svg
We often think of a straight line. This is the shortest path. But distance can change based on our rules. Imagine a taxi in a city. It must follow streets. It cannot drive through buildings. This is called the taxicab metric.
Minkowski distance examples.svg
Minkowski distance examples.svg
In math, we call these rules metrics. A metric space is a set of points with a metric. The metric is a function that tells us the distance.

There are special rules for a metric. The distance from a point to itself is zero. The distance between two different points is always positive. Also, the distance from A to B is the same as B to A. Finally, a detour cannot be shorter than a direct path. This is called the triangle inequality. On a sphere, like Earth, distance works differently. We can measure a path along the surface. We can also measure a straight line through the middle. Metrics can even measure how much two strings of text differ. This helps math study many shapes and patterns.

187 words

How do we decide how far apart two things are? Usually, we think of a straight line as the shortest path.

Minkowski distance examples.svg
Minkowski distance examples.svg
In math, we use a set of rules called a metric to define distance. A metric space is a collection of points that uses one of these rules. This idea is very useful for studying shapes and patterns. It lets mathematicians look at many different kinds of spaces at once. You can use it to study geometry or even how numbers behave.
Functions between metric spaces.svg
Functions between metric spaces.svg

To be a real metric, a rule must follow a few specific laws. First, the distance from a point to itself must be zero. Second, the distance between two different points must always be a positive number. Third, the distance from point A to point B must be the same as B to A. Finally, there is the triangle inequality. This rule says that taking a detour through a third point cannot be shorter than the direct path.

There are many ways to measure distance depending on the situation. The most common is Euclidean distance, which is the straight line we learn in school. Another way is the taxicab metric, which follows paths like a car on city streets.

Manhattan distance.svg
Manhattan distance.svg
You can even use a metric to see how much two strings of text differ. This is called the Hamming distance. On a sphere, like the Earth, you can measure distance along the surface or through the center.

People have worked on these ideas for a long time. Arthur Cayley wrote about distance in his work on geometry. Later, Felix Klein used these ideas to study non-Euclidean geometry. In 1906, René Maurice Fréchet helped lay the foundation for modern metric spaces. The actual term "metric space" was named by Felix Hausdorff in 1914. Other mathematicians like Stefan Banach also helped expand these important ideas.

Diameter of a Set.svg
Diameter of a Set.svg

Metric spaces help us understand how points can be close or far away. We can use them to define things like open balls or neighborhoods. An open ball is just a set of all points within a certain distance from a center. These spaces can also be "complete." A complete space has no missing points in it. This means every sequence that looks like it is heading somewhere actually reaches a limit.

Minkowski distance examples.svg
Minkowski distance examples.svg

400 words

A metric space is a mathematical structure used to define distance. It consists of an ordered pair containing a set of points and a specific rule called a metric. This metric is a function that assigns a numerical value to the distance between any two points in the set.

Functions between metric spaces.svg
Functions between metric spaces.svg
Metric spaces provide a general framework for studying many concepts in geometry and mathematical analysis. They allow mathematicians to move beyond physical space and apply the idea of distance to abstract objects. This flexibility makes them essential for understanding how different mathematical systems behave.

To qualify as a metric, a function must follow four strict axioms for all points in a set. First, the distance from a point to itself must be exactly zero, a property called positivity. Second, the distance between any two distinct points must always be a positive number. Third, the metric must be symmetric, meaning the distance from point A to B is identical to the distance from B to A. Finally, the metric must satisfy the triangle inequality. This last rule states that a direct path between two points is never longer than a path that takes a detour through a third point.

There are many different types of metrics used to describe various spaces. The most common is the Euclidean metric, which measures the straight-line distance familiar in school geometry. In a plane, the taxicab or Manhattan distance measures movement along horizontal and vertical lines, much like a car navigating city streets.

Manhattan distance.svg
Manhattan distance.svg
Another type is the Chebyshev distance, which can be compared to the number of moves a king makes on a chessboard. For more abstract sets, like strings of characters, mathematicians use the Hamming distance to count how many characters must change to make two strings identical.
Minkowski distance examples.svg
Minkowski distance examples.svg
In a discrete metric, every distinct point is exactly one unit apart, treating the set as a collection of undifferentiated points.

The history of these concepts involves several influential mathematicians. Arthur Cayley extended distance ideas beyond Euclidean geometry using a method involving the logarithm of a cross ratio. Felix Klein later used these methods to establish the field of non-Euclidean geometry. In 1906, René Maurice Fréchet developed work that laid the foundation for understanding convergence and continuity in non-geometric spaces.

Diameter of a Set.svg
Diameter of a Set.svg
The specific term "metric space" was coined by Felix Hausdorff in 1914. Later, mathematicians like Stefan Banach expanded the framework through his work in functional analysis, which relied heavily on metric structures.

Metric spaces allow for the definition of several important mathematical properties. One such concept is the open ball, which is the set of all points within a specific distance from a center point. This helps define neighborhoods and open sets, which are used to build a topology.

Minkowski distance examples.svg
Minkowski distance examples.svg
Another critical concept is completeness. A metric space is considered complete if it has no "missing points." In a complete space, every Cauchy sequence—a sequence where points get closer to each other—actually converges to a limit within that space. For example, the real numbers are complete, but the set of rational numbers is not because it lacks irrational numbers.

These spaces can also be viewed as subspaces. If you take a subset of a metric space, you can create a new metric space by using the same distance rule from the original set. For instance, a two-dimensional sphere can be treated as a subspace of three-dimensional Euclidean space. When this happens, the Euclidean metric on the larger space induces a straight-line metric on the sphere. This allows complex shapes to be studied using the familiar rules of the spaces they inhabit.

Metric spaces connect many different branches of mathematics. They are used in Riemannian manifolds, normed vector spaces, and graph theory. In abstract algebra, the field of p-adic numbers is created by completing the rational numbers using a specific metric. They also serve as a bridge to topology, where some metric properties can be studied without any reference to distance at all. This connection helps mathematicians understand which properties belong to the shape of a space and which belong to the way we measure it.

699 words
🖼️ Images & Media (6)
File:Manhattan distance.svg
Manhattan distance.svg
File:Great-circle distance vs straight line distance.svg
Great-circle distance vs straight line...
File:Minkowski_distance_examples.svg
Minkowski_distance_examples.svg
File:Diameter of a Set.svg
Diameter of a Set.svg
File:Functions between metric spaces.svg
Functions between metric spaces.svg
File:approximate arc length.svg
approximate arc length.svg
Up Next
🔢
Open set
Math
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.