96. Quadratic Form

A quadratic form is a polynomial expression in variables where every term has total degree exactly :

It can always be written compactly using a symmetric matrix :

The matrix is assumed symmetric without loss of generality — if isn’t symmetric, replacing it with gives the same quadratic form.

Example

As a matrix product (split the symmetrically as ):

96.1. Definiteness

Quadratic forms are classified by the sign of over all non-zero :

Type Sign of All eigenvalues of
Positive definite
Positive semi-definite
Negative definite
Negative semi-definite
Indefinite takes both signs mixed

The eigenvalue characterization comes from the Spectral Theorem: diagonalizing and changing variables gives

— a sum of squares weighted by eigenvalues. The signs of the eigenvalues determine the signs of .

96.2. Tests for positive definiteness

For a symmetric , equivalent conditions:

  1. All eigenvalues
  2. All leading principal minors (Sylvester’s criterion)
  3. admits a Cholesky decomposition
  4. for all

96.3. Geometric pictures (2D)

For , the level sets are conic sections aligned with the eigenvectors of :

96.4. Where they show up

96.5. Diagonalization (principal axis theorem)

Every quadratic form can be brought to diagonal form by an orthogonal change of variables — equivalently, by rotating the coordinate axes to align with the eigenvectors of :

This is the “principal axes” of the conic / quadric.

96.6. See also