IB Analysis and Topology

Analysis on metric spaces open_in_new

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

Analysis on topological spaces open_in_new

Definition (topology, topological space, open set) open_in_new

A topology $\tau$ on set $X$ is a set of subsets of $X$ satisfying

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

  2. for any family $\set{U_i}_{i\in I}$ with $U_i\in \tau$, the union $\bigcup_{i\in I} U_i \in τ$;

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

We call $(X,\tau)$ a topological space.

A subset $U\subseteq X$ is said to be open if $U\in \tau$.

Definition (coarser and finer topology) open_in_new

Let $X$ be any set, and $\tau_1$ and $\tau_2$ be topologies on $X$.

If $\tau_1\subseteq \tau_2$, then we say $\tau_1$ is coarser and $\tau_2$ is finer.

Definition (base for topology) open_in_new

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

We say $\mathcal{B} \subseteq \tau$ is a base for $\tau$ if for all open set $U\in \tau$, there exists a subfamily $\mathcal{C}\subseteq \mathcal{B}$ such that $$ \begin{align*} U = \bigcup_{B\in \mathcal{C}} B. \end{align*} $$

Lemma (defining properties of bases for topology) open_in_new

Let $X$ be a set and $\mathcal{B}\subseteq \mathcal{P}(X) = \set{\text{all subsets of }X}$.

There exists a topology which admits $\mathcal{B}$ as a base iff $\mathcal{B}$ satisfies:

  1. Covering property: $\mathcal{B}$ is an (open) cover of $X$, i.e. $X = \bigcup_{B\in \mathcal{B}} B$.

  2. Intersection property: for all $B_1, B_2 \in \mathcal{B}$ and $x\in B_1\cap B_2$, there exists some $B_3\in \mathcal{B}$ such that $x\in B_3$ and $B_3 \subseteq U_1\cap B_2$.

Proof

Definition (second countable topological space) open_in_new

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

$(X,\tau)$ is said to be second countable if it has a countable base.

Definition (Hausdorff topological space) open_in_new

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

$(X,\tau)$ is said to be Hausdorff if for all $x,y\in X$ and $x\neq y$, there exists $U, V\in \tau$ such that $x\in U$, $y\in V$ and $U\cap V=\emptyset$.

  • This means $\tau$ can separate different points in $X$. (Illustration)

Definition (metrizable topological space) open_in_new

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

$(X,\tau)$ is said to be metrizable if $\tau$ can be induced by some metric, i.e. if we can define a metric on $X$ such that the metric topology equals $\tau$.

Lemma (metrizable implies Hausdorff) open_in_new

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

If $X$ is metrizable, then $X$ is Hausdorff.

Proof

Examples of topological spaces

Closed sets in topological spaces open_in_new

We define closed sets, closure and neighbourhood in the same way as in metric spaces.

Definition (accumulation point, derived set) open_in_new

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

We say $x\in X$ is an accumulation point (or limit point) of $A$ if for all neighbourhood $N$ of $x$, $(A\setminus \set{x}) \cap N\neq \emptyset$, i.e. every neighbourhood of $x$ contains a point in $A$ other than $x$ itself.

We define the derived set of $A$ (denoted $A'$) as the set of all accumulation points of $A$.

Proposition (closed sets and derived sets) open_in_new

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

Proof

Convergent sequences in topological space 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

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)$.

Lemma (second countable space with unique limit is Hausdorff) open_in_new

If a topological space is second countable and every convergent sequence in it has a unique limit, then it is Hausdorff.

Proof

Continuity on topological 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$.

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 (continuous iff preimage of base elements is open) open_in_new

Let $(X,\tau)$ and $(Y,\rho)$ be topological spaces, and $\mathcal{B}$ be a base for $\rho$.

A function $f:X\to Y$ is continuous iff $f\inv(B)$ is open for all $B\in \mathcal{B}$.

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

Proposition (continuous and sequentially continuous) open_in_new

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

Proof

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 (topological invariant) open_in_new

A property of topological spaces is said to be topologically invariant if it is preserved by homeomorphisms.

Proposition (metrizability is topologically invariant) open_in_new

Inherited topologies open_in_new

Subspace topology open_in_new

Definition (subspace topology) open_in_new

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

The subspace topology on $Y$ is defined as $$ \begin{align*} \sb{U\cap Y}{U\in \tau}. \end{align*} $$

Proof that this is a topology

Lemma (continuity relative to subspace topology) open_in_new

Let $(X,\tau)$ and $(Y,\rho)$ be topological spaces, and $A\subseteq X$ with the subspace topology.

If $f:X\to Y$ is continuous, then so is $f|_A$.

Proof

Product topology open_in_new

Definition (product topology) open_in_new

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

The product topology is the topology on $X\times Y$ which admits $\mathcal{B} = \sb{U\times V}{U\in \tau, V\in \rho}$ as a base.

This can be extended to finite products.

Lemma (projection map is continuous) open_in_new

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

The projection maps $$ \begin{align*} \pi_X: X\times Y&\to X &\pi_Y: X\times Y&\to Y \\ (x,y) &\mapsto x & (x,y) &\mapsto y \end{align*} $$ are continuous relative to the product topology.

Proof

  • The definition of the product topology is the coarsest possible topology such that this lemma is true.

Proposition (continuity in product spaces) open_in_new

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

A function $f: Z\to X\times Y$ is continuous iff both $\pi_X$${}\circ f$ and $\pi_Y \circ f$ are continuous.

Proof

Quotient topology open_in_new

Definition (quotient space, quotient map, quotient topology) open_in_new

Let $(X,\tau)$ be a topological space, and $\sim$ be an equivalence relation on $X$. Define

  • the quotient space $Q=X/{\sim} = \sb{[x]}{x\in X}$, where $[x] = \sb{y\in X}{y\sim x}$, as the set of all equivalence classes;

  • the quotient map $q: X\to Q$ by $x\mapsto [x]$;

  • the quotient topology $$ \begin{align*} \tau_\sim = \sb{V\subseteq Q}{q\inv(V) \in \tau}. \end{align*} $$

Proof that the quotient topology is a topology

Proposition (continuity on quotient space) open_in_new

Let $(X,\tau)$ and $(Y,\rho)$ be topological spaces, $\sim$ be an equivalence relation on $X$, $Q = X/{\sim}$ be the quotient space and $q: X\to Q$ be the quotient map.

A function $f: Q\to Y$ is continuous iff $f\circ q$ is continuous.

Proof

Compactness in topological 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 (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 (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 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.

Lemma (compact subset in Hausdorff space is closed) open_in_new

Let $X$ be a topological space.

If $X$ is Hausdorff and a subset $Y\subseteq X$ is compact, then $Y$ is closed.

Proof

Theorem (Tychonoff, product of compact space is compact) open_in_new

A finite product of comapct space is 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)$.

Connectedness open_in_new

Definition (disconnected, connected, separation) open_in_new

A topological space $(X,τ)$ is said to be disconnected if there exists open, non-empty, disjoint sets $U,V$ such that $X = U\cup V$.

We say $U,V$ are a separation of $X$.

$(X,τ)$ is said to be connected if there does not exist a separation.

  • Equivalently, $(X,τ)$ is connected iff the only subsets of $X$ which are both open and closed are $X$ and $\emptyset$.

Lemma (separation in subspace topology) open_in_new

Let $(X,τ)$ be a topological space, and $Y,U,V\subseteq X$ be subsets.

$U,V$ are a separation of $Y$ with respect to the subspace topology iff $U,V$ are non-empty, $U\cap{}$$\overline{V}$ $= \emptyset = \overline{U} \cap V$, and $Y = U\cup V$.

Proof

Corollary (connected set in R) open_in_new

With the Euclidean metric, a subset $Y \subseteq \R$ is connected iff $Y$ is an interval, i.e. if $x,y\in Y$ and $x<z<y$, then $z\in Y$.

Proof

Lemma (connected subset of a disconnected space) open_in_new

Let $(X,τ)$ be a disconnected topological space and $X=U\cup V$ is a separation.

If $Y\subseteq X$ is connected, then $Y\subseteq U$ or $Y\subseteq V$.

Proof

Lemma (closure of connected set is connected) open_in_new

Let $(X,τ)$ be a topological space.

If $Y\subseteq X$ is connected, then $\overline{Y}$ is also connected.

Proof

Lemma (union of connected subspaces sharing a point is connected) open_in_new

Let $(X,τ)$ be a topological space, and $\set{A_α}$ be a collection of connected subspaces of $X$.

If $\bigcap_{α} A_α\neq \emptyset$ (i.e. there exists a point in common), then $\bigcup_{α} A_α$ is connected.

Proof

Definition (connected components) open_in_new

Let $(X,τ)$ be a topological space.

Define an equivalence relation on $X$ by $x\sim y$ if there exists $Y\subseteq X$ which is connected such that $x,y\in Y$. The equivalence classes are called connected components.

Lemma (properties of connected components) open_in_new

Let $(X,τ)$ be a topological space and $Y\subseteq X$ be a connected component.

  1. $Y$ is connected. (Proof)

  2. If $Z$ is a connected set where $Y\subseteq Z\subseteq X$, then $Z = Y$.

  3. $Y$ is closed. (Proof)

Proposition (continuous image of connected set is connected) open_in_new

Let $(X,τ)$ and $(Y,ρ)$ be topological spaces.

If $f:X\to Y$ is continuous and $X$ is connected, then $f(X)\subseteq Y$ is connected.

Proof

Proposition (locally constant function on connected domain is globally constant) open_in_new

Let $(X,τ)$ be a topological space, $Y$ be a set, and $f: X\to Y$ be a function.

If $X$ is connected and $f$ is locally constant (i.e. for all $x\in X$, there exists an open neighbourhood $U\subseteq X$ of $x$ such that $f(y) = f(x)$ for all $y\in U$), then $f$ is (globally) constant.

Proof

  • A consequence is that $X$ is connected iff all continuous functions $f: X\to\Z$ are constant.

Lemma (quotient of connected space is connected) open_in_new

Let $(X,τ)$ be a topological space and $\sim$ be an equivalence relation on $X$.

If $X$ is connected, then the quotient space $X/{\sim}$ is also connected with respect to the quotient topology.

Proof

Lemma (product of connected spaces is connected) open_in_new

Let $(X,τ)$ and $(Y,ρ)$ be topological spaces.

If $X$ and $Y$ are connected, then the product space $X\times Y$ is also connected with respect to the product topology.

Proof

Definition (path-connected) open_in_new

A topological space $(X,τ)$ is said to be path-connected if for all $x,y\in X$, there exists a path $γ$ connecting $x$ to $y$, i.e. a continuous function $γ: [0,1]\to X$ with $γ(0) = x$ and $γ(1) = y$.

Lemma (continuous image of path-connected set is path-connected) open_in_new

Let $(X,τ)$ and $(Y,ρ)$ be topological spaces.

If $f: X\to Y$ is continuous and $X$ is path-connected, then $f(X) \subseteq Y$ is path-connected.

Proof

Lemma (path-connected implies connected) open_in_new

If a topological space is path-connected, then it is connected.

Proof

Definition (path-connected component) open_in_new

Let $(X,τ)$ be a topological space.

Define an equivalence relation on $X$ by $x\sim y$ if there exists a path connecting $x$ to $y$. The equivalence classes are called the path-connected components.

Proposition (open set in Rn path-connected iff connected) open_in_new

Let $U\subseteq \R^n$ be an open set. Then $U$ is connected iff it is path-connected.

Proof

  • This is false for closed sets: the topologist's sine wave $$ \begin{align*} X = \Big\{\big(x, \sin \frac{1}{x}\big)\;\Big|\; x>0 \Big\} \cup \bigl(\set{0} \times [-1,1]\bigr) \subseteq \R^2. \end{align*} $$ is connected but not path-connected. (Proof)

Differentiation in Rn open_in_new

Definition (differentiation in Rn) open_in_new

Let $U\subseteq \R^n$ be an open set and $f: U\to \R^m$.

$f$ is said to be differentiable at $x_0\in U$ if there exists a linear map $A \in \mathcal{L}(\R^n, \R^m)$ and $ε: \R^n\to\R^m$ such that $$ \begin{align*} f(x_0 + h) = f(x_0) + A(h) + ε(h)\, \|h\| \end{align*} $$ for all $h\in B_{\mathrm{dist}(x_0,\partial U)}(x_0)$ and $ε(h) \to 0$ as $h\to 0$.

We write the derivative $Df|_{x_0} = Df(x_0) = A$.

For some open set $V\subseteq U$, if $Df(x_0)$ exists for all $x\in V$ and $Df: V\to \mathcal{L}(\R^n, \R^m) \isom \R^{m\times n}$ is continuous, we say $f\in C^1(V)$.

Definition (partial derivative) open_in_new

Let $f: U\to\R^m$ with $U\subseteq \R^n$ open.

$f$ is said to have $i$-th partial derivative at $x_0\in \R^n$ if $$ \begin{align*} \lim_{h\to 0} \frac{f(x_0 + he_i) - f(x_0)}{h} = a_i \end{align*} $$ exists ($e_i$ is the $i$-th standard basis vector).

We write $\partial_i f|_{x_0} = \partial_i f(x_0) = a_i \in \R^m$.

Lemma (differentiability implies continuity) open_in_new

Let $f: U\to \R^m$ with $U\subseteq \R^n$ open.

If $f$ is differentiable at $x_0$, then $f$ is continuous at $x_0$.

Proof

Lemma (partial derivatives exist if differentiable) open_in_new

Let $f: U\to\R^m$ with $U\subseteq \R^n$ open.

If $f$ is differentiable at $x_0\in \R^n$, then all partial derivatives of $f$ exist at $x_0$. Identifying $\mathcal{L}(\R^n,\R^m) \isom \R^{m\times n}$, $$ \begin{align*} Df(x_0) = \pmat{\partial_1 f(x_0) & \ldots & \partial_n f(x_0)} = \pmat{\partial_1 f^1(x_0) & \ldots & \partial_n f^1(x_0) \\ \vdots &\ddots & \vdots \\ \partial_1 f^m(x_0) & \ldots & \partial_n f^m(x_0)}. \end{align*} $$

Proof

Lemma (continuously differentiable iff partial derivatives are continuous) open_in_new

Let $f: U\to \R^m$ with $U\subseteq \R^n$ open.

$f\in{}$$C^1(U)$ iff all partial derivatives of $f$ exist and are continuous.

Proof

Proposition (chain rule) open_in_new

Let $f: U\to V$ and $g: V\to \R^d$ where $U\subseteq \R^n$ and $V\subseteq \R^m$ are open.

If $f$ is differentiable at $x_0\in U$ and $g$ is differentiable at $f(x_0)\in V$, then $g\circ f$ is differentiable at $x_0 \in U$ with $$ \begin{align*} D(g\circ f)(x_0) = Dg(f(x_0)) \circ Df(x_0). \end{align*} $$

Proposition (mean value inequality) open_in_new

Let $f: U\to\R^m$ with $U\subseteq \R^n$ open. Let $a,b\in U$ be such that the line segment $γ = \sb{(1-t)a + tb}{t\in [0,1]} \subseteq U$.

If $f$ is differentiable in $U$, then $$ \begin{align*} \|f(b) - f(a)\| \leq \sup_γ \|Df\| \,\|b-a\|. \end{align*} $$

Proof

  • An immediate consequence is that $Df = 0$ on $U$ implies $f$ is constant.

Theorem (inverse function theorem) open_in_new

Let $f: U\to\R^n$ with $U\subseteq \R^n$ open, and $x_0\in U$.

If $f\in{}$$C^1(U)$ and $Df|_{x_0}$ is invertible, then there exists open neighbourhoods $V$ of $x_0$ and $W$ of $f(x_0)$ such that $f|_V: V\to W$ is a homeomorphism.

Moreover, $f\inv\in C^1(V)$ with derivative $$ \begin{align*} D(f\inv)(y) = \bigl(Df(f\inv(y))\bigr)\inv. \end{align*} $$

Proof

  • This can be extended to say if $f$ is smooth, then so is $f\inv$.

Theorem (implicit function theorem) open_in_new

Let $f: U\to\R^m$ with $U\subseteq \R^{n+m}$ open, and $(x_0, y_0)\in U$.

If $f\in{}$$C^1(U)$, $f(x_0, y_0) = 0$ and $D_y f(x_0, y_0) \in \mathcal{L}(\R^m, \R^m)$ is invertible, then there exists an open neighbourhood $V$ of $x_0$ and a unique $g: V\to\R^m$ such that

  • $g(x_0) = y_0$; and

  • $f(x, g(x)) = 0$; and

  • there exists a neighbourhood $W\subseteq \R^n$ of $y_0$ such that if $(x,y)\in V\times W$, then $f(x,y)=0 \iff y=g(x)$.

Moreover, $g\in C^1(V)$ with derivative $$ \begin{align*} Dg(x) = -\bigl(D_y f(x,g(x))\bigr)\inv \bigl(D_x f(x,g(x))\bigr). \end{align*} $$

Proof

Higher derivatives in Rn open_in_new

Definition (second derivative) open_in_new

Let $f: U\to\R^m$ be a differentiable function on $U\subseteq \R^n$ open.

$f$ is said to be twice differentiable at $x_0\in U$ if $Df|_x: U\to \mathcal{L}(\R^n, \R^m) \isom \R^{m\times n}$ is differentiable at $x_0$.

Then $D^2 f(x_0) \in \mathcal{L}(\R^n, \mathcal{L}(\R^n, \R^m)) \isom$ $\mathrm{Bil}$$(\R^{n}\times \R^n, \R^m)$. This can be identified as a vector $(D^2 f^1(x_0), \ldots, D^2 f^m(x_0))$ of matrices $D^2 f^k(x_0) \in \mathrm{Bil}(\R^n\times \R^n, \R) \isom \R^{n\times n}$, which are called the Hessian of $f$ at $x_0$.

If $D^2 f(x)$ exists and is continuous at all $x\in V\subseteq U$, then we say $f\in C^2(V)$.

Definition (second partial) open_in_new

Let $f: U\to\R^m$ with $U\subseteq \R^n$ have $j$-th partial derivative functions $\partial_j f:U \to \R^m$.

We say $f$ has $(i,j)$-th partial at $x_0$ if $\partial_{ij}^2 f(x_0) = \partial_i (\partial_j f)(x_0)$ exists.

Proposition (Taylor's theorem for second derivative) open_in_new

Let $f: U\to\R^m$ with $U\subseteq \R^n$.

If $f$ is twice differentiable at $x_0$, then $$ \begin{align*} f(x_0 + h) = f(x_0) + Df(x_0)(h) + \frac{1}{2} D^2f(x_0)(h,h) + ε_2(h)\, \|h\|^2 \end{align*} $$ for all $h\in B_{\mathrm{dist}(x_0, \partial U)}(x_0)$, where $ε_2(h) \to 0$ as $h\to 0$.

Proof

Lemma (second order partials exist if twice differentiable) open_in_new

Let $f: U\to\R^m$ with $U\subseteq \R^n$.

If $f$ is twice differentiable at $x_0$, then all its second order partials exist at $x_0$.

Identifying $\mathcal{L}(\R^n, \mathcal{L}(\R^n, \R^m))\isom \mathrm{Bil}(\R^n\times \R^n, \R^m) \isom (\R^{n\times n})^m$, the Hessians are $$ \begin{align*} D^2 f^k(x_0) = \left.\pmat{\partial^2_{11} f^k & \ldots & \partial^2_{1n}f^k \\ \vdots & \ddots & \vdots \\ \partial^2_{n_1}f^k & \ldots& \partial^2_{nn}f^k}\right|_{x_0}. \end{align*} $$

Proof: see the first derivative case.

Lemma (C2 iff second order partials are continuous) open_in_new

Let $f: U\to\R^m$ with $U\subseteq \R^n$.

$f\in C^2(U)$ iff all first and second order partials of $f$ exist and are continuous in $U$.

Proof: see the first derivative case.

Proposition (mixed partials commute) open_in_new

Let $f: U\to\R^m$ with $U\subseteq \R^n$ and $x_0\in U$.

If $\partial_i f, \partial_j f,$ $\partial_{ij}^2$$f$ exist on $U$ and $\partial_{ij}^2 f$ is continuous at $x_0$, then $\partial_{ji}^2 f(x_0)$ exists and $\partial_{ji}^2 f(x_0) = \partial_{ij}^2 f(x_0)$.

Proof

Proposition (Hessian and local extrema) open_in_new

Let $f: U\to\R$ with $U\subseteq \R^n$ be a $C^2(U)$ function. Suppose $Df(x_0) = 0$ at some $x_0\in U$. Then

  • if $D^2 f(x_0)$ is positive definite, then $f(x_0)$ is a local minimum, i.e. $f(x_0+h) \geq f(x_0)$ for all sufficiently small $h$;

  • if $D^2 f(x_0)$ is negative definite, then $f(x_0)$ is a local maximum, i.e. $f(x_0+h) \leq f(x_0)$ for all sufficiently small $h$.

Proof

Series in functions open_in_new

Theorem (differentiation under uniform convergence) open_in_new

Let $f_n: (a,b)^d \to \R$ be a sequence of functions. If

then there exists $f: (a,b)^d \to \R$ such that $f_n \tto f$ and $Df_n \tto Df$.

Proof

Definition (convergence of series) open_in_new

Let $f_n: U\to\R^m$.

We say the series $\sum_{i=1}^{\infty} f_n$ converges pointwise (resp. uniformly) if $g_N = \sum_{n=1}^{N} f_n$ converges pointwise (resp. uniformly).

Add the word absolutely if convergence holds for $\sum_{n=1}^{N} \|f_n\|$.

Lemma (absolute convergence implies convergence) open_in_new

Let $f_n: U\to\R^m$.

If a series $\sum_{i=1}^{\infty} f_n$ converges pointwise (resp. uniformly) absolutely, then it converges pointwise (resp. uniform).

Proof

Lemma (n-th term test for uniform convergence) open_in_new

Let $f_n: U\to\R^m$.

If $\sum_{n=1}^{\infty} f_n$ converges uniformly, then $f_n \tto 0$ (i.e. $\sup_U \|f_n\| \to 0$).

Proof

Lemma (Weierstrass M-test) open_in_new

Let $f_n: U\to\R^m$.

If there exists $M_n$ such that

  • $\sup_U \|f_n\|\leq M_n$; and

  • $\sum_{n=1}^{\infty} M_n$ converges,

then $\sum_{n=1}^{\infty} f_n$ converges absolutely uniformly.

Proof

Lemma (alternating series test for uniform convergence) open_in_new

Let $f_n: U\to\R$ be (non-negative) functions that are

  • decreasing: $f_{n+1} \leq f_n$ on $U$; and

  • $f_n\tto 0$ (i.e. $\sup_{U} \|f_n\| \to 0$) as $n\to \infty$,

then $\sum_{n=1}^{\infty} (-1)^n f_n$ converges uniformly.

Proof

By considering the partial sums $g_n = \sum_{i=1}^{n} f_i$, we can see that under uniform convergence, series preserve continuity, Riemann integrability, and differentiation.

Theorem (uniform convergence in radius of convergence) open_in_new

Let $\sum_{n=1}^{\infty} c_n(x-a)^n$ be a power series with a radius of convergence of $R>0$.

For any $r\in (0,R)$, the series converges absolutely uniformly on $B_r[a]$.

Proof

  • Applying the property of uniform convergence, the power series is, inside the radius of convergence,

    • continuous;

    • Riemann integrable: $\int \sum_{n=1}^{\infty} c_n(x-a)^n \d x = \sum_{n=1}^{\infty} \frac{a_n}{n+1}(x-a)^{n+1} + \text{const.}$; and

    • differentiable: $\dd{x} \sum_{n=1}^{\infty} c_n(x-a)^n = \sum_{n=1}^{\infty} nc_n (x-a)^{n-1}$.