Proposition (Hessian and local extrema)
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$.