Metric spaces

Let X be a non-empty set,a metric d on X is a function
d:X×XR which satisfy the following distance properties:
for all x,y,zϵX
(i)d(x,y)0
(ii) d(x,y)=0
(iii) d(x,y)=d(y,x)
(iv) d(x,z)=d(x,y)+d(y,z)

Examples of Metric Spaces

(1)The Euclidean space: this is a metric space defined on the set of n-tuples of
real numbers Rn in this space we use
d(x,y)=(ni=1|xiyi|)12 for all
xi,yiX using the axioms of metric spaces,the distance function defined on
the euclidean space will satisfy the metric properties, but remember we might have
to use some inequalities to establish our proof such as the cauchy schwarz inequality.
(2)The Minkowsky Metrics:the minkowsky metric defined on the set of n-tuples
Rn. for a non-empty set X and x,yRn then
x=(x1,x2,x3,...) and y=(y1,y2,y3,..) for any 1p< we define a
distance d(x,y)=(ni=1|xiyi|p)1p which satisfy the metric property.
(3) the set of all sequence spaces e.g the L spaces and the Lp spaces.
(4) the function spaces

Counter example

for all x,yX and 1R
(1)the metric d(x,y)=1|x+y| is not a metric as it does not satisfies all
properties of metric spaces.
(2)the metric d(x,y)=d(x,y)1+d(x,y) is not a metric space as it does not
satisfy all properties of metric spaces.