Skip to main content
Logo image

Elementary Linear Algebra: For University of Lethbridge Math 1410

Section 6.3 The Determinant

In this chapter so far we’ve learned about the transpose (an operation on a matrix that returns another matrix) and the trace (an operation on a square matrix that returns a number). In this section we’ll learn another operation on square matrices that returns a number, called the determinant. The determinant of an \(n\times n\) matrix \(\tta\) is a number, denoted \(\det(A)\text{,}\) that is determined by \(\tta\text{.}\) We had a brief encounter with determinants in Section 2.4, where we saw that determinants of \(2\times 2\) and \(3\times 3\) matrices are related to the cross product of vectors in \(\R^3\text{.}\)
The determinant is kind of a tricky thing to define. Once you know and understand it, it isn’t that hard, but getting started is a bit complicated. (It’s similar to learning to ride a bike. The riding itself isn’t hard, it is getting started that’s difficult.) Unlike many mathematical quantities, we do not give a single formula to define the determinant of a matrix. Instead, we define the determinant recursively: first, we’ll explain how to compute the determinant of a \(2\times 2\) matrix. Then, we’ll explain how to compute the determinant of a \(3\times 3\) matrix in terms of \(2\times 2\) determinants, and so on. Let’s get started, and define the determinant for \(2 \times 2\) matrices.

Definition 6.3.1. Determinant of \(2\times 2\) Matrices.

Let
\begin{equation*} \tta = \bbm a \amp b\\c \amp d\ebm\text{.} \end{equation*}
The determinant of \tta, denoted by
\begin{equation*} \det(\tta) \ \text{or}\ \bvm a \amp b\\c \amp d\evm , \end{equation*}
is \(ad-bc\text{.}\)
We’ve seen the expression \(ad-bc\) before. In Section 4.4, we saw that a \(2\times2\) matrix \(\tta\) has inverse
\begin{equation*} \frac{1}{ad-bc}\bbm d \amp -b\\-c \amp a\ebm \end{equation*}
as long as \(ad-bc\neq 0\text{;}\) otherwise, the inverse does not exist. We can rephrase the above statement now: If \(\det(\tta)\neq 0\text{,}\) then
\begin{equation*} \ttai = \frac{1}{\det(A)}\bbm d \amp -b\\-c \amp a\ebm\text{.} \end{equation*}
A brief word about the notation: notice that we can refer to the determinant by using what looks like absolute value bars around the entries of a matrix. We discussed at the end of the last section the idea of measuring the “size” of a matrix, and mentioned that there are many different ways to measure size. The determinant is one such way. Just as the absolute value of a number measures its size (and ignores its sign), the determinant of a matrix is a measurement of the size of the matrix. (Be careful, though: \(\det(\tta)\) can be negative!)
Note: We saw in Section 5.1 that a matrix transformation \(T(\vx) = A\vx\text{,}\) where \(A\) is a \(2\times 2\) matrix, can be used to define a transformation of the Cartesian plane. We saw that we can understand the effect of such a transformation by its effect on the unit square, and for this, it is enough to compute \(T(\ven{1})\) and \(T(\ven{2})\text{.}\) It’s easy to see that these two vectors are the columns of \(A\text{:}\)
\begin{align*} \bbm T(\ven{1}) \amp T(\ven{2})\ebm \amp = \bbm A\ven{1} \amp A\ven{2}\ebm\\ \amp = A\bbm \ven{1}\amp \ven{2}\ebm\\ \amp = AI_2 = A\text{.} \end{align*}
Now, it’s possible that one of these vectors is zero, or that the two vectors are parallel, but if not, the vectors \(T(\ven{1})\) and \(T(\ven{2})\) determine a parallelogram. With a bit of work (see Example 2.4.9 in Section 2.4), we can show that the area of this parallelogram is given precisely by \(\det(A)\text{.}\) You may also recall that we already encountered the \(3\times 3\) determinant once, in Section 2.4, where it was used to determine the volume of a parallelepiped: see the discussion following Example 2.4.14. In general, \(\det(A)\) computes the effect of the transformation \(T(\vx) = A\vx\) on area, and volume (in three dimensions or higher).

Example 6.3.2. Computing \(2\times 2\) determinants.

Find the determinant of \(\tta\text{,}\) \(\ttb\) and \(\ttc\) where
\begin{equation*} \tta = \bbm 1 \amp 2\\3 \amp 4\ebm, \ \ttb = \bbm 3\amp -1\\2\amp 7\ebm\ \text{and}\ \ttc = \bbm 1\amp -3\\-2\amp 6\ebm\text{.} \end{equation*}
Solution.
Finding the determinant of \tta:
\begin{align*} \det(A) \amp = \bvm 1\amp 2\\3\amp 4\evm\\ \amp = 1(4) - 2(3)\\ \amp = -2\text{.} \end{align*}
Similar computations show that \(\det(\ttb) = 3(7)- (-1)(2) = 23\) and \(\det(\ttc) = 1(6) - (-3)(-2) = 0\text{.}\)
Finding the determinant of a \(2\times2\) matrix is pretty straightforward. It is natural to ask next “How do we compute the determinant of matrices that are not \(2\times2\text{?}\)” We first need to define some terms.

Definition 6.3.3. Matrix Minor, Cofactor.

Let \(\tta\) be an \(n\times n\) matrix. The \((i,j)\)-minor of \(\tta\text{,}\) denoted \(\tta_{ij}\text{,}\) is the determinant of the \((n-1)\times(n-1)\) matrix formed by deleting the \(i^{th}\) row and \(j^{th}\) column of \(\tta\text{.}\)
The \((i,j)\)-cofactor of \tta is the number
\begin{equation*} C_{ij}=(-1)^{i+j}\tta_{ij}\text{.} \end{equation*}
Notice that this definition makes reference to taking the determinant of a matrix, while we haven’t yet defined what the determinant is beyond \(2\times 2\) matrices. We recognize this problem, and we’ll see how far we can go before it becomes an issue.

Example 6.3.4. Computing minors and cofactors.

Let
\begin{equation*} \tta = \bbm 1 \amp 2 \amp 3\\4\amp 5\amp 6\\7\amp 8\amp 9\ebm\ \text{and}\ \ttb = \bbm 1\amp 2\amp 0\amp 8\\-3\amp 5\amp 7\amp 2\\-1\amp 9\amp -4\amp 6\\1\amp 1\amp 1\amp 1\ebm\text{.} \end{equation*}
Find \(\tta_{1,3}\text{,}\) \(\tta_{3,2}\text{,}\) \(\ttb_{2,1}\text{,}\) \(\ttb_{4,3}\) and their respective cofactors.
Solution.
To compute the minor \(\tta_{1,3}\text{,}\) we remove the first row and third column of \(\tta\) then take the determinant.
\begin{align*} \tta \amp = \bbm 1\amp 2\amp 3\\4\amp 5\amp 6\\7\amp 8\amp 9\ebm\Rightarrow\bbm\mathbf{\cancel{1}}\amp \mathbf{\cancel{2}}\amp \mathbf{\cancel{3}}\\4\amp 5\amp \mathbf{\cancel{6}}\\7\amp 8\amp \mathbf{\cancel{9}}\ebm\Rightarrow\bbm 4\amp 5\\7\amp 8\ebm\\ \tta_{1,3} \amp = \bvm 4\amp 5\\7\amp 8\evm = 32-35 = -3\text{.} \end{align*}
The corresponding cofactor, \(C_{1,3}\text{,}\) is
\begin{equation*} C_{1,3} = (-1)^{1+3}\tta_{1,3} = (-1)^4(-3) = -3\text{.} \end{equation*}
The minor \(\tta_{3,2}\) is found by removing the third row and second column of \(\tta\) then taking the determinant.
\begin{align*} \tta \amp = \bbm 1\amp 2\amp 3\\4\amp 5\amp 6\\7\amp 8\amp 9\ebm\Rightarrow\bbm 1\amp \mathbf{\cancel{2}}\amp 3\\4\amp \mathbf{\cancel{5}}\amp 6\\ \mathbf{\cancel{7}}\amp \mathbf{\cancel{8}}\amp \mathbf{\cancel{9}}\ebm\Rightarrow \bbm 1\amp 3\\4\amp 6\ebm\\ \tta_{3,2} \amp = \bvm 1\amp 3\\4\amp 6\evm = 6-12 = -6\text{.} \end{align*}
The corresponding cofactor, \(C_{3,2}\text{,}\) is
\begin{equation*} C_{3,2} = (-1)^{3+2}\tta_{3,2} = (-1)^5(-6) = 6\text{.} \end{equation*}
The minor \(\tta_{3,2}\) is found by removing the third row and second column of \(\tta\) then taking the determinant.
\begin{align*} \tta \amp = \bbm 1\amp 2\amp 3\\4\amp 5\amp 6\\7\amp 8\amp 9\ebm\Rightarrow\bbm 1\amp \mathbf{\cancel{2}}\amp 3\\4\amp \mathbf{\cancel{5}}\amp 6\\ \mathbf{\cancel{7}}\amp \mathbf{\cancel{8}}\amp \mathbf{\cancel{9}}\ebm\Rightarrow \bbm 1\amp 3\\4\amp 6\ebm\\ \tta_{3,2} \amp = \bvm 1\amp 3\\4\amp 6\evm = 6-12 = -6\text{.} \end{align*}
The corresponding cofactor, \(C_{3,2}\text{,}\) is
\begin{equation*} C_{3,2} = (-1)^{3+2}\tta_{3,2} = (-1)^5(-6) = 6\text{.} \end{equation*}
The minor \(\ttb_{2,1}\) is found by removing the second row and first column of \(\ttb\) then taking the determinant.
\begin{align*} \ttb \amp = \bbm 1\amp 2\amp 0\amp 8\\-3\amp 5\amp 7\amp 2\\-1\amp 9\amp -4\amp 6\\1\amp 1\amp 1\amp 1\ebm \Rightarrow \bbm\mathbf{\cancel{1}}\amp 2\amp 0\amp 8\\ \mathbf{\cancel{-3}}\amp \mathbf{\cancel{5}}\amp \mathbf{\cancel{7}}\amp \mathbf{\cancel{2}}\\ \mathbf{\cancel{-1}}\amp 9\amp -4\amp 6\\ \mathbf{\cancel{1}}\amp 1\amp 1\amp 1\ebm \Rightarrow \bbm 2\amp 0\amp 8\\9\amp -4\amp 6\\1\amp 1\amp 1\ebm\\ \ttb_{2,1} \amp = \bvm 2\amp 0\amp 8\\9\amp -4\amp 6\\1\amp 1\amp 1\evm \stackrel{!}{=}\text{?} \end{align*}
We’re a bit stuck. We don’t know how to find the determinant of this \(3\times 3\) matrix. We’ll come back to this later. The corresponding cofactor is
\begin{equation*} C_{2,1} = (-1)^{2+1}\ttb_{2,1} = -\ttb_{2,1}\text{,} \end{equation*}
whatever this number happens to be. The minor \(\ttb_{4,3}\) is found by removing the fourth row and third column of \(\ttb\) then taking the determinant.
\begin{align*} \ttb \amp = \bbm 1\amp 2\amp 0\amp 8\\-3\amp 5\amp 7\amp 2\\-1\amp 9\amp -4\amp 6\\1\amp 1\amp 1\amp 1\ebm \Rightarrow \bbm 1\amp 2\amp \mathbf{\cancel{0}}\amp 8\\-3\amp 5\amp \mathbf{\cancel{7}}\amp 2\\-1\amp 9\amp \mathbf{\cancel{-4}}\amp 6\\ \mathbf{\cancel{1}}\amp \mathbf{\cancel{1}}\amp \mathbf{\cancel{1}}\amp \mathbf{\cancel{1}}\ebm \Rightarrow \bbm 1\amp 2\amp 8\\-3\amp 5\amp 2\\-1\amp 9\amp 6\ebm\\ \ttb_{4,3} \amp = \bvm 1\amp 2\amp 8\\-3\amp 5\amp 2\\-1\amp 9\amp 6\evm \stackrel{!}{=}\text{?} \end{align*}
Again, we’re stuck. We won’t be able to fully compute \(C_{4,3}\text{;}\) all we know so far is that
\begin{equation*} C_{4,3} = (-1)^{4+3}\ttb_{4,3} = (-1)\ttb_{4,3}\text{.} \end{equation*}
Once we learn how to compute determinants for matrices larger than \(2\times 2\) we can come back and finish this exercise.
In our previous example we ran into a bit of trouble. By our definition, in order to compute a minor of an \(n\times n\) matrix we needed to compute the determinant of a \((n-1)\times(n-1)\) matrix. This was fine when we started with a \(3\times3\) matrix, but when we got up to a \(4\times4\) matrix (and larger) we run into trouble.
We are almost ready to define the determinant for any square matrix; we need one last definition.

Definition 6.3.5. Cofactor Expansion.

Let \(A=[a_{ij}]\) be an \(n\times n\) matrix. The cofactor expansion of \(\tta\) along the \(i\)th row is the sum
\begin{equation*} a_{i,1}C_{i,1} + a_{i,2}C_{i,2} + \cdots + a_{i,n}C_{i,n}\text{.} \end{equation*}
The cofactor expansion of \(\tta\) down the \(j\)th column is the sum
\begin{equation*} a_{1,j}C_{1,j} + a_{2,j}C_{2,j} + \cdots + a_{n,j}C_{n,j}\text{.} \end{equation*}
The notation of this definition might be a little intimidating, so let’s look at an example.

Example 6.3.6. Computing cofactor exapansions.

Let
\begin{equation*} \tta = \bbm 1 \amp 2 \amp 3\\4\amp 5\amp 6\\7\amp 8\amp 9\ebm\text{.} \end{equation*}
Find the cofactor expansions along the second row and down the first column.
Solution.
By the definition, the cofactor expansion along the second row is the sum
\begin{equation*} a_{2,1}C_{2,1} + a_{2,2}C_{2,2} + a_{2,3}C_{2,3}\text{.} \end{equation*}
(Be sure to compare the above line to the definition of cofactor expansion, and see how the “\(i\)” in the definition is replaced by “2” here.)
We’ll find each cofactor and then compute the sum.
\begin{align*} C_{2,1} \amp = (-1)^{2+1}\bvm 2\amp 3\\8\amp 9\evm = (-1)(-6) = 6 \quad \scriptstyle \begin{pmatrix} \text{we removed the second row}\\ \text{and first column of } \tta \\ \text{to compute the minor}\end{pmatrix}\displaystyle\\ C_{2,2} \amp = (-1)^{2+2}\bvm 1\amp 3\\7\amp 9\evm = (1)(-12) = -12\quad \scriptstyle \begin{pmatrix} \text{we removed the second row}\\ \text{and second column of } \tta \\ \text{to compute the minor}\end{pmatrix}\displaystyle\\ C_{2,3} \amp = (-1)^{2+3}\bvm 1\amp 2\\7\amp 8\evm = (-1)(-6) = 6 \quad \scriptstyle \begin{pmatrix} \text{we removed the second row}\\ \text{and third column of } \tta\\ \text{to compute the minor}\end{pmatrix}\displaystyle\text{.} \end{align*}
Thus the cofactor expansion along the second row is
\begin{align*} a_{2,1}C_{2,1} + a_{2,2}C_{2,2} + a_{2,3}C_{2,3} \amp = 4(6) + 5(-12) + 6(6)\\ \amp = 24-60+36\\ \amp = 0\text{.} \end{align*}
At the moment, we don’t know what to do with this cofactor expansion; we’ve just successfully found it.
We move on to find the cofactor expansion down the first column. By the definition, this sum is
\begin{equation*} a_{1,1}C_{1,1} + a_{2,1}C_{2,1} + a_{3,1}C_{3,1}\text{.} \end{equation*}
(Again, compare this to the above definition and see how we replaced the “\(j\)” with “1.”)
We find each cofactor:
\begin{align*} C_{1,1} \amp = (-1)^{1+1}\bvm 5\amp 6\\8\amp 9\evm = (1)(-3) = -3 \quad \scriptstyle \begin{pmatrix}\text{we removed the first row}\\ \text{and first column of} \tta\\ \text{to compute the minor}\end{pmatrix}\displaystyle\\ C_{2,1} \amp = (-1)^{2+1}\bvm 2\amp 3\\8\amp 9\evm = (-1)(-6) = 6 \quad \text{(we computed this cofactor above)}\displaystyle\\ C_{3,1} \amp = (-1)^{3+1}\bvm 2\amp 3\\5\amp 6\evm = (1)(-3) = -3 \quad \scriptstyle \begin{pmatrix}\text{we removed the third row}\\ \text{and first column of } \tta\\ \text{ to compute the minor}\end{pmatrix}\displaystyle \end{align*}
The cofactor expansion down the first column is
\begin{align*} a_{1,1}C_{1,1} + a_{2,1}C_{2,1} + a_{3,1}C_{3,1} \amp = 1(-3) + 4(6) + 7(-3)\\ \amp = -3+24-21\\ \amp =0\text{.} \end{align*}
Is it a coincidence that both cofactor expansions were 0? We’ll answer that in a while. Now that we’ve gotten the hang of minors and cofactors, we’re ready to finally define the determinant.

Definition 6.3.7. The Determinant.

The determinant of an \(n\times n\) matrix \(\tta\text{,}\) denoted \(\det(A)\) or \(|\tta|\text{,}\) is a number given by the following:
  • if \(\tta\) is a \(1\times 1\) matrix \(\tta = [a]\text{,}\) then \(\det(A) = a.\)
  • if \(\tta\) is a \(2\times 2\) matrix
    \begin{equation*} \tta = \bbm a \amp b\\c \amp d\ebm, \end{equation*}
    then \(\det(A) = ad-bc\text{.}\)
  • if \(\tta\) is an \(n\times n\) matrix, where \(n\geq 2\text{,}\) then \(\det(A)\) is the number found by taking the cofactor expansion along the first row of \(\tta\text{.}\) That is,
    \begin{equation*} \det(A) = a_{1,1}C_{1,1} + a_{1,2}C_{1,2} + \cdots + a_{1,n}C_{1,n}\text{.} \end{equation*}
Notice that in order to compute the determinant of an \(n\times n\) matrix, we need to compute the determinants of \(n\) \((n-1)\times (n-1)\) matrices. This can be a lot of work. We’ll later learn how to shorten some of this. First, let’s practice.

Example 6.3.8. Computing a \(3\times 3\) determinant.

Find the determinant of
\begin{equation*} \tta = \bbm 1 \amp 2 \amp 3\\4\amp 5\amp 6\\7\amp 8\amp 9\ebm\text{.} \end{equation*}
Solution.
Notice that this is the matrix from Example 6.3.6. The cofactor expansion along the first row is
\begin{equation*} \det(A) = a_{1,1}C_{1,1}+a_{1,2}C_{1,2}+a_{1,3}C_{1,3}\text{.} \end{equation*}
We’ll compute each cofactor first then take the appropriate sum.
\begin{align*} C_{1,1} \amp = (-1)^{1+1}\tta_{1,1} \amp C_{1,2} \amp = (-1)^{1+2}\tta_{1,2} \amp C_{1,3} \amp = (-1)^{1+3}\tta_{1,3}\\ \amp = 1\cdot\bvm 5\amp 6\\8\amp 9\evm \amp \amp = (-1)\cdot\bvm 4\amp 6\\7\amp 9\evm \amp \amp = 1\cdot\bvm 4\amp 5\\7\amp 8\evm \\ \amp = 45-48 \amp \amp = (-1)(36-42) \amp \amp = 32-35\\ \amp =-3 \amp \amp =6 \amp \amp =-3\text{.} \end{align*}
Therefore the determinant of \(\tta\) is
\begin{equation*} \det(A) = 1(-3) + 2(6)+3(-3) = 0\text{.} \end{equation*}

Example 6.3.9. Another \(3\times 3\) determinant.

Find the determinant of
\begin{equation*} \tta = \bbm 3 \amp 6 \amp 7\\0\amp 2\amp -1\\3\amp -1\amp 1\ebm\text{.} \end{equation*}
Solution.
We’ll compute each cofactor first then find the determinant.
\begin{align*} C_{1,1} \amp = (-1)^{1+1}\tta_{1,1} \amp C_{1,2} \amp = (-1)^{1+2}\tta_{1,2} \amp C_{1,3} \amp = (-1)^{1+3}\tta_{1,3}\\ \amp = 1\cdot\bvm 2\amp -1\\-1\amp 1\evm \amp \amp = (-1)\cdot\bvm 0\amp -1\\3\amp 1\evm \amp \amp = 1\cdot\bvm 0\amp 2\\3\amp -1\evm\\ \amp = 2-1 \amp \amp = (-1)(0+3) \amp \amp = 0-6\\ \amp =1 \amp \amp =-3 \amp \amp =-6\text{.} \end{align*}
Thus the determinant is
\begin{equation*} \det(A) = 3(1)+6(-3)+7(-6) = -57\text{.} \end{equation*}

Example 6.3.10. Computing a \(4\times 4\) determinant.

Find the determinant of
\begin{equation*} \tta = \bbm 1 \amp 2 \amp 1\amp 2\\-1\amp 2\amp 3\amp 4\\8\amp 5\amp -3\amp 1\\5\amp 9\amp -6\amp 3\ebm\text{.} \end{equation*}
Solution.
This, quite frankly, will take quite a bit of work. In order to compute this determinant, we need to compute 4 minors, each of which requires finding the determinant of a \(3\times 3\) matrix! Complaining won’t get us any closer to the solution, (But it might make us feel a little better. Glance ahead: do you see how much work we have to do?!?) so let’s get started. We first compute the cofactors:
\begin{align*} C_{1,1} \amp = (-1)^{1+1}\tta_{1,1}\\ \amp = 1\cdot\bvm 2\amp 3\amp 4\\5\amp -3\amp 1\\9\amp -6\amp 3\evm \quad\quad\quad \scriptstyle \begin{pmatrix} \text{we must compute the determinant}\\ \text{of this } 3\times 3 \text{ matrix}\end{pmatrix}\displaystyle\\ \amp = 2\cdot(-1)^{1+1}\bvm -3\amp 1\\-6\amp 3\evm + 3\cdot(-1)^{1+2}\bvm 5\amp 1\\9\amp 3\evm + 4\cdot(-1)^{1+3}\bvm 5\amp -3\\9\amp -6\evm\\ \amp = 2(-3) + 3(-6) + 4(-3)\\ \amp = -36 \end{align*}
\begin{align*} C_{1,2} \amp = (-1)^{1+2}\tta_{1,2}\\ \amp = (-1)\cdot\bvm -1\amp 3\amp 4\\8\amp -3\amp 1\\5\amp -6\amp 3\evm \quad\quad\quad \scriptstyle \begin{pmatrix} \text{we must compute the determinant}\\ \text{of this } 3\times 3 \text{ matrix}\end{pmatrix}\displaystyle\\ \amp = (-1)\underbrace{\left[(-1)\cdot(-1)^{1+1}\bvm -3\amp 1\\-6\amp 3\evm + 3\cdot(-1)^{1+2}\bvm 8\amp 1\\5\amp 3\evm + 4\cdot(-1)^{1+3}\bvm 8\amp -3\\5\amp -6\evm \right]}_{\text{the determinant of the } 3 \times 3 \text{ matrix}}\\ \amp = (-1)\left[(-1)(-3)+3(-19)+4(-33) \right]\\ \amp = 186 \end{align*}
\begin{align*} C_{1,3} \amp = (-1)^{1+3}\tta_{1,3}\\ \amp = 1\cdot\bvm -1\amp 2\amp 4\\8\amp 5\amp 1\\5\amp 9\amp 3\evm \quad\quad\quad \scriptstyle \begin{pmatrix} \text{we must compute the determinant}\\ \text{of this } 3\times 3 \text{ matrix}\end{pmatrix}\displaystyle\\ \amp = (-1)\cdot(-1)^{1+1}\bvm 5\amp 1\\9\amp 3\evm + 2\cdot(-1)^{1+2}\bvm 8\amp 1\\5\amp 3\evm + 4\cdot(-1)^{1+3}\bvm 8\amp 5\\5\amp 9\evm\\ \amp = (-1)(6)+2(-19)+4(47)\\ \amp = 144 \end{align*}
\begin{align*} C_{1,4} \amp = (-1)^{1+4}\tta_{1,4}\\\\ \amp = (-1)\cdot\bvm -1\amp 2\amp 3\\8\amp 5\amp -3\\5\amp 9\amp -6\evm \quad\quad\quad\scriptstyle \begin{pmatrix} \text{we must compute the determinant}\\ \text{of this } 3\times 3 \text{ matrix}\end{pmatrix}\displaystyle\\ \amp = (-1)\underbrace{\left[(-1)\cdot(-1)^{1+1}\bvm 5\amp -3\\9\amp -6\evm + 2\cdot(-1)^{1+2}\bvm 8\amp -3\\5\amp -6\evm + 3\cdot(-1)^{1+3}\bvm 8\amp 5\\5\amp 9\evm \right]}_{\text{the determinant of the } 3 \times 3 \text{ matrix}}\\ \amp = (-1)\left[(-1)(-3)+2(33)+3(47)\right]\\ \amp = -210 \end{align*}
We’ve computed our four cofactors. All that is left is to compute the cofactor expansion.
\begin{equation*} \det(A) = 1(-36) + 2(186)+1(144)+2(-210) = 60\text{.} \end{equation*}
As a way of “visualizing” this, let’s write out the cofactor expansion again but including the matrices in their place.
\begin{align*} \det(A) \amp = a_{1,1}C_{1,1}+a_{1,2}C_{1,2}+a_{1,3}C_{1,3}+a_{1,4}C_{1,4}\\ \amp = 1(-1)^2\underbrace{\bvm 2\amp 3\amp 4\\5\amp -3\amp 1\\9\amp -6\amp 3\evm }_{=-36}\ +\ 2(-1)^3\underbrace{\bvm -1\amp 3\amp 4\\8\amp -3\amp 1\\5\amp -6\amp 3\evm }_{=-186}\\ \amp +\\ \amp \quad 1(-1)^4\underbrace{\bvm -1\amp 2\amp 4\\8\amp 5\amp 1\\5\amp 9\amp 3\evm }_{=144}\ +\ 2(-1)^5\underbrace{\bvm -1\amp 2\amp 3\\8\amp 5\amp -3\\5\amp 9\amp -6\evm }_{=210}\\ \amp = 60\text{.} \end{align*}
That certainly took a while; it required more than 50 multiplications (we didn’t count the additions). To compute the determinant of a \(5\times5\) matrix, we’ll need to compute the determinants of five \(4\times 4\) matrices, meaning that we’ll need over 250 multiplications! Not only is this a lot of work, but there are just too many ways to make silly mistakes. (The author made three when the above example was originally typed.) There are some tricks to make this job easier, but regardless we see the need to employ technology. Even then, technology quickly bogs down. A \(25 \times 25\) matrix is considered “small” by today’s standards, but it is essentially impossible for a computer to compute its determinant by only using cofactor expansion; it too needs to employ “tricks.”
In the next section we will learn some of these tricks as we learn some of the properties of the determinant. Right now, let’s review the essentials of what we have learned.
  1. The determinant of a square matrix is a number that is determined by the matrix.
  2. We find the determinant by computing the cofactor expansion along the first row.
  3. To compute the determinant of an \(n\times n\) matrix, we need to compute \(n\) determinants of \((n-1)\times(n-1)\) matrices.

Exercises Exercises

Exercise Group.

Find the determinant of the \(2\times 2\) matrix.
1.
\(\bbm 10\amp 7\\ 8\amp 9\ebm\)
2.
\(\bbm 6\amp -1\\ -7\amp 8\ebm\)
3.
\(\bbm -1\amp -7\\ -5\amp 9\ebm \)
4.
\(\bbm -10\amp -1\\ -4\amp 7\ebm\)
5.
\(\bbm 8\amp 10\\ 2\amp -3\ebm\)
6.
\(\bbm 10\amp -10\\ -10\amp 0\ebm\)
7.
\(\bbm 1\amp -3\\ 7\amp 7\ebm\)
8.
\(\bbm -4\amp -5\\ -1\amp -4\ebm \)

Exercise Group.

A matrix \(\tta\) is given.
  1. Construct the submatrices used to compute the minors \(\tta_{1,1}\text{,}\) \(\tta_{1,2}\) and \(\tta_{1,3}\text{.}\)
  2. Find the cofactors \(C_{1,1}\text{,}\) \(C_{1,2}\text{,}\) and \(C_{1,3}\text{.}\)
9.
\(\bbm -7\amp -3\amp 10\\ 3\amp 7\amp 6\\ 1\amp 6\amp 10\ebm\)
10.
\(\bbm -2\amp -9\amp 6\\ -10\amp -6\amp 8\\ 0\amp -3\amp -2\ebm\)
11.
\(\bbm -5\amp -3\amp 3\\ -3\amp 3\amp 10\\ -9\amp 3\amp 9\ebm\)
12.
\(\bbm -6\amp -4\amp 6\\ -8\amp 0\amp 0\\ -10\amp 8\amp -1\ebm\)

Exercise Group.

Find the determinant of the given matrix using cofactor expansion along the first row.
13.
\(\bbm 3\amp 2\amp 3\\ -6\amp 1\amp -10\\ -8\amp -9\amp -9\ebm\)
14.
\(\bbm 8\amp -9\amp -2\\ -9\amp 9\amp -7\\ 5\amp -1\amp 9\ebm\)
15.
\(\bbm -4\amp 3\amp -4\\ -4\amp -5\amp 3\\ 3\amp -4\amp 5\ebm\)
16.
\(\bbm 1\amp -2\amp 1\\ 5\amp 5\amp 4\\ 4\amp 0\amp 0\ebm\)
17.
\(\bbm 1\amp -4\amp 1\\ 0\amp 3\amp 0\\ 1\amp 2\amp 2\ebm\)
18.
\(\bbm 3\amp -1\amp 0\\ -3\amp 0\amp -4\\ 0\amp -1\amp -4\ebm\)
19.
\(\bbm -5\amp 0\amp -4\\ 2\amp 4\amp -1\\ -5\amp 0\amp -4\ebm\)
20.
\(\bbm 1\amp 0\amp 0\\ 0\amp 1\amp 0\\ -1\amp 1\amp 1\ebm\)
21.
\(\bbm 0\amp 0\amp -1\amp -1\\ 1\amp 1\amp 0\amp 1\\ 1\amp 1\amp -1\amp 0\\ -1\amp 0\amp 1\amp 0\ebm\)
22.
\(\bbm -1\amp 0\amp 0\amp -1\\ -1\amp 0\amp 0\amp 1\\ 1\amp 1\amp 1\amp 0\\ 1\amp 0\amp -1\amp -1\ebm\)
23.
\(\bbm -5\amp 1\amp 0\amp 0\\ -3\amp -5\amp 2\amp 5\\ -2\amp 4\amp -3\amp 4\\ 5\amp 4\amp -3\amp 3\ebm\)
24.
\(\bbm 2\amp -1\amp 4\amp 4\\ 3\amp -3\amp 3\amp 2\\ 0\amp 4\amp -5\amp 1\\ -2\amp -5\amp -2\amp -5\ebm\)

25.

Let \(\tta\) be a \(2\times 2\) matrix; \(\tta = \bbm a\amp b\\c\amp d\ebm\text{.}\) Show why \(\det(\tta)=ad-bc\) by computing the cofactor expansion of \(\tta\) along the first row.