Skip to content

Determinants by cofactor expansion

Compute 2 × 2 and 3 × 3 determinants, expand a determinant along any row or column with the cofactor signs, and use zeros and triangular form to shorten the work.

It opens on

The 2 × 2 inverse needs ad − bc ≠ 0. What single number plays that role for the 3 × 3 matrix A = [[2, 1, 3], [0, 4, 1], [1, 0, 2]], and how do we compute it from 2 × 2 pieces?

Why it matters

The determinant decides whether a matrix is invertible and how it scales area and volume; cofactor expansion is the definition that works for every size and the tool for small matrices by hand.

Good to know first

  • The inverse matrix: the 2 × 2 inverse is 1/(ad − bc) times [[d, −b], [−c, a]]
  • LU factorization: upper and lower triangular matrices
  • Gaussian elimination: rows, columns and entries aᵢⱼ of a matrix

Step by step

  1. 2 × 2 determinants and minors

    Compute ad − bc, read it as the signed area of the columns' parallelogram, and form the minor Mᵢⱼ of a 3 × 3 matrix.

    For [[3, 1], [1, 2]], det = 3·2 − 1·1 = 5, and 5 is the area of the parallelogram on the columns (3, 1) and (1, 2).

    A common mix-up

    The determinant of a 2 × 2 matrix is ad + bc, or ab − cd.

    In fact: It is the main diagonal product minus the other diagonal product; for [[3, 1], [1, 2]] that is 6 − 1 = 5, the parallelogram's area.

  2. Expanding along a row or column

    Turn minors into cofactors with the sign pattern and expand det A along any row or column.

    With M₁₁ = 8, M₁₂ = −1, M₁₃ = −4 the cofactors are C₁₁ = 8, C₁₂ = +1, C₁₃ = −4.

    A common mix-up

    Cofactor expansion is just the entries times their minors, added.

    In fact: Each term needs its checkerboard sign; along row 2 the term 1·M₂₃ = −1 must become 1·C₂₃ = +1.

  3. Zeros and triangular matrices

    Expand repeatedly down a column of zeros to show that a triangular determinant is the product of its diagonal.

    Expand det U down column 1: only the 2 survives, so det U = 2·det [[3, 4, 2], [0, −1, 6], [0, 0, 4]].

    A common mix-up

    Every determinant is the product of the diagonal entries.

    In fact: Only a triangular one; A of S1 has diagonal product 2·4·2 = 16 but det A = 5.

Try it

Find the minor M₃₁ of A = [[2, 1, 3], [0, 4, 1], [1, 0, 2]].Answer

Det [[1, 3], [4, 1]] = 1 − 12 = −11

Hint: Delete row 3 and column 1

Expand det A down column 1, using C₁₁ = 8 and the minor M₃₁ = −11 from S1's try.Answer

2·8 + 0 + 1·(−11) = 5

Hint: The sign at (3, 1) is plus

Find det [[3, 0, 0], [4, −2, 0], [1, 6, 5]].Answer

3·(−2)·5 = −30

Hint: It is lower triangular

What is det [[1, 3], [2, 6]], and what does its parallelogram look like?Answer

6 − 6 = 0; the columns lie on one line, so the parallelogram is flat.

Change one thing, expand along row 2 = (0, 4, 1) instead: which terms do you need, and what do you get?Answer

Only 4·C₂₂ + 1·C₂₃ = 4·1 + 1·1 = 5, since C₂₂ = +det [[2, 3], [1, 2]] = 1 and C₂₃ = −det [[2, 1], [1, 0]] = 1

Determinants by cofactor expansion

30 minutes every month. No card.