Differentiation in Rn
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)$.
-
The derivative is unique. (Derivation)
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$.
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$.
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*} $$
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*} $$
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*} $$
-
An immediate consequence is that $Df = 0$ on $U$ implies $f$ is constant.
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*} $$
-
This can be extended to say if $f$ is smooth, then so is $f\inv$.
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*} $$
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)$.
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.
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$.
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.
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.
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)$.
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$.
Let $f_n: (a,b)^d \to \R$ be a sequence of functions. If
-
$f_n$ are $C^1$;
-
$Df_n$ converges uniformly; and
-
there exists $x_0 \in (a,b)^d$ such that $(f_n(x_0))_n$ converges,
then there exists $f: (a,b)^d \to \R$ such that $f_n \tto f$ and $Df_n \tto Df$.
-
Since uniform convergence preserves continuity, $f$ is also $C^1$.
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\|$.
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$).
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.
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.
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.
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]$.
-
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}$.
-