Euler Hall — free maths guides

Compute one cofactor of a 3 by 3 matrix

Compute a cofactor as delete, evaluate, then sign, in that order. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

Plain words first

One cofactor of a3×33\times3 matrix is one number, and getting it is a fixed three-step routine.

Cij=(−1)i+jdet⁡(A with row i and column j deleted).C_{ij}=(-1)^{i+j}\det\big(\text{$A$ with row $i$ and column $j$ deleted}\big).

Step 1 — delete. Cross out rowii and columnjj. Four entries survive, in their original relative positions.

Step 2 — evaluate. Those four entries make a2×22\times2 determinant: main diagonal product minus the other.

Step 3 — sign. Addi+ji+j. Even means keep the number; odd means flip its sign.

That is all. There is no matrix to invert, no expansion to perform, and nothing to remember beyond the three steps in that order.

Why one cofactor is worth a whole question. The exam's determinant question is a sum of three of these, so a student who cannot produce one reliably has three independent chances to lose a sign — and one wrong term makes the whole answer wrong.

Why delete, evaluate, sign — in that order

The three steps are the three parts of the definition, and the order matters practically even though the multiplication commutes.

Deleting first is a shape guarantee. After it you hold a2×22\times2, so the arithmetic is a fixed pattern and evaluating the wrong-size object is impossible.

Evaluating second means the sign is applied to a number. A sign on a matrix is ambiguous — one entry, one row, or all of them? On a scalar it is not.

The sign last means one decision per cofactor, made once rather than re-derived in the middle of arithmetic.

Why it produces the determinant. Expanding along any row, det⁡A=∑jaijCij.\det A=\sum_j a_{ij}C_{ij}. Each term is one entry times one signed minor. Since the cofactor removes the row and column of its own entry, the three terms partition the work: together they use every entry exactly once in each row and column. That is the "one from each row and column" condition, met exactly.

Expanding along a different row gives the same answer because both expansions enumerate the same products, grouped by a different first factor; the signs adjust consistently because(−1)i+j(-1)^{i+j} uses the chosen row as well as the column.

Worked example, all nine cofactors in a table

A=[213045106]A=\begin{bmatrix}2&1&3\\0&4&5\\1&0&6\end{bmatrix}

| position | minor (delete its row and column) | minor value |i+ji+j | cofactor | |---|---|---|---|---| |(1,1)(1,1) |∣4506∣\begin{vmatrix}4&5\\0&6\end{vmatrix} |2424 |22 even |2424 | |(1,2)(1,2) |∣0516∣\begin{vmatrix}0&5\\1&6\end{vmatrix} |−5-5 |33 odd |55 | |(1,3)(1,3) |∣0410∣\begin{vmatrix}0&4\\1&0\end{vmatrix} |−4-4 |44 even |−4-4 | |(2,1)(2,1) |∣1306∣\begin{vmatrix}1&3\\0&6\end{vmatrix} |66 |33 odd |−6-6 | |(2,2)(2,2) |∣2316∣\begin{vmatrix}2&3\\1&6\end{vmatrix} |99 |44 even |99 | |(2,3)(2,3) |∣2110∣\begin{vmatrix}2&1\\1&0\end{vmatrix} |−1-1 |55 odd |11 | |(3,1)(3,1) |∣1345∣\begin{vmatrix}1&3\\4&5\end{vmatrix} |−7-7 |44 even |−7-7 | |(3,2)(3,2) |∣2305∣\begin{vmatrix}2&3\\0&5\end{vmatrix} |1010 |55 odd |−10-10 | |(3,3)(3,3) |∣2104∣\begin{vmatrix}2&1\\0&4\end{vmatrix} |88 |66 even |88 |

Now the payoff — the determinant, and its check. Expanding along row 1: det⁡A=2(24)+1(5)+3(−4)=48+5−12=41.\det A=2(24)+1(5)+3(-4)=48+5-12=41. Expanding along column 3 instead: det⁡A=3(−4)+5(1)+6(8)=−12+5+48=41 ✓.\det A=3(-4)+5(1)+6(8)=-12+5+48=41\ ✓.

Two different expansions, the same number. That is the check to run on exam day if you have time: expand along a different line and compare. Any mismatch is a sign or an arithmetic slip in one of the two.

A cheaper check: if your cofactor matrix's pattern of signs differs from the checkerboard, the signs are wrong before any number is examined.

By the end you can
  • Compute a cofactor as delete, evaluate, then sign, in that order
  • Expand a determinant along a row or column using entries times cofactors
  • Check an answer by expanding along a different line
  • Recognise that the cofactors of a zero row need not be zero, even though the expansion along it is
Test yourself without looking back

D=[1234567810]D=\begin{bmatrix}1&2&3\\4&5&6\\7&8&10\end{bmatrix}

  1. 1. ComputeC21C_{21} andC23C_{23}.
  2. 2. Expand along row 2 to getdet⁡D\det D.
  3. 3. Check against the diagonal rule of your choice.
Answers

1.C21C_{21}: delete row 2, column 1 →∣23810∣=20−24=−4\begin{vmatrix}2&3\\8&10\end{vmatrix}=20-24=-4; sign(2+1)=3(2+1)=3 odd →C21=4C_{21}=4.C23C_{23}: delete row 2, column 3 →∣1278∣=8−14=−6\begin{vmatrix}1&2\\7&8\end{vmatrix}=8-14=-6; sign55 odd →C23=6C_{23}=6. 2.C22C_{22}: delete row 2, column 2 →∣13710∣=10−21=−11\begin{vmatrix}1&3\\7&10\end{vmatrix}=10-21=-11; sign even →−11-11. Then det⁡D=4(4)+5(−11)+6(6)=16−55+36=−3.\det D=4(4)+5(-11)+6(6)=16-55+36=-3. 3. The diagonal rule:1⋅5⋅10+2⋅6⋅7+3⋅4⋅8−3⋅5⋅7−2⋅4⋅10−1⋅6⋅8=50+84+96−105−80−48=−31\cdot5\cdot10+2\cdot6\cdot7+3\cdot4\cdot8-3\cdot5\cdot7-2\cdot4\cdot10-1\cdot6\cdot8=50+84+96-105-80-48=-3 ✓.

Work out where to start — free, no accountAnswer six real questions — free, no account