Skip to content
Calculus II: Vector Calculus and Multivariable Analysis / Multivariate Optimisation

The Hessian Matrix and the Multivariable Second Derivative Test

The two-variable discriminant D=fxxfyy−fxy2D = f_{xx}f_{yy}-f_{xy}^2 is the determinant of a 2×22\times 2 matrix — the Hessian. In a portfolio of nn assets, the covariance matrix Σ\Sigma is itself the Hessian of the portfolio variance σp2=w⊤Σw\sigma^2_p = \mathbf{w}^\top\Sigma\mathbf{w}; the condition for a minimum-variance portfolio to exist globally is that Σ\Sigma is positive definite. This note extends the discriminant test to nn variables: the Hessian HH of ff at a critical point is positive definite for a local minimum, negative definite for a local maximum, and indefinite for a saddle point. The tests for definiteness — eigenvalue signs and Sylvester's criterion (leading minor signs) — are the operative tools in any dimension.
Learning objectives. By the end of this note you should be able to:
  • define the Hessian matrix HH of f ⁣:Rn→Rf\colon\mathbb{R}^n\to\mathbb{R} and compute it for n=2,3n=2,3;
  • state the multivariable second derivative test in terms of positive/negative definiteness of HH;
  • check positive definiteness via Sylvester's criterion (leading principal minors);
  • explain why the covariance matrix Σ\Sigma being positive definite guarantees a unique global minimum of portfolio variance;
  • connect the 2×22\times 2 discriminant D=fxxfyy−fxy2D = f_{xx}f_{yy}-f_{xy}^2 to det⁡H\det H.

In this lesson

    1. The Hessian Matrix
    1. Positive and Negative Definiteness
    1. Sylvester's Criterion (Leading Principal Minors)
    1. The Multivariable Second Derivative Test
    1. Portfolio Application — Covariance Matrix as Hessian

Before you start

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or explore the curriculum.