Topics: Calculus
(definition)
Let be a set and be a function. We say that is a metric space if:
- ,
- ,
In such a case, we say that is a metric.
Concept of Distance
Notice that these properties are related to the concept of distance. The first one asks for any two same elements to be in the same place, the second one asks for the distance to be the same between any two elements regardless of order, and the third one is the triangle inequality.
Examples
Distance in
In , we define the distance (metric) as:
That is, the norm of the difference between and .
Example 1
Let and be given by:
This defines a metric (it satisfies the previous properties).
Example 2
where , .
The properties of a metric space are satisfied, since they follow the properties of the absolute value.
Example 3
Let and be given by:
is a metric.