Skip to main content

Section 3.1 The Formal Definition of Determinant

Before diving into efficient computational methods and properties of determinants, we must establish a precise mathematical foundation. In this section, we will build up to the formal definition of the determinant through a careful progression: starting with the simple cases of \(2 \times 2\) and \(3 \times 3\) matrices, introducing the concepts of minors and cofactors, and finally presenting the general definition via cofactor expansion.
This systematic approach will not only give us a rigorous definition but also reveal a fundamental question that will guide much of our subsequent work: while we initially define the determinant by expanding along the first row, does the result depend on this particular choice? Could we expand along any row or column and get the same answer? This question, which may seem like a technical detail, is actually central to understanding why determinants are well-defined and computationally flexible.

Subsection 3.1.1 Determinants of \(2 \times 2\) and \(3 \times 3\) Matrices

We begin with the simplest nontrivial case: \(2 \times 2\) matrices.

Definition 3.1.1. Determinant of a \(2 \times 2\) Matrix.

Let \(A = \begin{bmatrix} a_{11} \amp a_{12} \\ a_{21} \amp a_{22} \end{bmatrix}\) be a \(2 \times 2\) matrix. The determinant of \(A\text{,}\) denoted \(\det(A)\) or \(|A|\text{,}\) is defined by
\begin{equation*} \det(A) = a_{11}a_{22} - a_{12}a_{21}\text{.} \end{equation*}

Example 3.1.2. Computing a \(2 \times 2\) Determinant.

Find the determinant of \(A = \begin{bmatrix} 3 \amp 5 \\ 2 \amp 7 \end{bmatrix}\text{.}\)
Solution.
\begin{align*} \det(A) \amp= (3)(7) - (5)(2)\\ \amp= 21 - 10\\ \amp= 11 \end{align*}
For \(3 \times 3\) matrices, the pattern becomes more intricate. We can express the determinant using what’s called the rule of Sarrus or, more systematically, using the cofactor expansion that we’ll define precisely soon.

Example 3.1.3. Pattern for \(3 \times 3\) Determinants.

Consider the matrix \(A = \begin{bmatrix} a_{11} \amp a_{12} \amp a_{13} \\ a_{21} \amp a_{22} \amp a_{23} \\ a_{31} \amp a_{32} \amp a_{33} \end{bmatrix}\text{.}\)
The determinant can be computed as:
\begin{align*} \det(A) = \amp\ a_{11}(a_{22}a_{33} - a_{23}a_{32})\\ \amp - a_{12}(a_{21}a_{33} - a_{23}a_{31})\\ \amp + a_{13}(a_{21}a_{32} - a_{22}a_{31}) \end{align*}
Notice the pattern: each term involves an element from the first row multiplied by the determinant of a \(2 \times 2\) matrix formed by deleting that element’s row and column. The signs alternate: \(+, -, +\text{.}\)

Example 3.1.4. A Concrete \(3 \times 3\) Example.

Compute the determinant of \(B = \begin{bmatrix} 2 \amp 1 \amp 3 \\ 0 \amp 4 \amp 1 \\ 1 \amp -2 \amp 5 \end{bmatrix}\text{.}\)
Solution.
Using the pattern above:
\begin{align*} \det(B) \amp= 2\begin{vmatrix} 4 \amp 1 \\ -2 \amp 5 \end{vmatrix} - 1\begin{vmatrix} 0 \amp 1 \\ 1 \amp 5 \end{vmatrix} + 3\begin{vmatrix} 0 \amp 4 \\ 1 \amp -2 \end{vmatrix}\\ \amp= 2[(4)(5) - (1)(-2)] - 1[(0)(5) - (1)(1)] + 3[(0)(-2) - (4)(1)]\\ \amp= 2[20 + 2] - 1[0 - 1] + 3[0 - 4]\\ \amp= 2(22) - 1(-1) + 3(-4)\\ \amp= 44 + 1 - 12\\ \amp= 33 \end{align*}

Subsection 3.1.2 Minors and Cofactors

To formalize the pattern we observed in \(3 \times 3\) determinants and extend it to larger matrices, we need two crucial concepts: minors and cofactors.

Definition 3.1.5. Minor.

Let \(A = [a_{ij}]\) be an \(n \times n\) matrix. The \((i,j)\)-minor of \(A\text{,}\) denoted \(M_{ij}\text{,}\) is the determinant of the \((n-1) \times (n-1)\) matrix obtained by deleting the \(i\)-th row and \(j\)-th column of \(A\text{.}\)

Example 3.1.6. Computing Minors.

For the matrix \(A = \begin{bmatrix} 1 \amp 2 \amp 3 \\ 4 \amp 5 \amp 6 \\ 7 \amp 8 \amp 9 \end{bmatrix}\text{,}\) find \(M_{11}\text{,}\) \(M_{12}\text{,}\) and \(M_{23}\text{.}\)
Solution.
  • \(M_{11}\text{:}\) Delete row 1 and column 1:
    \begin{equation*} M_{11} = \begin{vmatrix} 5 \amp 6 \\ 8 \amp 9 \end{vmatrix} = (5)(9) - (6)(8) = 45 - 48 = -3 \end{equation*}
  • \(M_{12}\text{:}\) Delete row 1 and column 2:
    \begin{equation*} M_{12} = \begin{vmatrix} 4 \amp 6 \\ 7 \amp 9 \end{vmatrix} = (4)(9) - (6)(7) = 36 - 42 = -6 \end{equation*}
  • \(M_{23}\text{:}\) Delete row 2 and column 3:
    \begin{equation*} M_{23} = \begin{vmatrix} 1 \amp 2 \\ 7 \amp 8 \end{vmatrix} = (1)(8) - (2)(7) = 8 - 14 = -6 \end{equation*}
The minor alone doesn’t capture the alternating sign pattern we observed. For this, we introduce the cofactor.

Definition 3.1.7. Cofactor.

Let \(A = [a_{ij}]\) be an \(n \times n\) matrix. The \((i,j)\)-cofactor of \(A\text{,}\) denoted \(C_{ij}\text{,}\) is defined by
\begin{equation*} C_{ij} = (-1)^{i+j} M_{ij} \end{equation*}
where \(M_{ij}\) is the \((i,j)\)-minor of \(A\text{.}\)

Remark 3.1.8. The Sign Pattern.

The factor \((-1)^{i+j}\) creates a checkerboard pattern of signs:
\begin{equation*} \begin{bmatrix} + \amp - \amp + \amp - \amp \cdots \\ - \amp + \amp - \amp + \amp \cdots \\ + \amp - \amp + \amp - \amp \cdots \\ - \amp + \amp - \amp + \amp \cdots \\ \vdots \amp \vdots \amp \vdots \amp \vdots \amp \ddots \end{bmatrix} \end{equation*}
For a \(3 \times 3\) matrix:
\begin{equation*} \begin{bmatrix} + \amp - \amp + \\ - \amp + \amp - \\ + \amp - \amp + \end{bmatrix} \end{equation*}

Example 3.1.9. Computing Cofactors.

Using the matrix \(A = \begin{bmatrix} 1 \amp 2 \amp 3 \\ 4 \amp 5 \amp 6 \\ 7 \amp 8 \amp 9 \end{bmatrix}\) from the previous example, find \(C_{11}\text{,}\) \(C_{12}\text{,}\) and \(C_{23}\text{.}\)
Solution.
  • \(\displaystyle C_{11} = (-1)^{1+1} M_{11} = (-1)^2(-3) = -3\)
  • \(\displaystyle C_{12} = (-1)^{1+2} M_{12} = (-1)^3(-6) = 6\)
  • \(\displaystyle C_{23} = (-1)^{2+3} M_{23} = (-1)^5(-6) = 6\)

Activity 3.1.1. Practice with Minors and Cofactors.

Consider the matrix \(B = \begin{bmatrix} 2 \amp 0 \amp 1 \\ 3 \amp -1 \amp 4 \\ 1 \amp 2 \amp -2 \end{bmatrix}\text{.}\)
  1. Compute \(M_{11}\text{,}\) \(M_{13}\text{,}\) and \(M_{32}\text{.}\)
  2. Compute \(C_{11}\text{,}\) \(C_{13}\text{,}\) and \(C_{32}\text{.}\)
  3. Verify your computations using the cofactor sign pattern.

Subsection 3.1.3 The Formal Definition: Cofactor Expansion Along the First Row

We are now ready to present the formal definition of the determinant for an \(n \times n\) matrix. We define it recursively using cofactor expansion along the first row.

Definition 3.1.10. Determinant (Cofactor Expansion Along First Row).

Let \(A = [a_{ij}]\) be an \(n \times n\) matrix.
  • If \(n = 1\text{,}\) then \(A = [a_{11}]\) and \(\det(A) = a_{11}\text{.}\)
  • If \(n \geq 2\text{,}\) the determinant of \(A\) is defined by
    \begin{equation*} \det(A) = a_{11}C_{11} + a_{12}C_{12} + \cdots + a_{1n}C_{1n} = \sum_{j=1}^{n} a_{1j}C_{1j} \end{equation*}
    where \(C_{1j} = (-1)^{1+j}M_{1j}\) is the \((1,j)\)-cofactor of \(A\text{.}\)

Remark 3.1.11. Why This Is a Valid Definition.

This definition is recursive: to compute \(\det(A)\) for an \(n \times n\) matrix, we need to compute determinants of \((n-1) \times (n-1)\) matrices (the minors). Since we’ve defined \(\det\) for \(1 \times 1\) matrices, this recursion eventually terminates, making the definition well-founded.

Example 3.1.12. Using the Formal Definition.

Compute the determinant of \(A = \begin{bmatrix} 3 \amp 1 \amp 0 \\ 2 \amp -1 \amp 4 \\ 1 \amp 5 \amp 2 \end{bmatrix}\) using cofactor expansion along the first row.
Solution.
By definition:
\begin{equation*} \det(A) = a_{11}C_{11} + a_{12}C_{12} + a_{13}C_{13} \end{equation*}
Compute each cofactor:
\begin{align*} C_{11} \amp= (-1)^{1+1}\begin{vmatrix} -1 \amp 4 \\ 5 \amp 2 \end{vmatrix} = (-1 \cdot 2 - 4 \cdot 5) = -2 - 20 = -22\\ C_{12} \amp= (-1)^{1+2}\begin{vmatrix} 2 \amp 4 \\ 1 \amp 2 \end{vmatrix} = -(2 \cdot 2 - 4 \cdot 1) = -(4 - 4) = 0\\ C_{13} \amp= (-1)^{1+3}\begin{vmatrix} 2 \amp -1 \\ 1 \amp 5 \end{vmatrix} = (2 \cdot 5 - (-1) \cdot 1) = 10 + 1 = 11 \end{align*}
Therefore:
\begin{align*} \det(A) \amp= 3(-22) + 1(0) + 0(11)\\ \amp= -66 + 0 + 0\\ \amp= -66 \end{align*}

Insight 3.1.13. The Fundamental Question.

Critical Question: We have defined \(\det(A)\) by expanding along the first row. But what if we had expanded along a different row, or along a column? Would we get the same answer?
This is not merely a technical curiosity—it goes to the heart of whether the determinant is well-defined as a mathematical concept. If different expansion choices gave different values, then "the determinant" wouldn’t be a single number associated with a matrix!
The Remarkable Answer: It turns out (and we will prove this) that the determinant can be computed by cofactor expansion along any row or any column, and the result is always the same. This property is called cofactor expansion theorem or Laplace expansion theorem (see next subsection for details).
This fact has profound computational implications: we can choose to expand along the row or column that contains the most zeros, dramatically simplifying our calculations!

Example 3.1.14. Comparing Different Expansions.

Let’s compute \(\det(A)\) for \(A = \begin{bmatrix} 1 \amp 0 \amp 3 \\ 2 \amp 1 \amp 0 \\ 4 \amp 0 \amp 5 \end{bmatrix}\) in two ways: expanding along the first row (as required by our definition) and expanding along the second column (which has two zeros).
First Row Expansion:
\begin{align*} \det(A) \amp= 1 \cdot C_{11} + 0 \cdot C_{12} + 3 \cdot C_{13}\\ \amp= 1 \cdot \begin{vmatrix} 1 \amp 0 \\ 0 \amp 5 \end{vmatrix} - 0 + 3 \cdot (-1)^{1+3}\begin{vmatrix} 2 \amp 1 \\ 4 \amp 0 \end{vmatrix}\\ \amp= 1(5) + 3(2 \cdot 0 - 1 \cdot 4)\\ \amp= 5 + 3(-4)\\ \amp= 5 - 12 = -7 \end{align*}
Second Column Expansion:
\begin{align*} \det(A) \amp= a_{12}C_{12} + a_{22}C_{22} + a_{32}C_{32}\\ \amp= 0 \cdot C_{12} + 1 \cdot C_{22} + 0 \cdot C_{32}\\ \amp= 1 \cdot (-1)^{2+2}\begin{vmatrix} 1 \amp 3 \\ 4 \amp 5 \end{vmatrix}\\ \amp= 1 \cdot 5 - 3 \cdot 4\\ \amp= 5 - 12 = -7 \end{align*}
Both methods give \(\det(A) = -7\text{,}\) but the second column expansion required much less computation!

Activity 3.1.2. Explore Different Expansions.

Consider the matrix \(B = \begin{bmatrix} 2 \amp 0 \amp 1 \amp 0 \\ 3 \amp 1 \amp 0 \amp 2 \\ 0 \amp 4 \amp 5 \amp 1 \\ 1 \amp 0 \amp 0 \amp 3 \end{bmatrix}\text{.}\)
  1. Identify which row or column would be most efficient for cofactor expansion (i.e., has the most zeros).
  2. Compute \(\det(B)\) by expanding along that row or column.
  3. Verify your answer using SageMath.

Subsection 3.1.4 The Laplace Expansion Theorem

We have seen that we can compute determinants by expanding along different rows or columns, and empirically observed that we get the same answer. Now we state and prove this fundamental result formally.
Before proving this theorem in full generality, let’s establish some preliminary results.

Proof of the Laplace Expansion Theorem.

We will prove this theorem using mathematical induction on the size \(n\) of the matrix. The proof has two main parts: showing expansion along any row gives the same result, and showing expansion along any column gives the same result.
Part 1: Expansion along any row
Base case (\(n = 2\)): For a \(2 \times 2\) matrix \(A = \begin{bmatrix} a_{11} \amp a_{12} \\ a_{21} \amp a_{22} \end{bmatrix}\text{,}\) we verify both row expansions:
Row 1 expansion (by definition): \(\det(A) = a_{11}a_{22} - a_{12}a_{21}\)
Row 2 expansion:
\begin{align*} \sum_{j=1}^{2} a_{2j}C_{2j} \amp= a_{21}C_{21} + a_{22}C_{22}\\ \amp= a_{21}(-1)^{2+1}M_{21} + a_{22}(-1)^{2+2}M_{22}\\ \amp= a_{21}(-1)(a_{12}) + a_{22}(1)(a_{11})\\ \amp= -a_{21}a_{12} + a_{22}a_{11}\\ \amp= a_{11}a_{22} - a_{12}a_{21} \end{align*}
Thus both row expansions give the same result for \(n = 2\text{.}\)
Inductive step: Assume the theorem holds for all \((n-1) \times (n-1)\) matrices. We need to show that expanding an \(n \times n\) matrix \(A\) along row \(i\) gives the same result as expanding along row 1.
Let \(A = [a_{kl}]\text{.}\) By definition:
\begin{equation*} \det(A) = \sum_{j=1}^{n} a_{1j}C_{1j} \end{equation*}
We want to show:
\begin{equation*} \det(A) = \sum_{j=1}^{n} a_{ij}C_{ij} \end{equation*}
for any row \(i\text{.}\)
Key idea: We can transform row \(i\) to row 1 by performing \(i-1\) consecutive row swaps. Each row swap changes the sign of the determinant. After \(i-1\) swaps, row \(i\) becomes row 1, and we can apply the definition.
Let \(B\) be the matrix obtained from \(A\) by moving row \(i\) to row 1 (through \(i-1\) swaps). Then:
\begin{equation*} \det(A) = (-1)^{i-1}\det(B) \end{equation*}
Now \(B\) has \(a_{i1}, a_{i2}, \ldots, a_{in}\) as its first row. By definition:
\begin{equation*} \det(B) = \sum_{j=1}^{n} a_{ij}C_{1j}^{(B)} \end{equation*}
where \(C_{1j}^{(B)}\) denotes the \((1,j)\)-cofactor of \(B\text{.}\)
The crucial observation is that \(C_{1j}^{(B)} = (-1)^{i-1}C_{ij}\text{,}\) because:
  • The minor \(M_{1j}^{(B)}\) (obtained by deleting row 1 and column \(j\) of \(B\)) is essentially the same as \(M_{ij}\) (from \(A\)), up to \(i-1\) row swaps
  • The sign factor \((-1)^{1+j}\) for \(B\) differs from \((-1)^{i+j}\) for \(A\) by exactly \((-1)^{i-1}\)
Therefore:
\begin{align*} \det(A) \amp= (-1)^{i-1}\det(B)\\ \amp= (-1)^{i-1} \sum_{j=1}^{n} a_{ij}C_{1j}^{(B)}\\ \amp= (-1)^{i-1} \sum_{j=1}^{n} a_{ij}(-1)^{i-1}C_{ij}\\ \amp= \sum_{j=1}^{n} a_{ij}C_{ij} \end{align*}
This completes the proof that expansion along any row gives the same result.
Part 2: Expansion along any column
The proof for column expansion is analogous. We can transform column \(j\) to column 1 by performing \(j-1\) consecutive column swaps. The argument proceeds similarly, showing that:
\begin{equation*} \det(A) = \sum_{i=1}^{n} a_{ij}C_{ij} \end{equation*}
for any column \(j\text{.}\)
Alternatively, we can appeal to the fact that \(\det(A) = \det(A^T)\) (which we will prove later). Since row expansion for \(A^T\) corresponds to column expansion for \(A\text{,}\) the column expansion formula follows from the row expansion formula applied to \(A^T\text{.}\)

Remark 3.1.17. Significance of the Theorem.

This theorem has profound implications:
  1. Well-definedness: It ensures that the determinant is a well-defined function—it doesn’t depend on which expansion we choose to use.
  2. Computational flexibility: We can choose the most convenient row or column (typically one with the most zeros) to minimize calculations.
  3. Theoretical power: The theorem enables us to prove other important properties of determinants by choosing strategic expansions.

Example 3.1.18. Verifying the Theorem with Multiple Expansions.

Let \(A = \begin{bmatrix} 1 \amp 2 \amp 3 \\ 0 \amp 4 \amp 5 \\ 0 \amp 0 \amp 6 \end{bmatrix}\) (an upper triangular matrix). We’ll compute \(\det(A)\) using three different expansions to verify the theorem.
Expansion along row 1:
\begin{align*} \det(A) \amp= 1 \cdot \begin{vmatrix} 4 \amp 5 \\ 0 \amp 6 \end{vmatrix} - 2 \cdot \begin{vmatrix} 0 \amp 5 \\ 0 \amp 6 \end{vmatrix} + 3 \cdot \begin{vmatrix} 0 \amp 4 \\ 0 \amp 0 \end{vmatrix}\\ \amp= 1(24 - 0) - 2(0 - 0) + 3(0 - 0)\\ \amp= 24 \end{align*}
Expansion along column 1:
\begin{align*} \det(A) \amp= 1 \cdot \begin{vmatrix} 4 \amp 5 \\ 0 \amp 6 \end{vmatrix} - 0 + 0\\ \amp= 1(24)\\ \amp= 24 \end{align*}
Expansion along row 3:
\begin{align*} \det(A) \amp= 0 - 0 + 6 \cdot (-1)^{3+3}\begin{vmatrix} 1 \amp 2 \\ 0 \amp 4 \end{vmatrix}\\ \amp= 6(4 - 0)\\ \amp= 24 \end{align*}
All three expansions give \(\det(A) = 24\text{,}\) confirming the theorem. Note how the column 1 expansion was most efficient (only one non-zero term)!

Activity 3.1.3. Verify Laplace Expansion.

For the matrix \(B = \begin{bmatrix} 2 \amp 1 \amp 0 \amp 1 \\ 0 \amp 3 \amp 1 \amp 0 \\ 1 \amp 0 \amp 2 \amp 0 \\ 0 \amp 1 \amp 0 \amp 4 \end{bmatrix}\text{:}\)
  1. Compute \(\det(B)\) by expanding along row 1.
  2. Compute \(\det(B)\) by expanding along column 3 (which has two zeros).
  3. Verify that both methods give the same answer.
  4. Which expansion was more efficient? Why?
With the Laplace Expansion Theorem established, we now have a complete and rigorous foundation for working with determinants. In the following sections, we will explore additional properties and computational techniques that build upon this fundamental result.