Determinant of a 3×3 Matrix via Cofactor Expansion

April 13, 2026

Problem

Compute det([[1,2,3],[4,5,6],[7,8,0]]) by cofactor expansion along row 1. Show each minor determinant.

Explanation

Cofactor expansion — the recipe

For any row ii (or column jj) of an n×nn \times n matrix AA: detA=j=1n(1)i+jAijMij\det A = \sum_{j=1}^{n} (-1)^{i+j} A_{ij} M_{ij}

where MijM_{ij} is the minor — the determinant of the (n1)×(n1)(n-1) \times (n-1) submatrix obtained by deleting row ii and column jj.

The sign factor (1)i+j(-1)^{i+j} follows the checkerboard pattern: (+++++)\begin{pmatrix} + & - & + \\ - & + & - \\ + & - & + \end{pmatrix}

Step-by-step — expand along row 1

A=(123456780)A = \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 0 \end{pmatrix}

Step 1 — Minor M11M_{11}: delete row 1 and column 1. M11=det(5680)=(5)(0)(6)(8)=48M_{11} = \det \begin{pmatrix} 5 & 6 \\ 8 & 0 \end{pmatrix} = (5)(0) - (6)(8) = -48

Step 2 — Minor M12M_{12}: delete row 1 and column 2. M12=det(4670)=(4)(0)(6)(7)=42M_{12} = \det \begin{pmatrix} 4 & 6 \\ 7 & 0 \end{pmatrix} = (4)(0) - (6)(7) = -42

Step 3 — Minor M13M_{13}: delete row 1 and column 3. M13=det(4578)=(4)(8)(5)(7)=3235=3M_{13} = \det \begin{pmatrix} 4 & 5 \\ 7 & 8 \end{pmatrix} = (4)(8) - (5)(7) = 32 - 35 = -3

Step 4 — Combine with signs: detA=(+1)(1)(48)+(1)(2)(42)+(+1)(3)(3)\det A = (+1)(1)(-48) + (-1)(2)(-42) + (+1)(3)(-3) =48+849= -48 + 84 - 9 =27= \boxed{27}

Choosing the best row or column

Cofactor expansion works along any row or column. Pick the one with the most zeros to save work. If a row is (0,0,5)(0, 0, 5), only one of its three minors contributes — huge time saver.

Row reduction as a faster alternative

For matrices 3×3\ge 3 \times 3, row reducing to upper triangular form is often faster. The determinant of an upper triangular matrix is the product of its diagonal entries. Track row operation effects:

  • Row swap: flip sign of running determinant.
  • Scale row by cc: multiply running determinant by cc.
  • Add multiple of a row to another: no change to determinant.

Properties (reprise)

  • detA=0\det A = 0 iff rows (or columns) are linearly dependent.
  • det(AT)=detA\det(A^T) = \det A — so you can always expand along a column too.
  • det(AB)=det(A)det(B)\det(AB) = \det(A) \det(B).
  • det(An)=(detA)n\det(A^n) = (\det A)^n.

Common mistakes

  • Dropping the sign pattern. The (1)i+j(-1)^{i+j} factor is essential: +,,+,,+, -, +, -, \ldots
  • Computing minors wrong. To delete row ii, column jj, cross them both out and use what remains.
  • Expanding along a random row. Pick a row or column with zeros — much less arithmetic.

Try it in the visualization

Each of the three 2×22 \times 2 minors is highlighted in turn as you step through the expansion. Signs alternate, values are shown, and the running sum converges to the final determinant.

Interactive Visualization

Parameters

0.00
3.00
Row 1
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Determinant of a 3×3 Matrix via Cofactor Expansion | MathSpin