Lecture 3. Metric Spaces

Motivation

Metric Spaces

Definitions (Distance Functions and Metric Spaces)

(i) A distance function $d$ on a non-empty set $X$ is a function $d: X\times X\to [0, \infty)$ satisfying the following three properties
$\quad$ 1. (symmetry) $d(x, y)=d(y,x)$ for all $x, y\in X$.
$\quad$ 2. (positivity) $d(x,y)\geq 0$ for any $x, y\in X$ and $d(x,y)=0\iff x=y$.
$\quad$ 3. (triangle inequality) $d(x, z)\le d(x, y)+d(y,z)$ for all $x, y, z\in X$.
(ii) A metric space $(X, d)$ consists of a set $X$ and a distance function $d$ on $X$.

Question

What distance functions or metric spaces have you ever seen?

The followings are standard examples of simple metric spaces.

Example

On $\mathbb{R}=(-\infty, \infty)$, the distance between two numbers $x, y\in \mathbb{R}$ is defined by $$ d(x, y)=|x-y|. $$ It is easy to verify $d$ satisfies the three conditions of a distance function on $\mathbb{R}$.

Example

On $\mathbb{R}^n$, the distance between two points $x=(x_1,\dots, x_n), y=(y_1,\dots, y_n)\in \mathbb{R}^n$ is defined by $$ d_2(x, y)=\|x-y\|_2=\Big(\sum_{j=1}^n (x_j-y_j)^2\Big)^{1/2} $$

Discussion

Question

What other distance functions on $\mathbb{R}^n$ have you ever seen ?

Example

For any $1\le p < \infty$, the function $$ d_p(x, y)=\|x-y\|_p=\Big(\sum_{j=1}^n |x_j-y_j|^p \Big)^{1/p} $$ is a distance function on $\mathbb{R}^n$.

Discussion

Example

The function $$ d_\infty(x, y)=\max \{|x_j-y_j|: 1\le j\le n\} $$ is a distance function on $\mathbb{R}^n$.

Discussion

Exercise

For any $x, y\in \mathbb{R}^n$, prove $$ \lim_{p\to\infty }d_p(x, y)=d_{\infty}(x, y). $$

Exercise

Let $A=[a_{jk}]$ be a $n\times n$ positive definite symmetric matrix with real entries. The function $$ \|x\|_A=\Big(\sum_{j, k=1}^n a_{jk} x_j x_k\Big)^{1/2} $$ is a norm on $\mathbb{R}^n$. Moreover, it induces a distance function $d_A(x, y)=\|x-y\|_A$ on $\mathbb{R}^n$.

Question

Given a metric space $(X, d)$ is it possible to construct a bounded and equivalent distance function $\tilde{d}$ on $X$?

Example

Let $(X, d)$ be a metric space. Then $$ \tilde{d}(x, y)={d(x, y)\over 1+d(x, y)},\: x,y\in X, $$ is a metric on $X$. It is clearly bounded by $1$.

Discussion

Example

For any non-empty set $X$, the discrete metric $d_0$ on $X$ is defined by $$ d_0(x,y):=\begin{cases} 1\, ,&\text{if } x\ne y\, ,\\ 0\, ,&\text{if } x=y\, . \end{cases} $$ $(X, d_0)$ is a called a discrete metric space.

Discussion

Topology of Metric Spaces

Given a metric space $(X, d)$, one may use the distance function $d$ on $X$ to define balls in $X$ and then, in turn, use balls to define open sets. The collection of all open sets in $X$ give the topology for the metric space $(X,d)$.

Definitions (Balls and Open Sets)

Let $(X, d)$ be a metric space. Then
(i) A ball centered at $x_0\in X$ with radius $r$ is defined by $$ B(x_0, r)=\{x\in X: d(x, x_0)< r\}. $$
(ii) Let $A$ be a set of $X$. A point $x_0\in A$ is said to be an interior point of $A$ if there is $r>0$ such that $B(x_0, r)\subset A$.
(iii) We say that $A$ is open if every point of $A$ is an interior point of $A$.

Proposition

Let $(X, d)$ be a metric space. Then
(i) The ball $B(x_0, r)$ is open for any $x_0\in X$ and $r>0$.
(ii) If $\overset{\circ}{A}$ denotes the subset of $A$ consisting of all its interior points, then $\overset{\circ}{A}$ is open.

Proof

Exercise

Let $(X, d)$ be a metric space. If $A\subset B$ then $ \overset{\circ}{A}\subset \overset{\circ}{B}$.

Complete Metric Spaces

Definition (Cauchy Sequences and Completeness)

Let $(X, d)$ be a metric space.
(i) We say that a sequence $\{x_n\}_{n=1}^\infty$ converges to a limit $x\in X$ iff $$ \lim_{n \to \infty} d(x_n,x) = 0. $$ (ii) We say that a sequence $\{x_n\}_{n=1}^\infty$ is a Cauchy sequence if, for any $\epsilon>0$, there exists $N$ such that if $m, n\ge N$ then $$ d(x_n, x_m)\leq\epsilon. $$ (iii) The metric space $(X, d)$ is called complete if every Cauchy sequence converges in $X$.

Example

(a) $(\mathbb{R}^n, d_2)$ is a complete metric space.
(b) $(\mathbb{Q}^n, d_2)$ is not a complete metric space.
(c) Determine whether $(\mathbb{Z},d_0)$ is complete or not.

Discussion

Definition (Contractive Sequences)

A sequence $\{x_n\}_{n=1}^\infty$ in $X$ is said to be contractive iff there is a constant $c\in [0, 1)$ such that $$ d(x_n, x_{n+1}) \le cd (x_{n-1}, x_n)\quad \text{ for }n=2,3,\dots. $$

Theorem

Every contractive sequence in a metric space $(X,d)$ is a Cauchy sequence.

Proof

Corollary

In a complete metric space $(X, d)$, every contractive sequence has a limit in $X$.

Definition (Contractive Maps)

Let $(X, d)$ be a metric space. A map $f: X\to X$ is said to be a contractive map if there is $c\in (0,1)$ such that $$ d\bigl(f(x), f(y)\bigr)\le c\, d(x, y),\quad x, y\in X. $$

Theorem (Banach Fixed Point Theorem)

In a complete metric space $(X, d)$, every contractive map $f:X\to X$ has a unique fixed point in $X$.

Proof

Remark

Strict contractivity is necessary for the validity of Banach's fixed point theorem. If $f$ only satisfies $d \bigl( f(x),f(y)\bigr)\leq d(x,y)$ for $x,y\in X$, it won't possess a fixed-point in general.

Discussion

Proposition

If $\{x_n\}_{n=1}^\infty$ and $\{y_n\}_{n=1}^\infty$ are Cauchy sequences in a metric $(X,d)$, then $\bigl(d(x_n, y_n)\bigr)_{n\in \mathbb{N} }$ is a convergent sequence in $\mathbb{R}$.

Proof

Union and intersection of sets

Let $(X,d)$ be a metric space and let $E \subset X$ be a set in $X$. We denote the empty set by $\emptyset$ and by $E^c = \{x \in X: x \not \in E\} = X \setminus E$ the complement of $E$ in $X$. Given subsets $A$ and $B$ of $X$ we denote by $$ A \cup B = \{ x : x\in A \mbox{ or } x \in B\} $$ the union and by $$ A \cap B = \{ x \in X: x\in A\mbox{ and } x\in B\} $$ the intersection of the subsets $A$ and $B$.

Proposition

(i) Let $(A_\alpha)_{\alpha \in I}$ be a family (finite or infinite) of set in $X$. Then $$ \left ( \bigcup_{\alpha \in I} A_\alpha \right )^c = \bigcap_{\alpha \in I} A_\alpha^c $$
(ii) Let $(A_\alpha)_{\alpha \in I}$ be a family of open sets in a metric space $(X, d)$. Then $\cup_{\alpha\in I} A_\alpha $ is open.
(iii) If $A_1,\cdots, A_m$ are open in a metric space $(X, d)$, then $\cap_{j=1}^m A_j$ is also open

Proof