2.6.8Matrices & Determinants — Introduction

Determinant of 3×3 matrix — cofactor expansion

2,362 words11 min readdifficulty · medium

Think of it like this: you're measuring the "signed volume" of a parallelepiped in 3D space. Instead of computing it all at once, you slice it along one direction and add up contributions from each slice.

Figure — Determinant of 3×3 matrix — cofactor expansion

What is cofactor expansion?

The cofactor CijC_{ij} of element aija_{ij} is: Cij=(1)i+jMijC_{ij} = (-1)^{i+j} M_{ij} where MijM_{ij} is the minor (determinant of the 2×2 matrix obtained by deleting row ii and column jj).

The determinant is: det(A)=j=13aijCij(expanding along row i)\det(A) = \sum_{j=1}^{3} a_{ij} C_{ij} \quad \text{(expanding along row } i\text{)} or det(A)=i=13aijCij(expanding along column j)\det(A) = \sum_{i=1}^{3} a_{ij} C_{ij} \quad \text{(expanding along column } j\text{)}

WHY does this work?

The determinant measures how much a linear transformation scales volumes. When we expand along a row, we're expressing the transformation as a linear combination of simpler transformations (the 2×2 minors), weighted by the elements of that row. The alternating signs (1)i+j(-1)^{i+j} ensure the correct orientation (positive/negative volume).

Derivation from first principles:

Start with the permutation definition of determinant: det(A)=σS3sgn(σ)a1σ(1)a2σ(2)a3σ(3)\det(A) = \sum_{\sigma \in S_3} \text{sgn}(\sigma) \, a_{1\sigma(1)} a_{2\sigma(2)} a_{3\sigma(3)}

Group terms by the first row element they contain:

  • Terms with a11a_{11}: all permutations starting with column 1
  • Terms with a12a_{12}: all permutations starting with column 2
  • Terms with a13a_{13}: all permutations starting with column 3

For terms with a11a_{11}, after factoring it out, the remaining product involves only elements from rows 2,3 and columns 2,3—exactly the minor M11M_{11}. The sign from the permutation gives (1)1+1=+1(-1)^{1+1} = +1.

Similarly for a12a_{12} and a13a_{13}, yielding: det(A)=a11(1)1+1M11+a12(1)1+2M12+a13(1)1+3M13\det(A) = a_{11}(-1)^{1+1}M_{11} + a_{12}(-1)^{1+2}M_{12} + a_{13}(-1)^{1+3}M_{13}

This is cofactor expansion along row 1.

Sign pattern (checkerboard): [+++++]\begin{bmatrix} + & - & + \\ - & + & - \\ + & - & + \end{bmatrix}

The sign for position (i,j)(i,j) is (1)i+j(-1)^{i+j}.

HOW to compute: Step-by-step

Step 1: Choose a row or column (pick one with zeros to simplify).

Step 2: For each element in that row/column:

  • Determine the sign using (1)i+j(-1)^{i+j} (or use the checkerboard pattern)
  • Cross out its row and column to get the 2×2 minor
  • Compute the 2×2 determinant
  • Multiply: element × sign × minor

Step 3: Sum all three contributions.

Why row 1? We could pick any row/column—let's demonstrate the standard approach first.

Expanding along row 1: det(A)=2C11+(3)C12+1C13\det(A) = 2 \cdot C_{11} + (-3) \cdot C_{12} + 1 \cdot C_{13}

Compute C11C_{11}:

  • Sign: (1)1+1=+1(-1)^{1+1} = +1
  • Minor M11M_{11}: delete row 1, column 1: M11=0642=0264=24M_{11} = \begin{vmatrix} 0 & 6 \\ 4 & 2 \end{vmatrix} = 0 \cdot 2 - 6 \cdot 4 = -24
  • C11=(+1)(24)=24C_{11} = (+1)(-24) = -24

Why this step? We're isolating the contribution of element a11=2a_{11} = 2 to the overall volume scaling. The minor captures how the remaining2D "slice" behaves.

Compute C12C_{12}:

  • Sign: (1)1+2=1(-1)^{1+2} = -1
  • Minor M12M_{12}: delete row 1, column 2: M12=5612=526(1)=10+6=16M_{12} = \begin{vmatrix} 5 & 6 \\ -1 & 2 \end{vmatrix} = 5 \cdot 2 - 6 \cdot (-1) = 10 + 6 = 16
  • C12=(1)(16)=16C_{12} = (-1)(16) = -16

Compute C13C_{13}:

  • Sign: (1)1+3=+1(-1)^{1+3} = +1
  • Minor M13M_{13}: delete row 1, column 3: M13=5014=540(1)=20M_{13} = \begin{vmatrix} 5 & 0 \\ -1 & 4 \end{vmatrix} = 5 \cdot 4 - 0 \cdot (-1) = 20
  • C13=(+1)(20)=20C_{13} = (+1)(20) = 20

Final sum: det(A)=2(24)+(3)(16)+1(20)=48+48+20=20\det(A) = 2(-24) + (-3)(-16) + 1(20) = -48 + 48 + 20 = 20

Why column 2? Notice column 2 has TWO zeros! This means we only compute ONE minor instead of three.

Expanding along column 2: det(B)=0C12+5C22+0C32=5C22\det(B) = 0 \cdot C_{12} + 5 \cdot C_{22} + 0 \cdot C_{32} = 5 \cdot C_{22}

Compute C22C_{22}:

  • Sign: (1)2+2=+1(-1)^{2+2} = +1
  • Minor M22M_{22}: delete row 2, column 2: M22=3247=3724=218=13M_{22} = \begin{vmatrix} 3 & 2 \\ 4 & 7 \end{vmatrix} = 3 \cdot 7 - 2 \cdot 4 = 21 - 8 = 13
  • C22=(+1)(13)=13C_{22} = (+1)(13) = 13

Final: det(B)=513=65\det(B) = 5 \cdot 13 = 65

Why this strategy? Zeros eliminate entire terms, drastically reducing computation. Always scan for the row/column with the most zeros.

Expanding along column 3: det(C)=3C13+6C23+9C33\det(C) = 3 \cdot C_{13} + 6 \cdot C_{23} + 9 \cdot C_{33}

Compute C13C_{13}:

  • Sign: (1)1+3=+1(-1)^{1+3} = +1
  • M13=4578=3235=3M_{13} = \begin{vmatrix} 4 & 5 \\ 7 & 8 \end{vmatrix} = 32 - 35 = -3
  • C13=+1(3)=3C_{13} = +1 \cdot (-3) = -3

Compute C23C_{23}:

  • Sign: (1)2+3=1(-1)^{2+3} = -1
  • M23=1278=814=6M_{23} = \begin{vmatrix} 1 & 2 \\ 7 & 8 \end{vmatrix} = 8 - 14 = -6
  • C23=1(6)=6C_{23} = -1 \cdot (-6) = 6

Compute C33C_{33}:

  • Sign: (1)3+3=+1(-1)^{3+3} = +1
  • M33=1245=58=3M_{33} = \begin{vmatrix} 1 & 2 \\ 4 & 5 \end{vmatrix} = 5 - 8 = -3
  • C33=+1(3)=3C_{33} = +1 \cdot (-3) = -3

Final: det(C)=3(3)+6(6)+9(3)=9+3627=0\det(C) = 3(-3) + 6(6) + 9(-3) = -9 + 36 - 27 = 0

Why zero? This matrix has linearly dependent rows: notice that row 3=2row 2row 1\text{row 3} = 2 \cdot \text{row 2} - \text{row 1}, since 2(4,5,6)(1,2,3)=(7,8,9)2(4,5,6) - (1,2,3) = (7,8,9). Because the three rows are linearly dependent, they lie in a 2D plane (a flat sheet), so the parallelepiped they span has zero volume. Zero determinant means the transformation collapses 3D space down to 2D.

Common mistakes

Why it feels right: The formula looks simpler without the signs.

The fix: The signs (1)i+j(-1)^{i+j} are not optional—they encode whether each contribution adds or subtracts from the total signed volume. Use the checkerboard pattern to remember.

Why it feels right: It's easy to confuse the indices, especially when working quickly.

The fix: Double-check: "I'm finding the cofactor of aija_{ij}, so I cross out row ii AND column jj."

The truth: All expansions give the same determinant—it's a unique property of the matrix. Choosing different rows/columns is just a computational strategy.

Why it feels wrong: Different rows produce different intermediate calculations, making it seem like the result should differ.

The fix: The determinant is invariant. Different paths, same destination.

Correct: abcd=adbc\begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc

The fix: Remember "down-right minus up-left" or "main diagonal minus anti-diagonal."

Practice problems

  1. Compute det(A)\det(A) for A=[132104251]A = \begin{bmatrix} 1 & 3 & 2 \\ -1 & 0 & 4 \\ 2 & 5 & 1 \end{bmatrix} by expanding along row 2.

  2. Find det(B)\det(B) where B=[200310546]B = \begin{bmatrix} 2 & 0 & 0 \\ 3 & 1 & 0 \\ 5 & 4 & 6 \end{bmatrix} (lower-triangular matrix—expand along row 1 and notice the pattern: the determinant equals the product of diagonal entries 216=122 \cdot 1 \cdot 6 = 12).

  3. Show that expanding A=[123045006]A = \begin{bmatrix} 1 & 2 & 3 \\ 0 & 4 & 5 \\ 0 & 0 & 6 \end{bmatrix} along column 1 gives the same result as expanding along row 1.

Recall Explain it to a 12-year-old

Imagine you have a 3D box (a parallelepiped) that's been stretched and squished by a transformation. The determinant tells you "how much bigger or smaller did the box become?"

For a big3×3 matrix, instead of computing this all at once, we use a clever trick: we pick one row, and for each number in that row, we:

  1. Cover up its row and column with your hands
  2. Look at the remaining 2×2 grid and compute its determinant (which you already know!)
  3. Multiply that 2×2 determinant by the original number
  4. Add a + or − sign based on a checkerboard pattern

Then you add up all three pieces. The magic is that no matter which row you pick, you get the same answer! It's like climbing a mountain: different paths, same summit.

The checkerboard pattern of signs is like the "handedness" of the box—sometimes a transformation flips the box inside-out, and the signs keep track of that.

Connections


#flashcards/maths

What is the cofactor CijC_{ij} of element aija_{ij} in a matrix? :: Cij=(1)i+jMijC_{ij} = (-1)^{i+j} M_{ij} where MijM_{ij} is the minor (determinant of the matrix with row ii and column jj deleted)

What is the formula for determinant of 3×3 matrix by cofactor expansion along row 1?
det(A)=a11C11+a12C12+a13C13\det(A) = a_{11}C_{11} + a_{12}C_{12} + a_{13}C_{13} where each cofactor includes the sign (1)i+j(-1)^{i+j} and the 2×2 minor

What is the sign pattern (checkerboard) for cofactors in a 3×3 matrix? :: [+++++]\begin{bmatrix} + & - & + \\ - & + & - \\ + & - & + \end{bmatrix}, following (1)i+j(-1)^{i+j}

Why choose a row or column with zeros when computing cofactor expansion?
Because any term with a zero element vanishes (0×Cij=00 \times C_{ij} = 0), eliminating the need to compute those minors—saves work
Does cofactor expansion give different determinants when expanding along different rows?
No, the determinant is unique—all rows and columns give the same result; choosing different ones is just a computational strategy
If A=[201350104]A = \begin{bmatrix} 2 & 0 & 1 \\ 3 & 5 & 0 \\ 1 & 0 & 4 \end{bmatrix}, which row/column minimizes computation?
Column 2 or row 2 (both have two zeros), requiring only one minor calculation

What does M23M_{23} mean for a 3×3 matrix? :: The minor M23M_{23} is the determinant of the 2×2 matrix obtained by deleting row 2 and column 3

How do you compute det[abcd]\det\begin{bmatrix} a & b \\ c & d \end{bmatrix}?
adbcad - bc (main diagonal product minus anti-diagonal product)
What is the geometric meaning of the determinant of a 3×3 matrix?
It is the signed volume of the parallelepiped spanned by the three row (or column) vectors—equivalently, the factor by which the linear transformation scales volumes; the sign indicates whether orientation is preserved (+) or flipped (−)
If det(A)=0\det(A) = 0 for a 3×3 matrix, what does this mean geometrically?
The three vectors are coplanar (linearly dependent), so they span only a 2D plane, not a 3D volume—the transformation collapses space

Concept Map

group by row 1 terms

reduces 3x3 to three 2x2

delete row i and col j

times sign

checkerboard pattern

weighted by a_ij

expand along it

pick one with zeros

measures

ensures correct

sliced into

Permutation definition of det

Cofactor expansion

det of 3x3 matrix

Minor M_ij

2x2 determinant

Cofactor C_ij

Sign (-1)^i+j

Choose row or column

Simplify computation

Signed volume scaling

Orientation

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Cofactor expansion ek aisi technique hai jisse hum 3×3 matrix ka determinant nikalte hain, woh bhi ek step-by-step tareke se. Socho ki tumhare pas ek bada 3×3 grid hai numbers ka. Direct formula toh hai nahi jaise 2×2 mein tha, to

Go deeper — visual, from zero

Test yourself — Matrices & Determinants — Introduction

Connections