Nepedia
Back to Discover
Fluent Reader
🔢

Metric space

math Maturity 11-13 Next article →

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

Minkowski distance examples
Minkowski distance examples

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
Functions between metric spaces

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
Manhattan distance

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
Diameter of a Set

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
Minkowski distance examples
379 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ 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
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.