Jump to content

Metric

From Mathepedia, the mathematical encyclopedia

Revision as of 22:01, 29 June 2026 by {{GENDER:InfernalAtom683|

Mathepedia render error: ! Extra }, or forgotten $. l.8 '"2} } No pages of output. Transcript written on /var/lib/mathepedia-renderer/cache/mathepedia-cbb0e139328 50b9fe4e18f60e540979921293739af0280a15eb127d1c1c6428f-rwwrqj9z/diagram.log.

'"7

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In mathematics, a metric or distance function is a function that defines a rigorous concept of distance between each pair of elements in a given set. By generalizing the physical concept of distance, metrics allow mathematicians to define topological concepts such as open and closed sets, continuity, convergence, and limits in highly abstract spaces. A set equipped with a metric is called a metric space.

Definitions

Let LaTeX be a given nonempty set. A metric on LaTeX is a function

LaTeX

that satisfies the following four properties for all LaTeX:

  1. Nonnegativity: LaTeX
  1. Identity of indiscernibles: LaTeX
  1. Symmetry: LaTeX
  1. Triangle inequality: LaTeX.

The value LaTeX is called the distance between LaTeX and LaTeX.

Properties

Property.

Nonnegativity is implied by the other three properties.

Proof

Let LaTeX. By the triangle inequality,

LaTeX

By the identity of indiscernibles, LaTeX. Thus

LaTeX

By symmetry, LaTeX. Therefore,

Mathepedia render error: ! Package amsmath Error: \begin{align} allowed only in paragraph mode. See the amsmath package documentation for explanation. Type H <return> for immediate help. ... l.9 \begin{align} No pages of output.

Hence LaTeX.

Reverse triangle inequality.

Suppose that LaTeX is a metric space and LaTeX. Then

LaTeX

Proof

By the triangle inequality,

LaTeX

By symmetry, LaTeX. Therefore,

LaTeX

Using the triangle inequality again,

LaTeX

Rearranging gives

LaTeX

Thus both

LaTeX

and

LaTeX

hold. Hence

LaTeX

Distance from a fixed point is continuous.

Let LaTeX be a metric space and let LaTeX. The function LaTeX defined by

LaTeX

is continuous.

Proof

For any LaTeX, the reverse triangle inequality gives

LaTeX

Let LaTeX. If LaTeX, then

LaTeX

Therefore LaTeX is continuous.

Open balls

Let LaTeX be a metric space. For LaTeX and LaTeX, the open ball with centre LaTeX and radius LaTeX is the set

LaTeX

Similarly, the closed ball with centre LaTeX and radius LaTeX is the set

LaTeX

Open balls are fundamental because they describe the local structure of a metric space.

Metric topology

Every metric space naturally gives rise to a topology. A subset LaTeX is called open if for every LaTeX, there exists some LaTeX such that

LaTeX

A subset LaTeX is called closed if its complement LaTeX is open.

This topology is called the metric topology induced by LaTeX. Thus metrics allow concepts from analysis and topology to be studied in a common framework.

Convergence

Let LaTeX be a metric space, and let LaTeX be a sequence in LaTeX. The sequence LaTeX is said to converge to LaTeX if

LaTeX

Equivalently, for every LaTeX, there exists LaTeX such that whenever LaTeX,

LaTeX

In this case, one writes

LaTeX

Uniqueness of limits.

In a metric space, a convergent sequence has at most one limit.

Proof

Suppose that LaTeX and LaTeX. By the triangle inequality,

LaTeX

Taking the limit as LaTeX, both terms on the right tend to LaTeX. Hence

LaTeX

By the identity of indiscernibles, LaTeX. Therefore the limit is unique.

Continuity

Let LaTeX and LaTeX be metric spaces. A function LaTeX is continuous at LaTeX if for every LaTeX, there exists LaTeX such that whenever

LaTeX

one has

LaTeX

The function LaTeX is called continuous if it is continuous at every point of LaTeX.

This definition generalizes the usual epsilon delta definition of continuity from real analysis.

Examples

Standard metric on the real line

On LaTeX, the usual metric is

LaTeX

This metric agrees with the ordinary notion of distance between real numbers.

Euclidean metric

On LaTeX, the Euclidean metric is

LaTeX

where LaTeX and LaTeX.

Discrete metric

On any nonempty set LaTeX, the discrete metric is defined by

Mathepedia render error: ! Extra alignment tab has been changed to \cr. <template> $\hfil $$\endtemplate l.12 1, & x\ne y. No pages of output. Transcript written on /var/lib/mathepedia-renderer/cache/mathepedia-a7a7ae7eddc 206e45e014d983ab3fa45e39a2c907aae6cfdff0757b8e205229b-hvot_7za/diagram.log.

This metric treats every two distinct points as being exactly distance LaTeX apart.

Taxicab metric

On LaTeX, the taxicab metric is

LaTeX

In LaTeX, this measures distance by moving only in coordinate directions, like travelling along the streets of a rectangular city grid.

Supremum metric

On LaTeX, the supremum metric is

LaTeX

This metric measures the largest coordinate difference between two points.

A pseudometric is similar to a metric, but it does not require that LaTeX implies LaTeX. Thus two distinct points may have distance LaTeX.

A norm on a vector space gives rise to a metric by defining

LaTeX

For example, the usual absolute value on LaTeX gives the standard metric

LaTeX

See also