Definition (second derivative)
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)$.