On an open convex set, a twice-differentiable real-valued function is convex if and only if its Hessian matrix is a positive semidefinite matrix at every point. In particular continuous second partial derivatives suffice for the differentiability hypothesis. Restrict to any line segment: has . The second-derivative criterion for convexity proves both implications, because convexity is equivalent to convexity of all such restrictions.
The Hessian criterion for convexity, in the usual twice-differentiable multivariate setting, is
Thus the Hessian matrix must be a positive semidefinite matrix everywhere. The criterion follows by applying the second-derivative criterion for convexity to each line restriction , whose second derivative is . Continuous second partials are a sufficient regularity hypothesis for this line-restriction argument.
For the equality-constrained minimization problem, and . Put . The restricted objective is
The only zero has , so . Since , the second-derivative criterion for convexity proves a unique minimizing . Consequently the equality constraint has minimizers and , with minimum .
For the inequality-constrained minimization problem, the identity supplies the universal lower bound . Both equality points for that bound, and , satisfy . Hence the inequality constraint has exactly these two minimizers, with minimum .