Tutorials › Linear Algebra › From Minors to Cofactor Expansion

Determinants by Cofactor Expansion · Tutorial 214 of 1000

From Minors to Cofactor Expansion

Use \(2\times2\) minors and checkerboard cofactor signs to expand a \(3\times3\) determinant along its first row.

Beginner 9 min read

What You'll Learn

  • Find each first-row minor by deleting its row and column.
  • Apply the checkerboard signs to turn minors into cofactors.
  • Derive the first-row expansion from the six signed determinant products.
  • Compute \(3\times3\) determinants using first-row cofactors.
  • Check a cofactor expansion against the six-term formula.
  • Catch sign errors by distinguishing a minor from its cofactor.

From Smaller Determinants to Cofactors

A \(3\times3\) determinant can be organized around its first row. Each entry in that row is paired with a \(2\times2\) determinant: delete the entry’s row and column, then take the determinant of what remains. That smaller determinant is the entry’s minor. To combine the three minors correctly, we also need the cofactor signs. For the first row, those signs are \(+,-,+\).

This tutorial focuses on expressing a \(3\times3\) determinant as a sum using those three first-row entries, minors, and signs. The calculations use the \(2\times2\) formula \(\det\begin{bmatrix}r&s\\t&u\end{bmatrix}=ru-st\). To keep the derivation grounded in explicit calculations, we begin with the six-term formula for a \(3\times3\) determinant. We will group its terms to obtain the cofactor expansion.

Definition: For a \(3\times3\) matrix \(\mathbf{A}=[a_{ij}]\), the minor \(M_{ij}\) of the entry \(a_{ij}\) is the determinant of the \(2\times2\) matrix left after deleting row \(i\) and column \(j\). The cofactor of \(a_{ij}\) is \(C_{ij}=(-1)^{i+j}M_{ij}\). The \(3\times3\) determinant is given by the six signed products \(a_{11}a_{22}a_{33}+a_{12}a_{23}a_{31}+a_{13}a_{21}a_{32}-a_{13}a_{22}a_{31}-a_{12}a_{21}a_{33}-a_{11}a_{23}a_{32}\).

The minor and cofactor are related, but they are not interchangeable: \(M_{ij}\) is the smaller determinant, while \(C_{ij}\) includes the sign \((-1)^{i+j}\). In the first row, the signs for \(j=1,2,3\) are \((-1)^2=+1\), \((-1)^3=-1\), and \((-1)^4=+1\). Thus \(C_{11}=M_{11}\), \(C_{12}=-M_{12}\), and \(C_{13}=M_{13}\).

Why the First-Row Signs Are \(+,-,+\)

Write a general matrix as \(\mathbf{A}=\begin{bmatrix}a&b&c\\d&e&f\\g&h&i\end{bmatrix}\). Deleting row 1 and column 1 leaves \(\begin{bmatrix}e&f\\h&i\end{bmatrix}\), whose determinant is \(ei-fh\). Deleting row 1 and column 2 leaves \(\begin{bmatrix}d&f\\g&i\end{bmatrix}\), with determinant \(di-fg\). Deleting row 1 and column 3 leaves \(\begin{bmatrix}d&e\\g&h\end{bmatrix}\), with determinant \(dh-eg\).

Theorem (First-row cofactor expansion for a \(3\times3\) matrix): For \(\mathbf{A}=\begin{bmatrix}a&b&c\\d&e&f\\g&h&i\end{bmatrix}\), its determinant is \(aC_{11}+bC_{12}+cC_{13}\), or equivalently \(aM_{11}-bM_{12}+cM_{13}\). The first-row cofactors are \(C_{11}=ei-fh\), \(C_{12}=-(di-fg)\), and \(C_{13}=dh-eg\).

Proof. Begin with the six-term determinant formula and collect terms according to the first-row entry they contain:

$$ \begin{aligned} \det\mathbf{A} &=aei+bfg+cdh-ceg-bdi-afh\\ &=a(ei-fh)+b(fg-di)+c(dh-eg)\\ &=a(ei-fh)-b(di-fg)+c(dh-eg). \end{aligned} $$

By the \(2\times2\) determinant formula, \(ei-fh=M_{11}\), \(di-fg=M_{12}\), and \(dh-eg=M_{13}\). The cofactor definition gives \(C_{11}=M_{11}\), \(C_{12}=-M_{12}\), and \(C_{13}=M_{13}\). Substituting these identities into the last line yields both stated forms of the expansion. \(\square\)

This derivation accounts for every sign: the middle term is negative because its grouped products are \(b(fg-di)=-b(di-fg)\). The two outer terms have positive signs and are exactly the first and third minors multiplied by their entries.

Computing with the Expansion

Worked Example: Three Nonzero First-Row Entries

Find the determinant of \(\mathbf{A}=\begin{bmatrix}2&-1&3\\1&0&4\\-2&5&1\end{bmatrix}\) by expanding along its first row.

First compute the three minors by deleting row 1 and the indicated column:

$$ \begin{aligned} M_{11}&=\det\begin{bmatrix}0&4\\5&1\end{bmatrix}=0\cdot1-4\cdot5=-20,\\ M_{12}&=\det\begin{bmatrix}1&4\\-2&1\end{bmatrix}=1\cdot1-4(-2)=9,\\ M_{13}&=\det\begin{bmatrix}1&0\\-2&5\end{bmatrix}=1\cdot5-0(-2)=5. \end{aligned} $$

Apply the first-row signs \(+,-,+\). The cofactors are \(C_{11}=-20\), \(C_{12}=-9\), and \(C_{13}=5\). Multiplying each cofactor by its matching first-row entry gives

$$ \det\mathbf{A}=2(-20)+(-1)(-9)+3(5)=-40+9+15=-16. $$

Check: The six signed products are \(2\cdot0\cdot1=0\), \((-1)\cdot4\cdot(-2)=8\), \(3\cdot1\cdot5=15\), \(-3\cdot0\cdot(-2)=0\), \(-(-1)\cdot1\cdot1=1\), and \(-2\cdot4\cdot5=-40\). Their sum is \(0+8+15+0+1-40=-16\), agreeing with the cofactor expansion.

A useful way to organize the work is to keep three roles separate: the first-row entry, the minor obtained by deleting its row and column, and the sign that converts that minor into a cofactor. The cofactor expansion pairs each entry only with its own cofactor; it does not pair an entry with a minor from a different column.

Worked Example: A Negative Middle Cofactor

Expand \(\mathbf{B}=\begin{bmatrix}1&2&-1\\3&-2&0\\4&1&2\end{bmatrix}\) along its first row. Pay particular attention to the middle cofactor.

Deleting row 1 and columns 1, 2, and 3 in turn gives

$$ \begin{aligned} M_{11}&=\det\begin{bmatrix}-2&0\\1&2\end{bmatrix}=(-2)(2)-0(1)=-4,\\ M_{12}&=\det\begin{bmatrix}3&0\\4&2\end{bmatrix}=3(2)-0(4)=6,\\ M_{13}&=\det\begin{bmatrix}3&-2\\4&1\end{bmatrix}=3(1)-(-2)(4)=11. \end{aligned} $$

The checkerboard signs make the cofactors \(C_{11}=-4\), \(C_{12}=-6\), and \(C_{13}=11\). Therefore

$$ \det\mathbf{B}=1(-4)+2(-6)+(-1)(11)=-4-12-11=-27. $$

Check: The six terms are \(1(-2)2=-4\), \(2(0)4=0\), \((-1)3(1)=-3\), \(-(-1)(-2)4=-8\), \(-2(3)2=-12\), and \(-1(0)(1)=0\). Adding them gives \(-4+0-3-8-12+0=-27\). The direct calculation agrees.

What the Formula Says About the First Row

Proposition: If the second and third rows of a \(3\times3\) matrix are fixed, its determinant is a linear expression in its first-row entries. In particular, if the first row is \((a,b,c)\), the determinant has the form \(aC_{11}+bC_{12}+cC_{13}\), where these three cofactors depend only on the fixed lower rows.

Proof. Let the fixed lower rows be \((d,e,f)\) and \((g,h,i)\). The expansion already proved is \(a(ei-fh)-b(di-fg)+c(dh-eg)\). Each coefficient \(ei-fh\), \(-(di-fg)\), and \(dh-eg\) depends only on the lower rows, not on \(a,b,c\). The expression is therefore linear in the first-row entries: replacing \((a,b,c)\) by \((a_1+a_2,b_1+b_2,c_1+c_2)\) adds the corresponding two expressions, and multiplying all three entries by a scalar multiplies the determinant by that scalar. This proves the proposition. \(\square\)

For example, keep the last two rows \((1,2,0)\) and \((3,-1,4)\) fixed, and let the first row be \((x,y,z)\). Its minors are \(8\), \(4\), and \(-7\), so the first-row cofactors are \(8\), \(-4\), and \(-7\). The expansion gives \(8x-4y-7z\). The coefficients do not change as \(x,y,z\) change, because they come entirely from the lower rows.

Worked Example: A Symbolic First Row

For \(\mathbf{C}=\begin{bmatrix}x&y&z\\1&2&0\\3&-1&4\end{bmatrix}\), express the determinant in terms of \(x,y,z\), then check the expression at \(x=1\), \(y=2\), \(z=-1\).

Compute the minors and apply their signs:

$$ \begin{aligned} M_{11}&=\det\begin{bmatrix}2&0\\-1&4\end{bmatrix}=2(4)-0(-1)=8,\\ M_{12}&=\det\begin{bmatrix}1&0\\3&4\end{bmatrix}=1(4)-0(3)=4,\\ M_{13}&=\det\begin{bmatrix}1&2\\3&-1\end{bmatrix}=1(-1)-2(3)=-7. \end{aligned} $$

The cofactors are \(8,-4,-7\), so \(\det\mathbf{C}=8x-4y-7z\). At \(x=1,y=2,z=-1\), this expression gives \(8-8+7=7\).

Check: With those values, the six signed products are \(1\cdot2\cdot4=8\), \(2\cdot0\cdot3=0\), \((-1)\cdot1\cdot(-1)=1\), \(-(-1)\cdot2\cdot3=6\), \(-2\cdot1\cdot4=-8\), and \(-1\cdot0\cdot(-1)=0\). Their sum is \(8+0+1+6-8+0=7\), as required.

Common Sign Pitfall

A frequent error is to compute the middle minor correctly and then use it as though it were already the middle cofactor. In Worked Example 1, \(M_{12}=9\), but \(C_{12}=-9\). Using \(M_{12}\) directly would give the incorrect calculation \(2(-20)+(-1)(9)+3(5)=-40-9+15=-34\). The correct middle contribution is the entry \(-1\) multiplied by the cofactor \(-9\), giving \(+9\), and the determinant is \(-40+9+15=-16\).

The reliable correction is to write down all three signs before combining terms: \(+M_{11}\), \(-M_{12}\), \(+M_{13}\). Then multiply each signed minor by the entry in the same first-row column. A minor is not signed just because it was computed from a determinant; the cofactor sign is a separate part of the calculation.

For this tutorial, the expansion is specifically along the first row. The sign and minor in each term are tied to a particular matrix position. In the next calculation, first verify the minor by deleting the correct row and column, then apply the checkerboard sign, and only then multiply by the first-row entry. This sequence makes the calculation auditable and helps locate an error if the final result does not match a direct six-term check.

Check Your Understanding

For each calculation, keep the minor, cofactor, and first-row entry distinct. Use the six-term formula to check at least one result.

  1. For \(\begin{bmatrix}1&2&0\\3&1&-1\\2&4&5\end{bmatrix}\), find \(M_{11},M_{12},M_{13}\), their cofactors, and the determinant by first-row expansion.
  2. Explain why the cofactor \(C_{12}\) is the negative of \(M_{12}\), not equal to \(M_{12}\).
  3. For \(\begin{bmatrix}x&y&z\\2&1&3\\0&-1&4\end{bmatrix}\), find the three first-row cofactors and write the determinant as an expression in \(x,y,z\).
  4. A calculation for a matrix has \(M_{12}=-5\). What is \(C_{12}\), and what is the contribution from the middle entry if that entry equals \(2\)?
  5. State how the six-term determinant formula groups into the first-row entries and their signed \(2\times2\) minors.

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