14.4 Completing the Square
Every symmetric matrix over
Throughout,
14.4.1. Orthogonality without an inner product
Chapter 11 called two vectors orthogonal when their inner product vanished. The word survives the loss of positivity unchanged, because only the vanishing was ever used.
Let
The definition is engineered to say exactly one thing
about matrices: by Definition 14.1.2,
What an orthogonal basis buys is that
That is the “sum of squares” a reader has met when completing the square in two variables, and Eq. 14.4.1 is the reason the whole section is called what it is.
14.4.2. The theorem, and the case that breaks it
Here is the naive argument, and it is worth seeing it
fail. To make
Let
Proof. Since
Contrapositively: if
Let
Equivalently: every symmetric
Idea. Induction on
Proof. We induct on
Step 1: the form vanishes on the
diagonal. Suppose
Step 2: the form does not vanish on the
diagonal. Otherwise there is
Moreover
The restriction of
Concatenating bases of the summands of a direct sum
gives a basis of it (Theorem 1.7.5, (a)
For the matrix statement, let
Two hypotheses did visible work. Symmetry was used
twice: to make
Warning. Diagonal does not
mean “the diagonal entries are eigenvalues”.
The matrix
Quick check. In Theorem 14.4.2, how many of
the diagonal entries
Solution. Exactly
14.4.3. The algorithm: symmetric row and column operations
The proof is constructive, but running it by hand means chasing kernels of functionals. There is a bookkeeping device that does the same work on the matrix directly, and it is the practical content of this section.
The key observation is that a congruence by an
elementary matrix is a pair of
operations. Let
Algorithm. To diagonalize a
symmetric
- If
but some with , swap rows and then columns . - If
and every for , look for an entry with . If there is none, then row and column are already zero in every position, so move on to . If there is one, add row to row , then column to column ; the new is . - Now
. For each with , subtract times row from row , then times column from column .
Over a field where division is inconvenient —
Perform only the column half of each
operation on the matrix standing to the right. When
The second bullet is Lemma 14.4.1 made
mechanical, and the factor
Over
Solution. The form is
Step 1 (create a pivot). Add row
Step 2 (clear the first row and column, in two
paired moves). Rather than divide by
The transforming matrix. Applying the three
column operations to
Two observations about that example. The determinants
are
14.4.4. Over the complex numbers, and over a general field
The diagonal entries produced by the algorithm are not canonical, but there is a precise statement of how much freedom remains.
Let
Proof. Scaling basis vectors by
nonzero scalars again gives a basis. For
So each nonzero
- Over
, every element is a square, so there is exactly one nonzero square class and every nonzero can be turned into . - Over
, the squares are the positive numbers, so there are two classes and every nonzero can be turned into or , according to its sign — the subject of the next section. - Over
there are infinitely many classes ( are pairwise inequivalent), so the -dimensional forms and are already noncongruent. - Over
with odd there are exactly two classes, as for , but “which class” is not a matter of sign.
The complex case collapses completely.
Let
Proof. By Theorem 14.4.2 (with
Every nonzero complex number has a square root, so
choose
For the classification: congruent matrices have equal
rank by Theorem 14.2.3, and matrices
of equal rank are both congruent to the same normal
form, hence to each other by Proposition 14.2.2. The
possible ranks are
Contrast this with similarity, where complex
symmetric matrices are not classified by anything so
simple: the matrix
14.4.5. Exercises
A. Check your understanding
- (a) Define what it
means for an ordered basis to be an orthogonal
basis for a bilinear form
, and say what that means about . - (b) State Theorem 14.4.2 with all of its hypotheses.
- (c) Which step of
the proof uses
, and what exactly is divided by? - (d) Determine
whether the following statement is correct, and justify
your answer: if
, then the are the eigenvalues of . - (e) Describe the pair of operations that a congruence by an elementary matrix performs.
Solution.
(a)
is orthogonal for if whenever . Equivalently is diagonal, with entries .(b) If
, is finite-dimensional over and is a symmetric bilinear form on , then has an orthogonal basis for ; equivalently every symmetric is congruent to a diagonal matrix.(c) Lemma 14.4.1, inside Step 2 of the proof. It produces
and needs to conclude that this is nonzero. Equivalently, the algorithm’s repair move multiplies by , so it needs .(d) Incorrect. The relation is congruence, not similarity. In Example (Diagonalizing a symmetric matrix with zero diagonal) the diagonal entries are
while the eigenvalues are . Only the signs matched there, and Section 5 explains why.(e) A column operation and the matching row operation:
. Performing both keeps the matrix symmetric and keeps it in the same congruence class.
B. Practice
Over
Solution. Here
Clear the first row and column. Subtract
Clear the second row and column. The pivot
is
The transforming matrix. Applying the two
column operations to
Over
- (a) Find a vector
with , as in Lemma 14.4.1. - (b) Diagonalize
by paired operations and exhibit . - (c) Write
as a difference of two squares in the new coordinates.
Solution.
(a) Both
and give , so take : .(b) Add row
to row , then column to column , reaching . Then apply “row ” and its column partner, reaching . Applying the same two column operations to gives Check directly: and multiplying by gives .(c) With
, that is and , we get . This is the familiar identity read as a change of variable, and it needs to be invertible.
Let
Solution. By Corollary 14.4.4,
C. Going deeper
Work over
- (a) Prove that the
matrices and are not congruent over . - (b) Prove that
and are congruent over , by exhibiting a . - (c) Explain why (a) and (b) are consistent with Proposition 14.4.3.
Hint: for (b), look for two vectors
Solution.
(a) A congruence of
matrices is with . So and are congruent exactly when for some . The squares of are , so is not a square and the two are not congruent.(b) Take
and . Then , , and in . With we get .(c) Proposition 14.4.3 only says what rescaling a single basis vector can do, and that move cannot change a square class. Part (b) does not contradict it, because the congruence there is not diagonal: it mixes the two coordinates, and both diagonal entries change square class at once. What is invariant is the class of their product, the determinant:
and differ by , a square.
Let
- (a) Prove that
is alternating. - (b) Prove that if
is invertible, then every diagonal entry of is . - (c) Deduce that
is congruent to no diagonal matrix except the zero matrix, and hence that Theorem 14.4.2 fails over .
Solution.
(a) By Proposition 14.3.2 (b): over
we have , so , and the diagonal entries of are . (Directly: .)(b) The
-th diagonal entry of is , where is the -th column of . By (a), vanishes identically, so every diagonal entry is .(c) A diagonal matrix congruent to
has all diagonal entries by (b), hence is the zero matrix. But congruence preserves rank (Theorem 14.2.3) and . So no diagonal matrix is congruent to . Since is symmetric over , the conclusion of Theorem 14.4.2 fails there, and the hypothesis cannot be dropped.
Let
- (a) Prove that
has an orthogonal basis for the restriction of to . - (b) Give an example,
with
, in which is nondegenerate but its restriction to some -dimensional is the zero form. - (c) Deduce that an
orthogonal basis of
cannot always be extended to an orthogonal basis of by adding vectors of alone, and say in one sentence what Theorem 14.4.2 does guarantee instead.
Solution.
(a) The restriction
is bilinear, since it is the same function on a smaller domain, and symmetric for the same reason. is finite-dimensional, being a subspace of a finite-dimensional space (Theorem 1.6.7). So Theorem 14.4.2 applies to directly.(b) Over
take on , with matrix , which is invertible, so is nondegenerate. Put . Then for all , so the restriction is the zero form even though is not.(c) In (b) the single vector
is an orthogonal basis of , but no vector of can be added to it, and any orthogonal basis of for this must consist of vectors with (its matrix is diagonal and invertible), so belongs to none of them. What the theorem guarantees is only the existence of some orthogonal basis of , built from scratch; it promises nothing about extending a given orthogonal list, and Section 8 is where a correct extension statement finally appears.