Analysis on metric spaces
Let $X$ be any set. A metric is a function $d: X\times X\to\R$ such that
-
(positive semidefinite) $d(x,y)\geq 0$ for all $x,y\in X$, and $d(x,y)=0$ iff $x=y$;
-
(symmetry) $d(x,y) = d(y,x)$ for all $x,y\in X$;
-
(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.
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)$.
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)}$.
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$.
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$.
Let $(X,d)$ be a metric space, $r>0$ and $x\in X$. Then an open ball $B_r(x)$ is open in $X$.
Let $X$ be a set. The topology $\tau$ on $X$ is the collection of subsets of $X$ which are open.
Let $(X,d)$ be a metric space and $\tau$ be its topology. Then
-
$\emptyset, X \in \tau$.
-
For any family $\set{U_i}_{i\in I}$ where $U_i\in \tau$, the union $\bigcup_{i\in I} U_i \in \tau$.
-
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$.
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*} $$
A set $A\subseteq X$ is closed if $X\setminus A$ is open.
Let $(X,d)$ be a metric space. Then
-
$\emptyset$ and $X$ are closed.
-
For any family $\set{U_i}_{i\in I}$ where $U_i$ is closed, the intersection $\bigcap_{i\in I} U_i$ is closed.
-
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.
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}$.
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.
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)$.
-
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.
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*} $$
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*} $$
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.
-
This applies to $Z=\R$ since $(\R, |\cdot|)$ is complete.
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$.
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)$.
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*} $$
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$.
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}$.
-
By definition, $A$ is sequentially closed iff $A = \scl(A)$.
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)$.
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.
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)$.
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$.
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)$.
Let $(X,\tau)$ and $(Y,\rho)$ be topological spaces, and $f: X\to Y$.
-
For $(X,d)$ and $(Y,\rho)$ metric spaces, $f$ is continuous at $x\in X$ iff $f$ is sequentially continuous at $x$.
-
TODO
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.
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.
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))$.
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.
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.
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.
Let $f: (X,d)\to(Y,d')$ be a function between metric spaces.
If $f$ is Lipschitz continuous, then $f$ is uniform continuity.
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*} $$
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$.
A metric space $(X,d)$ is said to be complete if every Cauchy sequence on $(X,d)$ converges.
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$.
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$.
-
$X$ has to be complete: $f: \R\setminus \set{0}\to \R\setminus \set{0}$ given by $f(x) = x/2$ has no fixed point.
-
$L$ cannot be $\geq 1$: $f: \R\to\R$ given by $f(x) = x$ has infinitely many fixed points, and $f(x) = x+1$ has no fixed points.
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]$.
-
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$.
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*} $$
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.
A topological space $(X,\tau)$ is said to be compact if every open cover of $(X,\tau)$ has a finite subcover.
For a topological space $(X,\tau)$, we say $A\subseteq X$ is relatively compact or pre-compact if the closure $\bar A$ is compact.
We say a topological space $(X,\tau)$ is sequentially compact if every sequence in $X$ has a convergent subsequence.
Let $(X,d)$ be a metric space and $Y\subseteq X$.
If $Y$ is sequentially compact, then $Y$ is closed.
A metric space is sequentially compact iff it is compact.
-
For a general topological space, both implications are not true: counterexamples exist.
-
In second countable topological spaces, they are equivalent.
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$.
A metric space is compact iff it is totally bounded and complete.
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.
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.
-
This also applies to metric spaces, in which case the Hausdorff condition can be dropped.
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*} $$
-
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$.
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.