Before you start
Prerequisites: the real symmetric spectral theorem; change-of-basis conventions. This remains an optional application. You should be able to distinguish an orthogonal matrix from a general invertible one. Classifying a quadratic form uses congruence; classifying the representing endomorphism uses similarity, and the two problems preserve different data.
This unit is optional. Work over .
Definition 3.4.1
(Quadratic form)
A quadratic form on is with real symmetric. It is positive definite if for every nonzero , positive semidefinite if for all , and indefinite if it takes both positive and negative values.
Every real matrix gives the same form as its symmetric part . The symmetric representation is unique. Changing coordinates by gives ; this is congruence, not similarity in general. If is orthogonal, however, the two formulas coincide.
The preceding real spectral theorem gives an orthogonal with . Substitution gives , providing the diagonal representation used in the inertia proof below. Testing coordinate vectors gives necessity of the eigenvalue sign conditions; sums of squares give sufficiency.
Worked example 3.4.2
(A nonsymmetric matrix and the symmetric part that carries its form)
Take and for . Expanding,
Split with and :
The skew part contributes nothing to the form, because is a real number equal to its own transpose ; here concretely . So , and the cross term appears in as the two off-diagonal entries . To classify, complete the square: , which is positive unless and , so is positive definite with inertia . Consistently, has the two positive roots . The eigenvalues of itself, and , are not the relevant numbers; only the symmetric representative is classified.
The example matrix is the third case in the widget below, which displays the same split for a symmetric, a skew-symmetric and a general matrix.
Compare a matrix with its transpose
Pick a matrix and compare with and with . Then read its symmetric and skew-symmetric parts.
| 2 | −1 |
| −1 | 3 |
| 2 | −1 |
| −1 | 3 |
equals entry by entry.
| 2 | −1 |
| −1 | 3 |
| 0 | 0 |
| 0 | 0 |
- Symmetric. Every entry satisfies it.
- Skew-symmetric. Fails at (1, 1), (1, 2), (2, 1), (2, 2).
- and , and adding the two parts gives back every entry of .
Holds: is symmetric ()
. The off-diagonal entries match, so swapping rows and columns changes nothing.
NoticeEvery square matrix splits as with symmetric and skew-symmetric, even when itself is neither.
All spaces are finite-dimensional over the stated field. A bilinear form is linear in both arguments; it is not a Hermitian inner product over .
Rescaling the diagonal entries of a real symmetric form gives
The triple is its inertia and is independent of all basis choices.
Proof of uniqueness. In this representation, the positive coordinate subspace has dimension and the quadratic form is positive definite on it. No subspace of dimension greater than can carry a positive definite restriction: it must intersect the coordinate subspace where all positive coordinates vanish, whose dimension is , because their dimensions sum to more than . A nonzero vector in that intersection has quadratic value at most zero, a contradiction. Thus is intrinsically the largest possible dimension of a positive definite subspace. Similarly is the largest dimension for a negative definite restriction. Then , equivalently the radical dimension. ∎
Proof X-ray
Turning a basis-dependent count into an intrinsic one
The proof replaces a count that seems to depend on the chosen diagonal basis by a number defined without any basis: the largest dimension of a subspace on which is positive definite. The diagonal form exhibits one such subspace of dimension . The only non-obvious step is the upper bound, and it is pure dimension counting: two subspaces whose dimensions add up to more than share a nonzero vector, by the dimension formula for , and on the complementary coordinate subspace is never positive. The same argument applied to handles .
A form is positive definite exactly when , negative definite when , and indefinite when both . Positive semidefinite allows zeros but no negative squares. Nondegeneracy means , not positivity.
Concept lensGeometric
Inertia read from the shape of a level curve
In two variables, inertia is visible in the curve . After a rotation to principal axes, . Inertia makes the curve an ellipse with semi-axes and along the eigenvectors; inertia makes it a hyperbola whose asymptotes form the zero set ; inertia makes it a pair of parallel lines, the zero eigenvalue being the direction in which does not grow at all. A general invertible change of coordinates may stretch an ellipse into a circle or tilt a hyperbola, but it cannot turn one into the other, which is the geometric content of the uniqueness of inertia. The numerical axis lengths, by contrast, survive only rotations: they are eigenvalue data, not inertia data.
For a real symmetric matrix, orthogonal spectral diagonalization is a particular congruence since . It follows that inertia counts positive, negative and zero eigenvalues with multiplicity. General congruence preserves those counts, not the numerical eigenvalues themselves.
Worked example 3.4.3
(Rotate to principal axes)
For , . With and , spectral decomposition gives . Both eigenvalues are positive, so the form is positive definite and its inertia is , counting positive, negative and zero signs.
Worked example 3.4.4
(A form with no square terms)
Classify and find its principal axes. Each cross term contributes the entry in positions and , so
where is the all-ones matrix. Since for and whenever , the eigenvalues of are on and on the plane . An orthonormal eigenbasis is
and in the coordinates the form becomes . Its inertia is : the form is indefinite and nondegenerate. Direct values confirm the signs: , while . The absence of square terms in the original variables says nothing about definiteness; only the signs after diagonalization do.
A three-variable family: congruence, degeneracy and the zero set
The optional application below distinguishes classifying a form from diagonalizing an operator. For real parameter , take
The change is invertible: , , . Thus
Substitution proves the last identity by equality of the two quadratic expressions; multiplying the matrices supplies a second check. No square completion divided by , so the zero case remains included. If , the form is positive definite with inertia . If , its inertia is ; its zero set has and arbitrary , namely the line . If , it has inertia and is indefinite. The vector has value , while has value one. Its zero set is the cone in the transformed coordinates. Hence nondegenerate means here, not positive definite.
This is not orthogonal. In fact has trace , whereas the congruent diagonal matrix has trace ; they cannot be similar. Congruence preserves signs and the radical dimension, but does not preserve the eigenvalues as numbers. Orthogonal diagonalization would preserve those eigenvalues and Euclidean lengths. Also the radical is a subspace, whereas the zero set of an indefinite form need not be: vectors with positive and negative contributions can cancel without lying in the radical. A zero eigenvalue alone does not make the second-order test inconclusive: an indefinite Hessian still proves a saddle point. The inconclusive case is a positive- or negative-semidefinite Hessian that is not definite; its zero-eigenvalue directions require information beyond the quadratic term.
Choosing a method and avoiding mistakes
Use orthogonal diagonalization to find principal axes and eigenvalues. Completing squares may classify signs more quickly, but the resulting invertible change need not be orthogonal. A cross-term coefficient corresponds to off-diagonal entries , not . Positive determinant alone does not imply positive definiteness.
Exercises
-
Classify by its eigenvalue signs.
-
Classify and find its zero set.
-
Explain why a nonsingular coordinate change cannot turn into a positive-definite form.
-
Choose the classification method. Find an explicit invertible coordinate change and the inertia of . Find its radical and its entire zero set, and explain why they differ.
Quick checks
Quick check
(Write the symmetric matrix of and decide whether is positive definite.)
Solution · Answer
The cross term splits as in each off-diagonal position, so . Completing the square, , which vanishes only when and , that is, at the origin. So is positive definite with inertia ; consistently and , so both eigenvalues are positive.
Quick check
(Find the inertia of .)
Solution · Answer
Complete the square in : . With , , (an invertible change, since , , ) the form is . Its inertia is , so is positive definite.
Quick check
(For with matrix , find an orthogonal with and state the inertia.)
Solution · Answer
, so put and , which gives . Then , , so , which is orthogonal. Check: and . The inertia is ; here the diagonal entries are also the eigenvalues , because is orthogonal.
Full solutions
-
The symmetric matrix is , with eigenvalues and . Therefore the form is indefinite with inertia .
-
; it is positive semidefinite but not definite because it vanishes for nonzero . Its zero set is the line .
-
For any invertible , the vector is nonzero and the transformed form has value at . Thus it cannot be positive definite. Equivalently its inertia remains .
-
Complete squares: . Put , , , so , , , with invertible matrix . The diagonal form is , giving inertia . Its radical requires , hence is . Its zero set instead satisfies or , a union of two planes. For example is in the zero set but not the radical; nonzero terms cancel there. The radical is the intersection of the two planes.
Connection
For a function at a critical point, the Hessian is symmetric and its quadratic form is the second-order term. A positive-definite Hessian gives a strict local minimum, a negative-definite one a strict local maximum, and an indefinite one a saddle point. If it is positive- or negative-semidefinite but not definite, it has a zero eigenvalue and the Hessian alone is inconclusive; information beyond the quadratic term is needed.