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.

Linear Algebra emblem with a matrix grid, a variable, and three-dimensional axes.
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

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.

SECTION 2

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.

SECTION 3

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.

2×2 Determinant = Area of ParallelogramVector 1: (4, 1)Vector 2: (1, 3)Matrix A =| 4 1 || 1 3 |det(A) = (4)(3) − (1)(1)det(A) = 12 − 1 = 11Area of parallelogram = 11Shaded area = |det(A)|
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).

SECTION 4

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−bcdet(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)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)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.

SECTION 5

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.

Cofactor Expansion Along the First RowEach first-row entry × its 2×2 minor, with alternating signs+ a × minorabcdefghi+a(ei − fh)− b × minorabcdefghi−b(di − fg)+ c × minorabcdefghi+c(dh − eg)Final Formula:det(A) = a(ei−fh) − b(di−fg) + c(dh−eg)Legend:1st entry (positive)2nd entry (negative)3rd entry (positive)Minor entries
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.

PositionSign PatternSign PatternSign Pattern
Row 1+−+
Row 2−+−
Row 3+−+

Checkerboard Sign Pattern for 3×3 Cofactor Expansion

SECTION 6

Worked Example

Example 1: 2×2 Determinant

Find the determinant of the 2×2 matrix A = [[3, 7], [2, 5]]

  1. 1

    Step 1 — Identify the entries

    Label the entries of the matrix: a = 3, b = 7, c = 2, d = 5.
  2. 2

    Step 2 — Apply the formula det(A) = ad − bc

    Multiply the main diagonal: a × d = 3 × 5 = 15. Multiply the off diagonal: b × c = 7 × 2 = 14.
  3. 3

    Step 3 — Subtract

    det(A) = 15 − 14 = 1.
    det(A) = 1
  4. 4

    Step 4 — Interpret

    Since 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. 1

    Step 1 — Set up cofactor expansion along Row 1

    We expand along the first row. The three entries are a = 2, b = 1, c = 3. The sign pattern is +, −, +.
  2. 2

    Step 2 — Find the minor for a = 2

    Remove 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. 3

    Step 3 — Find the minor for b = 1

    Remove 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. 4

    Step 4 — Find the minor for c = 3

    Remove 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. 5

    Step 5 — Add all three terms

    det(B) = 16 + 5 + (−12) = 16 + 5 − 12 = 9.
    det(B) = 9
  6. 6

    Step 6 — Interpret

    Since det(B) = 9 ≠ 0, matrix B is invertible. The system of three equations in three unknowns represented by this matrix has exactly one solution.

SECTION 7

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.

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

Cofactor Expansion vs. Rule of Sarrus

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.

SECTION 8

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.

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⁻¹

From Basics to Advanced Linear Algebra

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!

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

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?
Show answer
When det(A) = 0, the system of equations either has no solution or infinitely many solutions—there is no unique answer. Geometrically, the two row vectors lie along the same line (one is a scalar multiple of the other), so the parallelogram they form has zero area. Since the determinant measures the area of that parallelogram, it must be zero. You can think of it as two equations that are really saying the same thing (dependent) or contradicting each other (inconsistent).

Question 2: BASIC CALCULATION

Find the determinant of the 2×2 matrix A = [[5, 3], [2, 4]].
Show answer
Using the formula det(A) = ad − bc, we get det(A) = (5)(4) − (3)(2) = 20 − 6 = 14. Since the determinant is 14 (not zero), the matrix is invertible. The parallelogram formed by the vectors (5, 3) and (2, 4) has an area of 14 square units.

Question 3: INTERMEDIATE

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.
Show answer
Expanding along row 1: det(B) = +1 × det([[1, 0], [4, 1]]) − 0 × det([[3, 0], [2, 1]]) + 2 × det([[3, 1], [2, 4]]). The first minor is (1)(1) − (0)(4) = 1. The second term is zero (multiplied by 0), so it vanishes. The third minor is (3)(4) − (1)(2) = 12 − 2 = 10. Putting it together: det(B) = 1(1) − 0 + 2(10) = 1 + 20 = 21. Notice how a zero in the first row saved us work—that whole term dropped out!

Question 4: APPLIED

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.
Show answer
Set up the matrix: [[1, 2, 1], [4, 6, 1], [3, 1, 1]]. Expanding along the first row: det = +1 × (6 − 1) − 2 × (4 − 3) + 1 × (4 − 18) = 1(5) − 2(1) + 1(−14) = 5 − 2 − 14 = −11. The area is ½ × |−11| = ½ × 11 = 5.5 square units. This formula is incredibly useful because it gives you the exact area from coordinates alone—no need to measure base and height!

Question 5: CRITICAL 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?
Show answer
Notice that the second row [3, 6] is simply 3 times [1, 2], and the first row [a, 2a] is a times [1, 2]. Both rows are scalar multiples of the same vector [1, 2], which means they point in the same direction. When two rows are proportional, the parallelogram collapses to a line with zero area. Verifying: det(C) = a(6) − 2a(3) = 6a − 6a = 0 for every value of a. This is a fundamental property: whenever one row is a scalar multiple of another, the determinant is always zero, and the matrix is singular.

SUMMARY

Lesson Summary

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