Quadratic Forms and Definiteness
A homogeneous degree-two expression written as
Definition
A quadratic form on
so the diagonal entries carry the squared terms and each cross term
Why symmetric. Any square
Spectral theorem. A real symmetric matrix has an orthonormal basis of eigenvectors and real eigenvalues, so
In these principal axes the cross terms vanish and the form is a weighted sum of squares. Since
Definiteness. Classify by the signs of the eigenvalues:
| All eigenvalues | Form is | |
|---|---|---|
| positive definite | ||
| positive semidefinite | ||
| negative definite | ||
| negative semidefinite | ||
| mixed signs | indefinite | both signs occur |
The classification is immediate once the eigenvalues are known, because
For
Completing the square. An alternative route to the same verdict, expressing
Assumptions and scope
The matrix must be symmetric for the eigenvalue classification to apply. A non-symmetric matrix defines the same form as its symmetric part, and the eigenvalues of the non-symmetric version say nothing about definiteness.
Definiteness is a property of the form, not of a coordinate system. An orthogonal change of variables leaves the eigenvalues unchanged, which is why the classification is well defined.
A zero eigenvalue makes the form semidefinite rather than definite: it vanishes on a nonzero vector, so the strict inequality fails while the weak one holds.
Completing the square gives the correct signature but not the principal axes, since its change of variables is not orthogonal. Sylvester's law guarantees the counts of positive, negative and zero coefficients agree with the eigenvalue signs whichever route is taken.
The
determinant shortcuts do not extend directly to larger matrices. For the analogous test is that all leading principal minors are positive, which is Sylvester's criterion.Real symmetry is what the spectral theorem needs. A complex matrix requires Hermitian symmetry,
, for the same conclusions.
Forms this is expressed in
The same content in several forms. Each makes something visible that the others leave implicit, so moving between them is part of understanding the topic rather than a presentation choice.
geometric
A quadratic form drawn as its level sets
Positive definite. The form is positive for every nonzero
Indefinite. The form takes both signs, so the level sets are hyperbolas opening along the directions where it is positive, with the zero set a pair of crossing lines.
Semidefinite. One eigenvalue vanishes, so the form is flat along that eigenvector and the level sets degenerate into parallel lines.
The principal axes are the eigenvectors, which is the geometric content of the spectral theorem: a rotation removes the cross term, and the eigenvalues are the stretch along each axis. The axis lengths go as
Translates into: geometric
Worked material
Example
One of each class
Positive definite, despite a negative cross term.
The sign of the cross term was irrelevant. Checking a few values:
Its principal axes are
Indefinite.
Negative definite.
Positive semidefinite in three variables.
which is block diagonal: the
The zero eigenvalue's eigenvector is
Cross terms decide as much as squared ones; a positive determinant does not mean positive definite; and the gap between definite and semidefinite is a single nonzero vector on which the form vanishes. None of this is visible without the eigenvalues.
Non-example
Five ways a classification goes wrong
Reading definiteness off the squared coefficients. "
The converse error is just as common:
Forgetting to halve the cross coefficient. Writing
Using a non-symmetric matrix's eigenvalues.
Calling a semidefinite form definite.
Taking completing-the-square coefficients as eigenvalues. From
The first three mistake a representation for the object, coefficients, an unhalved matrix, an asymmetric one. The last two mistake a weaker conclusion for a stronger one. All five are caught by the same habit: build the symmetric matrix, take its eigenvalues, and test the verdict on a concrete vector.
Common errors
Common misconception
A quadratic form is positive definite when the coefficients of its squared terms are positive, since those are the diagonal entries of its matrix and the cross terms only shift the value slightly.
Related units
Requires
Connected
- The Singular Value Decomposition (related)