Skip to main content

Section 4.5 Determinants

In this section we introduce the determinant of a matrix and describe some of its properties. The determinant is defined through a recursive process, and as a result many of the theorems in this section involve proofs by mathematical induction. Since that technique is beyond the scope of this course we will omit most of the proofs in this section.

Subsection 4.5.1 Cofactor expansion

The definition we are about to give will seem quite strange and unmotivated. You might want to look ahead to Theorem 4.5.14 and Subsection 4.5.3 to see why determinants are important before you work through the details of the definition.

Definition 4.5.1.

If \(A = \begin{bmatrix}a\end{bmatrix}\) is a \(1 \times 1\) matrix then \(\det(A) = a\text{.}\)

If \(A = \begin{bmatrix}a \amp b \\ c \amp d\end{bmatrix}\) is a \(2 \times 2\) matrix then \(\det(A) = ad-bc\text{.}\)

Notice that in both cases of the definition \(\det(A)\) is a number. There are formulas for determinants of larger matrices, but they are quite unpleasant, so instead we will describe a method for the computation of the determinant.

Definition 4.5.2.

Let \(A\) be an \(n \times n\) matrix, and suppose that \(1 \leq i \leq n\) and \(1 \leq j \leq n\text{.}\) The \((i,j)\)-minor of \(A\) is the \((n-1) \times (n-1)\) matrix \(A_{i,j}\) defined by deleting row \(i\) and column \(j\) of \(A\text{.}\)

If \(A = \begin{bmatrix}3 \amp 6 \amp -2 \\ 2 \amp -3 \amp 0 \\ 1 \amp 2 \amp 3\end{bmatrix}\) then \(A_{1,2} = \begin{bmatrix}2 \amp 0 \\ 1 \amp 3\end{bmatrix}\text{.}\)

Definition 4.5.4.

If \(A = \begin{bmatrix}a_{1,1} \amp a_{1,2} \amp a_{1,3} \amp \cdots \amp a_{1,n} \\ a_{2,1} \amp a_{2,2} \amp a_{2,3} \amp \cdots \amp a_{2,n} \\ a_{3,1} \amp a_{3,2} \amp a_{3,3} \amp \cdots \amp a_{3,n} \\ \vdots \amp \vdots \amp \vdots \amp \ddots \amp \vdots \\ a_{n,1} \amp a_{n,2} \amp a_{n,3} \amp \cdots \amp a_{n,n}\end{bmatrix}\) is an \(n \times n\) matrix then

\begin{equation*} \det(A) = a_{1,1}\det(A_{1,1}) - a_{1,2}\det(A_{1,2}) + a_{1,3}\det(A_{1,3}) - \cdots \pm a_{1,n}\det(A_{1,n})\text{.} \end{equation*}

This method of computing \(\det(A)\) is referred to as cofactor expansion.

Note 4.5.5.

Some authors use the symbol \(\abs{A}\) to refer to the determinant of \(A\text{.}\) Since we already have plenty of things denoted by vertical bars, we will always use the notation \(\det(A)\text{.}\)

Let \(A = \begin{bmatrix}3 \amp 6 \amp -2 \\ 2 \amp -3 \amp 0 \\ 1 \amp 2 \amp 3\end{bmatrix}\text{.}\) Then:

\begin{align*} \det(A) \amp = 3\det(A_{1,1}) - 6\det(A_{1,2}) + (-2)\det(A_{1,3}) \\ \amp = 3\det\left(\begin{bmatrix}-3 \amp 0 \\ 2 \amp 3\end{bmatrix}\right) - 6\det\left(\begin{bmatrix}2 \amp 0 \\ 1 \amp 3\end{bmatrix}\right) + (-2)\det\left(\begin{bmatrix}2 \amp -3 \\ 1 \amp 2\end{bmatrix}\right)\\ \amp = 3((-3)(3)-(2)(0)) -6((2)(3) - (1)(0)) + (-2)((2)(2) - (1)(-3))\\ \amp = -77 \end{align*}

As you can see, computing the determinant of a \(3 \times 3\) matrix involves computing \(3\) determinants of \(2 \times 2\) matrices. Similarly, computing the determinant of a \(4 \times 4\) matrix involves computing \(4\) determinants of \(3 \times 3\) matrices, for a total of \(4\cdot 3 = 12\) computations of \(2 \times 2\) determinants. For a \(5 \times 5\) matrix we need to compute \(5\) determinants of \(4 \times 4\) matrices, for a total of \(60\) determinants of \(2 \times 2\) matrices. This very quickly gets out of hand!

If we are lucky and \(a_{1,j} = 0\) for some \(j\) then we can skip computing \(\det(A_{1,j})\text{,}\) because in the cofactor expansion the term \(a_{1,j}\det(A_{1,j})\) will be \(0\text{.}\) Fortunately, it is possible to do cofactor expansion along any row, or indeed any column, of \(A\text{,}\) so we can "target" rows and columns that have many \(0\) entries.

Let \(A = \begin{bmatrix}1 \amp 2 \amp 3 \amp 4 \\ 1 \amp 0 \amp 2 \amp 1 \\ 5 \amp 0 \amp 4 \amp 4 \\ -2 \amp 1 \amp 3 \amp 7\end{bmatrix}\text{.}\) If we do cofactor expansion along the first row, we find:

\begin{equation*} \det(A) = 1\det\begin{bmatrix}0 \amp 2 \amp 1 \\ 0 \amp 4 \amp 0 \\ 1 \amp 3 \amp 7\end{bmatrix} -2\det\begin{bmatrix}1 \amp 2 \amp 1 \\ 5 \amp 4 \amp 0 \\ -2 \amp 3 \amp 7\end{bmatrix} + 3\det\begin{bmatrix}1 \amp 0 \amp 1 \\ 5 \amp 0 \amp 0 \\ -2 \amp 1 \amp 7\end{bmatrix} -4\det\begin{bmatrix}1 \amp 0 \amp 2 \\ 5 \amp 0 \amp 4 \\ -2 \amp 1 \amp 3\end{bmatrix}\text{.} \end{equation*}

On the other hand, if we do cofactor expansion along the second column (and remember the sign convention described above!) then we get:

\begin{align*} \det(A) \amp = -2\det\begin{bmatrix}1 \amp 2 \amp 1 \\ 5 \amp 4 \amp 4 \\ -2 \amp 3 \amp 7\end{bmatrix} + 0\det\begin{bmatrix}1 \amp 3 \amp 4 \\ 5 \amp 4 \amp 4 \\ -2 \amp 3 \amp 7\end{bmatrix} -0\det\begin{bmatrix}1 \amp 3 \amp 4 \\ 1 \amp 2 \amp 1 \\ -2 \amp 3 \amp 7\end{bmatrix} + 1\det\begin{bmatrix}1 \amp 3 \amp 4 \\ 1 \amp 2 \amp 1 \\ 5 \amp 4 \amp 4\end{bmatrix} \\ \amp = -2\det\begin{bmatrix}1 \amp 2 \amp 1 \\ 5 \amp 4 \amp 4 \\ -2 \amp 3 \amp 7\end{bmatrix} + 1\det\begin{bmatrix}1 \amp 3 \amp 4 \\ 1 \amp 2 \amp 1 \\ 5 \amp 4 \amp 4\end{bmatrix} \text{.} \end{align*}

While neither of these calculations are particularly appealing, the second one is certainly much shorter, as it only requires us to compute two \(3 \times 3\) determinants. Regardless of which method we choose we will get the same answer, \(\det(A) = 77\text{.}\)

Definition 4.5.9.

An \(n \times n\) matrix \(A\) is called a lower triangular matrix if every entry above the main diagonal is \(0\) (that is, if \(a_{i,j} = 0\) whenever \(i \lt j\)). It is called an upper triangular matrix if every entry below the main diagonal is \(0\) (that is, if \(a_{i,j} = 0\) whenever \(i > j\)). In either case the matrix may also have \(0\) entries elsewhere.

A matrix is triangular if it is either upper triangular or lower triangular.

Let \(A = \begin{bmatrix}1 \amp 2 \amp 3 \amp 4 \\ 0 \amp -2 \amp 1 \amp 0 \\ 0 \amp 0 \amp 3 \amp 5 \\ 0 \amp 0 \amp 0 \amp -3\end{bmatrix}\text{.}\) Then \(A\) is upper triangular.

If we use cofactor expansion along the first column, and then continue using the first column in subsequent determinants, we obtain:

\begin{align*} \det(A) \amp = 1\det\begin{bmatrix}-2 \amp 1 \amp 0 \\ 0 \amp 3 \amp 5 \\ 0 \amp 0 \amp -3\end{bmatrix} \\ \amp = 1(-2)\det\begin{bmatrix}3 \amp 5 \\ 0 \amp -3\end{bmatrix} \\ \amp = 1(-2)(3)(-3) \text{.} \end{align*}

Subsection 4.5.2 Properties of determinants

It is time to consider some properties of the determinant and how it interacts with other operations we perform on matrices. After seeing Example 4.5.10 you might hope that we could row-reduce our matrix to a triangular form (such as the reduced row echelon form) before computing the determinant. We can, but the row operations change the determinant, so we need to keep track of our row operations and how they affect the determinant.

Let \(A = \begin{bmatrix}2 \amp 3 \amp 0 \\ 3 \amp 1 \amp 1 \\ 4 \amp 2 \amp -1\end{bmatrix}\text{.}\) We row-reduce \(A\text{,}\) keeping track of our row operations. To help clarify the determinant calculation at the end, we will give each intermediate matrix a name (one does not typically do this, it is just for exposition purposes).

\begin{align*} A \amp \to_{\frac{1}{2}R_1} \begin{bmatrix}1 \amp 3/2 \amp 0 \\ 3 \amp 1 \amp 1 \\ 4 \amp 2 \amp -1\end{bmatrix} \amp = B_1\\ \amp \to_{R_2-3R_1} \begin{bmatrix}1 \amp 3/2 \amp 0 \\ 0 \amp -7/2 \amp 1 \\ 4 \amp 2 \amp 1\end{bmatrix} \amp = B_2\\ \amp \to_{R_3 - 4R_1}\begin{bmatrix}1 \amp 3/2 \amp 0 \\ 0 \amp -7/2 \amp 1 \\ 0 \amp -4 \amp -1\end{bmatrix} \amp = B_3\\ \amp \to_{R_2 \leftrightarrow R_3}\begin{bmatrix}1 \amp 3/2 \amp 0 \\ 0 \amp -4 \amp -1 \\ -7/2 \amp 1 \amp 0\end{bmatrix} \amp = B_4\\ \amp \to_{-\frac{1}{4}R_2}\begin{bmatrix}1 \amp 3/2 \amp 0 \\ 0 \amp 1 \amp 1/4 \\ -7/2 \amp 1 \amp 0\end{bmatrix}\amp = B_5 \\ \amp \to_{2R_3}\begin{bmatrix}1 \amp 3/2 \amp 0 \\ 0 \amp 1 \amp 1/4 \\ 0 \amp -7 \amp 2\end{bmatrix} \amp = B_6\\ \amp \to_{R_3+7R_2}\begin{bmatrix}1 \amp 3/2 \amp 0 \\ 0 \amp 1 \amp 1/4 \\ 0 \amp 0 \amp 15/4\end{bmatrix} \amp = B_7 \end{align*}

Now we've reached a triangular matrix, so the determinant of \(B_7\) is the product of its diagonal entries, \(\det(B_7) = 15/4\text{.}\) To find the determinant of \(A\) we work backwards, using Theorem 4.5.12.

\begin{align*} \det(A) \amp = 2\det(B_1)\\ \amp = 2\det(B_2)\\ \amp = 2\det(B_3)\\ \amp = 2(-\det(B_4))\\ \amp = -2\det(B_4) \\ \amp = -2(-4)\det(B_5) \\ \amp = 8\det(B_5)\\ \amp = 8\left(\frac{1}{2}\right)\det(B_6) \\ \amp = 4\det(B_6)\\ \amp = 4\det(B_7) \\ \amp = 4\left(\frac{15}{4}\right)\\ \amp = 15 \end{align*}

Thus \(\det(A) = 15\text{.}\) You can verify this by computing \(\det(A)\) directly using cofactor expansion.

As you can see from the example, row reduction can somewhat simplify the process of calculating determinants, but it remains a tedious process. In fact, in real-life applications of linear algebra (where matrices are often very large), calculating determinants simply isn't practical - it is too time-consuming and error-prone, even when done on a computer. Nevertheless, for certain problems the determinant can be very helpful. For our purposes, the most important property of determinants is that they provide a numerical way to detect invertibility of matrices; specifically, a square matrix is invertible if and only if it has non-zero determinant. We will make extensive use of this method for detecting invertibility in Section 5.1. For now, we get to add another statement to the Fundamental Theorem!

The key observation for both parts of this proof is that it follows from Theorem 4.5.12 that, although row operations can change determinants, they never change whether or not the determiant is zero.

\(1 \implies 11\text{:}\) Suppose that \(\RREF(A) = I_n\text{.}\) Then there is a sequence of row operations that transforms \(A\) into \(I_n\text{,}\) and \(\det(I_n) \neq 0\text{,}\) so \(\det(A) \neq 0\text{.}\)

\(11 \implies 1\text{:}\) Suppose that \(\det(A) \neq 0\text{.}\) Then \(\det(\RREF(A)) \neq 0\) as well. In particular, \(\RREF(A)\) does not have a row of all zero, so every row of \(\RREF(A)\) has a leading \(1\text{.}\) Thus \(A\) has \(n\) pivot columns. The only \(n \times n\) matrix in reduced row echelon form with \(n\) pivot columns is \(I_n\text{,}\) so \(\RREF(A) = I_n\text{.}\)

To wrap up this part of our discussion, here is how determinants interact with the other matrix operations we have seen.

Note 4.5.16.

Conspicuously absent from the theorem above is a nice formula for computing \(\det(A+B)\) from \(\det(A)\) and \(\det(B)\text{.}\) The reason for that omission is that no such formula exists: If all that you know about \(A\) and \(B\) is their determinants then you do not have enough information to compute \(\det(A+B)\text{.}\)

Subsection 4.5.3 A geometric interpretation

Recall that every \(n \times n\) matrix is associated with a linear transformation \(T_A : \mathbb{R}^n \to \mathbb{R}^n\text{,}\) where \(T_A(\vec{v}) = A\vec{v}\text{.}\) The number \(\det(A)\) has a geometric meaning in terms of the transformation \(T_A\text{.}\) The geometry is easiest to visualize in the case of \(2 \times 2\) matrices, so we start there.

Suppose that \(A = \begin{bmatrix}a \amp b \\ c \amp d\end{bmatrix}\text{.}\) Then \(T_A\left(\begin{bmatrix}1\\0\end{bmatrix}\right) = \begin{bmatrix}a\\c\end{bmatrix}\) and \(T_A\left(\begin{bmatrix}b\\d\end{bmatrix}\right)\text{.}\) Any point inside the square determined by \(\begin{bmatrix}1\\0\end{bmatrix}\) and \(\begin{bmatrix}0\\1\end{bmatrix}\) can be written as \(s\begin{bmatrix}1\\0\end{bmatrix}+t\begin{bmatrix}0\\1\end{bmatrix}\text{,}\) where \(0 \leq s \leq 1\) and \(0 \leq t \leq 1\text{.}\) Since \(T_A\) is a linear transformation, we have

\begin{equation*} T_A\left(s\begin{bmatrix}1\\0\end{bmatrix}+t\begin{bmatrix}0\\1\end{bmatrix}\right) = sT_A\left(\begin{bmatrix}1\\0\end{bmatrix}\right) + tT_A\left(\begin{bmatrix}0\\1\end{bmatrix}\right) = s\begin{bmatrix}a\\c\end{bmatrix}+t\begin{bmatrix}b\\d\end{bmatrix}\text{.} \end{equation*}

That is, points inside the square determined by \(\begin{bmatrix}1\\0\end{bmatrix}\) and \(\begin{bmatrix}0\\1\end{bmatrix}\) are sent to points inside the parallelogram determined by \(\begin{bmatrix}a\\c\end{bmatrix}\) and \(\begin{bmatrix}b\\d\end{bmatrix}\).

Figure 4.5.17. The action of \(T_A\) on the unit square determined by \(\vec{e_1}\) and \(\vec{e_2}\text{.}\)

In the setting described above, the geometric interpretation of the determinant is that the parallelogram determined by \(T_A(\vec{e_1})\) and \(T_A(\vec{e_2})\) (that is, determined by the columns of \(A\)) has area exactly \(\abs{\det(A)}\text{.}\) The sign of \(\det(A)\) is determined by whether \(T_A\) preserves or reverses the orientation between the sides of the square. The figure above shows the situation for a positive determinant. Here is what the image looks like if the determinant is negative - notice how the positions of \(T_A(\vec{e_1})\) and \(T_A(\vec{e_2})\) are reversed from those of \(\vec{e_1}\) and \(\vec{e_2}\text{.}\)

Figure 4.5.18. A negative determinant.

In higher dimensions the geometry is similar: \(\abs{\det(A)}\) is the volume of the image of the parallelopiped determined by the standard basis of \(\mathbb{R}^n\text{,}\) and the sign of \(\det(A)\) is determined by the the orientation of the image.

In multivariable calculus you will see that determinants appear in the formula for change-of-variables in multiple integrals. The reason is fundamentally because of the geometric picture shown above - the determinant is giving the correction factor for how areas (or volumes, or their higher-dimensional analogues) have changed in applying a linear transformation to change coordinates. In fact, this use of determinants was discovered before the modern notions of "matrix" and "linear transformation"!

Exercises 4.5.4 Exercises

1.

Let
\begin{equation*} A= \begin{bmatrix} 1 \amp 2 \amp 4 \\ 0 \amp 1 \amp 3\\ -2 \amp 5 \amp 1 \end{bmatrix} \text{.} \end{equation*}
Find the following minors.
  1. \(A_{1,1}\) Hint.

    This is the \(2 \times 2 \) matrix which results when the first row and column is deleted from \(A \text{.}\)
    Answer.

    \(A_{1,1} = \begin{bmatrix}1 \amp 3 \\ 5 \amp 1\end{bmatrix}\text{.}\)
    Solution.

    \(A_{1,1}\) is given by finding the matrix which results when the first row and column is deleted from \(A \text{.}\)
    \begin{equation*} A_{1,1} = \begin{bmatrix} 1 \amp 3 \\ 5 \amp 1 \end{bmatrix} \end{equation*}

  2. \(A_{2,1}\) Hint.

    This is the \(2 \times 2 \) matrix which results when the second row and first column is deleted from \(A \text{.}\)
    Answer.

    \(A_{2,1} = \begin{bmatrix}2 \amp 4 \\ 5 \amp 1\end{bmatrix}\text{.}\)
    Solution.

    \(A_{2,1}\) is given by finding the matrix which results when the second row and first column is deleted from \(A \text{.}\)
    \begin{equation*} A_{2,1} = \begin{bmatrix} 2 \amp 4 \\ 5 \amp 1 \end{bmatrix} \end{equation*}

  3. \(A_{3,2}\) Hint.

    This is the \(2 \times 2 \) matrix which results when the third row and second column is deleted from \(A \text{.}\)
    Answer.

    \(A_{3,2} = \begin{bmatrix}1 \amp 4 \\ 0 \amp 3\end{bmatrix}\text{.}\)
    Solution.

    \(A_{3,2}\) is given by finding the matrix which results when the third row and second column is deleted from \(A \text{.}\)
    \begin{equation*} A_{3,2} = \begin{bmatrix} 1 \amp 4 \\ 0 \amp 3 \end{bmatrix} \end{equation*}

2.

Find the following determinant by expanding along the first row and the second column.
\begin{equation*} \det\begin{bmatrix} 1 \amp 2 \amp 1 \\ 1 \amp 0 \amp 1 \\ 2 \amp 1 \amp 1 \end{bmatrix} \end{equation*}
Hint.
Recall how the signs of the terms in the cofactor expansion are affected by which row and column we use: Fact 4.5.7 and Example 4.5.8 might help.
Answer.

The determinant of the matrix is 2.
Solution.

Expanding along the first row,
\begin{align*} \det(A) \amp = a_{1, 1}\det(A_{1,1}) - a_{1,2}\det(A_{1,2}) + a_{1,3}\det(A_{1,3})\\ \amp = 1\det\begin{bmatrix}0 \amp 1 \\ 1 \amp 1\end{bmatrix} - 2\det\begin{bmatrix}1 \amp 1 \\ 2 \amp 1 \end{bmatrix} + 1\det\begin{bmatrix}1 \amp 0 \\ 2 \amp 1\end{bmatrix}\\ \amp = 1((0)(1) - (1)(1)) - 2((1)(1) - (2)(1)) + 1((1)(1) - (2)(0)) \\ \amp = 2\text{.} \end{align*}
Expanding along the second column,
\begin{align*} \det(A) \amp = -a_{1,2}\det(A_{1,2}) + a_{2,2}\det(A_{2,2}) - a_{3,2}\det(A_{3,2})\\ \amp = -2\det\begin{bmatrix}1 \amp 1 \\ 2 \amp 1\end{bmatrix} + 0\det\begin{bmatrix}1 \amp 1 \\ 2 \amp 1\end{bmatrix} - 1\det\begin{bmatrix}1 \amp 1 \\ 1 \amp 1\end{bmatrix}\\ \amp = -2((1)(1) - (2)(1)) + 0 - 1((1)(1) - (1)(1)) \\ \amp = 2\text{.} \end{align*}

3.

Find the following determinant by expanding along the second row and the third column.
\begin{equation*} \det\begin{bmatrix} 1 \amp 2 \amp 1 \\ 2 \amp 1 \amp 3 \\ 2 \amp 1 \amp 1 \end{bmatrix} \end{equation*}
Hint.
Recall how the signs of the terms in the cofactor expansion are affected by which row and column we use: Fact 4.5.7 and Example 4.5.8 might help.
Answer.

The determinant of the matrix is 6.
Solution.

4.

Compute the determinant by cofactor expansion. Pick the easiest row or column to use.
\begin{equation*} \det\begin{bmatrix} 1 \amp 0 \amp 0 \amp 1 \\ 2 \amp 1 \amp 1 \amp 0 \\ 0 \amp 0 \amp 0 \amp 2\\ 2 \amp 1 \amp 3 \amp 1 \end{bmatrix} \end{equation*}
Hint.
Recall how the signs of the terms in the cofactor expansion are affected by which row and column we use: Fact 4.5.7 and Example 4.5.8 might help.
Answer.

The determinant of the matrix is -4.
Solution.

We start by using the third row, because it gives us the most \(0\) entries (which result in 3x3 determinants that we can ignore!).

\begin{align*} \det\begin{bmatrix} 1 \amp 0 \amp 0 \amp 1 \\ 2 \amp 1 \amp 1 \amp 0 \\ 0 \amp 0 \amp 0 \amp 2\\ 2 \amp 1 \amp 3 \amp 1 \end{bmatrix} \amp = 0\det\begin{bmatrix}0 \amp 0 \amp 1 \\ 1 \amp 1 \amp 0 \\ 1 \amp 3 \amp 1\end{bmatrix} - 0\det\begin{bmatrix}1 \amp 0 \amp 1 \\ 2 \amp 1 \amp 0 \\ 2 \amp 3 \amp 1 \end{bmatrix} + 0\det\begin{bmatrix}1 \amp 0 \amp 1 \\ 2 \amp 1 \amp 0 \\ 2 \amp 1 \amp 1\end{bmatrix} - 2\det\begin{bmatrix}1 \amp 0 \amp 0 \\ 2 \amp 1 \amp 1 \\ 2 \amp 1 \amp 3\end{bmatrix}\\ \amp = - 2\det\begin{bmatrix}1 \amp 0 \amp 0 \\ 2 \amp 1 \amp 1 \\ 2 \amp 1 \amp 3\end{bmatrix}\text{.} \end{align*}

Now we use the first row, again because we like the entries to be \(0\) as often as possible.

\begin{align*} \det\begin{bmatrix} 1 \amp 0 \amp 0 \amp 1 \\ 2 \amp 1 \amp 1 \amp 0 \\ 0 \amp 0 \amp 0 \amp 2\\ 2 \amp 1 \amp 3 \amp 1 \end{bmatrix} \amp =- 2\det\begin{bmatrix}1 \amp 0 \amp 0 \\ 2 \amp 1 \amp 1 \\ 2 \amp 1 \amp 3\end{bmatrix}\\ \amp = -2\left(1\det\begin{bmatrix}1 \amp 1 \\ 1 \amp 3\end{bmatrix} - 0\det\begin{bmatrix}2 \amp 1 \\ 2 \amp 3\end{bmatrix} + 0\det\begin{bmatrix}2 \amp 1 \\ 2 \amp 1\end{bmatrix}\right) \\ \amp = -2(1((1)(3) - (1)(1))) \\ \amp = -4 \text{.} \end{align*}

Thus the determinant is \(-4\text{.}\)

5.

An operation is done to get from the first matrix to the second. Identify what was done and tell how it will affect the value of the determinant.
\begin{equation*} \begin{bmatrix}a \amp b \\ c \amp d \end{bmatrix} \to \ldots \to \begin{bmatrix}a \amp b \\ a+c \amp b+d \end{bmatrix} \end{equation*}
Hint.
Remember how row operations affect determinants: Theorem 4.5.12
Answer.

The first row is added to the second row. The determinant of the resulting matrix is the same as the determinant of the original matrix.

6.

An operation is done to get from the first matrix to the second. Identify what was done and tell how it will affect the value of the determinant.
\begin{equation*} \begin{bmatrix}a \amp b \\ c \amp d \end{bmatrix} \to \ldots \to \begin{bmatrix}a \amp b \\ 2c \amp 2d \end{bmatrix} \end{equation*}
Hint.
Remember how row operations affect determinants: Theorem 4.5.12
Answer.

The second row is multiplied by two. The determinant of the resulting matrix will be twice as much as the determinant of the original matrix.

7.

Compute the determinants of the following matrices.
  1. \(\displaystyle \begin{bmatrix} \cos(\theta) \amp -\sin(\theta) \\ \sin(\theta) \amp \cos(\theta) \end{bmatrix} \)

  2. \(\displaystyle \begin{bmatrix} 0 \amp a \amp 0 \\ b \amp c \amp d \\ 0 \amp e \amp 0 \end{bmatrix} \)

  3. \(\displaystyle \begin{bmatrix} 0 \amp 0 \amp 0 \amp a \\ 0 \amp 0 \amp b \amp p \\ 0 \amp c \amp q \amp k \\ d \amp s \amp t \amp u \end{bmatrix} \)

Hint 1.
See Definition 4.5.1 for computing determinants of \(2 \times 2 \) matrices.
Hint 2.
Recall how the signs of the terms in the cofactor expansion are affected by which row and column we use: Fact 4.5.7 and Example 4.5.8 might help.
Hint 3.
The determinant of a triangular matrix is the product of the diagonal entries: Fact 4.5.11
Hint 4.
Remember how row operations affect determinants: Theorem 4.5.12
Answer.

  1. The determinant of the matrix in part (a) is 1.

  2. The determinant of the matrix in part (b) is 0.

  3. The determinant of the matrix in part (c) is abcd.

Solution.

  1. \begin{equation*} \det\begin{bmatrix} \cos(\theta) \amp -\sin(\theta) \\ \sin(\theta) \amp \cos(\theta) \end{bmatrix} = \cos(\theta)\cos(\theta)+\sin(\theta)\sin(\theta) =1 \text{.} \end{equation*}

  2. Using the first row,

    \begin{equation*} \det\begin{bmatrix} 0 \amp a \amp 0 \\ b \amp c \amp d \\ 0 \amp e \amp 0 \end{vmatrix} = -a\det\begin{bmatrix}b \amp d \\ 0 \amp 0 \end{bmatrix} = a (-1) (0) =0 \text{.} \end{equation*}

  3. We wish to interchange two rows in order to get an upper triangular matrix. If we interchange two rows, then we must multiply the determinant of the resulting matrix by (-1) twice. Once we have obtained an upper triangular matrix, we multiply the diagonal elements to get the determinant.

    \begin{equation*} \det\begin{bmatrix} 0 \amp 0 \amp 0 \amp a \\ 0 \amp 0 \amp b \amp p \\ 0 \amp c \amp q \amp k \\ d \amp s \amp t \amp u \end{bmatrix} = (-1)^2 \begin{bmatrix} d \amp s \amp t \amp u \\ 0 \amp c \amp q \amp k \\ 0 \amp 0 \amp b \amp p \\ 0 \amp 0 \amp 0 \amp a \end{bmatrix} = abcd \end{equation*}

8.

Evaluate by cursory inspection:
  1. \(\det \begin{bmatrix} a \amp b \amp c \\ a+1 \amp b+1 \amp c+1 \\ a-1 \amp b-1 \amp c-1 \end{bmatrix}\) Answer.

    The determinant of the given matrix is zero.
    Solution.

    We can subtract the first row from both the second and third row.
    \begin{equation*} \begin{bmatrix} a \amp b \amp c \\ a+1 \amp b+1 \amp c+1 \\ a-1 \amp b-1 \amp c-1 \end{bmatrix} \to \begin{bmatrix} a \amp b \amp c \\ 1 \amp 1 \amp 1 \\ -1 \amp -1 \amp -1 \end{bmatrix} \end{equation*}
    Then we multiply the third row by -1 to obtain a matrix which has two rows that are the same. Hence, the determinant of the original matrix would be (-1)(0) =0.
    \begin{equation*} \det\begin{bmatrix} a \amp b \amp c \\ a+1 \amp b+1 \amp c+1 \\ a-1 \amp b-1 \amp c-1 \end{bmatrix}=0 \end{equation*}

  2. \(\det \begin{bmatrix} a \amp b \amp c \\ a+b \amp 2b \amp c+b \\ 2 \amp 2 \amp 2 \end{bmatrix} \) Answer.

    The determinant of the given matrix is zero.
    Solution.

    We subtract the first row from the second row.
    \begin{equation*} \begin{bmatrix} a \amp b \amp c \\ a+b \amp 2b \amp c+b \\ 2 \amp 2 \amp 2 \end{bmatrix} \to \begin{bmatrix} a \amp b \amp c \\ b \amp b \amp b\\ 2 \amp 2 \amp 2 \end{bmatrix} \end{equation*}
    Now if \(b \) is equal to zero, then we have a matrix with a row of zeros and hence the determinant must be zero. If \(b \) is not equal to zero, then we can multiple the second row by \(\frac{2}{b} \) to obtain a matrix which has two rows that are the same, and in this case the determinant must be zero as well.
    \begin{equation*} \begin{bmatrix} a \amp b \amp c \\ b \amp b \amp b\\ 2 \amp 2 \amp 2 \end{bmatrix} \to \begin{bmatrix} a \amp b \amp c \\ 2 \amp 2 \amp 2\\ 2 \amp 2 \amp 2 \end{bmatrix} \end{equation*}
    Therefore, the determinant of the matrix must be zero.

Hint 1.
Remember how row operations affect determinants: Theorem 4.5.12
Hint 2.
If two distinct rows (or columns) of A are identical, \(\det(A) = 0 \)

9.

  1. Find \(b \) if \(\det\begin{bmatrix} 5 \amp -1 \amp x \\ 2 \amp 6 \amp y \\ -5 \amp 4 \amp x \end{bmatrix} = ax + by.\) Answer.

    \(b=-15\)
    Solution.

    There are many ways to go about finding \(b\text{,}\) you may expand along various rows or columns. For this solution, let us expand along the first row.
    \begin{align*} \det(A) \amp = 5 \det\begin{bmatrix}6 \amp y \\ 4 \amp x \end{bmatrix} + 1 \det\begin{bmatrix} 2 \amp y \\ -5 \amp x \end{bmatrix} + x \det\begin{bmatrix} 2 \amp 6 \\ -5 \amp 4 \end{bmatrix}\\ \amp = 5(6x-4y) + (2x+5y) + x(8 + 30) \\ \amp = 30x - 20y+ 2x+5y+38x\\ \amp = 70x - 15y \end{align*}
    If \(\det(A) = ax + by\text{,}\) then \(b = -15\)

  2. Find \(c \) if \(\det \begin{bmatrix} 2 \amp x \amp -1 \\ 1 \amp y \amp 3 \\ -3 \amp z \amp 4 \end{bmatrix} = ax + by+cz.\) Answer.

    \(c = -7\)
    Solution.

    As in the previous part (a), there are many ways to go about finding the answer by expanding along various rows or columns. In this solution, we will expand along the first column.
    \begin{align*} \det(A) \amp = 2 \det\begin{bmatrix}y \amp 3 \\ z \amp 4 \end{bmatrix} -1 \det\begin{bmatrix} x \amp -1 \\ z \amp 4 \end{bmatrix} -3 \det\begin{bmatrix} x \amp -1 \\ y \amp 3 \end{bmatrix}\\ \amp = 2(4y-3z) - (4x+z) + -3(3x + y) \\ \amp = 8y-6z-4x-z-9x-3y\\ \amp = -13x +5y-7z \end{align*}
    If \(\det(A) = ax + by+cz\text{,}\) then \(c = -7\)

Hint 1.
See Fact 4.5.7 for how determinants are computed along any row or column.
Hint 2.
See Definition 4.5.1 for computing determinants of \(2 \times 2 \) matrices.

10.

Is it true that \(\det(A+B) = \det(A)+\det(B) \text{?}\) If this is so, explain why. If it is not so, give a counter example.
Hint.
Consider a \(2 \times 2 \) matrix with positive entries and another with negative entries.
Answer.

There exists matrices \(A\) and \(B\) such that \(\det(A+B) \neq \det(A) + \det(B)\) and so the statement of the exercise is false.
Solution.

There exists matrices \(A\) and \(B\) such that \(\det(A+B) \neq \det(A) + \det(B)\text{.}\) Therefore, the statement of the exercise is false. Let us show this with a counterexample. Let \(A \) be the identity matrix, \(A = \begin{bmatrix} 1 \amp 0 \\ 0 \amp 1 \end{bmatrix}\) and let \(B = \begin{bmatrix} -1 \amp 0 \\ 0 \amp -1 \end{bmatrix}\text{,}\) then
\begin{equation*} \det(A+B) = \det\left(\begin{bmatrix} 1 \amp 0 \\ 0 \amp 1 \end{bmatrix} + \begin{bmatrix} -1 \amp 0 \\ 0 \amp -1 \end{bmatrix}right) = \det(\begin{bmatrix} 0 \amp 0 \\ 0 \amp 0 \end{bmatrix} \neq \det(A) + \det(B) = 1 + 1 =2 \end{equation*}

11.

Use determinants to find which real values of c make each of the following matrices invertible.
  1. \(\begin{bmatrix} 1 \amp 0 \amp 3 \\ 3 \amp -4 \amp c \\ 2 \amp 5 \amp 8 \end{bmatrix} \) Answer.

    The matrix will be invertible if \(c \) is not equal to \(\frac{37}{5}. \)
    Solution.

    We know that the matrix is invertible if \(\det(A) \ne 0 \text{,}\) therefore we can compute the determinant in order to identify the values of \(c \) which make the determinant non-zero. We choose to expand along the first row because the zero in the second column of the first row will simplify our cofactor calculation.
    \begin{align*} \det(A) = 1 \det\begin{bmatrix}-4 \amp c \\ 5 \amp 8 \end{bmatrix} + 0 + 3 \det\begin{bmatrix} 3 \amp -4 \\ 2 \amp 5 \end{bmatrix} \amp \ne 0\\ (-32-5c) + 3(15+8) \amp \ne 0\\ -5c \amp \ne -37\\ c \amp \ne \frac{37}{5} \end{align*}
    The matrix will be invertible if \(c \) is not equal to \(\frac{37}{5}\text{.}\)

  2. \(\begin{bmatrix} 0 \amp c \amp -c \\ -1 \amp 2 \amp 1 \\ c \amp -c \amp c \end{bmatrix} \) Answer.

    The matrix will be invertiable if \(c \) is not equal to 0.
    Solution.

    We know that the matrix is invertible if \(\det(A) \ne 0 \text{,}\) therefore we can compute the determinant in order to identify the values of \(c \) which make the determinant non-zero. We choose to expand along the first row because the zero in the first column of the first row will simplify our cofactor calculation.
    \begin{align*} \det(A) = 0 + -c\det\begin{bmatrix}-1 \amp 1 \\ c \amp c \end{bmatrix} + (-c)\det\begin{bmatrix} -1 \amp 2 \\ c \amp -c \end{bmatrix} \amp \ne 0\\ -c(-c-c) + -c(c-2c) \amp \ne 0\\ 3c^2 \amp \ne 0\\ c \amp \ne 0 \end{align*}
    The matrix will be invertiable if \(c \) is not equal to 0.

  3. \(\begin{bmatrix} c \amp 1 \amp 0 \\ 0 \amp 2 \amp c \\ -1 \amp c \amp 5 \end{bmatrix} \) Answer.

    The matrix will be invertible if \(c\) is not equal to 0, -3 or 3.
    Solution.

    We know that the matrix is invertible if \(\det(A) \neq 0 \text{,}\) therefore we can compute the determinant in order to identify the values of \(c \) which make the determinant non-zero. We choose to expand along the first row because the zero in the third column of the first row will simplify our cofactor calculation.
    \begin{align*} \det(A) = c\det\begin{bmatrix}2 \amp c \\ c \amp 5 \end{bmatrix} + -1\det\begin{bmatrix} 0 \amp c \\ -1 \amp 5 \end{bmatrix} \amp \ne 0\\ c(10-c^2) -(0-c) \amp \ne 0\\ c(9-c^2) \amp \ne 0\\ c \amp \ne 0,-3,3 \end{align*}
    The matrix will be invertile if \(c\) is not equal to 0, -3 or 3.

  4. \(\begin{bmatrix} 4 \amp c \amp 3 \\ c \amp 2 \amp c \\ 5 \amp c \amp 4 \end{bmatrix}\) Answer.

    Any real value \(c\) will make the matrix invertible because its determinant will always be equal to 2 regardless of the value of \(c \text{.}\)
    Solution.

    We know that the matrix is invertible if \(\det(A) \ne 0 \text{,}\) therefore we can compute the determinant in order to identify the values of \(c \) which make the determinant non-zero. We choose to expand along the first column this time just to mix things up.
    \begin{align*} \det(A) = 4\det\begin{bmatrix}2 \amp c \\ c \amp 4 \end{bvmatrix} + -c\det\begin{bmatrix} c \amp 3 \\ c \amp 4 \end{bmatrix}+ 5\det\begin{bmatrix} c \amp 3 \\ 2 \amp c \end{bmatrix} \amp \ne 0\\ 4(8-c^2) -(4c-3c) +5(c^2-6) \amp \ne 0\\ 2 \amp \ne 0 \end{align*}

  5. \(\begin{bmatrix} 1 \amp 2 \amp -1 \\ 0 \amp -1 \amp c \\ 2 \amp c \amp 1 \end{bmatrix} \) Answer.

    The matrix will be invertible as long as \(c \) is not equal to neither 1 nor 3.
    Solution.

    We know that the matrix is invertible if \(\det(A) \ne 0 \text{,}\) therefore we can compute the determinant in order to identify the values of \(c \) which make the determinant non-zero. We choose to expand along the first column because the zero in the second row of the first column will simplify our cofactor calculation.
    \begin{align*} \det(A) = \det\begin{bmatrix}-1 \amp c \\ c \amp 1 \end{bmatrix} + 2\det\begin{bmatrix} 2 \amp -1 \\ -1 \amp c \end{bmatrix} \amp \ne 0\\ -1 - c^2 + 2(2c-1) \amp \ne 0\\ c^2 - 4c + 3 \amp \ne 0\\ c\amp \ne 1,3 \end{align*}

  6. \(\begin{bmatrix} 1 \amp c \amp -1 \\ c \amp 1 \amp 1 \\ 0 \amp 1 \amp c \end{bmatrix} \) Answer.

    The matrix will be invertible as long as \(c \) is not equal to -1.
    Solution.

    We know that the matrix is invertible if \(\det(A) \ne 0 \text{,}\) therefore we can compute the determinant in order to identify the values of \(c \) which make the determinant non-zero. We choose to expand along the third row this time because the zero in the third row of the first column will simplify our cofactor calculation.
    \begin{align*} \det(A) = -\det\begin{bmatrix}-1 \amp c \\ c \amp 1 \end{bmatrix} + c\det\begin{bmatrix} 1 \amp c \\ c \amp 1 \end{bmatrix} \amp \ne 0\\ -1(1+c) + c(1-c^2) \amp \ne 0\\ c^3 \amp \ne -1\\ c\amp \ne 1 \end{align*}

Hint.
An \(n \times n \) is invertible if and only if \(\det(A) \ne 0 \) (Theorem 4.5.14).