← Back to Math 010

2.1 Determinants by Cofactor Expansion: Class Notes

Recall

A=[abcd] ⇒ A−1=1ad−bc[d−b−ca]

The number ad−bc is the determinant of the 2×2 matrix A. This section defines the determinant for larger square matrices.

Definition

If A is a square matrix, then the minor of entry aij is denoted by Mij and is defined to be the determinant of the submatrix that remains after the ith row and jth column are deleted from A. The number (−1)i+jMij is denoted by Cij and is called the cofactor of entry aij.

In short, for a matrix A=[aij]:

Cij=(−1)i+jMij

Example

Find all the minors and cofactors of A=[23−74−2−9256].

Solution

Notation: square brackets mean a matrix, as in A=[23−74−2−9256]. Vertical bars mean a determinant (a number):

|23−74−2−9256|

The sign (−1)i+j depends only on the position: (−1)1+1=1, (−1)1+2=−1, and so on, giving the pattern

[+−+−+−+−+]

So in a + position, the cofactor equals the minor, and in a − position, the cofactor is the negative of the minor.

Minors and cofactors. Each minor is a 2×2 determinant. For example, deleting row 1 and column 1:

M11=|−2−956|=(−2)(6)−(−9)(5)=−12−(−45)=33

The rest are found the same way.

M11=|−2−956|=33,C11=33

M12=|4−926|=42,C12=−42

M13=|4−225|=24,C13=24

M21=|3−756|=53,C21=−53

M22=|2−726|=26,C22=26

M23=|2325|=4,C23=−4

M31=|3−7−2−9|=−41,C31=−41

M32=|2−74−9|=10,C32=−10

M33=|234−2|=−16,C33=−16

Definition

If A is an n×n matrix, then the number obtained by multiplying the entries in any row or column of A by the corresponding cofactors and adding the resulting products is called the determinant of A, and the sums themselves are called cofactor expansions of A. That is,

det(A)=a1jC1j+a2jC2j+…+anjCnj  (cofactor expansion along the jth column)=ai1Ci1+ai2Ci2+…+ainCin  (cofactor expansion along the ith row)

Example

Compute the determinant of the matrix A above.

Solution

Tip: Use the right symbol: the matrix is A=[23−74−2−9256], and its determinant is det(A)=|A|=|23−74−2−9256|. Writing brackets for a determinant (or bars for a matrix) is incorrect.

Expand along the first row, using the cofactors found above:

det(A)=|23−74−2−9256|=2(33)+3(−42)+(−7)(24)=2(33)−3(42)−7(24)=66−126−168

Answer: det(A)=−228

#11

Use the arrow technique of Figure 2.1.1 to evaluate the determinant.

|−21435−7162|

Solution

Copy the first two columns to the right of the determinant. Multiply along the three down-right diagonals and add those products; multiply along the three up-right diagonals and subtract those products.

Arrow technique: the 3 by 3 entries with the first two columns repeated and diagonal arrows

The rows −2,1,4,−2,1; 3,5,−7,3,5; 1,6,2,1,6 (the last two columns repeat the first two). Down-right diagonals: (−2)(5)(2)=−20, (1)(−7)(1)=−7, (4)(3)(6)=72. Up-right diagonals: (1)(5)(4)=20, (6)(−7)(−2)=84, (2)(3)(1)=6.

(−20−7+72)−(20+84+6)=45−110

Answer: −65

Arrow method for 2 × 2 determinants

|abcd|=ad−bc

Multiply along the down-right diagonal and subtract the product along the up-right diagonal.

Tip: The arrow technique works only for 2×2 and 3×3 determinants; it does not work for 4×4 or larger.

Theorem 2.1.1

If A is an n×n matrix, then regardless of which row or column of A is chosen, the number obtained by multiplying the entries in that row or column by the corresponding cofactors and adding the resulting products is always the same.

#16

Find all values of λ for which det(A)=0.

A=[λ−4000λ203λ−1]

Solution

Expand across row 1: its last two entries are 0, so only the first term remains.

|λ−4000λ203λ−1|=0 ⇒ (λ−4)|λ23λ−1|=0

(λ−4)(λ2−λ−6)=0(λ−4)(λ−3)(λ+2)=0

Answer: λ=−2, 3, 4

Theorem 2.1.2

If A is an n×n triangular matrix (upper triangular, lower triangular, or diagonal), then det(A) is the product of the entries on the main diagonal of the matrix; that is, det(A)=a11a22⋯ann.

#31

Evaluate the determinant of the given matrix by inspection.

[127−301−4100270003]

Solution

The matrix is upper triangular, so by Theorem 2.1.2 its determinant is the product of the diagonal entries:

Answer: det(A)=1(1)(2)(3)=6

Why this works. Expand along the first column again and again; each time, only the top entry is nonzero:

|127−301−4100270003|=1|1−41027003|=1(1|2703|)=1(1)(2)(3)

Tip: There is no need to write all this out each time; it just shows why Theorem 2.1.2 is true.

Aside

Let A=[21−35] and B=[4875−3281217].

AB=[21−35][4875−3281217]

is not defined (the sizes don’t match), but

det(A)det(B)=|21−35||4875−3281217|

is defined, since each determinant is just a number.