LINEAR ALGEBRA • DETERMINANTS

Cofactor Expansion & Minors — Cofactor Expansion and Minors

Learn how to break down any matrix determinant into smaller, simpler pieces you can solve step by step.

Historical Context & Motivation

Long before computers existed, mathematicians needed a reliable way to solve systems of equations with many unknowns. Imagine you have three equations with three different variables — how do you untangle all of them at once? A single number called the determinant holds the key. It tells you whether a system of equations has a unique solution and helps you find that solution. Over centuries, brilliant thinkers developed a method called cofactor expansion to calculate determinants of any size matrix by breaking them into smaller, manageable chunks.

1693
Leibniz's Early Determinants
German mathematician Gottfried Wilhelm Leibniz introduced the idea of determinants while solving systems of linear equations. He wrote out patterns of products from a grid of numbers — the earliest form of what we now call a determinant.
1750
Cramer's Rule Published
Gabriel Cramer published a formula for solving systems of equations using determinants. His rule showed that each variable equals a ratio of two determinants, making the concept practically useful.
1812
Cauchy Formalizes the Theory
Augustin-Louis Cauchy wrote a landmark paper organizing all known results about determinants. He introduced the term 'determinant' and laid the groundwork for the cofactor expansion formula we use today.
1841
Jacobi Popularizes Minors and Cofactors
Carl Gustav Jacob Jacobi developed the systematic use of minors and cofactors. His notation and methods became the standard way to teach and compute determinants of large matrices.

The central question these mathematicians tackled was: How can we compute the determinant of a large matrix without getting lost in a sea of numbers? Their answer — cofactor expansion — lets you pick any row or column, then reduce the problem to smaller determinants. This section-by-section approach is still the standard technique taught in every linear algebra course today.

Core Principles & Definitions

Before you can use cofactor expansion, you need to understand three key vocabulary words. Think of a matrix as a rectangular grid of numbers arranged in rows and columns. The determinant is a special single number that you calculate from a square matrix (same number of rows and columns). It tells you important things — for example, whether the matrix can be 'inverted' or whether a system of equations has exactly one solution.

1

Minor

The minor Mij is the determinant of the smaller matrix you get after deleting row i and column j from the original matrix. You literally cross out one row and one column, then find the determinant of what's left.
2

Cofactor

The cofactor Cij is the minor Mij multiplied by a sign factor: (−1)i+j. This sign alternates in a checkerboard pattern of + and − across the matrix.
3

Cofactor Expansion

To find a determinant, pick any single row or column. Multiply each entry by its cofactor, then add all those products together. This process is called cofactor expansion (also known as Laplace expansion). You always get the same answer no matter which row or column you choose.
4

Sign Pattern

The signs in cofactor expansion follow a checkerboard pattern: the top-left entry is always +, then signs alternate. For a 3×3 matrix, the first row has signs +, −, +. This pattern is determined by (−1)i+j.
KEY TAKEAWAY
Think of cofactor expansion like disassembling a big puzzle. You can't solve a giant jigsaw all at once, so you break it into smaller sections. Each smaller section (a minor) is easier to solve on its own. Once you solve all the small sections, you combine them — with the right signs — to get the final answer. No matter which edge of the puzzle you start from (which row or column you pick), you'll complete the same picture.

Visual Explanation

The diagram below shows how cofactor expansion works on a 3×3 matrix. When you expand along the first row, you take each entry in that row, cross out its row and column to get a 2×2 minor, apply the checkerboard sign, and then add up the results.

The diagram shows a 3×3 matrix being expanded along its first row. The highlighted entries a, b, c are each multiplied by the determinant of the 2×2 matrix that remains after crossing out their row and column. The checkerboard on the right shows the alternating sign pattern determined by (−1)i+j.

Notice how each entry in the first row pairs with a smaller 2×2 matrix. The entry a pairs with the 2×2 matrix in the bottom-right corner (e, f, h, i) because row 1 and column 1 have been removed. The entry b pairs with (d, f, g, i) because row 1 and column 2 are removed, and it gets a negative sign from the checkerboard. You can expand along any row or column — picking a row or column with zeros makes the calculation faster because those terms vanish.

Mathematical Framework

Let's build up the formulas step by step, starting with the smallest case and working our way up.

2×2 DETERMINANT
det(A) = a₁₁ × a₂₂ − a₁₂ × a₂₁
For a 2×2 matrix [[a₁₁, a₁₂], [a₂₁, a₂₂]], multiply the two diagonal entries and subtract the product of the off-diagonal entries. This is the simplest determinant.
MINOR
M_ij = det(matrix with row i and column j deleted)
Mij is the minor of entry aij. You remove row i and column j from the original matrix, then compute the determinant of the remaining smaller matrix.
COFACTOR
C_ij = (−1)^(i+j) × M_ij
The cofactor Cij equals the minor multiplied by a sign factor. When i + j is even, the sign is positive (+). When i + j is odd, the sign is negative (−). This creates the alternating checkerboard pattern.
COFACTOR EXPANSION ALONG ROW i
det(A) = a_i1 × C_i1 + a_i2 × C_i2 + … + a_in × C_in
To find the determinant of an n×n matrix A, pick any row i. Multiply each entry aij in that row by its cofactor Cij, then add up all n products. You can also expand along any column using the same idea.
💡 Pro Tip
Always look for the row or column with the most zeros before expanding. Every zero entry means one less minor you have to compute — saving you a lot of work!

Step-by-Step Breakdown

Let's walk through the cofactor expansion process visually with a concrete numeric example. The diagram below traces every step for a 3×3 matrix so you can see exactly how the numbers flow.

This diagram traces the full cofactor expansion of the matrix [[2, 1, 3], [0, 4, 5], [1, 0, 2]] along row 1, showing each minor and cofactor computation. The bottom panel confirms you get the same result (9) when expanding along row 2, where the zero entry saves work.

The key insight from this diagram is that every row or column gives the same determinant. When you expand along row 2, the first entry is 0, so you don't even need to compute that minor. This is why smart row or column choice can save you half the work — or more. In practice, always scan the matrix for the row or column with the most zeros before you begin.

Four-step recipe for cofactor expansion
StepWhat You DoExample
1. Choose a row or columnPick the one with the most zerosRow 2 = [0, 4, 5] has one zero
2. Find each minorCross out that entry's row and column; compute the smaller determinantM₂₂ = det [[2,3],[1,2]] = 1
3. Apply the signUse (−1)i+j to get the cofactorC₂₂ = (−1)⁴ × 1 = +1
4. Multiply and addMultiply each entry by its cofactor, then sum all products0(…) + 4(1) + (−1)5(−1) = 9

Worked Example

Let's compute the determinant of a 3×3 matrix from scratch, showing every single step so nothing feels like a mystery.

Find the determinant of A = [[3, 0, 2], [1, −1, 4], [5, 2, 0]]
1
Step 1 — Choose the best row or columnScan the matrix for zeros. Row 1 has one zero (position a₁₂ = 0). Column 3 has one zero (position a₃₃ = 0). Both have one zero, so either works. Let's expand along row 1: [3, 0, 2].
2
Step 2 — Compute the first cofactor termEntry a₁₁ = 3, with sign (−1)1+1 = (−1)² = +1. Cross out row 1 and column 1 to get the minor M₁₁ = det [[−1, 4], [2, 0]] = (−1)(0) − (4)(2) = 0 − 8 = −8. So the first term is +3 × (−8) = −24.
Term 1 = −24
3
Step 3 — Compute the second cofactor termEntry a₁₂ = 0. Since this entry is 0, the entire term equals 0 × C₁₂ = 0. We can skip computing the minor entirely!
Term 2 = 0 (zero entry — skipped!)
4
Step 4 — Compute the third cofactor termEntry a₁₃ = 2, with sign (−1)1+3 = (−1)⁴ = +1. Cross out row 1 and column 3 to get M₁₃ = det [[1, −1], [5, 2]] = (1)(2) − (−1)(5) = 2 − (−5) = 2 + 5 = 7. So the third term is +2 × 7 = 14.
Term 3 = +14
5
Step 5 — Add all termsdet(A) = Term 1 + Term 2 + Term 3 = (−24) + 0 + 14 = −10.
det(A) = −10
✔️ Check Your Work
A great way to verify your answer is to expand along a different row or column. If you expand along column 3 = [2, 4, 0], you should also get −10. The zero in position (3,3) means you only need to compute two minors instead of three.

Strengths & Limitations

Cofactor expansion is a powerful tool, but it's not always the best choice for every situation. Understanding when to use it — and when other methods might be faster — will make you a more efficient problem solver.

When to use cofactor expansion vs. other methods
FeatureStrength ✅Limitation ⚠️
Works for any size matrixCan handle 2×2, 3×3, 4×4, or any n×n matrix using the same methodBecomes very slow for large matrices (5×5 and above) because the number of terms explodes
Flexibility of row/column choiceYou can pick any row or column, so choosing one with zeros saves effortIf no row or column has zeros, every term must be computed
Good for symbolic/variable matricesWorks perfectly when matrix entries contain variables like x or yAlgebraic expressions can get messy for larger matrices
Conceptual clarityEasy to understand and teach — clearly shows the recursive structure of determinantsRow reduction methods are usually faster for computation with numbers
WHEN TO USE COFACTOR EXPANSION
Think of cofactor expansion as a Swiss Army knife: it's versatile and works in any situation, but it's not always the fastest tool for the job. For small matrices (2×2 or 3×3), it's perfect. For matrices with lots of zeros, it's efficient because zero entries eliminate entire terms. For very large matrices with all nonzero entries, other methods like row reduction are usually faster — just like you'd use a power saw instead of a pocket knife to cut a large board.

Connection to Advanced Topics

Cofactor expansion is not just a computation technique — it's a gateway to several powerful ideas in linear algebra. Understanding minors and cofactors helps you tackle more advanced topics that you'll encounter in future math courses.

How cofactor expansion connects to future topics
This LessonWhere It Leads
Cofactor expansion computes the determinantCramer's Rule uses determinants to solve systems of equations by replacing columns with the answer vector
Cofactors Cij form a patternThe adjugate matrix (transpose of the cofactor matrix) is used to find the inverse: A⁻¹ = (1/det A) × adj(A)
det(A) = 0 means the matrix is singularThis connects to eigenvalues: you solve det(A − λI) = 0 to find eigenvalues, using cofactor expansion on the resulting matrix
Minors are determinants of submatricesThe rank of a matrix can be determined by finding the largest nonzero minor

As you continue studying linear algebra, you'll see cofactors appear again and again. The skills you're building now — crossing out rows and columns, tracking signs, computing 2×2 determinants — form the foundation for understanding matrix inverses, eigenvalue problems, and much more. Mastering cofactor expansion is like learning multiplication tables: it's a fundamental skill that makes everything else in the subject easier.

Practice Problems

PROBLEM 1CONCEPTUAL
In the cofactor expansion formula, what does the factor (−1)i+j do, and why is it important? What would happen if you forgot to include it?
PROBLEM 2BASIC CALCULATION
Find the determinant of the 2×2 matrix A = [[5, 3], [2, 7]] using the formula det(A) = a₁₁a₂₂ − a₁₂a₂₁.
PROBLEM 3INTERMEDIATE
Use cofactor expansion along the first row to find the determinant of B = [[1, 0, −2], [3, 1, 4], [0, 5, −1]].
PROBLEM 4APPLIED
A robot arm has three joints whose configuration is described by the matrix C = [[2, 0, 0], [1, 3, 0], [4, 5, 6]]. This is a lower triangular matrix (all entries above the diagonal are zero). Use cofactor expansion to find det(C), and explain why the answer makes sense by looking at the diagonal.
PROBLEM 5CRITICAL THINKING
Consider the matrix D = [[a, b, c], [0, 0, 0], [g, h, i]] where the entire second row is zeros. Without computing any minors, explain why det(D) must equal 0. Then generalize: what happens to the determinant whenever an entire row (or column) consists of zeros?

Summary & Review

Cofactor expansion (also called Laplace expansion) is a method for computing the determinant of any square matrix by breaking it into smaller pieces. You pick any row or column, then multiply each entry by its cofactor — which is the minor (the determinant of the submatrix left after deleting that entry's row and column) times a sign factor (−1)^(i+j) from the checkerboard pattern. You add up all these products to get the determinant.

Key strategies: always choose the row or column with the most zeros to minimize computation. Remember that a 2×2 determinant is the base case: ad − bc. Cofactor expansion works for any n×n matrix, making it a universal tool. It also leads to important advanced topics like Cramer's Rule, the adjugate matrix, and eigenvalues.

Varsity Tutors • Linear Algebra • Cofactor Expansion & Minors