The form on is positive along the first axis and negative along the second, so its graph is a saddle. Rescaling, shearing or rotating the coordinates can change its coefficients, and it is fair to ask whether some clever choice could make every value positive. This lesson shows that no invertible change of coordinates can do it. Every real symmetric or complex Hermitian form can be brought to a diagonal form with entries , and , and the number of entries of each kind is the same for every such change.
Key terms
Conjugate congruence
Definition Let be Hermitian, so . Its quadratic form is the function on . It takes only real values, because the scalar equals its own conjugate . Under an invertible change of coordinates with ,
so in the new coordinates the same form has the matrix . Two matrices and are conjugate congruent when for some invertible . This is an equivalence relation, it sends Hermitian matrices to Hermitian matrices, and it preserves rank, because multiplying by invertible matrices does not change rank. Over , with real symmetric and real invertible, and the relation is ordinary congruence. Congruence is not similarity. Similarity describes one operator in a new basis and keeps the eigenvalues, while congruence describes one form in new coordinates and in general changes them. The two formulas agree for every exactly when , that is, when is unitary or real orthogonal.
In plain words A quadratic form takes one vector and returns a number. The vector enters twice, so a change of coordinates acts on both sides of the matrix, with on the left and on the right. In the complex case the left factor must carry the conjugate.
Example Take
Its form is , and expanding shows that this equals . The new coordinates and mean with
The transpose without the conjugate gives with upper right entry and lower left entry . That matrix is not Hermitian and does not describe this form.
Diagonalization by congruence
Definition Let be or , and let be real symmetric when or Hermitian when . Then there are an invertible and whole numbers with such that
To build , use the spectral theorem to write , with unitary (real orthogonal when ) and real diagonal, ordering the orthonormal eigenvectors so that the positive eigenvalues come first, then the negative ones, then the zeros. Let be the real diagonal matrix with when and when . Then is invertible and , whose diagonal entries are when and when . In this construction and are the numbers of positive and negative eigenvalues counted with multiplicity, and . The matrix is far from unique. Completing squares, for instance, gives other choices.
In plain words First pass to an orthonormal eigenbasis, where the form has no cross terms. Then stretch each axis so that every nonzero coefficient becomes or . After that only the signs are left.
Example For
the eigenvalues are and , with unit eigenvectors and . Let have these columns, in this order, and let . Then
so , and .
Inertia
Definition Let be real symmetric or complex Hermitian, and let for an invertible . The inertia of , and of its quadratic form, is the triple of the numbers of positive, negative and zero diagonal entries. Sylvester’s law of inertia, below, shows that this triple does not depend on which is used. Consequently and are the numbers of positive and negative eigenvalues of counted with multiplicity, and
In plain words Once the form is diagonal, the inertia counts how many coordinate axes make it go up, how many make it go down, and how many it ignores completely.
Example On the form equals . Put , and . This change is invertible, since , and , and in the new coordinates the form is with no term. The inertia is . The matrix
has rank and kernel spanned by , the direction in which changes while and stay . Its eigenvalues , and show the same signs.
Maximal positive subspace
Definition Let be real symmetric or complex Hermitian. A subspace of is positive for if for every nonzero , and negative if for every nonzero . A positive subspace of the largest possible dimension is a maximal positive subspace. If has inertia , this largest dimension is exactly . To see it, take with and columns . For ,
So the span of is positive and has dimension . The span of has dimension , and on it. If a positive subspace had , the dimension formula together with would give
A nonzero vector of would have a value both positive and at most , which is impossible. The same argument applied to shows that is the largest dimension of a negative subspace. A positive subspace that is not contained in any larger positive subspace also turns out to have dimension , so the word maximal can be read either way. When , maximal positive subspaces are not unique, only their dimension is. When the only one is , and when it is .
In plain words The number can be read without any coordinates. It is the largest number of independent directions you can choose so that every nonzero combination of them gives a positive value.
Example The form on has inertia . The plane is positive. So is the tilted plane , spanned by and , because on it the form equals , which vanishes only when . Both are maximal positive subspaces. The plane is not positive, since it contains with value , and no subspace of dimension is positive, since itself contains that vector.
Sylvester’s law of inertia
Definition Let be or , and let both be real symmetric or both be complex Hermitian. Then for some invertible if and only if and have the same inertia. In particular, whenever an invertible makes diagonal, with any real diagonal entries, the numbers of positive, negative and zero entries are , and . If , then , so carries each subspace that is positive for onto a subspace of the same dimension that is positive for , and does the reverse. The largest such dimension is therefore the same for both matrices, the same holds for with negative subspaces, and agrees as well. Conversely, if both have inertia , choose invertible and with , where . Then
So the inertia classifies these forms completely under congruence.
In plain words Coordinate changes that remove the cross terms can make the nonzero coefficients as large or as small as you like, but every one of them leaves the same numbers of positive, negative and zero coefficients. Those three counts are the whole story, so two forms with the same counts are one form seen in two coordinate systems.
Example For the matrix with rows and , completing the square gives
which is the congruence by
The orthonormal eigenvectors give , and the scaled construction gives . The three diagonal forms have different entries, and each has exactly one positive and one negative entry, as the law requires. The inertia is .
Indefinite form
Definition Let be real symmetric or complex Hermitian with inertia . Its form is positive definite if for every , which happens exactly when , and positive semidefinite if for every , which happens exactly when . Negative definite and negative semidefinite forms have the inequalities reversed and correspond to and . The form is indefinite if it takes both a positive and a negative value, which happens exactly when and . A nonzero vector with need not lie in . Every indefinite form has such vectors, for instance in the notation above, even when is invertible.
In plain words An indefinite form is a saddle. Some directions go up, some go down, and in between lie nonzero directions where the value is exactly zero, even though the matrix need not send them to zero.
Example The form of is indefinite, with value at and at . At its value is , yet and . The substitution , uses and gives . The eigenvalues changed from and to and , but one negative direction remains, and by Sylvester’s law no invertible substitution can remove it. The saddle never becomes a bowl.
Check yourself
- Find the inertia of the real form and decide whether it is indefinite.
Show the answer
Completing the square gives
With and , an invertible change, the form is . The inertia is , so the form is indefinite. For instance its value is at and at . As a check, the matrix with rows and has determinant , the product of one positive and one negative eigenvalue.
- Over , are and congruent? Are they similar? Is the identity congruent to ?
Show the answer
Both and have inertia , so Sylvester’s law says they are congruent. Explicitly, gives . They are not similar, because similar matrices have the same eigenvalues, and differ from .
The identity has inertia , so it is not congruent to . Directly, every matrix congruent to is for an invertible , and its form is positive for every , so it has no negative direction.
- Consider the real form . Find its inertia and a positive subspace of the largest possible dimension. Then find a nonzero vector at which the form is , and decide whether that vector lies in the kernel of the matrix.
Show the answer
Completing squares twice,
The substitution , , is triangular with ones on the diagonal, hence invertible, and gives . The inertia is .
On the plane the form is , which is positive unless . So this plane is a positive subspace of dimension , the largest possible.
Choosing makes . Going back, , and , and indeed the form at is . The matrix is
and , so the vector is not in the kernel. In fact and , so the kernel is . For an indefinite form, a zero value does not by itself put a vector in the kernel.