Tutorials › Linear Algebra › Laplace Expansion Along Any Row

Properties of Determinants · Tutorial 234 of 1000

Laplace Expansion Along Any Row

Learn why cofactor expansion along any chosen row gives the same determinant, and how to apply and check the signs correctly.

Intermediate 11 min read

What You'll Learn

  • State the Laplace expansion formula along a specified row.
  • Relate cofactor signs to the row and column indices.
  • Prove the formula by induction using the Leibniz formula.
  • Group permutations according to the chosen row’s column.
  • Compute and verify expansions along different rows.
  • Identify and correct common checkerboard-sign errors.

Why Expand Along a Row Other Than the First?

The recursive definition of the determinant uses a cofactor expansion along the first row. In a calculation, however, another row may be more convenient: it might contain zeros, or its minors might be easier to evaluate. To use that choice with confidence, we need a reason that the result is still the same determinant. The Laplace expansion provides that reason. Its proof connects the recursive definition to the Leibniz formula by grouping permutations according to the entry selected in a chosen row.

All matrices in this tutorial are square matrices over \(\mathbb{R}\). For a matrix \(\mathbf{A}=(a_{ij})\in\mathbb{R}^{n\times n}\), the minor \(M_{ij}\) is the determinant of the \((n-1)\times(n-1)\) matrix formed by deleting row \(i\) and column \(j\). The cofactor in position \((i,j)\) is \(C_{ij}=(-1)^{i+j}M_{ij}\). The signs alternate in a checkerboard pattern, beginning with a positive sign in position \((1,1)\).

Definition: The Laplace expansion along row \(r\) of \(\mathbf{A}\) is the sum \(\sum_{j=1}^{n}a_{rj}C_{rj}\), or, equivalently, \(\sum_{j=1}^{n}(-1)^{r+j}a_{rj}M_{rj}\). The row index \(r\) is fixed, and the sum uses every column \(j\).

The formula is a statement about the determinant already defined by first-row cofactor expansion; it does not define a different determinant. We will prove that the two agree for every row. The case \(n=1\) can be read using the convention that the determinant of the empty matrix, which occurs as the sole minor, is \(1\). Then its only cofactor expansion gives \(a_{11}\).

The Sign When a Permutation Is Restricted

The Leibniz formula expresses a determinant as a sum over permutations. For \(\mathbf{A}\in\mathbb{R}^{n\times n}\), it is

$$ \det\mathbf{A} = \sum_{\sigma\in S_n}\operatorname{sgn}(\sigma) \prod_{i=1}^{n}a_{i,\sigma(i)}. $$

Here \(S_n\) is the set of permutations of \(\{1,\ldots,n\}\), and \(\operatorname{sgn}(\sigma)\) is \(1\) or \(-1\) according as the permutation is even or odd. We need to compare the sign of a permutation with the sign of the smaller permutation left after one row and one column are removed.

Lemma: Fix \(r,j\in\{1,\ldots,n\}\). Let \(\sigma\in S_n\) satisfy \(\sigma(r)=j\). Delete \(r\) from the ordered row indices and \(j\) from the ordered column indices; the remaining assignments define a permutation \(\tau\) between the remaining ordered lists. Then \(\operatorname{sgn}(\sigma)=(-1)^{r+j}\operatorname{sgn}(\tau)\).

Proof. Write \(\sigma\) as its list of values \(\sigma(1),\ldots,\sigma(n)\). Deleting the value at position \(r\) and then relabelling the remaining values in increasing order leaves the inversions among the remaining entries unchanged; these are exactly the inversions of \(\tau\). It remains to count the inversions involving the deleted value \(j=\sigma(r)\). Let \(x\) be the number of values less than \(j\) that occur before position \(r\), and let \(y\) be the number of values greater than \(j\) that occur after position \(r\). The inversions involving \(j\) number \(A+B\), where \(A\) is the number of values greater than \(j\) before \(r\), and \(B\) is the number of values less than \(j\) after \(r\). Since there are \(r-1\) entries before \(r\) and \(j-1\) values less than \(j\), \(A=r-1-x\) and \(B=j-1-x\). Therefore \(A+B=r+j-2-2x\), which has the same parity as \(r+j\). The inversion counts of \(\sigma\) and \(\tau\) thus differ in parity by \(r+j\), giving the stated sign relation. \(\square\)

This sign relation accounts for the checkerboard factor in a cofactor. After deleting row \(r\) and column \(j\), the terms that remain form a determinant of size \(n-1\); the sign needed to restore the original permutation is exactly \((-1)^{r+j}\).

Induction and the Expansion Along Any Row

Theorem (Laplace expansion along any row): For every \(\mathbf{A}\in\mathbb{R}^{n\times n}\) and every row index \(r\in\{1,\ldots,n\}\), the determinant defined by first-row cofactor expansion satisfies \(\det\mathbf{A}=\sum_{j=1}^{n}(-1)^{r+j}a_{rj}M_{rj}\).

Proof. We prove the result by induction on \(n\), first connecting the recursive determinant to the Leibniz formula. For \(n=1\), the determinant is \(a_{11}\), which is the sole term in the Leibniz formula. Now suppose that every determinant of size \(n-1\) equals its Leibniz sum, and let \(\mathbf{A}\) have size \(n\). By its defining first-row expansion,

$$ \det\mathbf{A} = \sum_{j=1}^{n}(-1)^{1+j}a_{1j}\det\mathbf{A}_{1j}, $$

where \(\mathbf{A}_{1j}\) is obtained by deleting row \(1\) and column \(j\). By the induction hypothesis, each \(\det\mathbf{A}_{1j}\) is the Leibniz sum over permutations of the remaining ordered row and column indices. For each fixed \(j\), those smaller permutations correspond exactly to the permutations \(\sigma\in S_n\) with \(\sigma(1)=j\). By the lemma with \(r=1\), their signs satisfy \(\operatorname{sgn}(\sigma)=(-1)^{1+j}\operatorname{sgn}(\tau)\). Consequently, the terms in \((-1)^{1+j}a_{1j}\det\mathbf{A}_{1j}\) are precisely the terms of the \(n\times n\) Leibniz formula whose permutations send row \(1\) to column \(j\). Summing over all \(j\) includes every permutation exactly once. Thus the recursively defined determinant equals the Leibniz formula for size \(n\).

It remains to expand along an arbitrary row \(r\). In the size-\(n\) Leibniz formula, group the terms by the value \(j=\sigma(r)\). For a fixed \(j\), the remaining assignments are permutations of the rows and columns left after deleting \(r\) and \(j\). The lemma says that each original permutation sign is \((-1)^{r+j}\) times the sign of that smaller permutation. The sum of the smaller signed products is the Leibniz formula for \(M_{rj}\), which equals that minor’s determinant by the induction result just proved. The group of terms with \(\sigma(r)=j\) is therefore \((-1)^{r+j}a_{rj}M_{rj}\). Summing these groups over \(j=1,\ldots,n\) proves the claimed expansion. For \(n=1\), the statement holds directly from the convention \(M_{11}=1\). \(\square\)

The proof has two distinct jobs. Induction establishes that the recursive determinant agrees with the permutation formula at every size. Grouping the permutation terms by the chosen row then gives the expansion along that row. The minor must carry the determinant of the matrix with both the selected row and selected column removed; the cofactor sign records the change in permutation sign.

Worked Expansions and Checks

Worked Example: Expanding a 3×3 Matrix Along Two Rows

Consider \(\mathbf{A}=\begin{bmatrix}2&-1&3\\1&0&2\\4&1&-1\end{bmatrix}\). Compute its determinant along rows 1 and 2.

For row 1, the minors are \(M_{11}=\det\begin{bmatrix}0&2\\1&-1\end{bmatrix}=0(-1)-2(1)=-2\), \(M_{12}=\det\begin{bmatrix}1&2\\4&-1\end{bmatrix}=1(-1)-2(4)=-9\), and \(M_{13}=\det\begin{bmatrix}1&0\\4&1\end{bmatrix}=1(1)-0(4)=1\). The row-1 signs are \(+,-,+\), so

$$ 2(-2)-(-1)(-9)+3(1)=-4-9+3=-10. $$

For row 2, \(M_{21}=\det\begin{bmatrix}-1&3\\1&-1\end{bmatrix}=(-1)(-1)-3(1)=-2\), so its cofactor is \(-M_{21}=2\). Also, \(M_{23}=\det\begin{bmatrix}2&-1\\4&1\end{bmatrix}=2(1)-(-1)(4)=6\), and its cofactor is \(-M_{23}=-6\). The middle entry of row 2 is zero, so its minor need not be evaluated. The expansion is

$$ 1(2)+0C_{22}+2(-6)=2-12=-10. $$

Check: both row expansions give \(-10\). The nonzero row-2 contributions use the signs \((-1)^{2+1}=-1\) and \((-1)^{2+3}=-1\), as required.

Worked Example: Checking All Four Rows

For a more detailed sign check, use \(\mathbf{B}=\begin{bmatrix}1&2&0&1\\0&1&2&0\\3&0&1&2\\0&0&1&1\end{bmatrix}\). Along row 1, the required minors are \(M_{11}=-1\), \(M_{12}=-6\), and \(M_{14}=-3\). For instance, \(M_{11}=\det\begin{bmatrix}1&2&0\\0&1&2\\0&1&1\end{bmatrix}=1(1-2)-2(0-0)=-1\), while \(M_{12}=\det\begin{bmatrix}0&2&0\\3&1&2\\0&1&1\end{bmatrix}=-2(3)=-6\). The fourth minor is \(\det\begin{bmatrix}0&1&2\\3&0&1\\0&0&1\end{bmatrix}=-3\). Since \(b_{13}=0\), the expansion gives

$$ 1(-1)-2(-6)+0+1(-1)(-3)=-1+12+3=14. $$

For row 2, \(M_{22}=\det\begin{bmatrix}1&0&1\\3&1&2\\0&1&1\end{bmatrix}=1(1-2)+1(3)=2\). Also, \(M_{23}=\det\begin{bmatrix}1&2&1\\3&0&2\\0&0&1\end{bmatrix}=1(0)-2(3)+1(0)=-6\). The cofactor sign for position \((2,3)\) is negative, so \(C_{23}=6\). Row 2 therefore gives \(0+1(2)+2(6)+0=14\).

For row 3, the nonzero entries are \(3,1,2\). The corresponding minors are \(M_{31}=\det\begin{bmatrix}2&0&1\\1&2&0\\0&1&1\end{bmatrix}=2(2)-0+1(1)=5\), \(M_{33}=\det\begin{bmatrix}1&2&1\\0&1&0\\0&0&1\end{bmatrix}=1\), and \(M_{34}=\det\begin{bmatrix}1&2&0\\0&1&2\\0&0&1\end{bmatrix}=1\). The signs at positions \((3,1),(3,3),(3,4)\) are \(+,+,-\), so the expansion is \(3(5)+1(1)-2(1)=14\).

Finally, row 4 has entries \(0,0,1,1\). Its two needed minors are \(M_{43}=\det\begin{bmatrix}1&2&1\\0&1&0\\3&0&2\end{bmatrix}=2-3=-1\) and \(M_{44}=\det\begin{bmatrix}1&2&0\\0&1&2\\3&0&1\end{bmatrix}=1-2(-6)=13\). The signs are negative at \((4,3)\) and positive at \((4,4)\), giving \(-M_{43}+M_{44}=1+13=14\).

Check: all four row expansions give \(14\). In particular, \(M_{11}=-1\) is correct; its first-row contribution is \(1(-1)=-1\), not \((-1)(-1)\).

Worked Example: A 2×2 Expansion Along the Second Row

Let \(\mathbf{C}=\begin{bmatrix}-2&3\\4&1\end{bmatrix}\). The minors in row 2 are \(M_{21}=3\) and \(M_{22}=-2\), since deleting the relevant row and column leaves the corresponding single entry. Their cofactor signs are negative and positive, respectively. Thus

$$ \det\mathbf{C}=4(-3)+1(-2)=-12-2=-14. $$

Check: the defining first-row expansion gives \((-2)(1)-3(4)=-2-12=-14\), agreeing with the second-row result.

Common Sign Pitfall

A frequent error is to use the column’s checkerboard sign without including the row index. For row 2 of \(\mathbf{B}\), this mistake treats the sign at \((2,3)\) as positive because column 3 is odd, and would calculate \(1(2)+2(-6)=-10\). That uses \(M_{23}\) directly instead of its cofactor. The correct sign is \((-1)^{2+3}=-1\), so \(C_{23}=-M_{23}=6\), and the expansion is \(1(2)+2(6)=14\). The sign depends on both indices, not on the column alone.

Another useful check is to compare two different row expansions when practical. They should agree because each is a grouping of the same Leibniz sum. A disagreement usually signals an arithmetic error in a minor or an incorrect checkerboard sign; it does not mean the determinant depends on which row was chosen.

Choosing a Row and Interpreting the Formula

Every row gives a valid expansion, but not every row is equally efficient. If a row has zeros, each zero removes a minor calculation because its term is zero. If two rows have the same number of zeros, the remaining minors may still differ in difficulty, so inspect their entries before expanding. The theorem justifies this choice: it is a computational convenience, not a change to the determinant.

Keep the roles of the three factors in each term distinct: \(a_{rj}\) is the matrix entry in the chosen row, \(M_{rj}\) is the determinant after deleting that row and column, and \((-1)^{r+j}\) supplies the cofactor sign. Writing these separately before simplifying makes sign errors easier to catch. For a row with a zero entry, the corresponding term vanishes regardless of its minor or sign.

Check Your Understanding

For each question, identify the row signs before combining terms, and check any computed determinant using a second expansion when possible.

  1. For \(\begin{bmatrix}1&2&0\\3&-1&1\\2&0&4\end{bmatrix}\), write the Laplace expansion along row 2, including all three checkerboard signs.
  2. For the matrix in question 1, compute its determinant by expanding along row 1 and row 3. Do the results agree?
  3. Explain why permutations with \(\sigma(r)=j\) produce the minor obtained by deleting row \(r\) and column \(j\).
  4. In the expansion along row 3, what is the sign multiplying \(a_{32}M_{32}\)? Explain using \((-1)^{r+j}\).
  5. A student expands row 2 using \(a_{21}M_{21}+a_{22}M_{22}+a_{23}M_{23}\). State the error and write the correct signed formula.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon