Theorem (First-Order Optimality Condition)
If is a Local Minima, then .
Proof:
If by contradiction that , then , such that . Thus cannot be a local minima, a contradiction.
Theorem (Second-Order Optimality Condition)
If is a Local Minima, then . In particular, this means is positive semidefinite.
Theorem (Second-Order Optimality Sufficiency)
The prior theorem only showed necessity. We can show the reverse direction (sufficient).
If and (or that the Hessian is positive definite) then is a local minimum. In particular, note that it is not a necessary and sufficient condition because can be semidefinite.