LINEAR ALGEBRA • DETERMINANTS

2x2 & 3x3 Determinants — Determinants of 2x2 and 3x3 Matrices

Learn how a single number from a matrix reveals whether equations have solutions and how shapes transform.

Historical Context & Motivation

Imagine you have two equations with two unknowns, and you want to know right away whether they have a unique solution. Hundreds of years ago, mathematicians faced this exact problem. They discovered that you could arrange the numbers from those equations into a grid—a matrix—and then compute a single number from that grid. That single number, called the determinant, tells you whether the system of equations has exactly one solution, no solution, or infinitely many solutions.

~300 BCE
Ancient Chinese Mathematics
The Chinese text The Nine Chapters on the Mathematical Art used rectangular arrays of numbers to solve systems of equations—an early form of matrix thinking.
1683
Seki Takakazu in Japan
Japanese mathematician Seki Takakazu independently developed methods equivalent to determinants to solve systems of linear equations.
1693
Leibniz in Europe
Gottfried Wilhelm Leibniz, co-inventor of calculus, described determinant-like calculations in his letters. He showed how to test whether a system of equations is consistent.
1750
Cramer's Rule
Gabriel Cramer published a formula that uses determinants to solve systems of linear equations directly. This rule is still taught and used today.
1850s
Modern Matrix Theory
Arthur Cayley and James Joseph Sylvester formalized matrix algebra, making determinants a central tool in linear algebra, physics, and engineering.

The big question that determinants answer is: does a system of equations have a unique solution? If the determinant is not zero, the answer is yes. If it equals zero, something special (and sometimes tricky) is happening. Let's see how this works for 2×2 and 3×3 matrices.

Core Principles & Definitions

Before jumping into formulas, let's build a clear picture of what determinants are and why they matter. A matrix is a rectangular grid of numbers arranged in rows and columns. A square matrix has the same number of rows as columns (like 2×2 or 3×3). The determinant is a special number you can calculate only from square matrices.

1

What Is a Determinant?

A determinant is a single number computed from all the entries of a square matrix. We write det(A) or |A| to denote it.
2

Non-Zero = Unique Solution

When det(A) ≠ 0, the system of equations represented by the matrix has exactly one solution. The matrix is called invertible.
3

Zero = Trouble (or Infinite Solutions)

When det(A) = 0, the matrix is called singular. The system either has no solutions or infinitely many solutions.
4

Area & Volume Connection

The absolute value of a 2×2 determinant gives the area of a parallelogram. A 3×3 determinant gives the volume of a parallelepiped (a 3D box-like shape).
5

Sign Tells Orientation

A positive determinant means the transformation preserves orientation. A negative determinant means the transformation flips or reflects the shape.
KEY TAKEAWAY
Think of the determinant like a traffic light for a system of equations. A non-zero determinant is a green light—go ahead, there's a unique answer. A zero determinant is a red light—stop and investigate, because the equations are either contradictory or redundant.

Visual Explanation — The 2×2 Determinant as Area

One of the coolest things about the 2×2 determinant is its geometric meaning. If you take the two rows of a 2×2 matrix and treat them as vectors (arrows) starting from the origin, those two arrows form a parallelogram. The absolute value of the determinant equals the area of that parallelogram. The diagram below shows this in action.

The cyan arrow represents the first row (4, 1) and the violet arrow represents the second row (1, 3). Together they form a parallelogram whose area equals the determinant, which is 11.

Notice what happens if the two vectors point in the same direction (or one is a multiple of the other). The parallelogram collapses into a flat line with zero area. That's exactly when the determinant equals zero—and it means the matrix is singular (no unique solution).

Mathematical Framework

The 2×2 Determinant Formula

For a 2×2 matrix, the formula is beautifully simple. You multiply diagonally and subtract. Here's the general formula.

2×2 DETERMINANT
det(A) = ad − bc
For the matrix A = [[a, b], [c, d]], multiply the main diagonal (a × d) and subtract the off diagonal (b × c). That's it!

The 3×3 Determinant Formula

For a 3×3 matrix, things get a bit more involved, but the idea is the same—you break the problem into smaller pieces. The most common method is called cofactor expansion (also called expansion along the first row). You expand along the first row and compute three 2×2 determinants.

3×3 DETERMINANT (COFACTOR EXPANSION)
det(A) = a(ei − fh) − b(di − fg) + c(dh − eg)
For the matrix A = [[a, b, c], [d, e, f], [g, h, i]]. Each term uses an entry from the first row multiplied by the determinant of the 2×2 matrix left over when you remove that entry's row and column. Notice the alternating signs: +, −, +.

The Rule of Sarrus (A Shortcut for 3×3)

There's a handy visual shortcut called the Rule of Sarrus that only works for 3×3 matrices. You copy the first two columns to the right of the matrix, then add the three "down-right" diagonal products and subtract the three "down-left" diagonal products.

RULE OF SARRUS
det(A) = (aei + bfg + cdh) − (ceg + bdi + afh)
Add the products of the three downward-right diagonals, then subtract the products of the three downward-left diagonals. This gives the same answer as cofactor expansion.
⚠️ Important Note
The Rule of Sarrus only works for 3×3 matrices. Do not try to extend it to 4×4 or larger matrices—it won't give the right answer. For bigger matrices, you must use cofactor expansion or other methods.

Step-by-Step Breakdown — Cofactor Expansion Visualized

Let's visualize exactly how cofactor expansion works for a 3×3 matrix. When you expand along the first row, you "cover up" one row and one column at a time to create three smaller 2×2 matrices called minors. You then multiply each first-row entry by its minor's determinant, applying alternating plus and minus signs.

Each panel shows one term of the cofactor expansion. The crossed-out row and column (faded entries) are removed, leaving a 2×2 minor highlighted in amber. Note the alternating sign pattern: +, −, +.

Here's a simple way to remember the sign pattern. The signs alternate in a checkerboard pattern starting with plus in the top-left corner: +, −, +, −, and so on. For the first row of a 3×3 matrix, this gives you +, −, +. If you expanded along a different row or column, you'd follow the same checkerboard pattern.

Checkerboard Sign Pattern for 3×3 Cofactor Expansion
PositionSign PatternSign PatternSign Pattern
Row 1++
Row 2+
Row 3++

Worked Example

Example 1: 2×2 Determinant

Find the determinant of the 2×2 matrix A = [[3, 7], [2, 5]]
1
Step 1 — Identify the entriesLabel the entries of the matrix: a = 3, b = 7, c = 2, d = 5.
2
Step 2 — Apply the formula det(A) = ad − bcMultiply the main diagonal: a × d = 3 × 5 = 15. Multiply the off diagonal: b × c = 7 × 2 = 14.
3
Step 3 — Subtractdet(A) = 15 − 14 = 1.
det(A) = 1
4
Step 4 — InterpretSince det(A) ≠ 0, this matrix is invertible and the corresponding system of equations has a unique solution. The parallelogram formed by the row vectors has an area of 1.

Example 2: 3×3 Determinant

Find the determinant of the 3×3 matrix B = [[2, 1, 3], [0, 4, 5], [1, 0, 2]]
1
Step 1 — Set up cofactor expansion along Row 1We expand along the first row. The three entries are a = 2, b = 1, c = 3. The sign pattern is +, −, +.
2
Step 2 — Find the minor for a = 2Remove row 1 and column 1. The remaining 2×2 matrix is [[4, 5], [0, 2]]. Its determinant is (4)(2) − (5)(0) = 8 − 0 = 8.
First term: +2 × 8 = +16
3
Step 3 — Find the minor for b = 1Remove row 1 and column 2. The remaining 2×2 matrix is [[0, 5], [1, 2]]. Its determinant is (0)(2) − (5)(1) = 0 − 5 = −5.
Second term: −1 × (−5) = +5
4
Step 4 — Find the minor for c = 3Remove row 1 and column 3. The remaining 2×2 matrix is [[0, 4], [1, 0]]. Its determinant is (0)(0) − (4)(1) = 0 − 4 = −4.
Third term: +3 × (−4) = −12
5
Step 5 — Add all three termsdet(B) = 16 + 5 + (−12) = 16 + 5 − 12 = 9.
det(B) = 9
6
Step 6 — InterpretSince det(B) = 9 ≠ 0, matrix B is invertible. The system of three equations in three unknowns represented by this matrix has exactly one solution.

Comparing Methods & Common Pitfalls

There are multiple ways to compute a 3×3 determinant. Let's compare the two main methods and look at their strengths and weaknesses.

Cofactor Expansion vs. Rule of Sarrus
FeatureCofactor ExpansionRule of Sarrus
Works for which sizes?Any square matrix (2×2, 3×3, 4×4, etc.)Only 3×3 matrices
Ease of useSystematic but can be slow for large matricesQuick visual shortcut for 3×3
Risk of errorForgetting the alternating sign pattern (+, −, +)Misaligning the copied columns
Best forGeneral use; rows/columns with zerosQuick calculations on tests
Generalizes?Yes — works for any n×nNo — 3×3 only

Common Mistakes to Avoid

  • Sign errors: The most common mistake is forgetting the minus sign on the middle term in cofactor expansion. Always write out +, −, + before computing.
  • Wrong diagonal in 2×2: Make sure you do ad − bc, not ab − cd. The main diagonal goes top-left to bottom-right.
  • Arithmetic slips: Take your time with multiplication and subtraction. Double-check each 2×2 determinant before combining.
  • Applying Sarrus to 4×4: The Rule of Sarrus does not generalize beyond 3×3. Use cofactor expansion for larger matrices.
KEY TAKEAWAY
Think of cofactor expansion like unpacking a big box. A 3×3 problem becomes three 2×2 problems, which are easy to solve. This "break it into smaller pieces" strategy is one of the most powerful ideas in all of math.

Connection to Advanced Topics

The 2×2 and 3×3 determinants you've learned are just the beginning. These ideas extend to much larger matrices and connect to many advanced topics in mathematics and science.

From Basics to Advanced Linear Algebra
What You LearnedWhere It Leads
2×2 and 3×3 determinantsn×n determinants using cofactor expansion or row reduction
det(A) ≠ 0 means a unique solutionCramer's Rule — a formula to find each unknown using determinants
Determinant as area/volumeChange of variables in calculus (Jacobian determinant)
det(A) = 0 means singularEigenvalues — solving det(A − λI) = 0 to find special scaling factors
Cofactor expansionMatrix inverses — the adjugate method uses cofactors to find A⁻¹

In physics, determinants appear in quantum mechanics, electromagnetism, and relativity. In computer science, they're used in graphics, machine learning, and optimization. Every time you need to know whether a transformation stretches, compresses, or flips space, the determinant is your go-to tool. By mastering the 2×2 and 3×3 cases, you've built the foundation for all of these applications.

🚀 Looking Ahead
Once you're comfortable with determinants, try learning about matrix inverses and eigenvalues. Both of these powerful concepts rely directly on determinants. If you can compute a 3×3 determinant confidently, you're well on your way!

Practice Problems

PROBLEM 1CONCEPTUAL
If the determinant of a 2×2 matrix equals zero, what does that tell you about the system of equations it represents? Can you explain why the two row vectors of the matrix must be pointing in the same (or exactly opposite) direction?
PROBLEM 2BASIC CALCULATION
Find the determinant of the 2×2 matrix A = [[5, 3], [2, 4]].
PROBLEM 3INTERMEDIATE
Find the determinant of the 3×3 matrix B = [[1, 0, 2], [3, 1, 0], [2, 4, 1]]. Use cofactor expansion along the first row.
PROBLEM 4APPLIED
A triangle has vertices at the points (1, 2), (4, 6), and (3, 1). The area of a triangle with vertices (x₁, y₁), (x₂, y₂), (x₃, y₃) can be found using: Area = ½ |det([[x₁, y₁, 1], [x₂, y₂, 1], [x₃, y₃, 1]])|. Find the area of this triangle.
PROBLEM 5CRITICAL THINKING
Consider the matrix C = [[a, 2a], [3, 6]]. Without computing, explain why det(C) = 0 for any value of a. Then verify your reasoning by computing the determinant using the formula. What does this tell you about the relationship between the two rows?

Lesson Summary

The determinant is a single number computed from a square matrix that reveals critical information. For a 2×2 matrix [[a, b], [c, d]], the formula is det = ad − bc. For a 3×3 matrix, you use cofactor expansion to break the problem into three 2×2 determinants with alternating signs (+, −, +), or the Rule of Sarrus as a visual shortcut.

Geometrically, the absolute value of a 2×2 determinant gives the area of the parallelogram formed by the row vectors, and a 3×3 determinant gives the volume of a parallelepiped. When the determinant is non-zero, the matrix is invertible and the system has a unique solution. When it equals zero, the matrix is singular—either the equations are contradictory or redundant. Mastering these computations prepares you for Cramer's Rule, matrix inverses, and eigenvalues.

Varsity Tutors • Linear Algebra • 2x2 & 3x3 Determinants