5.5Cofactor expansion
Expanding the Leibniz formula takes products, and elimination computes a determinant in about operations (Remark 5.4.25). This section gives a third description of , which is recursive: a cofactor expansion writes an determinant as a combination of determinants of size , one for each entry of a chosen row or column. For a general matrix this still takes on the order of operations. Its strength lies elsewhere. It is quick for matrices with many zeros, and it sets up induction on the size of a matrix, which computes the determinants of whole families of matrices at once: tridiagonal matrices, companion matrices, and the Vandermonde matrices of Section 3.4. It also has a theoretical payoff. The coefficients in the expansions, the cofactors, assemble into a matrix that inverts up to the scalar factor . This gives explicit formulas for and for the solution of (Cramer’s rule).
5.5.1Expansion along a row or a column
We start where Intuition (What the proof did, and where it leads) and Lemma 5.3.2 started, with multilinearity, but this time we expand only one row. Row of is , so by linearity of in row (Corollary 5.4.15),
where is with row replaced by . Each has a row with a single nonzero entry. The lecture computes the determinant of such a matrix by comparing it with a matrix of size one less. We first name that smaller matrix.
For instance, if , then , with minor , and , with minor . Two facts are used again and again. First, involves no entry of row and no entry of column , so changing in row or in column does not change . Second, deleting row and column of gives the transpose of , that is,
Intuition (Moving an entry into the corner). The lecture’s starting point is the case , in block form, where . More generally, if the first row of is , then is block lower triangular with diagonal blocks and , and Theorem 5.4.26 gives
If the single nonzero entry of row sits in column , we move it into the corner. This must be done so that the rest of the matrix becomes exactly . Swapping rows and directly does not achieve this: old row would land in position , out of order. Instead, move row up one step at a time, swapping it with the row just above it. After swaps it is on top, and the other rows are still in their original order. Do the same with column . Each swap changes the sign, so the price is
Lemma 5.5.2 (A row or column with one nonzero entry). Let , , and . If every entry of row of other than is , then
The same holds if every entry of column other than is .
Uses. Corollary 5.4.15 (Rows), Proposition 5.1.10 (Alternating implies antisymmetric), Theorem 5.4.26 (Block-triangular matrices), Theorem 5.4.14 (The transpose)
Suppose first that row has the given form. Let be the matrix obtained from by swapping row with row , then with row , and so on, up to row . These are swaps, and each multiplies the determinant by (Corollary 5.4.15), so
So the first row of is row of rearranged, namely , and deleting the first row and the first column of leaves the rows of other than row , in their original order, restricted to the columns other than column , in their original order. That is exactly . Hence, in block form,
for some , which is block lower triangular. By Theorem 5.4.26,
since
Now suppose instead that every entry of column other than is . Then row of has the single nonzero entry , in column . By the case already proved, Theorem 5.4.14, and
□
The lecture states the case and proves the case (with ) by observing that Gauss–Jordan elimination on performs the same steps as on . We had Theorem 5.4.26 available, which already contains that case.
The sign depends only on the position, and it alternates like the colors of a checkerboard (Figure 5.5.1). Now we expand.
Theorem 5.5.3 (Cofactor expansion). Let and . For every ,
(expansion along row ), and for every ,
(expansion along column ).
Proof (by linearity in one row).
Uses. Corollary 5.4.15 (Rows), Lemma 5.5.2 (A row or column with one nonzero entry), Theorem 5.4.14 (The transpose)
Techniques. Expand by multilinearity (Technique 5.1.7), Transpose to trade rows for columns (Technique 3.2.27)
Fix . For , let be the matrix obtained from by replacing row with . Since row of is and is linear in row (Corollary 5.4.15),
The only nonzero entry of row of is the in column , so
For (5.5.2), fix . Row of has entries , and
□
Proof (via the Leibniz formula).
Uses. Definition 5.3.6 (Determinant), Proposition 5.2.26 (Sign of a cycle), Proposition 5.2.25 (Multiplicativity of the sign), Theorem 5.2.31 (Alternating functions and permutations), Proposition 5.3.17 (Block-diagonal matrices), Theorem 5.4.14 (The transpose)
Techniques. Read structure off the Leibniz expansion (Technique 5.3.12)
We prove (5.5.2); then (5.5.1) follows by applying it to , using Theorem 5.4.14 and
Fix . Each term of the Leibniz formula (Definition 5.3.6) contains exactly one factor from column , namely . Grouping the terms by the value ,
We show that
For , let be given by , for , and for . For this is the -cycle , and , so
If , then satisfies
Also : if with transpositions of , then is the product of the transpositions of , since both sides fix and send to .
For the product, the index runs through as runs through , and
Summing over ,
as desired. □
Intuition (Two proofs compared). The first proof is Technique 5.1.7 stopped after one row. Lemma 5.3.2 expanded all columns at once and needed permutations to sort out the terms; expanding a single row produces only terms, and the lemma about one nonzero entry evaluates each of them. The second proof reads the expansion off the Leibniz formula (Technique 5.3.12): every term uses exactly one entry of column , and the terms that use are, up to the sign , the Leibniz terms of . All of the work is in the bookkeeping of signs, which the first proof gets for free from the adjacent swaps.
A third route is Exercise 5.3.39. It takes the expansion along the first column as a definition, by induction on , and checks the axioms directly.
For , expanding along row gives
whose six terms are those of the rule of Sarrus (Corollary 5.3.9). Expansion pays off when a row or column has many zeros, since every zero entry removes a minor from the sum.
Example 5.5.4 (A sparse determinant). Let
Column has a single nonzero entry, , so expanding along column (or applying Lemma 5.5.2 directly) gives
In the minor, row contains a zero. Expanding along row ,
Hence .
In practice, expansion is combined with elimination. Row and column replacements do not change the determinant (Corollary 5.4.15, Lemma 5.1.8), so one first creates zeros in some row or column, and then expands along it. This reduces the size by one at the cost of one round of replacements. For a general matrix with no zeros, though, a full cofactor expansion computes minors of size , each of these minors of size , and so on, about products in all; elimination is the better algorithm (Remark 5.4.25).
Exercise 5.5.5. Compute the determinant of
with two cofactor expansions. Along which rows or columns should you expand?
Uses. Theorem 5.5.3 (Cofactor expansion), Lemma 5.5.2 (A row or column with one nonzero entry)
Row of is , so by Lemma 5.5.2,
The first row of this matrix is , so expanding along it,
Rows with a single nonzero entry are the best choice, since each expansion then has a single term.
5.5.2The cofactor matrix and the inverse
The numbers appear in both expansions, so we give them a name and arrange them in a matrix.
Definition 5.5.6 (Cofactors, cofactor matrix, adjugate). Let and . The cofactor of is
The cofactor matrix of is
whose entry is . For we set .
In this notation, Theorem 5.5.3 says that
Example 5.5.7 (The case). Let . Deleting a row and a column leaves a single entry, so
and
Then
The product in the example has the determinant on the diagonal, which is expected: its entry is , the expansion along row . Its off-diagonal entries pair row of with the cofactors of a different row . The cofactors of row do not involve row at all, so pairing them with a vector computes the determinant of with row replaced by . When is another row of , that matrix has two equal rows.
Lemma 5.5.8 (Replacing a row or a column). Let , let have cofactors , let , and let .
- (a)If is obtained from by replacing row with , then
. - (b)If is obtained from by replacing column with , then
.
In particular, for all ,
where is if and otherwise.
Uses. Theorem 5.5.3 (Cofactor expansion), Definition 5.5.6 (Cofactors, cofactor matrix, adjugate), Corollary 5.4.15 (Rows), Definition 5.1.1 (Determinant function)
(a) For each , the matrices and agree outside row , so , and the cofactor of is . Expanding along row (Theorem 5.5.3), whose entries are , gives
(b) Similarly, agrees with outside column , so its cofactor is , and expanding along column gives
For the last statement, let be row of , so that . If , then , and (a) gives
The sums with are often called expansions by alien cofactors. Part (b) will give Cramer’s rule, and the last statement gives the main theorem of this subsection.
Theorem 5.5.9 (The adjugate and the inverse). For every ,
Consequently, if , then is invertible and
Uses. Lemma 5.5.8 (Replacing a row or a column), Definition 5.5.6 (Cofactors, cofactor matrix, adjugate), Definition 2.4.1 (Matrix product), Definition 2.5.12 (Invertible)
Techniques. Compute entry by entry (Technique 2.4.15)
For , and , so both products are . Let . The entry of is . So by Definition 2.4.1 and Lemma 5.5.8, the entry of is
which is the entry of . Similarly, the entry of is
by the column version in Lemma 5.5.8 (with the roles of and exchanged). Since , this is again the entry of .
If , multiplying both identities by gives
so is a two-sided inverse of (Definition 2.5.12). □
The theorem gives a second proof of (II) (I) in Theorem 5.4.7 that uses no elimination, and it produces the inverse explicitly. The identity
The lecture calls the formula for more of a curiosity than a useful way to compute inverses. For computing, that is right: it needs determinants of size , while row reducing (Algorithm 3.3.24) takes on the order of operations, the same order as a single determinant. Its value is that it describes by a formula. Every entry of is a polynomial in the entries of , divided by . Two consequences follow below: integer matrices with determinant have integer inverses, and the solution of is given by Cramer’s rule. The formula also shows how depends on a single entry (Remark 5.5.11), which leads to formulas for derivatives of determinants (Section 5.5.6).
Example 5.5.10 (A inverse). Let
Expanding along row ,
Multiplying out confirms . The inverse has integer entries because .
Remark 5.5.11 (Cofactors measure sensitivity). Let with , and let be the matrix unit (Lemma 2.4.24). Adding to changes only the entry , which becomes . Expanding along row , whose cofactors do not change,
So is an affine function of each single entry, and the cofactor is its slope. Over ,
Uses. Theorem 5.5.9 (The adjugate and the inverse), Proposition 5.3.20 (Reduction modulo ), Exercise 5.4.42, Theorem 5.4.7 (Invertibility and the determinant)
So the denominators in always divide . To manufacture integer matrices with integer inverses, start from an upper triangular matrix with s on the diagonal and apply row and column replacements with integer multipliers. These keep the entries integral and the determinant equal to .
Uses. Definition 5.5.6 (Cofactors, cofactor matrix, adjugate), Theorem 5.5.9 (The adjugate and the inverse), Proposition 5.3.20 (Reduction modulo )
We compute over and reduce at the end (Proposition 5.3.20). The cofactors are
Expanding along row ,
Since in , , and by Theorem 5.5.9
Check: the first row of is
5.5.3Cramer’s rule
Intuition (Coefficients as ratios of areas). Suppose are independent and . Replace by in the parallelogram spanned by and . The part of is parallel to the other side, and shearing along does not change signed area (Lemma 5.1.8). What remains, , scales the area by . So
and is the ratio of two signed areas (Figure 5.5.2). The same computation works for every coordinate and in every dimension.
Theorem 5.5.14 (Cramer’s rule). Let with , and let . Then the system has exactly one solution , and its entries are
where is the matrix obtained from by replacing column with .
Proof (by multilinearity).
Uses. Theorem 5.4.7 (Invertibility and the determinant), Definition 2.3.8 (Matrix–vector product), Definition 5.1.1 (Determinant function)
Techniques. Expand by multilinearity (Technique 5.1.7)
By Theorem 5.4.7, is invertible. If , then
Let be the columns of . By Definition 2.3.8,
If , then has both in column and in column , so its determinant is since is alternating. If , then . So
Proof (via the adjugate).
Uses. Theorem 5.5.9 (The adjugate and the inverse), Lemma 5.5.8 (Replacing a row or a column), Definition 5.5.6 (Cofactors, cofactor matrix, adjugate)
The two proofs reverse each other’s logic. The second derives Cramer’s rule from the inverse formula. The first needs nothing but the axioms, and running it backwards gives the inverse formula: column of solves , so Cramer’s rule computes its entries (Exercise 5.5.16). The first proof also shows more than the theorem states. Its computation never used that : for every and every solution of ,
So if but for some , the system has no solution. The converse fails, as Exercise 5.5.35 shows.
Example 5.5.15 (One unknown at a time). Let be the matrix of Example 5.5.10, with , and . To find only in the solution of , we need a single determinant:
The full solution, from , is , and indeed
As a method for solving systems, Cramer’s rule needs determinants and is far slower than elimination. Its value is theoretical: it expresses each as a ratio of two polynomials in the entries of and , linear in , so that, for instance, an integer system with has an integer solution. It also explains the geometry of Intuition (Coefficients as ratios of areas).
Uses. Theorem 5.5.14 (Cramer’s rule), Lemma 5.5.2 (A row or column with one nonzero entry), Definition 5.5.6 (Cofactors, cofactor matrix, adjugate)
The entry of is the -th entry of its -th column , which is the solution of . By Theorem 5.5.14 it equals . Column of is , whose only nonzero entry is the in row . Deleting row and column from removes the replaced column, so it leaves . By Lemma 5.5.2,
Hence the entry of is , the entry of .
5.5.4Determinants of structured matrices
Cofactor expansion reduces the size of a determinant by one. When the smaller determinants have the same shape as the original one, this sets up an induction.
Technique 5.5.17 (Induction on matrix size). Suppose a family of matrices , with , has the property that expanding along a well-chosen row or column produces minors that are earlier members of the family, or are triangular, or are otherwise known. Then the expansion gives a recurrence for . Expand along the row or column with the fewest nonzero entries, identify each minor that appears, and write down the recurrence. Then either solve it, or compute , guess a closed form, and prove it by induction on .
Reach for it when a matrix has a pattern that repeats along the diagonal, so that deleting the last (or first) row and column gives the same kind of matrix. The canonical example is Proposition 5.5.18. Proposition 5.5.20 and the first proof of Theorem 5.5.21 induct in the same way, and Exercise 5.5.34 reproves Proposition 5.3.15.
Used in 10 places and 2 practice exercises
Proposition 5.5.18, Proposition 5.5.20, Theorem 5.5.21, Exercise 5.5.34, Exercise 5.5.45, Exercise 5.5.53, Exercise 5.6.7, Problem 5.14, Theorem 8.3.23, Lemma 8.4.24; 2 practice exercises.
Proposition 5.5.18 (Tridiagonal determinants). Let , , and be elements of . For let
with in position , in position , and zeros away from the three middle diagonals. Let , and put . Then , and
Uses. Theorem 5.5.3 (Cofactor expansion), Lemma 5.5.2 (A row or column with one nonzero entry)
Techniques. Induction on matrix size (Technique 5.5.17)
, so . Let . The last row of is , so expanding along it (Theorem 5.5.3),
where and . The matrix consists of rows and columns of . Its last column is column of without the last entry, namely . If , then and . If , the only nonzero entry of the last column of is , in position , and deleting row and column of leaves rows and columns of , which form . By Lemma 5.5.2,
Only the products enter, so the entries above and below the diagonal can be traded against each other without changing any .
- (a)Let and for all . This is the matrix of second differences, which approximates when is sampled at equally spaced points. The recurrence reads
with and , so , , and by induction : if and , then . So the matrix is invertible over , and over exactly when does not divide (Proposition 5.3.20). - (b)Over , let and . Then , so
with . The determinants are the Fibonacci numbers , although every off-diagonal entry is imaginary.
The next family has a single row with more than two nonzero entries. Its determinant is a polynomial chosen in advance.
Proposition 5.5.20 (Companion matrices). Let , let , let
whose column is for , and whose last column is . Then
In particular, .
Written out,
For this is , and for it is , with determinant , as claimed. We give two proofs. The first is an induction in which the polynomial is built up by Horner’s scheme
Proof (by expansion and induction).
Uses. Theorem 5.5.3 (Cofactor expansion), Proposition 5.3.15 (Triangular matrices), Definition 1.2.17 (Evaluation), Exercise 5.1.5, induction on
Techniques. Induction on matrix size (Technique 5.5.17)
We induct on . For , and
Let , assume the claim for , and let . Row of has in column (if ), in column (if ), and in column , plus an extra in position ; all other entries are . The first row is , so expanding along it,
The matrix consists of rows and columns of . Renumbering them as , its row has in column (if ), in column (if ), and in its last column, plus an extra in the last position. So
The matrix consists of rows and columns of . Renumbered, its row has in column and in column (if ), and zeros elsewhere. It is upper triangular with every diagonal entry , so
Therefore, by Definition 1.2.17,
since
Proof (by row operations).
Uses. Corollary 5.4.15 (Rows), Lemma 5.5.2 (A row or column with one nonzero entry), Proposition 5.3.15 (Triangular matrices), Definition 1.2.17 (Evaluation)
For both sides are , so let and . Put and, for ,
by expanding the nested products (Horner’s scheme).
For in this order, add times the current row to row . We claim that afterwards, for each , row has in column , in column , and zeros elsewhere, and row is . Row is never changed, and it has in column and in column . Suppose row already has its final form, with in column and in column . Row of has in column (if ), in column , and in column . Adding times row changes only columns and : the entry in column becomes , and the entry in column becomes
In the final matrix, row has the single nonzero entry , in column . Deleting row and column leaves the matrix whose row is for , that is, , with determinant (Proposition 5.3.15). By Lemma 5.5.2,
as desired. The value of follows as in the first proof. □
So every monic polynomial of degree arises as for some . In Section 7.3, becomes the characteristic polynomial of , and (or its transpose, which has the same determinant by Theorem 5.4.14; conventions differ) is called the companion matrix of . There the identity of the proposition is upgraded to an identity in .
5.5.5The Vandermonde determinant
Recall from Definition 3.4.22 that for the Vandermonde matrix
Theorem 5.5.21 (The Vandermonde determinant). Let and . Then
In particular, is invertible if and only if are distinct.
For both sides are (the product is empty). For ,
The first proof creates the factors with column operations. The following technique describes the move.
Technique 5.5.22 (Expose a factor with row and column operations). When the entries of a matrix are polynomial expressions in some parameters and the determinant is expected to have a factor such as , look for replacements that make this factor appear in every entry of one row (or column). Replacements do not change the determinant (Corollary 5.4.15, Lemma 5.1.8), and linearity in that row then pulls the factor out. Choose the replacements so that they also create zeros, so that a cofactor expansion reduces the size at the same step. Repeating this, usually by induction on the size, peels off the factors one at a time.
Reach for it when consecutive columns (or rows) are related by a common multiplier, as the powers and are related by , or when all rows have a common sum. The canonical example is the first proof of Theorem 5.5.21. Example 5.4.24 and Exercise 5.4.44 used the same idea with row sums.
Used in 7 places
Theorem 5.5.21, Exercise 5.5.42, Exercise 5.5.53, Exercise 5.6.6, Exercise 5.6.7, Problem 5.10, Problem 5.19.
Proof (by column operations).
Uses. Lemma 5.1.8 (Column replacement), Lemma 5.5.2 (A row or column with one nonzero entry), Corollary 5.4.15 (Rows), induction on
Techniques. Expose a factor with row and column operations (Technique 5.5.22), Induction on matrix size (Technique 5.5.17)
We induct on . For , both sides equal . Let , assume the formula for nodes, and let . Number the columns , so that the entry of column in row is .
For , in this order, subtract times column from column . When column is changed, column has not been changed yet, so the new entry of column in row is
Each step adds a multiple of one column to another, so the determinant does not change (Lemma 5.1.8). The new matrix has first row , since , and for its row is
By Lemma 5.5.2 applied to row , . Row of is , so pulling the factor out of each row (Corollary 5.4.15) gives
By the induction hypothesis,
To make this precise, we need the fact that a polynomial is determined by its roots and its leading coefficient. Polynomials cannot be multiplied until Section 7.1, so we state it for values.
Lemma 5.5.23 (A polynomial with prescribed roots). Let , let , and let be its coefficient of . If are distinct and
Uses. Lemma 3.4.23 (Too many roots), Proposition 1.2.18 (Degree and evaluation versus the operations), Definition 1.2.17 (Evaluation), induction on
For , is the constant and the product is empty, so there is nothing to prove. Let .
First, there are , depending only on , such that
We show this by induction on the number of factors. For , take . If
which is plus a combination of with coefficients that do not depend on .
Let
Once polynomials can be multiplied, the lemma says
Technique 5.5.24 (Polynomial identity arguments). To prove that two quantities depending on a scalar are equal, show that both are values and of polynomials , and then show by counting. Two polynomials of degree at most that agree at distinct points are equal, since their difference has roots (Lemma 3.4.23). When zeros are easier to find than values, use Lemma 5.5.23 instead: a polynomial of degree at most with known distinct roots is determined by its coefficient of . Then the proof splits into independent checks: a bound on the degree, the roots, and one coefficient.
Determinants are a rich source of such polynomials. If a parameter occurs in only one row, the expansion along that row (Theorem 5.5.3) shows that the determinant is a polynomial in ; if the top power of occurs in only one entry of that row, as in , its coefficient is a single cofactor. More generally, see Technique 5.3.18. Roots come from coincidences: a value of that makes two rows equal, or the rows dependent, is a root.
Reach for it when the expected answer is a product of linear factors, or when an identity is easy to check for many special values of a parameter. Two pitfalls: forgetting the leading coefficient (roots determine a polynomial only up to a scalar factor; see Exercise 5.5.42), and counting roots that are not distinct. Over an infinite field, an identity between polynomials in that holds for all but finitely many holds for all . This extends identities from invertible matrices to all matrices by way of (Exercise 5.5.41). The canonical example is the second proof of Theorem 5.5.21. The technique returns in Section 7.3.
Used in 17 places and 3 practice exercises
Theorem 5.5.21, Exercise 5.5.40, Exercise 5.5.41, Exercise 5.5.42, Exercise 5.5.45, Exercise 5.6.9, Exercise 5.6.10, Problem 5.18, Proposition 7.3.11, Proposition 7.3.22, Exercise 7.3.48, Exercise 7.3.49, Theorem 7.5.22, Lemma 7.6.21, Exercise 7.7.14, Proposition B.1.28, Exercise B.1.45; 3 practice exercises.
Proof of Theorem 5.5.21 (by a polynomial identity).
Uses. Theorem 5.5.3 (Cofactor expansion), Lemma 5.5.23 (A polynomial with prescribed roots), Corollary 5.4.15 (Rows), induction on
Techniques. Polynomial identity arguments (Technique 5.5.24)
We induct on ; for both sides are . Let , and assume the formula for nodes. Fix , and for let
is a polynomial. The last row of is , with in column . Expanding along it (Theorem 5.5.3),
where is the determinant of the matrix obtained by deleting the last row and column . These matrices do not involve the last row, so the do not depend on . Hence for the polynomial
Roots. For , the matrix has rows and equal, so
Conclusion. Suppose first that are distinct. By Lemma 5.5.23,
If instead for some , then has two equal rows, so its determinant is , and the product is as well, since it contains the factor . □
Remark 5.5.25 (Back to permutations and interpolation). The polynomial
The theorem also completes the second proof of invertibility promised in Section 3.4. For distinct nodes,
- (a)Show that
, and evaluate it for . - (b)Compute in . Deduce that every function is of the form for exactly one .
Uses. Theorem 5.5.21 (The Vandermonde determinant), Theorem 5.4.7 (Invertibility and the determinant), Theorem 3.4.24 (Polynomial interpolation)
(a) With , Theorem 5.5.21 gives
For this is .
(b) By Theorem 5.5.21,
Given , a polynomial satisfies for all if and only if
5.5.6Rank-one updates Beyond 21-242
Not covered in lecture. The matrix determinant lemma is a standard application of the adjugate in statistics and numerical linear algebra.
Remark 5.5.11 computed , where has rank one. The same computation works for every matrix of rank one, that is, for every with .
Theorem 5.5.27 (Matrix determinant lemma). Let and . Then
In particular, if is invertible, then
Proof (by multilinearity).
Uses. Definition 2.4.1 (Matrix product), Definition 5.1.1 (Determinant function), Lemma 5.5.8 (Replacing a row or a column), Definition 5.5.6 (Cofactors, cofactor matrix, adjugate), Theorem 5.5.9 (The adjugate and the inverse)
Techniques. Expand by multilinearity (Technique 5.1.7)
For both sides are , since . Let . Column of is (Definition 2.4.1), so column of is . Expanding by linearity in each column, is the sum, over all subsets , of , where has column in the positions and column in the other positions. If has two or more elements, then has two equal columns and . The set contributes , and contributes , where is with column replaced by . By part (b) of Lemma 5.5.8,
since the entry of is . If is invertible, then by Theorem 5.5.9, and the right side is
Proof (by block matrices, for invertible ).
Uses. Theorem 2.4.34 (Block multiplication), Theorem 5.4.26 (Block-triangular matrices), Theorem 5.4.10 (Multiplicativity)
Techniques. Block elimination (Technique 5.4.28)
Let
and
The two multipliers are block triangular with diagonal blocks and , so they have determinant by Theorem 5.4.26. The right sides are block triangular as well. Taking determinants with Theorem 5.4.10 and Theorem 5.4.26,
as desired. □
The first proof is shorter, works for every , and shows that
With and this is Example 5.4.24 again.
Remark 5.5.28 (Derivatives of determinants). Let be an matrix whose entries are differentiable functions of . Applying Remark 5.5.11 entry by entry with the chain rule (or Exercise 5.5.48) gives Jacobi’s formula
where are the cofactors of and is the entrywise derivative. At an invertible this reads
5.5.7Minors and rank Beyond 21-242
Minors of arbitrary order appear in LADW 3.6 and in Cauchy–Binet, but not in the course.
The minors come from square submatrices one size smaller than . Submatrices of every size describe the rank.
So with and , and the minors are the entries.
Uses. Theorem 4.2.7 (The image of ), Theorem 4.1.10 (Independent lists are short), Theorem 1.6.10 (Every spanning list contains a basis), Theorem 4.3.8 (Row rank equals column rank), Corollary 5.4.8 (Vanishing determinants), Corollary 5.4.15 (Rows)
The columns of span , which has dimension by Theorem 4.2.7.
Suppose for some with elements. By Corollary 5.4.8, the columns of are linearly independent. For , the column of that comes from column of is , the vector of entries with . We claim that the columns , , of are linearly independent. If , then in particular the entries in the rows vanish, that is,
Now let . By Theorem 1.6.10, the list of columns of , which spans , contains a basis of ; it has elements, say the columns indexed by . Let be the matrix with these columns. Its columns are independent, so (Theorem 4.2.7), and by Theorem 4.3.8. Applying the same argument to , some columns of are independent, that is, some rows of , indexed by a set , are independent. These rows form the matrix , which therefore has independent rows, so by Corollary 5.4.15. So has a nonzero minor of order , and none of larger order. □
The theorem is not a practical way to find the rank, since row reduction is much faster than evaluating minors. Its value is that minors are polynomials in the entries, so statements about rank become statements about polynomials.
Uses. Theorem 5.5.30 (Rank via minors), Definition 5.3.6 (Determinant), Definition 1.1.32 (Subfield)
For example, a matrix with rational entries has the same rank over , , and . (Exercise 3.3.54 proves this with Gauss–Jordan elimination instead: the reduced row echelon form computed in is also the one over .) By contrast, reducing an integer matrix modulo a prime can lower its rank, because nonzero integer minors can become in .
Remark 5.5.32 (The Cauchy–Binet formula). For and , the determinant of the matrix is a sum of products of minors of order :
If , the sum is empty and , in line with
Exercises
Exercise 5.5.33. Let
- (a)Compute with cofactor expansions, choosing each row or column to keep the work small.
- (b)For which primes is the reduction of modulo invertible over ?
Uses. Lemma 5.5.2 (A row or column with one nonzero entry), Theorem 5.5.3 (Cofactor expansion), Proposition 5.3.20 (Reduction modulo ), Theorem 5.4.7 (Invertibility and the determinant)
(a) Row is , so by Lemma 5.5.2,
Column of this minor is , so, again by Lemma 5.5.2,
Hence .
(b) By Proposition 5.3.20, the determinant of the reduction is , which is exactly when divides . By Theorem 5.4.7 over , the reduction is invertible exactly when and .
Uses. Lemma 5.5.2 (A row or column with one nonzero entry), Definition 3.3.31 (Triangular matrices), Theorem 5.4.14 (The transpose), induction on
Techniques. Induction on matrix size (Technique 5.5.17)
We induct on ; for there is nothing to prove. Let and let be upper triangular, so whenever . The first column of is , so by Lemma 5.5.2,
The entry of is , which is when . So is upper triangular with diagonal entries , and by the induction hypothesis
If is lower triangular, then is upper triangular with the same diagonal, and by Theorem 5.4.14. (Alternatively, expand along the first row.)
Exercise 5.5.35. For , consider the system with
- (a)Show that
. For which does the system have exactly one solution? - (b)For those , find with Cramer’s rule.
- (c)Show that for , every determinant is , but the system has no solution. What happens for ?
Uses. Theorem 5.5.3 (Cofactor expansion), Theorem 5.5.14 (Cramer’s rule), Theorem 5.4.7 (Invertibility and the determinant), (5.5.3)
(a) Expanding along the first row,
since
(b) Replacing column by and expanding along the first row,
By Theorem 5.5.14, for ,
(c) For , every column of is . Replacing one column by leaves two columns equal to , so for . But the three equations read , , and , which contradict each other. So the vanishing of all the determinants in (5.5.3) does not imply that a solution exists.
For , part (b) gives
Uses. Corollary 5.5.12 (Integer inverses), Theorem 5.5.9 (The adjugate and the inverse), Corollary 5.4.15 (Rows), Proposition 5.3.15 (Triangular matrices)
Start with , which has by Proposition 5.3.15. Adding row to row , and then the new row to row , gives
and these replacements do not change the determinant (Corollary 5.4.15), so . No entry of is . The cofactors are
(As a check,
Indeed, the first row of is
Exercise 5.5.37. Let and let be upper triangular.
- (a)Show that is upper triangular, with diagonal entries for .
- (b)Deduce that if is invertible, then is upper triangular with diagonal entries .
Uses. Definition 5.5.6 (Cofactors, cofactor matrix, adjugate), Proposition 5.3.15 (Triangular matrices), Theorem 5.5.9 (The adjugate and the inverse), Definition 3.3.31 (Triangular matrices)
(a) The entry of is
Let . Then . If , all these are equalities, so and , which means and ; but then , which is impossible. So and , since is upper triangular. Hence is upper triangular. Its diagonal entry in position , which exists since , is
The entry of is . Deleting row and column of an upper triangular matrix leaves an upper triangular matrix whose diagonal entries are the with (the same index computation with gives ). So
(b) If is invertible, then
Exercise 5.5.38. Let , , and . Prove or disprove each statement. Where the answer depends on , say how.
- (a)
. - (b)
. - (c)
. - (d)The map
is injective.
Uses. Definition 5.5.6 (Cofactors, cofactor matrix, adjugate), Theorem 5.4.14 (The transpose), Exercise 5.1.5, Example 5.5.7 (The case)
Techniques. Finding counterexamples and minimal examples (Technique 1.4.18)
(a) True. Deleting row and column of gives , so by Theorem 5.4.14 the cofactor of is
(b) True. Deleting a row and a column of gives , an matrix, so its determinant is (Exercise 5.1.5). So every cofactor, and hence , is multiplied by .
(c) True for and false for . For , Example 5.5.7 shows
(d) True for and false for . For , applying the formula of Example 5.5.7 twice returns , so has a left inverse (itself) and is injective. For , let have a single entry in position . Every submatrix has at most one nonzero entry, so it has a zero row (as ) and determinant . So , with .
Uses. Theorem 5.5.9 (The adjugate and the inverse), Theorem 5.4.10 (Multiplicativity), Exercise 5.1.5, Theorem 5.4.7 (Invertibility and the determinant)
Techniques. Extremal choice and minimal counterexamples (Technique 1.5.9)
By Theorem 5.5.9, Theorem 5.4.10, and Exercise 5.1.5,
If , dividing by gives
Suppose ; we show , which equals since . Suppose instead that is invertible (Theorem 5.4.7). Since ,
But every minor of the zero matrix is the determinant of a zero matrix of size , hence , so , which is not invertible. This contradiction shows .
Exercise 5.5.40. Let and . Show that
with the convention when . Prove it first for invertible , and then for all when is infinite.
Solution (invertible case and a polynomial identity).
Uses. Theorem 5.5.9 (The adjugate and the inverse), Exercise 5.5.39, Proposition 5.3.19 ( as a function of ), Lemma 3.4.23 (Too many roots), Technique 5.3.18 ( is a polynomial in the entries)
Techniques. Polynomial identity arguments (Technique 5.5.24)
Invertible . By Theorem 5.5.9, , which is invertible, and
All , infinite. For , let . Every entry of is a polynomial in of degree at most . A determinant of size whose entries are polynomials in of degree at most is a polynomial in of degree at most , by the Leibniz formula (Technique 5.3.18). So each entry of is a polynomial in of degree at most , and each entry of is one of degree at most . Also is a polynomial of degree at most , and a product of polynomials in of degrees at most and is a polynomial of degree at most (expand by distributivity, as in the proof of Lemma 5.5.23). So each entry of is a polynomial of degree at most
Fix a position , and let and be the polynomials of degree at most that give the entries of the two sides. By Proposition 5.3.19, is the value at of a polynomial of degree with leading coefficient , which is nonzero, so it has at most roots (Lemma 3.4.23). For every other , is invertible, and the first part gives . Since is infinite, there are more than such , so is a polynomial of degree at most with more than roots, and by Lemma 3.4.23. In particular . As this holds for every ,
Solution (via the rank of the adjugate, over every field).
Uses. Exercise 5.5.51, Theorem 5.5.30 (Rank via minors), Example 5.5.7 (The case)
Techniques. Polynomial identity arguments (Technique 5.5.24)
Uses. Theorem 5.5.9 (The adjugate and the inverse), Theorem 5.4.10 (Multiplicativity), Proposition 5.3.19 ( as a function of ), Lemma 3.4.23 (Too many roots), Technique 5.3.18 ( is a polynomial in the entries)
Techniques. Polynomial identity arguments (Technique 5.5.24)
For both sides are , so let .
Invertible and . By Theorem 5.5.9 and Theorem 5.4.10, is invertible and
General and . For , let and . The entries of
Fix a position, and let
Exercise 5.5.42. Here is a “proof” that for all ,
Fix distinct and . Expanding along the last row, is a polynomial in of degree at most . It vanishes at and at , since the matrix then has two equal rows. The right side also vanishes exactly at and . Two polynomials with the same roots are equal, so
- (a)Find the errors, and show that the claimed formula is false for .
- (b)Find and prove the correct formula.
Uses. Lemma 5.5.23 (A polynomial with prescribed roots), Theorem 5.5.3 (Cofactor expansion), Corollary 5.4.15 (Rows), Lemma 5.5.2 (A row or column with one nonzero entry)
Techniques. Expose a factor with row and column operations (Technique 5.5.22), Polynomial identity arguments (Technique 5.5.24)
(a) The step “two polynomials with the same roots are equal” is false: and have the same roots. Lemma 5.5.23 says that a polynomial of degree at most is determined by distinct roots together with its coefficient of . Here , but only two roots are known, and the coefficients are not compared. In fact, expanding along the last row, the coefficient of in is the cofactor
while , in . (Over some fields the claim happens to hold, for instance over , where three distinct elements do not exist; by (b), it fails exactly when there are distinct with .)
(b) We show
Pulling out the factors and (Corollary 5.4.15) and expanding along the first column, whose only nonzero entry is the in row (Lemma 5.5.2),
No division was used, so this holds in every field, including when are not distinct. At it gives , as computed in (a).
Exercise 5.5.43. Use Theorem 5.5.21 to give short proofs of the following, which Section 1.5 proved without determinants.
- (a)If are distinct, then the sequences
are linearly independent (Exercise 1.5.44). - (b)If are distinct, then the functions are linearly independent in (Exercise 1.5.45).
Uses. Theorem 5.5.21 (The Vandermonde determinant), Theorem 5.4.14 (The transpose), Corollary 5.4.8 (Vanishing determinants), Theorem 1.5.5 (Independence is decided at zero)
Let
(a) If , then the entries in positions give . So , and the sequences are independent by Theorem 1.5.5.
(b) If for all , then differentiating times gives
Exercise 5.5.44. Let be distinct and , and let be the polynomial with for all (Theorem 3.4.24).
(a)Use Cramer’s rule to show that the coefficient of in is
- (b)Deduce that is for and for .
Uses. Theorem 5.5.14 (Cramer’s rule), Theorem 5.5.21 (The Vandermonde determinant), Theorem 5.5.3 (Cofactor expansion), Definition 3.4.22 (Vandermonde matrix), Theorem 3.4.24 (Polynomial interpolation)
(a) Write
Expanding along the last column, whose entry in row is ,
where is with row and the last column deleted. Its rows are for , so
since there are indices , and
since
(b) Let and . The polynomial has degree at most and takes the values at the nodes, so by the uniqueness in Theorem 3.4.24 it is . Its coefficient of is if and if , and by (a) this coefficient is .
Exercise 5.5.45. For and , let be tridiagonal with every diagonal entry equal to and every entry directly above or below the diagonal equal to . Let
- (a)Show that
for , and that for a polynomial with coefficient of . - (b)Show that if with , then
. - (c)Deduce that is singular exactly for the values
, , and that for every .
Uses. Proposition 5.5.18 (Tridiagonal determinants), Lemma 5.5.23 (A polynomial with prescribed roots), Theorem 5.4.7 (Invertibility and the determinant),
Techniques. Induction on matrix size (Technique 5.5.17), Polynomial identity arguments (Technique 5.5.24)
(a) By Proposition 5.5.18 with and ,
(b) Let with , so , and let
so satisfies the same recurrence as . By induction, for all .
(c) For , let
A product of real numbers is only if a factor is, so exactly when is one of the , and by Theorem 5.4.7 these are exactly the for which is singular.
Uses. Proposition 5.5.20 (Companion matrices), Theorem 5.4.7 (Invertibility and the determinant)
Let
and
Exercise 5.5.47. Let and .
- (a)Show that
(Sylvester’s determinant identity). Hint: compute the determinant of in two ways. - (b)Deduce that
for , and compute , where every entry of is .
Uses. Theorem 2.4.34 (Block multiplication), Theorem 5.4.26 (Block-triangular matrices), Theorem 5.4.10 (Multiplicativity)
Techniques. Block decomposition (Technique 2.4.35)
(a) Let . By Theorem 2.4.34,
By Theorem 5.4.26,
(b) Apply (a) with and , so that
With , we have and , so .
Exercise 5.5.48. Let and .
(a)Show that there are scalars , depending only on and , such that
for every , with , , and - (b)Deduce that the coefficient of in (in the sense of Proposition 5.3.19) is , the sum of the minors along the diagonal.
Uses. Definition 5.1.1 (Determinant function), Lemma 5.5.8 (Replacing a row or a column), Definition 5.5.6 (Cofactors, cofactor matrix, adjugate), Definition 2.4.26 (Trace), Definition 2.4.1 (Matrix product), Definition 5.3.6 (Determinant), Proposition 5.3.19 ( as a function of )
Techniques. Expand by multilinearity (Technique 5.1.7)
(a) Column of is . For , let be the matrix whose column is if and if . Expanding by linearity in each column, one column at a time,
Grouping by gives the claim with
by part (b) of Lemma 5.5.8, where are the cofactors of . The entry of is
(b) With ,
Summing over the with , that is, over the with
Exercise 5.5.49. Let , , and . Prove or disprove:
- (a)If and for some , then has no solution.
- (b)If and for every , then has a solution.
- (c)If , and have integer entries, and , then the solution of has integer entries.
- (d)If and for every , then .
Uses. (5.5.3), Theorem 5.5.14 (Cramer’s rule), Corollary 5.5.12 (Integer inverses)
Techniques. Finding counterexamples and minimal examples (Technique 1.4.18)
(a) True. If were a solution, then by (5.5.3),
(b) False. Let , let be the matrix with all entries , and let . Replacing one column of by leaves two columns equal to , so for every , and . But the equations and (rows and ) contradict each other, so there is no solution. (Exercise 5.5.35 gives another example.) For general , the same and work when ; for , take and .
(c) False. With and , the solution is . Integrality does hold when , by Corollary 5.5.12.
(d) True. By Theorem 5.5.14, the unique solution has
- (a)Compute over with Theorem 5.5.21.
- (b)Let
and , so has entry for . Show that for a permutation matrix with , and use this to check (a) up to sign. - (c)In , the element satisfies , and its powers are . Compute in .
Uses. Theorem 5.5.21 (The Vandermonde determinant), Theorem 5.4.10 (Multiplicativity), Exercise 5.1.5, Theorem 5.2.31 (Alternating functions and permutations), Definition 5.2.29 (Permutation matrix)
(a) With , , , , Theorem 5.5.21 gives the product of
Now
(b) The entry of is
Indeed
(c) With , the factors are , , , , , and . Their product is
Exercise 5.5.51. Let and . Show that
Uses. Theorem 5.5.9 (The adjugate and the inverse), Theorem 5.5.30 (Rank via minors), Theorem 4.2.11 (Rank–nullity), Theorem 4.2.7 (The image of ), Proposition 4.1.21 (Dimensions of subspaces)
If , then is invertible and is invertible (Theorem 5.5.9), so .
The entries of are , the minors of order of . If , these all vanish by Theorem 5.5.30 (if , trivially), so and .
Let . Then is not invertible, so and by Theorem 5.5.9. So for every , , that is, . By rank–nullity (Theorem 4.2.11),
Exercise 5.5.52. Prove the Cauchy–Binet formula of Remark 5.5.32: for and ,
Uses. Definition 2.4.1 (Matrix product), Definition 5.1.1 (Determinant function), Theorem 5.2.31 (Alternating functions and permutations), Definition 5.3.6 (Determinant), Definition 5.5.29 (Minors of order )
Techniques. Expand by multilinearity (Technique 5.1.7)
Let be the columns of . By Definition 2.4.1, column of is
the sum running over all functions . If is not injective, the matrix has two equal columns, so its determinant is .
An injective has an image with elements; write
Hence
The entry of is , so the inner sum is the Leibniz formula (Definition 5.3.6) for . This proves the formula. If , there are no injective and no sets , and both sides are .
Exercise 5.5.53. Let
(a)Show that
- (b)Deduce that the Hilbert matrix , with entries , is invertible, and compute .
Uses. Corollary 5.4.15 (Rows), Lemma 5.1.8 (Column replacement), Theorem 5.4.26 (Block-triangular matrices), Theorem 5.4.7 (Invertibility and the determinant), induction on
Techniques. Expose a factor with row and column operations (Technique 5.5.22), Induction on matrix size (Technique 5.5.17)
(a) We induct on . For , both sides are . Let .
Rows. For each , subtract row from row ; the determinant does not change (Corollary 5.4.15). The new entry, for , is
Pull the factor out of row , for each , and then the factor out of column , for each (Corollary 5.4.15 and linearity in columns). The result is the matrix with entries for and with last row , and
Columns. For each , subtract column from column of (Lemma 5.1.8). The last row becomes , and for the new entry is
Pull out of column , for each , and out of row , for each . Row becomes , since its last entry is divided by , and the last row stays . So the result is , where is built from and , and its determinant is by Theorem 5.4.26. Altogether
The new numerator factors are those of the claimed numerator with larger index , and the new denominator factors are the with or . So the induction hypothesis for gives the formula.
(b) With and , we have
So
More practice
The practice bank has 21 exercises on this section’s topics.