1. Home
  2. Explore
  3. Mathematics
  4. Introduction to Metric Spaces

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Introduction to Metric Spaces

Speaker 1Speaker 2

Introduction to Metric Spaces

9:16
0:00-9:16
  1. Hope

    Welcome back. Today we're defining a metric space, one of the broadest kinds of domains used in real analysis. The basic idea is remarkably simple: start with a set M of elements, and add a function D that measures the distance between two elements of M.

  2. Anna

    And those elements don't have to be ordinary points on a plane. M could be the real numbers, the complex numbers, points in the plane, or even a set of markers in a room. The distance function takes two inputs, X and Y, and returns a real-valued number D of X and Y.

  3. Hope

    But not every function that produces numbers deserves to be called a distance. It has to satisfy four properties: positivity, non-degeneracy, symmetry, and the triangle inequality. Together, those conditions define a metric.

  4. Anna

    Let's unpack them one at a time. Positivity says D of X and Y is greater than or equal to zero for every pair of elements. A distance like negative three meters would not make sense.

  5. Hope

    The second property is non-degeneracy. The distance from X to Y is zero if and only if X and Y are the same element. The important phrase is 'if and only if': identical elements have distance zero, and distinct elements cannot have distance zero.

  6. Anna

    That is why non-degeneracy means the metric distinguishes different objects. If two distinct elements had distance zero, the distance function would be collapsing them together instead of telling them apart.

  7. Hope

    Third is symmetry: D of X and Y equals D of Y and X. Going from the green marker to the orange marker has the same distance as going from the orange marker to the green marker.

  8. Anna

    And the fourth is the triangle inequality. For any X, Y, and Z, the direct distance from X to Y is less than or equal to the distance from X to Z plus the distance from Z to Y. In everyday language, taking a detour cannot make the journey shorter.

  9. Hope

    In the Euclidean plane, this is the familiar fact that one side of a triangle is no longer than the sum of the other two sides. The straight line segment from X to Y is no longer than a path that goes from X to Z and then from Z to Y.

  10. Anna

    Now let's use a less familiar example to show how flexible the definition is. Let M be the five markers in the room, and define the discrete metric by saying D of X and Y is zero when X and Y are the same marker, and one when they are different.

  11. Hope

    So the distance from the orange marker to itself is zero, while the distance from orange to green is one. In fact, every pair of distinct markers has distance one. This metric does not measure physical lengths in the room; it simply records whether two elements are identical or different.

  12. Anna

    The first three metric properties are almost automatic here. Positivity holds because the only possible outputs are zero and one. Non-degeneracy holds directly from the definition, and symmetry holds because switching two markers still leaves them either the same or different.

  13. Hope

    The triangle inequality deserves a closer look. For the discrete metric, the left-hand side, D of X and Y, is either zero or one. The right-hand side, D of X and Z plus D of Z and Y, can be zero, one, or two.

  14. Anna

    The only possible failure would be a left-hand side of one and a right-hand side of zero. But if the right-hand side is zero, both terms must be zero. That means X equals Z and Z equals Y, so X equals Y. Then D of X and Y would be zero, not one—a contradiction.

  15. Hope

    Therefore the triangle inequality holds, and the markers with the discrete metric really do form a metric space. This example is useful because it shows that a metric space does not need ordinary geometric distance.

  16. Anna

    That also changes what geometric objects look like. A circle is the set of points at a fixed distance from a chosen center. In the discrete metric, the only possible distances are zero and one.

  17. Hope

    For example, take a pink marker P as the center. The circle of radius one consists of every other marker, because every distinct marker is distance one from P. The circle of radius two is empty, since no marker is distance two from P.

  18. Anna

    And the closed disc of radius one centered at any marker contains every marker in M. The center is at distance zero, and every other marker is at distance one, so all of them have distance less than or equal to one.

  19. Hope

    So circles and discs depend on the metric. A circle in Euclidean space looks very different from a circle in this discrete marker space.

  20. Anna

    Our next example keeps the underlying set familiar but changes the distance. Let M be the XY-plane, whose elements are points with two coordinates, and define the taxi cab, or Manhattan, metric by D of U and V equals the absolute difference of their first coordinates plus the absolute difference of their second coordinates.

  21. Hope

    Let's calculate one. The taxi cab distance from the point negative three, one to the point two, three is the absolute value of negative three minus two, plus the absolute value of one minus three. That gives five plus four, which equals nine.

  22. Anna

    The result is not the length of the straight line between the points. Instead, it counts the horizontal distance plus the vertical distance. The name comes from imagining a city grid: a taxi cannot drive through buildings, so it travels along streets.

  23. Hope

    In that example, the taxi drives five blocks east and four blocks north. This is a more natural distance for movement on a grid than the straight-line distance a bird might use flying from one rooftop to another.

  24. Anna

    Let's verify the four properties. Positivity follows because absolute values are nonnegative, and the metric is a sum of two absolute values. For non-degeneracy, a point has distance zero from itself because both coordinate differences are zero.

  25. Hope

    Conversely, if the distance from U to V is zero, then two nonnegative absolute values add to zero. Each one must therefore be zero. The first coordinates are equal and the second coordinates are equal, so U and V are the same point.

  26. Anna

    Symmetry follows because the absolute value of V1 minus U1 equals the absolute value of U1 minus V1, and the same is true for the second coordinates. Adding those equal quantities gives D of U and V equal to D of V and U.

  27. Hope

    For the triangle inequality, take a possible detour through W. We can write each coordinate difference between U and V by inserting W: U1 minus W1 plus W1 minus V1, and similarly for the second coordinate.

  28. Anna

    Applying the ordinary triangle inequality for absolute values to each coordinate gives an upper bound consisting of the two coordinate differences from U to W, plus the two from W to V. Those are exactly D of U and W plus D of W and V.

  29. Hope

    So the plane equipped with the taxi cab metric is a metric space. Its geometry has an interesting feature: shortest paths between two points are often not unique. You can travel all the required blocks east first and then north, north first and then east, or mix the directions, as long as you do not add unnecessary movement.

  30. Anna

    That differs from the Euclidean plane, where two points have one straight-line shortest path. The taxi cab metric also changes the shape of circles. A circle of radius two centered at the origin contains all points whose horizontal distance plus vertical distance equals two.

  31. Hope

    Because the coordinates can be fractional, those points fill four line segments rather than just isolated grid locations. The resulting circle is a diamond shape.

  32. Anna

    Now let's connect metrics to norms. Suppose V is a normed vector space. We can define a distance between vectors V and W by D of V and W equals the norm of V minus W.

  33. Hope

    The underlying set is the set of vectors in the vector space, and the metric properties follow from the norm properties. Positivity is inherited from the fact that norms are never negative.

  34. Anna

    Non-degeneracy follows from the norm being zero only at the zero vector. Specifically, the distance from V to W is zero if and only if the norm of V minus W is zero, which happens if and only if V minus W equals the zero vector. Adding W to both sides gives V equals W.

  35. Hope

    Symmetry takes a few more steps. The distance from W to V is the norm of W minus V. Rewrite W minus V as negative one times V minus W. By multiplicativity of the norm, the norm of that expression is the absolute value of negative one times the norm of V minus W. Since the absolute value of negative one is one, this equals the distance from V to W.

  36. Anna

    Finally, for the triangle inequality, insert an intermediate vector U: V minus W equals V minus U plus U minus W. The triangle inequality for the norm says the norm of that sum is at most the norm of V minus U plus the norm of U minus W. Those are D of V and U plus D of U and W.

  37. Hope

    So every normed vector space automatically gives us a metric space through this induced metric. The correspondence is: positivity of the norm gives positivity of the metric, non-degeneracy gives non-degeneracy, norm multiplicativity helps establish metric symmetry, and the norm triangle inequality gives the metric triangle inequality.

  38. Anna

    And stepping back even further, an inner product induces a norm, and a norm induces a metric. But do not reverse those implications automatically. A metric space such as the set of markers with the discrete metric does not have an origin, vector addition, or scalar multiplication, so it is not a vector space and cannot provide a norm or inner product in this way.

  39. Hope

    One final subtlety: the induced metric from a norm is a valid choice, but it is not necessarily the only metric on that set. Even on a normed vector space, another metric, such as the discrete metric, could also be defined. The lesson is that a metric space requires a set and a distance satisfying four properties, and norms provide one particularly natural way to construct such a distance.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent