Jump to content

Metric: Difference between revisions

From Mathepedia, the mathematical encyclopedia
Line 18: Line 18:
By symmetry, <math>d(x,y)=d(y,x)</math>. Thus
By symmetry, <math>d(x,y)=d(y,x)</math>. Thus
<math display="block">\begin{align}
<math display="block">\begin{align}
   0&\le&d(x,y)+d(x,y)\\
   &0\le d(x,y)+d(x,y)\\
   0&\le&2d(x,y)\\
   &0\le 2d(x,y)\\
   0&\le&d(x,y)
   &0\le d(x,y)
\end{align}</math>}}
\end{align}</math>}}

Revision as of 20:02, 12 June 2026

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 non-empty set. A metirx on LaTeX is a function

LaTeX

,

that satisfies the following four properties for all LaTeX:

  1. Non-negativity: LaTeX
  2. Identity of indiscernibles: LaTeX
  3. Symmetry: LaTeX
  4. Triangle inequality: LaTeX.

Properties

Property.

Non-negativity is implied by the other three properties.

Proof

Let LaTeX. By triangle inequality,

LaTeX
By the identity of indisscernbles, LaTeX. Thus
LaTeX
By symmetry, LaTeX. Thus
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.