A metric space is a set of points where the distance between any two pointscan be calculated with a function of the coordinates of the points, called a metric:

The metric space which most closely corresponds to our intuitive understanding of space is the ordinary Euclidean space, in one, two, three of more dimensions. In fact, the notion of "metric" is a generalization of the Euclidean metric, which defines the distance between two points as the length of the straight line segment connecting them.

The geometric properties of the space depend on the metric chosen, and by using a different metric we can construct non-Euclidean geometries such as those used in the theory of general relativity.

The metric must satisfy three properties:

M1: IfthenIfthen

M2:The distance between two points is a number which does not depend on how the points are oriented.

M3:whereare any three points in the space. This is a generalization of the triangle inequality.

Examples: