Lemma (C2 iff second order partials are continuous)

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.