Section 3.9 Determinants
The determinant of a (square) matrix is somewhat complicated in general, so you may want to check a reference book. The \(2\times2\) and \(3\times3\) cases can be memorized using the examples below.
The determinant of a \(2\times2\) matrix is given by
Notice in the equation above the two common notations for determinant.
The determinant of a \(3\times3\) matrix is computed as follows:
The smaller \(2\times2\) determinants are called the cofactors of the elements \(a\text{,}\) \(b\text{,}\) and \(c\text{,}\) respectively. The minus sign in front of \(b\) is part of the cofactor. Cofactors are formed by keeping only what is left after eliminating everything from the row and column where the element desired resides. So, for \(a\text{,}\) the row elements, \(b\) and \(c\text{,}\) and the column elements, \(d\) and \(g\text{,}\) are eliminated, leaving the \(2\times2\) matrix shown above.
Computing \(4\times4\) matrices is a straightforward extension of the above procedure, but it is easier to just go to a computer!!!
Checkpoint 3.5. Try it yourself: Determinant.
Compute \(\det(B)\) if
The method above extends naturally to square matrices of any size, but there is an easier way to find the determinant of a \(3\times3\) matrix that uses cyclic symmetry. Multiply the numbers on each “forward” diagonal (wrapping around as needed) and add them together, then do the same on each “backward” diagonal, but subtract the latter subtotal from the former.
Applying this method to \(B\text{,}\) we have
You can use the Sage code below to compute the determinant of any matrix.