14.2 Congruence
The matrix of a form in Definition 14.1.2 depends on
a basis, and a basis is a choice. As with linear maps in
Chapter 4, the useful question is therefore not “what is
the matrix?” but “which matrices arise from the same
form?”. The answer here is
Throughout,
14.2.1. The change-of-basis rule for a form
Two bases
Let
Idea. There is nothing to discover:
write the form in
Proof. Write
Notice that
On
Solution. The columns of
The new basis was not guessed. In coordinates the
form reads
14.2.2. Congruent matrices
Every invertible
Two matrices are congruent when they record the same form in two bases.
Let
In words: congruence allows one matrix to be
sandwiched by an invertible matrix and its transpose.
The word invertible is essential;
without it,
Three immediate readings. First, by Theorem 14.2.1,
- (a)
over any field. - (b)
over . - (c)
for every . - (d)
over any field.
Solution.
(a) Take
, which is invertible with determinant . Then .(b) Take
, invertible over . Then . Scaling a basis vector by scales the corresponding diagonal entry by , which is the single most useful congruence to have in mind.(c) Take
.(d) Suppose
for some . Then, by Theorem 0.9.5, , so the matrix would be symmetric; it is not. This is the non-example by minimal change: one entry of in (a) is altered, and congruence to is lost — not for a subtle reason, but because the altered matrix is not the matrix of a symmetric form in any basis. The general statement is Proposition 14.2.4 below.
Before using the word “congruent” in both directions, we owe the usual check.
Congruence is an equivalence relation on
Proof. Reflexive:
Symmetric: suppose
Transitive: if
So the matrices in
14.2.3. What congruence preserves
Three invariants come out of the definition with almost no work. The first is the rank, which we already know is the co-dimension of the radical (Proposition 14.1.2).
Let
Proof. Write
The second invariant is the symmetry type. Here “alternating” is used in the matrix sense that Definition 7.2.2 suggests: a zero diagonal on top of skew-symmetry. The next section separates the three conditions carefully; for now we only need that congruence respects each of them.
Let
- (a) If
, then . - (b) If
, then . - (c) If
and every diagonal entry of is , the same holds for .
Each implication is an equivalence, since congruence is symmetric (Proposition 14.2.2).
Proof. By Theorem 0.9.5,
(a) If
, this is .(b) If
, it is .(c) Assume the hypothesis of (c). Then
is skew-symmetric by (b), so only the diagonal is left to check. For any , grouping the terms of the double sum in pairs, since by skew-symmetry and by hypothesis. Writing for the columns of , the -th diagonal entry of is , which is by the display. This proves the proposition.
The third invariant is the determinant, but only in a weakened sense: congruence multiplies it by a square.
Let
Proof. By Theorem 7.5.4 and Theorem 7.4.5,
The determinant itself is therefore
not a congruence invariant — Example (Congruences and a non-congruence)
(b) moved it from
Let
This is well defined by Theorem 14.2.5 and Theorem 14.2.1: another
basis changes the determinant by the square
Quick check. Over
Solution. No. Both determinants
equal
14.2.4. What congruence destroys
Now the negative result of the section, and the reason the previous three chapters could not have been this one.
- (a)
by Example (Congruences and a non-congruence) (a). Compare their eigenvalues. - (b)
by Example (Killing the cross term). Compare their eigenvalues.
Solution.
(a)
has the single eigenvalue , twice. The characteristic polynomial of is , whose roots are , that is, approximately and . The two matrices share no eigenvalue. They do share a rank, ; a symmetry type, symmetric; and a discriminant, since for both.(b) The characteristic polynomial of
is , so its eigenvalues are and . Those of are and . Again no eigenvalue in common — but this time one positive and one negative on each side, and the determinants are both times. The signs survived; the numbers did not. That is the pattern the law of inertia will explain.
Chapter 13 introduced this operation twice and both
times deferred it to here. Section 1 of that chapter
wrote that “the operation
Both debts are now paid, and it is worth saying the
answer in one place. What congruence
preserves: the rank (Theorem 14.2.3), and with it
non-degeneracy and the dimension of the radical; the
symmetry type (Proposition 14.2.4); and the
square class of the determinant when that is non-zero
(Theorem 14.2.5), the
discriminant. Over
Warning. Congruent and
similar are different relations, and neither implies the
other. By Example (Congruent, with no eigenvalue in common)
(a),
14.2.5. Where the two relations meet
There is exactly one situation in which the confusion
is harmless: when the change-of-basis matrix satisfies
Let
Proof. The first statement is the
definition of an orthogonal matrix,
For the second statement, let
This is why the real spectral theorem is so strong,
and it is what Chapter 12 meant when it said, of the
principal axis theorem, that “an orthogonal change of
variables is a similarity and a congruence, so
it keeps the eigenvalues and the geometry at once”. The
general theory of this chapter has no orthogonal
matrices to call on — a general field has no inner
product, hence no orthogonal group in that sense — so
the two relations part company and only congruence
remains. What Proposition 14.2.6 gives
over
Quick check. Over
Solution. Exactly the positive
definite symmetric matrices. If
14.2.6. Exercises
A. Check your understanding
- (a) State the
change-of-basis rule for the matrix of a bilinear form,
saying which matrix
appears. - (b) Define what it
means for
to be congruent. - (c) For each of rank, symmetry, determinant, eigenvalues and the square class of a non-zero determinant, say whether it is a congruence invariant.
- (d) Determine whether the following is correct, with a reason: congruent matrices are similar.
- (e) State the one circumstance in which a change of basis is simultaneously a similarity and a congruence.
Solution.
(a) Theorem 14.2.1:
, where is the change-of-coordinates matrix from the new basis to the old one.(b) Definition 14.2.1:
for some invertible .(c) Invariant: rank (Theorem 14.2.3); symmetry (Proposition 14.2.4); the square class of a non-zero determinant (Theorem 14.2.5). Not invariant: the determinant itself, and the eigenvalues (Example (Congruent, with no eigenvalue in common)).
(d) Incorrect.
, but the only matrix similar to is .(e) When the change-of-coordinates matrix
satisfies , that is, when is orthogonal (Proposition 14.2.6).
B. Practice
Let
- (a) Compute
, and hence write down a matrix congruent to that is diagonal. - (b) Find the eigenvalues of both matrices and compare them.
- (c) Compute the
discriminant of the form
and check that it agrees for the two matrices.
Solution.
(a)
is invertible, with . Then So over .(b) The characteristic polynomial of
is , so its eigenvalues are and ; those of are and . No eigenvalue is shared, and each matrix has one positive and one negative eigenvalue.(c)
and , which is the relation of Theorem 14.2.5. The two determinants differ by the square , so they lie in the same square class of and the discriminants agree, as Definition 14.2.2 requires.
- (a) Prove that
and are not congruent over . - (b) Prove that they
are congruent over
, by exhibiting . - (c) Explain in one sentence why (a) and (b) are consistent.
Solution.
(a) Suppose
with invertible. By Theorem 14.2.5, , so would satisfy . No rational number squares to (Theorem 0.2.3), a contradiction. Hence the two are not congruent over .(b) Take
, which is invertible over . Then , and congruence is symmetric (Proposition 14.2.2).(c) Congruence is a relation over a specified field: the matrix
is required to have entries in that field, and is available in but not in . Equivalently, is a square in and not in , so the discriminant separates the two matrices over and not over .
On
- (a) Write down
and expand as a polynomial in . - (b) Complete the
square to find a basis
with . Verify by computing . - (c) Hence find the
eigenvalues of
and compare them with those of .
Solution.
(a)
, and .(b)
. So the substitution , , that is and , makes . This is with By Theorem 14.2.1 the basis is , the columns of .(c) The characteristic polynomial of
is , with roots ; has the eigenvalue twice. The two matrices are congruent with no eigenvalue in common. What they share is that all eigenvalues are positive on both sides, which by the check above is no accident: the congruence class of over consists of exactly the positive definite matrices.
C. Going deeper
- (a) Prove that if
then and are equivalent in the sense of Definition 4.3.1. - (b) Give two
matrices in
that are equivalent but not congruent, and justify your example. - (c) Hence explain what “the congruence classes refine the equivalence classes” means, and say what extra information a congruence class carries that a rank does not.
Solution.
(a) If
with invertible, then is invertible (Theorem 0.9.5), so with and both invertible, which is Definition 4.3.1.(b) Take
and . Both have rank , so they are equivalent by Theorem 4.3.3 (c). They are not congruent over by Exercise (B2: A non-congruence over ) (a).(c) By (a), each congruence class lies inside a single equivalence class, and by (b) an equivalence class may split into more than one congruence class; that is what “refine” means. An equivalence class is named by the rank alone (Theorem 4.3.3 (c)). A congruence class remembers the rank, and in addition the symmetry type and the discriminant — and over
, the signs. Equivalence allows two independent changes of basis, one in each slot; congruence allows only one, used twice, and the extra invariants are the price of that constraint.
Let
- (a) Prove that
. - (b) Deduce that if
every
is non-zero, then is congruent to a diagonal matrix all of whose entries are . - (c) Give two real
symmetric
matrices that are congruent and have no eigenvalue in common.
Hint for (b): recall from Example (Congruences and a non-congruence) (b) what scaling a basis vector does to a diagonal entry.
Solution.
(a) This is Proposition 14.2.6: by Corollary 12.5.2 there is
with , and is invertible, so .(b) Let
with , which is defined and non-zero because . Then is invertible and , whose -th entry is according to the sign of . By (a) and transitivity (Proposition 14.2.2), is congruent to that matrix.(c) By (b),
and are both congruent to , hence to each other by Proposition 14.2.2; explicitly, gives . Their eigenvalues are and , which are disjoint. Note that the signs match, one positive and one negative on each side; part (b) is the reason, and the law of inertia will say it is forced.
- (a) Show that
has exactly one square class, and that has exactly two. - (b) List the squares
in
and show that has exactly two square classes. - (c) Hence determine,
for each of
, and , the largest number of pairwise non-congruent invertible matrices in that the discriminant alone can distinguish.
Solution.
(a) Over
, every has a square root (Example (Square Roots of )), so and every element is equivalent to : one class. Over , squares of non-zero reals are exactly the positive reals, so and are equivalent precisely when , which happens exactly when they have the same sign. The classes are the positive reals and the negative reals: two classes, and they are distinct since and are not related.(b) The squares are
, , , , so the set of non-zero squares is . Multiplying by gives , so the classes are and : two classes, each of size , covering all four elements of .(c) The discriminant takes one value per square class, so it can separate at most as many classes as there are square classes: one over
, two over and two over . Over it is therefore useless, and over and it sorts invertible matrices into at most two piles. By Exercise (C2: Orthogonal congruence) (b), over every invertible symmetric matrix is congruent to one of the matrices , whose determinant is ; so the discriminant sees only the parity of , and for it cannot separate, say, from . That the matrices really are pairwise non-congruent is the law of inertia, not anything the discriminant can deliver.