Higher derivatives in Rn
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$.