math.wiki
Linear algebra › Matrices › Determinants by cofactor expansion
Open on the map
Linear Algebra

Determinants by cofactor expansion

The determinant of a 2 by 2 or 3 by 3 matrix has a formula you can write on one line. How do you find it for a 4 by 4, a 5 by 5, or any size at all?

Where you are 12 in Matrices

When you reach for it

Oriwa, Waimarie and Ruiha are in an engineering class sizing a small footbridge. Balancing the forces at the joints gives four equations in four unknown forces, and they want to know whether the system has exactly one solution. By What the determinant means the determinant is the factor by which a matrix scales volume, and nonzero means nothing is flattened and the system has exactly one solution; for 4 \times 4 that is stated below, proved later. They need a 4 \times 4 determinant.

Computing a determinant expanded 3 \times 3 determinants along a row: each entry times its minor M_{ij} (the determinant left after crossing out row i and column j), with the checkerboard sign (-1)^{i+j}. Here that move becomes the definition for every size, works along columns too, and meets its best uses and its limit.

The procedure

Day 1: the definition for any size

The cofactor of the entry in position (i, j) of an n \times n matrix A is its minor with the checkerboard sign attached:

C_{ij} = (-1)^{i+j} M_{ij}

The minor of an n \times n matrix is an (n - 1) \times (n - 1) determinant. For n = 4 the signs (-1)^{i+j} are

\begin{bmatrix} + & - & + & - \\ - & + & - & + \\ + & - & + & - \\ - & + & - & + \end{bmatrix}

Every diagonal position is +, and the sign changes with each step along a row or down a column.

Definition. For a 1 \times 1 matrix, \det [a] = a. For n \geq 2,

\det A = a_{11}C_{11} + a_{12}C_{12} + \dots + a_{1n}C_{1n}

This definition is recursive: an n \times n determinant is defined through (n-1) \times (n-1) ones, and so on down to 1 \times 1. It is not circular, because each step lowers the size. For n = 2 it gives a_{11}a_{22} - a_{12}a_{21}, and for n = 3 it is the row-1 expansion of Computing a determinant. That this number still measures signed volume, and is nonzero exactly when the matrix is invertible, is stated here and proved in Properties of determinants: row operations, products, transposes.

Theorem (expansion along any line). For every n \times n matrix A, every row i and every column j,

\begin{aligned} \det A &= a_{i1}C_{i1} + a_{i2}C_{i2} + \dots + a_{in}C_{in} \\ &= a_{1j}C_{1j} + a_{2j}C_{2j} + \dots + a_{nj}C_{nj} \end{aligned}

The proof for every row and column is long and is not given here (it is cleanest once Properties of determinants: row operations, products, transposes shows that a row swap changes the sign). Here is the proof for column 1 against row 1, by induction on n.

For n = 2 both give a_{11}a_{22} - a_{12}a_{21}. Suppose they agree for every (n-1) \times (n-1) matrix, n \geq 3. For i, j \geq 2 let D_{ij} be the determinant left when rows 1, i and columns 1, j are crossed out. Both expansions share a_{11}C_{11}. The other row-1 terms are (-1)^{1+j}a_{1j}M_{1j}, j \geq 2. The first column of the matrix behind M_{1j} holds a_{21}, \dots, a_{n1}, with a_{i1} in its row i - 1, so expanding down it (the induction hypothesis) gives M_{1j} = \sum_{i \geq 2} (-1)^{i} a_{i1} D_{ij}. The row-1 expansion is therefore

a_{11}C_{11} + \sum_{i \geq 2}\sum_{j \geq 2} (-1)^{i+j+1} a_{1j}a_{i1}D_{ij}

The other column-1 terms are (-1)^{i+1}a_{i1}M_{i1}, i \geq 2. The first row of the matrix behind M_{i1} holds a_{12}, \dots, a_{1n}, with a_{1j} in its column j - 1, and the definition expands along it: M_{i1} = \sum_{j \geq 2} (-1)^{j} a_{1j}D_{ij}. So the column-1 expansion is a_{11}C_{11} plus the same double sum with sign (-1)^{i+1+j}, the same sign.

In practice: pick the line with the most zeros. A zero entry contributes 0 \cdot C_{ij} = 0, so its cofactor is never needed. Inside each minor, choose afresh.

Day 2: triangular matrices, parameters and cost

A square matrix is upper triangular when every entry below the main diagonal is 0, and lower triangular when every entry above it is 0.

Theorem. The determinant of a triangular matrix is the product of its diagonal entries.

Proof. Take A upper triangular and expand down column 1. Its only possibly nonzero entry is a_{11}, in a + position, so \det A = a_{11}M_{11}. Crossing out row 1 and column 1 leaves an upper triangular matrix with diagonal a_{22}, \dots, a_{nn}. Expanding that one down its first column gives a_{22} times a smaller upper triangular determinant, and so on, until the last step leaves \det[a_{nn}] = a_{nn}. So \det A = a_{11}a_{22}\cdots a_{nn}. A lower triangular matrix is the same argument along row 1 each time. \square

So \det I_n = 1, and a 0 on the diagonal makes a triangular determinant 0.

A parameter. When some entries are a letter, expansion makes the determinant a polynomial in it, and its zeros are the values at which the matrix flattens space and the system stops having exactly one solution.

Cost. Expanding an n \times n matrix with no zeros gives n minors of size n - 1, each giving n - 1 of size n - 2, and so on: in the end a sum of n(n-1)\cdots 1 = n! products, each taking one entry from every row and every column. The factorial outgrows every power of n, so expansion suits small matrices, matrices with many zeros, and matrices holding a letter. For a large matrix of numbers, row reduction to triangular form needs roughly \tfrac{1}{3}n^3 multiplications; Properties of determinants: row operations, products, transposes explains why it works.

Worked examples

Example 1

Day 1: The footbridge matrix, two ways

The class’s coefficient matrix is

F = \begin{bmatrix} 2 & 0 & 1 & 3 \\ 1 & 0 & 0 & 2 \\ 0 & 4 & 1 & 0 \\ 3 & 0 & 2 & 1 \end{bmatrix}

Waimarie expands down column 2, Ruiha along row 2. Carry out both. Does the system have exactly one solution?

Solution

Column 2 has one nonzero entry, the 4 in position (3, 2), sign (-1)^{3+2} = -. Crossing out row 3 and column 2:

M_{32} = \begin{vmatrix} 2 & 1 & 3 \\ 1 & 0 & 2 \\ 3 & 2 & 1 \end{vmatrix}

Expand this 3 \times 3 along its own row 1: 2(0 - 4) - 1(1 - 6) + 3(2 - 0) = -8 + 5 + 6 = 3. So

\det F = -4 \cdot 3 = -12

Row 2 is (1, 0, 0, 2), so two terms survive: the 1 in position (2, 1), sign -, and the 2 in position (2, 4), sign (-1)^{6} = +.

M_{21} = \begin{vmatrix} 0 & 1 & 3 \\ 4 & 1 & 0 \\ 0 & 2 & 1 \end{vmatrix} = 20
M_{24} = \begin{vmatrix} 2 & 0 & 1 \\ 0 & 4 & 1 \\ 3 & 0 & 2 \end{vmatrix} = 4

In M_{21}, column 1 holds only the 4, sign -: -4(1 - 6) = 20. In M_{24}, column 2 holds only the 4, sign +: 4(4 - 3) = 4. Then

\det F = -1 \cdot 20 + 2 \cdot 4 = -12

Both lines give -12, as the theorem promises. Since \det F \neq 0, the force system has exactly one solution.

Example 2

Day 1: Two zeros in one row

Find \det G for

G = \begin{bmatrix} 3 & 1 & 0 & 2 \\ -1 & 2 & 4 & 0 \\ 2 & 0 & 0 & 1 \\ 1 & -3 & 5 & 2 \end{bmatrix}
Solution

Row 3 and column 3 each have two zeros. Take row 3; its signs are +, -, +, -, so the 2 in position (3, 1) carries + and the 1 in position (3, 4) carries -.

M_{31} = \begin{vmatrix} 1 & 0 & 2 \\ 2 & 4 & 0 \\ -3 & 5 & 2 \end{vmatrix}
M_{34} = \begin{vmatrix} 3 & 1 & 0 \\ -1 & 2 & 4 \\ 1 & -3 & 5 \end{vmatrix}

Along row 1 of each:

\begin{aligned} M_{31} &= 1(8 - 0) - 0 + 2(10 + 12) = 52 \\ M_{34} &= 3(10 + 12) - 1(-5 - 4) + 0 = 75 \end{aligned}
\det G = 2 \cdot 52 - 1 \cdot 75 = 29
Example 3

Day 1: A 5 by 5 determinant, one choice at a time

Find \det H for

H = \begin{bmatrix} 3 & 0 & 1 & 0 & 2 \\ 0 & 0 & 5 & 0 & 0 \\ 1 & 2 & 0 & 4 & 1 \\ 2 & 0 & 1 & 0 & -1 \\ 0 & 3 & 2 & 1 & 0 \end{bmatrix}
Solution

Row 2 has one nonzero entry, the 5 in position (2, 3), sign (-1)^5 = -. Crossing out row 2 and column 3:

\det H = -5 \begin{vmatrix} 3 & 0 & 0 & 2 \\ 1 & 2 & 4 & 1 \\ 2 & 0 & 0 & -1 \\ 0 & 3 & 1 & 0 \end{vmatrix}

In this new matrix the best line is column 3, (0, 4, 0, 1): the 4 in its position (2, 3), sign -, and the 1 in position (4, 3), sign (-1)^7 = -. The two minors are

\begin{vmatrix} 3 & 0 & 2 \\ 2 & 0 & -1 \\ 0 & 3 & 0 \end{vmatrix} = 21
\begin{vmatrix} 3 & 0 & 2 \\ 1 & 2 & 1 \\ 2 & 0 & -1 \end{vmatrix} = -14

each down its column 2, which has one nonzero entry: -3(-3 - 4) = 21 and 2(-3 - 4) = -14. So the 4 \times 4 determinant is -4(21) - 1(-14) = -70, and

\det H = -5(-70) = 350

Two 2 \times 2 determinants did the work of 5! = 120 products.

Example 4

Day 2: A triangular matrix

Find \det U for

U = \begin{bmatrix} 3 & 5 & -1 & 7 \\ 0 & -2 & 4 & 1 \\ 0 & 0 & \frac{1}{2} & 6 \\ 0 & 0 & 0 & 5 \end{bmatrix}
Solution

U is upper triangular, so its determinant is the product of the diagonal:

\det U = 3 \cdot (-2) \cdot \tfrac{1}{2} \cdot 5 = -15

The entries above the diagonal play no part: down column 1 only the 3 survives, leaving an upper triangular 3 \times 3 with diagonal \displaystyle -2, \frac{1}{2}, 5, and so on.

Example 5

Day 2: The footbridge with an adjustable member

The class replaces the 0 in position (4, 2) of F by a design value k:

F_k = \begin{bmatrix} 2 & 0 & 1 & 3 \\ 1 & 0 & 0 & 2 \\ 0 & 4 & 1 & 0 \\ 3 & k & 2 & 1 \end{bmatrix}

For which k does the force system fail to have exactly one solution?

Solution

Column 2 still has only two nonzero entries: the 4 in position (3, 2), sign -, and k in position (4, 2), sign (-1)^6 = +. The minor of the 4 crosses out column 2, which is exactly where k sits, so it is the same minor 3 as in Example 1. The minor of k crosses out row 4 and column 2:

M_{42} = \begin{vmatrix} 2 & 1 & 3 \\ 1 & 0 & 2 \\ 0 & 1 & 0 \end{vmatrix} = -1(2 \cdot 2 - 3 \cdot 1) = -1

expanded along its row 3, where the 1 sits in a - position. So

\det F_k = -4 \cdot 3 + k(-1) = -12 - k

which is 0 exactly when k = -12; for every other k there is exactly one solution.

Example 6

Day 2: A parameter in four places

For which t is \det \begin{bmatrix} t & 1 & 0 & 0 \\ 4 & t & 0 & 0 \\ 2 & -1 & t & 3 \\ 0 & 5 & 3 & t \end{bmatrix} = 0?

Solution

Row 1 has two nonzero entries, t in a + position and 1 in a - position.

\begin{aligned} \det &= t\begin{vmatrix} t & 0 & 0 \\ -1 & t & 3 \\ 5 & 3 & t \end{vmatrix} \\ &\quad - 1\begin{vmatrix} 4 & 0 & 0 \\ 2 & t & 3 \\ 0 & 3 & t \end{vmatrix} \end{aligned}

Each 3 \times 3 has a single nonzero entry in its row 1, so each is that entry times \begin{vmatrix} t & 3 \\ 3 & t \end{vmatrix} = t^2 - 9:

\begin{aligned} \det &= t \cdot t(t^2 - 9) - 4(t^2 - 9) \\ &= (t^2 - 4)(t^2 - 9) \end{aligned}

The determinant is 0 for t = 2, -2, 3, -3. With the upper right 2 \times 2 corner all zeros, it is the upper left corner’s determinant t^2 - 4 times the lower right one’s t^2 - 9.

Example 7

Day 2: What the factorial costs

A computer forms one product of entries every billionth of a second. Roughly how long does full cofactor expansion of a 20 \times 20 matrix with no zero entries take?

Solution

Full expansion produces 20! products, one for each way of choosing an entry from every row and every column:

20! = 2{,}432{,}902{,}008{,}176{,}640{,}000 \approx 2.43 \times 10^{18}

At 10^9 per second that is about 2.43 \times 10^{9} seconds, and a year has about 3.16 \times 10^{7} seconds: about 77 years. Row reduction needs about \tfrac{1}{3}(20)^3 \approx 2{,}700 multiplications, a few millionths of a second.

Boundaries

  • Only a square matrix has a determinant, and expansion needs a whole row or a whole column, never the diagonal.
  • The sign (-1)^{i+j} belongs to the position, and a minor of a minor uses positions in the smaller matrix.
  • The triangular rule needs every entry on one side of the main diagonal to be 0. A matrix triangular about the other diagonal is not triangular; its determinant carries a sign that depends on n.
  • The corner factoring of Example 6 needs a full block of zeros in one corner.
  • Expansion is exact at any size, but costs n!.
  • Stated without proof: the adjugate \operatorname{adj} A, whose (i, j) entry is C_{ji}, gives \displaystyle A^{-1} = \frac{1}{\det A}\operatorname{adj} A when \det A \neq 0. For n = 2 this is Inverse of a 2 by 2 matrix, and solving with it; for larger n it costs far more than Finding an inverse by row reducing A next to I.

Where this goes next

Properties of determinants: row operations, products, transposes uses this lesson to prove how row operations change a determinant and that \det(AB) = \det A \det B, then computes large determinants by reducing to triangular form. Expanding \det(A - \lambda I) gives the polynomial of The characteristic equation and finding eigenvalues, the parameter problems of Day 2 in their most important form. Cramer's rule writes the solution of a system in determinants.

Exercises

Day 1: cofactors and 4 by 4 determinants

  1. For A = \begin{bmatrix} 2 & -1 & 0 & 3 \\ 4 & 1 & 2 & 0 \\ 0 & 5 & -2 & 1 \\ 1 & 0 & 3 & 2 \end{bmatrix}, find the cofactors C_{23} and C_{41}.
  2. Give the sign (-1)^{i+j} of positions (3, 4), (5, 2) and (4, 4) in a 5 \times 5 matrix.
  3. \begin{vmatrix} 1 & 0 & 2 & 0 \\ 3 & -1 & 0 & 4 \\ 0 & 0 & 5 & 0 \\ 2 & 1 & 0 & 3 \end{vmatrix}
  4. \begin{vmatrix} 0 & 2 & 0 & 0 \\ 1 & 3 & -2 & 4 \\ 5 & 1 & 0 & 2 \\ 0 & -1 & 0 & 3 \end{vmatrix}
  5. \begin{vmatrix} 2 & 1 & 0 & -1 \\ 0 & 3 & 0 & 2 \\ 1 & 0 & 4 & 0 \\ 3 & 2 & 0 & 1 \end{vmatrix}
  6. Find \begin{vmatrix} 1 & 2 & 0 & 3 \\ 0 & 1 & 4 & 0 \\ 2 & 0 & 1 & 1 \\ 1 & 0 & 0 & 2 \end{vmatrix} twice: along row 4 and down column 2.
  7. Does the system with coefficient matrix \begin{bmatrix} 1 & 2 & 0 & 1 \\ 0 & 1 & 3 & 0 \\ 2 & 0 & 1 & 0 \\ 1 & 1 & 0 & 2 \end{bmatrix} have exactly one solution?

Day 1: 5 by 5 determinants

  1. \begin{vmatrix} 2 & 0 & 0 & 0 & 1 \\ 0 & 3 & 0 & 1 & 0 \\ 0 & 0 & 4 & 0 & 0 \\ 0 & 1 & 0 & 2 & 0 \\ 1 & 0 & 0 & 0 & 3 \end{vmatrix}
  2. \begin{vmatrix} 0 & 0 & 3 & 0 & 0 \\ 1 & 2 & 0 & 0 & 4 \\ 0 & 1 & 0 & 2 & 0 \\ 3 & 0 & 1 & 0 & 1 \\ 0 & 2 & 0 & 1 & 0 \end{vmatrix}

Day 2: triangular matrices

  1. \displaystyle \begin{vmatrix} 1 & 4 & 0 & -3 & 2 \\ 0 & -2 & 7 & 1 & 5 \\ 0 & 0 & 3 & 8 & -1 \\ 0 & 0 & 0 & \frac{1}{3} & 6 \\ 0 & 0 & 0 & 0 & 4 \end{vmatrix}
  2. \begin{vmatrix} 5 & 0 & 0 & 0 \\ 2 & 3 & 0 & 0 \\ -4 & 1 & 0 & 0 \\ 7 & 6 & 9 & 8 \end{vmatrix}
  3. \begin{vmatrix} 0 & 0 & 0 & 2 \\ 0 & 0 & 3 & 1 \\ 0 & -1 & 4 & 5 \\ 6 & 7 & 8 & 9 \end{vmatrix}

Day 2: parameters

  1. Find every k with \begin{vmatrix} 1 & 0 & 2 & 0 \\ 0 & k & 0 & 3 \\ 2 & 0 & 5 & 0 \\ 0 & 3 & 0 & k \end{vmatrix} = 0.
  2. Find every x with \begin{vmatrix} x & -1 & 0 & 0 \\ 0 & x & -1 & 0 \\ 0 & 0 & x & -1 \\ 0 & -6 & 11 & x - 6 \end{vmatrix} = 0.
  3. A design value t enters a force system with coefficient matrix \begin{bmatrix} 2 & 1 & 0 & t \\ 1 & t & 0 & 1 \\ 0 & 3 & 1 & 0 \\ t & 0 & 0 & 2 \end{bmatrix}. For which t does it fail to have exactly one solution?
  4. For A = \begin{bmatrix} 2 & 3 & 0 & 1 \\ 0 & -1 & 4 & 2 \\ 0 & 0 & 5 & -3 \\ 0 & 0 & 0 & 2 \end{bmatrix}, find every \lambda with \det(A - \lambda I) = 0.

Day 2: cost

  1. Expanding a 6 \times 6 matrix with no zeros all the way down to 2 \times 2 determinants, how many 2 \times 2 determinants are there, and how many products in the final sum?
  2. At 10^9 products per second, roughly how long does full cofactor expansion of a 15 \times 15 matrix with no zeros take?

Reasoning

  1. Show that an n \times n matrix with a row of zeros, or a column of zeros, has determinant 0.
  2. Prove by induction on n, expanding along row 1, that \det(cA) = c^n \det A for an n \times n matrix A.
  3. Write out the proof that a lower triangular matrix has determinant equal to the product of its diagonal, expanding along row 1 each time.
  4. Prove by induction that \det A^{T} = \det A, using the theorem that row 1 and column 1 give the same expansion.
  5. Ruiha claims that a 4 \times 4 matrix with a 0 in every row must have determinant 0. Give a counterexample.
  6. Show that the recursive definition, applied to a 2 \times 2 matrix with \det [a] = a, gives ad - bc, and explain why expanding along row 2 gives the same.
Answers
  1. C_{23} = -4 and C_{41} = 38. M_{23} = \begin{vmatrix} 2 & -1 & 3 \\ 0 & 5 & 1 \\ 1 & 0 & 2 \end{vmatrix} is 20 - 1 - 15 = 4 along row 1, and M_{41} = \begin{vmatrix} -1 & 0 & 3 \\ 1 & 2 & 0 \\ 5 & -2 & 1 \end{vmatrix} is -2 - 36 = -38. Both signs are (-1)^5 = -1.
  2. -, -, +. The exponents are 7, 7 and 8.
  3. -35. Row 3: the 5 in a + position, minor \begin{vmatrix} 1 & 0 & 0 \\ 3 & -1 & 4 \\ 2 & 1 & 3 \end{vmatrix} = 1(-3 - 4) = -7, and 5(-7) = -35.
  4. -60. Row 1: the 2 in a - position, minor \begin{vmatrix} 1 & -2 & 4 \\ 5 & 0 & 2 \\ 0 & 0 & 3 \end{vmatrix} = 3(0 + 10) = 30 along its row 3, and -2(30) = -60.
  5. 52. Column 3: the 4 in a + position, minor \begin{vmatrix} 2 & 1 & -1 \\ 0 & 3 & 2 \\ 3 & 2 & 1 \end{vmatrix} = 2(-1) - 1(-6) - 1(-9) = 13, and 4(13) = 52.
  6. 23 both ways. Row 4: -1 \cdot 11 + 2 \cdot 17 = 23, from M_{41} = 11 and M_{44} = 17. Column 2: -2(-12) + 1(-1) = 23, from M_{12} = -12 and M_{22} = -1.
  7. Yes, the determinant is 19 \neq 0. Down column 3, the 3 (sign -) has minor \begin{vmatrix} 1 & 2 & 1 \\ 2 & 0 & 0 \\ 1 & 1 & 2 \end{vmatrix} = -6 and the 1 (sign +) has minor \begin{vmatrix} 1 & 2 & 1 \\ 0 & 1 & 0 \\ 1 & 1 & 2 \end{vmatrix} = 1, so -3(-6) + 1 = 19.
  8. 100. Row 3: 4 times \begin{vmatrix} 2 & 0 & 0 & 1 \\ 0 & 3 & 1 & 0 \\ 0 & 1 & 2 & 0 \\ 1 & 0 & 0 & 3 \end{vmatrix}. Along its row 1: 2 \cdot 3(6 - 1) - 1 \cdot 5 = 25, the second minor \begin{vmatrix} 0 & 3 & 1 \\ 0 & 1 & 2 \\ 1 & 0 & 0 \end{vmatrix} = 5. So 4 \cdot 25 = 100.
  9. -99. Row 1: 3 in a + position times \begin{vmatrix} 1 & 2 & 0 & 4 \\ 0 & 1 & 2 & 0 \\ 3 & 0 & 0 & 1 \\ 0 & 2 & 1 & 0 \end{vmatrix}. Down its column 3: -2 \cdot 22 - 1(-11) = -33, from the minors \begin{vmatrix} 1 & 2 & 4 \\ 3 & 0 & 1 \\ 0 & 2 & 0 \end{vmatrix} = 22 and \begin{vmatrix} 1 & 2 & 4 \\ 0 & 1 & 0 \\ 3 & 0 & 1 \end{vmatrix} = -11. So 3(-33) = -99.
  10. -8. Upper triangular: \displaystyle 1 \cdot (-2) \cdot 3 \cdot \frac{1}{3} \cdot 4 = -8.
  11. 0. Lower triangular with a 0 in position (3, 3), so the diagonal product is 0.
  12. -36. Row 1: the 2 in a - position, minor \begin{vmatrix} 0 & 0 & 3 \\ 0 & -1 & 4 \\ 6 & 7 & 8 \end{vmatrix} = 3(0 + 6) = 18, so -2(18) = -36. The matrix is not triangular; it is the antidiagonal product 2 \cdot 3 \cdot (-1) \cdot 6 with sign +.
  13. k = 3 or k = -3. Row 1: 1 \cdot 5(k^2 - 9) + 2 \cdot (-2)(k^2 - 9) = k^2 - 9, the minors expanded along a row with one nonzero entry.
  14. x = 0, 1, 2, 3. Column 1 holds only the x, so the determinant is x\begin{vmatrix} x & -1 & 0 \\ 0 & x & -1 \\ -6 & 11 & x - 6 \end{vmatrix} = x\big(x(x^2 - 6x + 11) - 6\big), that is, x(x^3 - 6x^2 + 11x - 6), or x(x - 1)(x - 2)(x - 3).
  15. t = 2 or \displaystyle t = -1 \pm \sqrt{2}. Column 3 has only the 1, sign +, and its minor \begin{vmatrix} 2 & 1 & t \\ 1 & t & 1 \\ t & 0 & 2 \end{vmatrix} is 4t - (2 - t) - t^3, which factors as -(t - 2)(t^2 + 2t - 1); t^2 + 2t - 1 = 0 gives \displaystyle t = -1 \pm \sqrt{2}.
  16. \lambda = 2, -1, 5. A - \lambda I is upper triangular, so \det(A - \lambda I) = (2 - \lambda)(-1 - \lambda)(5 - \lambda)(2 - \lambda).
  17. 360 and 720. 6 \cdot 5 \cdot 4 \cdot 3 = 360 determinants of size 2, each giving two products: 6! = 720.
  18. About 22 minutes. 15! = 1{,}307{,}674{,}368{,}000 products take about 1{,}308 seconds.
  19. Expand along the zero row (or column): every term is 0 times a cofactor, so the sum is 0.
  20. For n = 1, \det[ca] = ca. If true for size n - 1, each minor of cA is the corresponding minor of A with every entry times c, so it equals c^{n-1}M_{1j}. Then \det(cA) = \sum_j (-1)^{1+j}(ca_{1j})c^{n-1}M_{1j} = c^n \det A.
  21. Row 1 of a lower triangular A is (a_{11}, 0, \dots, 0), so \det A = a_{11}M_{11}, and M_{11} is lower triangular with diagonal a_{22}, \dots, a_{nn}. Repeat until \det[a_{nn}] = a_{nn}; the result is a_{11}a_{22}\cdots a_{nn}.
  22. For n = 1 it is clear. If true for size n - 1: row 1 of A^{T} is column 1 of A, and the minor of A^{T} at (1, j) is the transpose of the minor of A at (j, 1), so by the hypothesis it has the same value. The sign (-1)^{1+j} is the same as (-1)^{j+1}. So the row-1 expansion of A^{T} equals the column-1 expansion of A, which equals \det A by the theorem.
  23. \begin{bmatrix} 0 & 1 & 0 & 0 \\ 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \end{bmatrix} has determinant 1. Row 1: -1 times the minor \begin{vmatrix} 1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & 1 & 0 \end{vmatrix} = -1, which gives 1.
  24. The minors are the 1 \times 1 determinants d and c, so \det A = a \cdot d + b \cdot (-c), which is ad - bc. Along row 2: c \cdot (-b) + d \cdot a, the same.
kg1128 · updated 2026-10-22 · CC-BY-SA-4.0