Proof (Hessian and local extrema)
Suppose $D^2f(x_0)$ is positive definite, otherwise consider $-f$.
Since partials commute, $D^2f(x_0)$ is real symmetric. Then there exists an orthonormal basis in which $D^2 f(x_0)$ has a diagonal matrix consisting of positive eigenvalues. Hence $D^2f(x_0)(h,h) \geq c\|h\|^2$ where $c>0$ is the smallest eigenvalue.
Taylor's theorem gives $$ \begin{align*} f(x_0 + h) ={}& f(x_0) + Df(x_0)(h) + \frac{1}{2} D^2f(x_0)(h,h) + ε(h) \,\|h\|^2 \\ ={}&f(x_0) + \frac{1}{2} D^2f(x_0)(h,h) + ε(h) \,\|h\|^2 \\ ={}& f(x_0) + \Bigl(\frac{1}{2}c +ε(h)\Bigr) \|h\|^2 \end{align*} $$ where $ε(h) \to 0$ as $h\to 0$.
For sufficiently small $h$, $ε_2(h) \leq c/4$, so $$ \begin{align*} f(x_0+h) - f(x_0) \geq \frac{1}{4} c\|h\|^2 > 0 \end{align*} $$ and thus $f(x_0+h) \geq f(x_0)$.