Analysis on metric spaces

Definition (metric space) open_in_new

Let $X$ be any set. A metric is a function $d: X\times X\to\R$ such that

  1. (positive semidefinite) $d(x,y)\geq 0$ for all $x,y\in X$, and $d(x,y)=0$ iff $x=y$;

  2. (symmetry) $d(x,y) = d(y,x)$ for all $x,y\in X$;

  3. (triangle inequality) $d(x,y) \leq d(x,z) + d(z,y)$ for all $x,y,z\in X$.

We say $(X,d)$ is a metric space.

Examples of metric spaces

Definition (metric subspace) open_in_new

Let $(X,d)$ be a metric space and $Y\subseteq X$.

Define the canonical subspace metric $\tilde d: Y\times Y$ given by $\tilde d(y_1,y_2) = d(y_1,y_2)$ for all $y_1,y_2\in Y$. We call $(Y, \tilde d)$ the metric subspace of $(X,d)$.

Lemma (combining metric spaces) open_in_new

Let $(X, d)$ and $(\tilde X, \tilde d)$ be metric space. The following are metrices on $X\times \tilde X$:

  • $d_p((x,\tilde x), (y, \tilde y)) = \sqrt[p]{d(x,y)^p + \tilde d(\tilde x, \tilde y)^p}$ for some $p\geq 1$;

  • $d_\infty((x,\tilde x), (y, \tilde y)) = \max\set{d(x,y), \tilde d(\tilde x, \tilde y)}$.

Proof

Open sets and metric topology open_in_new

Definition (open and closed balls) open_in_new

Let $(X, d)$ be a metric space. For $r>0$, say

  • the open ball $B_r(x) = \sb{y\in X}{d(x,y)<r}$;

  • the closed ball $B_r[x] = \sb{y\in X}{d(x,y)\leq r}$

of radius $r$ centred at $x$.

Definition (open set in metric space) open_in_new

Let $(X,d)$ be a metric space.

A set $Y\subseteq X$ is open in $X$ if for all $y\in Y$, there exists $\epsilon = \epsilon(y)$ such that $B_\epsilon(y)$ $\subseteq Y$.

Lemma (open ball is open) open_in_new

Let $(X,d)$ be a metric space, $r>0$ and $x\in X$. Then an open ball $B_r(x)$ is open in $X$.

Proof

Definition (topology) open_in_new

Let $X$ be a set. The topology $\tau$ on $X$ is the collection of subsets of $X$ which are open.

Proposition (metric space topology) open_in_new

Let $(X,d)$ be a metric space and $\tau$ be its topology. Then

  1. $\emptyset, X \in \tau$.

  2. For any family $\set{U_i}_{i\in I}$ where $U_i\in \tau$, the union $\bigcup_{i\in I} U_i \in \tau$.

  3. For any finite family $\set{U_i}_{i\in I}$ where $U_i\in\tau$, the intersection $\bigcap_{i\in I} U_i \in \tau$.

Proof

Definition (interior) open_in_new

Let $(X, d)$ be a metric space and take $A\subseteq X$. Define the interior of $A$ as the largest open set contained inside $A$. $$ \begin{align*} \op{int}(A) = A^\circ = \bigcup_{\substack{U\subseteq A \\ \text{$U$ open}}} U. \end{align*} $$

The interior is an open set (why?), and it is the largest open set contained inside $A$.

Definition (metric equivalence) open_in_new

Let $X$ be a set. We say $d$ and $\tilde d$ are equivalent metrics on $X$ if they generate the same topology.

Closed sets and closure open_in_new

Definition (closed set) open_in_new

A set $A\subseteq X$ is closed if $X\setminus A$ is open.

Corollary (closed set in metric space) open_in_new

Let $(X,d)$ be a metric space. Then

  1. $\emptyset$ and $X$ are closed.

  2. For any family $\set{U_i}_{i\in I}$ where $U_i$ is closed, the intersection $\bigcap_{i\in I} U_i$ is closed.

  3. For any finite family $\set{U_i}_{i\in I}$ where $U_i$ is closed, the union $\bigcup_{i\in I} U_i$ is closed.

Proof: take complements in the properties of a topology.

Definition (closure) open_in_new

Let $(X,\tau)$ be a topological space and let $A\subseteq X$. Define the closure of $A$ as the smallest closed set containing $A$: $$ \begin{align*} \overline{A} = \op{cl}(A) = \bigcap_{\substack{U \supseteq A \\ U \text{ closed}}} U. \end{align*} $$

  • By definition, $A$ is closed iff $A = \overline{A}$.

Definition (boundary) open_in_new

Let $A\subseteq X$. Define the topological boundary of $A$ as set difference of the closure and interior of $A$: $$ \begin{align*} \partial A = \overline{A} \setminus A^\circ = \op{cl}(A) \setminus \op{int}(A). \end{align*} $$

Definition (neighbourhood) open_in_new

We say $N\subseteq X$ is a neighbourhood of $x\in X$ if there exists an open set $U$ such that $x \in U \subseteq N$.

In a metric space, equivalently if there exists an $\epsilon>0$ such that $B_\epsilon(x)$ $\subseteq N$.

There is another notion of closure: see sequential closure.

Convergent sequences in metric spaces open_in_new

Definition (sequence convergence) open_in_new

Let $(X,\tau)$ be a topological space and $\set{x_n}_{n\geq 1}^{\infty}$ be a sequence in $X$.

We say $\set{x_n}$ is a convergent sequence and converges to $x\in X$ (denoted as $x_n\to x$) if for all neighbourhood $V$ of $x$, there exists $N\in\N$ such that for all $n\geq N$, we have $x_n \in V$.

In particular, if $(X,d)$ is a metric space, this is equivalent to any of the following:

  • for all $\epsilon>0$, there exists some $N\in\N$ such that for all $n\geq N$, we have $d(x_n, x) < \epsilon$;

  • for all $\epsilon>0$, there exists some $N\in\N$ such that for all $n\geq N$, we have $x_n \in$ $B_\epsilon(x)$.

Proposition (uniqueness of limits) open_in_new

If a sequence $\set{x_n}_{n=1}^\infty$ in a Hausdorff topological space converges, then it has a unique limit.

This applies to metric spaces.

Proof

  • An sequence which is eventually constant (i.e. there exists $y\in X$ and $N\in\N$ such that $x_n = y$ for all $n\geq N$) is convergent.

    Converse is true if $d$ is the discrete metric.

Definition (uniform convergence) open_in_new

Let $Y$ be a set, $(Z,d)$ be a metric space and $\set{f_n}_{n\geq 1}^\infty$ be a sequence of functions $Y\to Z$.

We say $\set{f_n}$ converges uniformly to $f: Y\to\R$ (denoted as $f_n\tto f$) if, equivalently,

  • $\set{f_n}$ converges to $f$ in the metric space $L^\infty(Y) = (\set{\text{all bounded functions } Y\to\R},$ $L^\infty\text{ metric}$$)$;

  • for all $\epsilon>0$, there exists $N\in\N$ such that for all $n\geq N$, we have $$ \begin{align*} \sup_{x\in Y} d(f(x), f_n(x)) < \epsilon; \end{align*} $$

  • for all $\epsilon>0$, there exists $N\in\N$ such that for all $n\geq N$ and $x\in Y$, we have $$ \begin{align*} d(f(x), f_n(x)) < \epsilon. \end{align*} $$

Definition (uniformly Cauchy) open_in_new

Let $Y$ be a set, $(Z,d)$ be a metric space and $\set{f_n}_{n\geq 1}^\infty$ be a sequence of functions $Y\to Z$.

$\set{f_n}$ is said to be uniformly Cauchy if for all $\epsilon>0$, there exists $N\in\N$ such that for all $n,m\geq N$, we have $$ \begin{align*} \sup_{x\in Y} d(f_n(x), f_m(x)) <\epsilon. \end{align*} $$

Proposition (uniformly convergent iff uniformly Cauchy) open_in_new

Let $Y$ be a set, $(Z,d)$ be a complete metric space and $\set{f_n}_{n\geq 1}^\infty$ be a sequence of functions $Y\to Z$.

$\set{f_n}$ is uniformly convergent iff $\set{f_n}$ is uniformly Cauchy.

Consequently, the metric space $L^\infty(Y; Z) = (\set{\text{bounded functions } Y\to Z},$ $\text{sup metric}$$)$ is complete.

Proof

  • This applies to $Z=\R$ since $(\R, |\cdot|)$ is complete.

Definition (pointwise convergence) open_in_new

Let $Y$ be a set and $\set{f_n}_{n\geq 1}^\infty$ be a sequence of functions $Y\to \R$.

We say $\set{f_n}$ converges pointwise to $f$ (denoted as $f_n \to f$) if, equivalently,

  • for all $y\in Y$, $\set{f_n(y)}$ converges as a real sequence to $f(y)$.

  • for all $y\in Y$ and $\epsilon>0$, there exists $N = N(\epsilon, y)$ such that $|f(y) - f_n(y)| < \epsilon$ for all $n\geq N$.

Theorem (uniform limit) open_in_new

Let $(X,τ)$ be a topological space, $(Y,d)$ be a metric space, $\set{f_n}_{n\geq 1}^\infty$ be functions $X\to Y$, and $f: X\to Y$.

If $f_n$ $\tto$ $f$ and $f_n$ are continuous, then $f$ is also continuous, i.e. (if limits in $X$ are unique) $$ \begin{align*} \lim_{x\to x_0} \lim_{n\to \infty} f_n(x) = \lim_{n\to \infty} \lim_{x\to x_0}f_n(x). \end{align*} $$

Consequently, the metric space $C_b(X; Y) = (\set{\text{bounded, continuous functions } X\to Y}, \text{sup metric})$ is (sequentially) closed in $L^\infty(X; Y)$. So if $Y$ is complete, so is $C_b(X; Y)$.

Proof

Theorem (uniform convergence preserves Riemann integrability) open_in_new

Let $Y = [a,b]$, a sequence $\set{f_n}_{n\geq 1}^\infty$ of Riemann integrable functions $Y\to \R$, and $f: Y\to \R$.

If $f_n$ $\tto$ $f$, then $f$ is also Riemann integrable, and $$ \begin{align*} \int_{a}^{b} f(x) \d x \equiv \int_{a}^{b} \lim_{n\to \infty} f_n(x) \d x = \lim_{n\to \infty} \int_{a}^{b} f_n(x) \d x. \end{align*} $$

Proof

Sequential closure open_in_new

Definition (sequentially closed) open_in_new

Let $(X,\tau)$ be a topological space.

We say $A\subseteq X$ is sequentially closed if for every convergent sequence $\set{a_n}_{n=1}^\infty$ in $A$, its limit is also in $A$.

Examples

Definition (sequential closure) open_in_new

Let $(X,\tau)$ be a topological space and $A\subseteq X$.

The sequential closure of $A$ is defined as $\scl(A) = \sb{x\in X}{\text{there exists } \set{x_n}_{n=1}^\infty \text{ in } A \text{ such that } x_n\to x}$.

Theorem (closed and sequentially closed) open_in_new

Let $(X,\tau)$ be a topological space and $A\subseteq X$ be a subset.

  • $\scl(A) \subseteq \cl(A)$. This implies if $A$ is closed, then $A$ is sequentially closed.

  • If $X$ is second countable, then $\scl(A) = \cl(A)$. This implies closed iff sequentially closed. This applies to metric spaces.

Proof TODO

  • There exists a counterexample where $\cl(A) \not\subseteq \scl(A)$.

Continuity on metric spaces open_in_new

Definition (continuity on topological space) open_in_new

Let $(X,\tau)$ and $(Y,\rho)$ be topological spaces.

We say a function $f: X\to Y$ is continuous at $x_0\in X$ if for all neighbourhood $V$ of $f(x_0)$, we have $f\inv(V)$ being a neighbourhood of $x$.

If $(X,d)$ and $(Y,d')$ are metric spaces, this is equivalent to any of the following:

  • for all $\epsilon>0$, there exists $\delta=\delta(\epsilon)>0$ such that for all $x\in X$, if $d(x,x_0) < \delta$, then $d'(f(x), f(x_0)) < \epsilon$;

  • for all $\epsilon>0$, there exists $\delta=\delta(\epsilon)>0$ such that for all $x\in$ $B_\delta(x_0)$, we have $f(x) \in B'_{\epsilon}(f(x_0))$;

  • for all $\epsilon>0$, there exists $\delta = \delta(\epsilon)>0$ such that $B_{\delta}(x_0) \subseteq f\inv(B'_\epsilon(f(x_0)))$;

We say $f$ is continuous if this holds for all $x_0\in X$.

  • $\mathrm{id}_X : (X,d) \to (X,d')$ is not necessarily continuous. (Example)

  • For $(X,d)$ and $(\R,|\cdot|)$, for any fixed $x_0\in X$, $x\mapsto d(x_0,x)$ is continuous.

Lemma (continuous iff taking preimage preserves open or closed sets) open_in_new

Let $(X,\tau)$ and $(Y,\rho)$ be topological spaces, and $f: X\to Y$. The following are equivalent:

  • $f$ is continuous;

  • for all open set $V$ in $(Y,\rho)$, the preimage $f\inv(V)$ is open in $(X,\tau)$;

  • for all closed set $V$ in $(Y,\rho)$, the preimage $f\inv(V)$ is closed in $(X,\tau)$.

Proof

Lemma (composition preserves continuity) open_in_new

Let $f: (X,\tau)\to (Y,\rho)$ and $g: (Y,\rho)\to (Z,\sigma)$ be functions between topological spaces.

If $f$ is continuous at $x_0\in X$ and $g$ is continuous at $f(x_0)\in Y$, then $g\circ f$ is continuous at $x_0$.

Proof

Definition (sequential continuity) open_in_new

Let $(X,d)$ and $(Y,d')$ be metric spaces.

We say $f$ is sequentially continuous at $x\in (X,d)$ if for all sequences $\set{x_n}_{n=1}^\infty$ on $X$ where $x_n\to x$, we have $f(x_n) \to f(x_0)$.

Proposition (continuous and sequentially continuous) open_in_new

Let $(X,\tau)$ and $(Y,\rho)$ be topological spaces, and $f: X\to Y$.

Proof

Homeomorphisms and isometries open_in_new

Definition (homeomorphism) open_in_new

Let $(X,\tau)$ and $(Y,\rho)$ be topological spaces.

A function $f: (X,\tau)\to(Y,\rho)$ is said to be a homeomorphism if $f$ is bijective, and $f$ and $f\inv$ are continuous.

We say $(X,\tau)$ and $(Y,\rho)$ are homeomorphic if such a function exists.

Definition (isometry) open_in_new

Let $(X,d)$ and $(Y,d')$ be metric spaces.

A function $f: (X,d) \to (Y,d')$ is said to be an isometry if it is bijective and $$ \begin{align*} d'(f(x), f(y)) = d(x,y) \qquad \text{for all }x,y\in X. \end{align*} $$ We say $(X,d)$ and $(Y,d')$ are isometric if such a function exists.

Isometries are homeomoprhisms. (Derivation)

Uniform continuity open_in_new

Definition (uniform continuity) open_in_new

Let $(X,d)$ and $(Y,d')$ be metric spaces.

We say a function $f:(X,d)\to (Y,d')$ is uniformly continuous if, equivalently,

  • for all $\epsilon>0$, there exists $\delta=\delta(\epsilon)>0$ such that for all $x,x_0\in X$, if $d(x,x_0) < \delta$, then $d'(f(x), f(x_0)) < \epsilon$;

  • for all $\epsilon>0$, there exists $\delta=\delta(\epsilon)>0$ such that for all $x,x_0\in X$, if $x\in B_\delta(x_0)$, then $f(x) \in B'_\epsilon(f(x_0))$.

Examples of uniform continuity

Lemma (composition preserves uniform continuity) open_in_new

Let $f: (X,d)\to (Y,d')$ and $g: (Y,d')\to (Z,d'')$ be functions between metric spaces.

If $f$ and $g$ are uniformly continuous, then $g\circ f$ is also uniformly continuous.

Proof

Definition (uniform equivalence) open_in_new

Let $X$ be a set, and $d$ and $d'$ be metrics on $X$.

We say $(X,d)$ and $(X,d')$ are uniformly equivalent if $\mathrm{id}: (X,d)\to(X,d')$ and $\mathrm{id}': (X,d') \to (X,d)$ are uniformly continuous.

Lipschitz continuity open_in_new

Definition (Lipschitz continuity) open_in_new

Let $(X,d)$ and $(Y,d')$ be metric spaces.

We say $f: (X,d)\to (Y,d')$ is Lipschitz continuous if there exists $L>0$ such that for all $x,y\in X$, $$ \begin{align*} d'(f(x), f(y))\leq Ld(x,y) \end{align*} $$ and we say that $f$ is $L$-Lipschitz.

Lemma (Lipschitz continuity implies uniform continuity) open_in_new

Let $f: (X,d)\to(Y,d')$ be a function between metric spaces.

If $f$ is Lipschitz continuous, then $f$ is uniform continuity.

Proof

Lemma (composition preserves Lipschitz continuity) open_in_new

Let $f: (X,d)\to (Y,d')$ and $g: (Y,d')\to (Z,d'')$ be functions between metric spaces.

If $f$ is $L_f$-Lipschitz and $g$ is $L_g$-Lipschitz, then $g\circ f$ is $(L_f\cdot L_g)$-Lipschitz.

Proof

Definition (Lipschitz equivalence) open_in_new

Let $X$ be a set, and $d$ and $d'$ be metrics on $X$.

We say $(X,d)$ and $(X,d')$ are Lipschitz equivalent if $\mathrm{id}: (X,d)\to(X,d')$ and $\mathrm{id}\inv: (X,d')\to(X,d)$ are Lipschitz continuous.

Or equivalently, if there exists $\alpha, \beta>0$ such that $$ \begin{align*} \alpha d(x,y) \leq d'(x,y) \leq \beta d(x,y)\qquad \text{for all } x,y\in X. \end{align*} $$

Example (l-p metrics are Lipschitz equivalent)

Lemma (continuity with respect to equivalent metrics) open_in_new

Suppose $(X,d)$, $(X,d')$ and $(Y,d'')$ are metric spaces, and $(X,d)$ and $(X,d')$ are (\*)-equivalent.

If $f: (X,d)\to (Y,d'')$ is (\*)-continuous, then $f: (X,d')\to(Y,d'')$ is also (\*)-continuous.

(\*) can be nothing, "uniformly", or "Lipschitz".

Proof

Completeness open_in_new

Definition (Cauchy sequence) open_in_new

Let $(X,d)$ be a metric space.

A sequence $\set{x_n}_{n=1}^\infty$ in $X$ is said to be a Cauchy sequence if for all $\epsilon>0$, there exists $N=N(\epsilon)\in\N$ such that $d(x_n, x_m) < \epsilon$ for all $n,m\geq N$.

Definition (completeness) open_in_new

A metric space $(X,d)$ is said to be complete if every Cauchy sequence on $(X,d)$ converges.

Lemma (closed set in complete metric space is complete) open_in_new

Let $(X,d)$ be a complete metric space, and a subset $Y\subseteq X$.

$Y$ is complete iff $Y$ is closed.

Proof

Definition (contraction) open_in_new

Let $(X,d)$ and $(Y,d')$ be metric spaces.

$f: X\to Y$ is said to be a contraction if it is $L$-Lipschitz where $L<1$.

Theorem (Banach fixed-point, contraction mapping) open_in_new

Let $(X,d)$ be a non-empty, complete metric space.

If $f: X\to X$ is a contraction, then it has a unique fixed point, i.e. a point $x\in X$ such that $f(x) = x$.

Proof

Theorem (Picard-Lindelöf) open_in_new

Let $x_0\in (a,b)$, $y_0 \in \R^n$ and $R>0$. Suppose $$ \begin{align*} f(x,y): [a,b] \times B_R[y_0] \to \R^n \end{align*} $$ be continuous in $x$ and $\tilde L$-Lipschitz in $y$.

Then there exists some $\epsilon>0$ such that the initial value problem $$ \begin{align*} y'(x) = f(x,y(x)), \qquad y(x_0) = y_0 \end{align*} $$ has a unique continuous solution $y: I\to B_R[y_0]$ on the interval $I=[x_0 - \epsilon, x_0 + \epsilon] \subseteq [a,b]$.

Proof

  • This can be strengthened to say if $f$ is smooth, then the solution $y(x)$ depends smoothly on $y_0$ and is smooth in $t$.

Compactness in metric spaces open_in_new

Definition (open cover) open_in_new

An open cover of a topological space $(X,d)$ is a family of open sets $\mathcal{U} = \set{U_i}_{i\in I}$ such that $$ \begin{align*} X = \bigcup_{i\in I} U_i. \end{align*} $$

Definition (subcover) open_in_new

Let $\mathcal{U}$ be an open cover of the topological space $(X,\tau)$.

A subset $\mathcal{V}\subseteq U$ is called a subcover if $\mathcal{V}$ is an open cover itself.

Definition (compact) open_in_new

A topological space $(X,\tau)$ is said to be compact if every open cover of $(X,\tau)$ has a finite subcover.

Lemma (closed set in compact space is compact) open_in_new

Let $(X,\tau)$ be a compact topological space.

If $Y\subseteq X$ is closed, then $Y$ is also compact.

Proof

  • The converse is true if $X$ is Hausdorff.

Definition (relatively compact, pre-compact) open_in_new

For a topological space $(X,\tau)$, we say $A\subseteq X$ is relatively compact or pre-compact if the closure $\bar A$ is compact.

Proposition (closed bounded intervals are compact) open_in_new

In $\R^n$ with the Euclidean metric, the subset $[a,b]^n$ is compact.

Proof

Definition (sequential compactness) open_in_new

We say a topological space $(X,\tau)$ is sequentially compact if every sequence in $X$ has a convergent subsequence.

Proposition (sequentially compact subset is closed) open_in_new

Let $(X,d)$ be a metric space and $Y\subseteq X$.

If $Y$ is sequentially compact, then $Y$ is closed.

Proof

Proposition (sequentially compact and compact) open_in_new

A metric space is sequentially compact iff it is compact.

Proof

  • For a general topological space, both implications are not true: counterexamples exist.

  • In second countable topological spaces, they are equivalent.

Definition (bounded, totally bounded) open_in_new

Let $(X,d)$ be a metric space. We say it is

  • bounded if there exists $r>0$ such that $d(x,y) < r$ for all $x,y\in X$; and

  • totally bounded if for every $\epsilon>0$, there exists a finite set $F\subseteq X$ such that $$ \begin{align*} X = \bigcup_{y\in F} B_\epsilon(y), \end{align*} $$ i.e. there is a finite covering of $X$ by open $\epsilon$-balls. We call $F$ an $\epsilon$-net of $X$.

Theorem (Heine-Borel, compact iff totally bounded and complete) open_in_new

A metric space is compact iff it is totally bounded and complete.

Proof

Continuity on compact sets open_in_new

Lemma (continuous image of compact set is compact) open_in_new

Let $(X,\tau)$ and $(Y,\rho)$ be topological spaces.

If $f: X\to Y$ is a continuous function and $(X,\tau)$ is compact, then $f(X) \subseteq Y$ is also compact.

Proof

Proposition (topological inverse function theorem) open_in_new

Let $(X,\tau)$ and $(Y,\rho)$ be topological spaces.

If $f: X\to Y$ is a continuous bijection, $(X,\tau)$ is compact, and $(Y,\rho)$ is Hausdorff, then $f\inv$ is also continuous, and hence $f$ is a homeomorphism.

Proof

  • This also applies to metric spaces, in which case the Hausdorff condition can be dropped.

Proposition (continuous function on compact set attains its bounds) open_in_new

Let $(X,\tau)$ be a topological space and $X\neq\emptyset$.

If $f: X\to\R$ is continuous and $(X,\tau)$ is compact, then $f$ is bounded and there exists $p,q\in X$ such that $$ \begin{align*} f(p) &= \sup_{x\in X} f(x) &\text{and}&& f(q) = \inf_{x\in X} f(x). \end{align*} $$

Proof

  • Consequently, $C(X; Y) = (\set{\text{continuous functions }X\to Y}, \text{sup metric}) =$ $C_b(X; Y)$ is well-defined for any metric space $Y$.

  • In particular if $Y$ is complete, then so is $C(X; Y)$.

Theorem (Heine-Cantor, continuous on compact set implies uniformly continuous) open_in_new

Let $(X,d)$ and $(Y,d')$ be metric spaces, and $f: X\to Y$.

If $(X,d)$ is compact and $f$ is continuous, then $f$ is uniformly continuous.

Proof