Euler Hall — free maths guides

Compute a 3 by 3 determinant by the diagonal rule

Write all six products of a 3 by 3 determinant by the diagonal rule. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

Three down-right, three down-left

Write the matrix, then copy its first two columns to the right:

[abcabdefdeghigh]\begin{bmatrix}a&b&c&a&b\\ d&e&f&d&e\\ g&h&i&g&h\end{bmatrix}

Now multiply along the three diagonals that run down to the right:

aei,bfg,cdh.aei,\qquad bfg,\qquad cdh.

Then multiply along the three that run down to the left:

ceg,afh,bdi.ceg,\qquad afh,\qquad bdi.

The determinant is the first three minus the second three:

det⁡A=aei+bfg+cdh−ceg−afh−bdi.\det A=aei+bfg+cdh-ceg-afh-bdi.

Six products, three subtracted. Nothing else.

It works only at3×33\times3. There is no diagonal rule for a2×22\times2 worth the name and none at all for a4×44\times4.

Why the diagonals, and why only at 3 by 3

The definition says: one entry from every row, one from every column, with the sign of the column ordering. For a3×33\times3 that is3!=63!=6 products.

Now notice what copying the columns does. Each down-right diagonal reads one entry from row 1 columnjj, row 2 columnj+1j+1, row 3 columnj+2j+2 — cycling round at the end. Those are exactly the orderings(1,2,3)(1,2,3),(2,3,1)(2,3,1) and(3,1,2)(3,1,2), and cycling moves an entry past the end, which costs two swaps, so all three are even. The down-left diagonals read(1,3,2)(1,3,2),(3,2,1)(3,2,1) and(2,1,3)(2,1,3), each an odd ordering, so all three are subtracted.

At3×33\times3 the six orderings happen to fall into three of each that a picture can hold. At4×44\times4 there are2424 orderings, and no arrangement of copied columns puts them on diagonals — so there is nothing to memorise and nothing to draw. That is the whole reason the rule stops.

Complete worked example, in the paper's shape

Problem. Computedet⁡A\det A forA=[213041120]A=\begin{bmatrix}2&1&3\\ 0&4&1\\ 1&2&0\end{bmatrix} by the diagonal rule.

Solution. Copy the first two columns and write the six products.

Down-right:2⋅4⋅0=02\cdot4\cdot0=0,1⋅1⋅1=11\cdot1\cdot1=1,3⋅0⋅2=03\cdot0\cdot2=0. Down-left:3⋅4⋅1=123\cdot4\cdot1=12,2⋅1⋅2=42\cdot1\cdot2=4,1⋅0⋅0=01\cdot0\cdot0=0.

det⁡A=(0+1+0)−(12+4+0)=1−16=−15.\det A=(0+1+0)-(12+4+0)=1-16=-15.

Check by cofactors along row 1:2(4⋅0−1⋅2)−1(0⋅0−1⋅1)+3(0⋅2−4⋅1)=−4+1−12=−152(4\cdot0-1\cdot2)-1(0\cdot0-1\cdot1)+3(0\cdot2-4\cdot1)=-4+1-12=-15. ✓

Notice how much of the work the zeros saved: four of the six products died on their own. The rule does not know about zeros, but the arithmetic does.

By the end you can
  • Write all six products of a 3 by 3 determinant by the diagonal rule
  • Say which three of the six are subtracted
  • Recognise that the rule exists only at 3 by 3
Check yourself
  1. 1. Computedet⁡[102310021]\det\begin{bmatrix}1&0&2\\ 3&1&0\\ 0&2&1\end{bmatrix} by the rule.
  2. 2. Computedet⁡[2134]\det\begin{bmatrix}2&1\\ 3&4\end{bmatrix} by the rule. Does the picture even exist at2×22\times2?
  3. 3. How many products would a4×44\times4 need, and how many would be subtracted?
  4. 4. A matrix has a row(0,0,0)(0,0,0). Which of the six products survive?
Answers
  1. 1. Down-right:1⋅1⋅1=11\cdot1\cdot1=1,0⋅0⋅0=00\cdot0\cdot0=0,2⋅3⋅2=122\cdot3\cdot2=12. Down-left:2⋅1⋅0=02\cdot1\cdot0=0,1⋅0⋅2=01\cdot0\cdot2=0,0⋅3⋅1=00\cdot3\cdot1=0. Total1313.
  2. 2.2⋅4−1⋅3=52\cdot4-1\cdot3=5. The picture does not exist: with two columns there is one down-right diagonal and one down-left, which is just thead−bcad-bc rule. Writing it as a picture is a waste of ink.
  3. 3.4!=244!=24 products,1212 subtracted.
  4. 4. None. Every product takes one entry from every row, so a zero row kills all six at once, and the determinant is00 with no arithmetic.
Work out where to start — free, no accountAnswer six real questions — free, no account