3.4: Determinants
( \newcommand{\kernel}{\mathrm{null}\,}\)
To begin, let's consider a
Notice how the linear combinations form a set of congruent parallelograms in the plane. In this section, we will measure the area of the parallelograms, which will lead naturally to a numerical quantity called the determinant, that tells us if the matrix
To recall, if we are given the parallelogram in the figure, we find its area by multiplying the length of one side by the perpendicular distance to its parallel side. Using the notation in the figure, the area of the parallelogram is
Preview Activity 3.4.1.
We will explore the area formula in this preview activity.
- Find the area of the following parallelograms.
i.
ii.
iii.
iv.
v.
-
Explain why the area of the parallelogram formed by the vectors
and is the same as that formed by and
Determinants of matrices
We will now use our familiarity with parallelograms to define the determinant of a
We can now define the determinant of a
Suppose a
Consider the determinant of the identity matrix
As seen on the left of Figure 3.4.5, the vectors
Now we will consider the matrix
As seen on the right of Figure 3.4.5, the vectors
The next set of examples will help illustrate some properties of the determinant.
Activity 3.4.2.
We will use the diagram to find the determinant of some simple
The sliders in the diagram below allow you to choose a matrix
- Use the diagram to find the determinant of the matrix
What is the geometric effect of the matrix transformation defined by this matrix. What does this lead you to believe is generally true about the determinant of a diagonal matrix? - Use the diagram to find the determinant of the matrix
What is the geometric effect of the matrix transformation defined by this matrix? - Use the diagram to find the determinant of the matrix
What is the geometric effect of the matrix transformation defined by this matrix? - What do you notice about the determinant of any matrix of the form
What does this say about the determinant of an upper triangular matrix? - Use the diagram to find the determinant of the matrix
When we change the entry in the lower left corner, what is the effect on the determinant? What does this say about the determinant of a lower triangular matrix? - Use the diagram to find the determinant of the matrix
What is the geometric effect of the matrix transformation defined by this matrix? In general, what is the determinant of a matrix whose columns are linearly dependent? - Consider the matrices
Use the diagram to find the determinants of
and What does this suggest is generally true about the relationship of to and
Though this activity dealt with determinants of
as we saw in Example 3.4.4.-
If
is a diagonal matrix, then equals the product of its diagonal entries. For instance, since each diagonal entry represents a stretching along one of the axes, as seen in the figure. - If
is a triangular matrix, then is also the product of the entries on the diagonal. For example,since the two parallelograms in Figure 3.4.6 have equal area.
Figure 3.4.6. The determinant of a triangular matrix equals the product of its diagonal entries. - We also saw that
because the vectors are a negatively oriented pair. The matrix transformation defined by this matrix is a reflection in the line
more generally, the determinant of any matrix that defines a reflection is - We saw that the determinant of a product of matrices equals the product of the determinants; that is,
Thus far, we have been thinking of the determinant as the area of a parallelogram. We may also think of it as a factor by which areas are scaled under the matrix transformation defined by the matrix. As seen in Figure 3.4.7, applying the transform scales the area by a factor of Next applying the transform scales the area by a factor of The total scaling is thenFigure 3.4.7. The first transformation scales the area of the unit square by a factor of and the second transformation scales the area by a factor of -
If two vectors are linearly dependent, then
In this case, the parallelogram is squashed down onto a line so that its area becomes zero. This property is perhaps the most important of the ones that we have stated here, and it is what motivates us to explore determinants.
Toward the end of this section, we will learn an algebraic technique for computing determinants. In the meantime, we will simply note that we can define determinants for
For example, the columns of a
Determinants and invertibility
In the previous activity, we saw that, when the columns of a
The matrix
To understand this proposition more fully, let's remember that the matrix
In Subsection 3.1.3, we saw how to describe the three row operations, scaling, interchange, and row replacement, using matrix multiplication. Remember that
- Scalings are performed by multiplying by a diagonal matrix, such as
which has the effect of multiplying the second row by
Since is diagonal, we know that its determinant is the product of its diagonal entries so that If we scale a row in by to obtain the matrix then we have which means that Therefore, In general, if we scale a row of by to obtain we have - Interchanges are performed by matrices such as
which has the effect of interchanging the first and second rows. Notice that the determinant of this matrix is
since it defines a reflection. Therefore, if we perform an interchange operation on to obtain we have which means that In other words, we have so that the determinant before and after an interchange have opposite signs. - Row replacement operations are performed by matrices such as
which multiplies the first row by
and adds the result to the third row. Since this is a lower triangular matrix, we know that the determinant is the product of diagonal entries, which says that If we perform a row replacement on to obtain then and therefore which means that In other words, the determinants before and after a row replacement operation are equal.
Activity 3.4.3.
We will investigate the connection between the determinant of a matrix and its invertibility using Gaussian elimination.
- Consider the two upper triangular matrices
Which of the matrices
and are invertible? Use our earlier observation that the determinant of an upper triangular matrix is the product of its diagonal entries to find and - Explain why an upper triangular matrix is invertible if and only if its determinant is not zero.
- Let's now consider the matrix
and start the Gaussian elimination process. We begin with a row replacement operation
What is the relationship between
and - Next we perform another row replacement operation:
What is the relationship between
and - Finally, we perform an interchange:
to arrive at an upper triangular matrix
What is the relationship between and - Since
is upper triangular, we can compute its determinant, which allows us to find What is Is invertible? - Now consider the matrix
Perform a sequence of row operations to find an upper triangular matrix
that is row equivalent to Use this to determine Is the matrix invertible? - Suppose we apply a sequence of row operations on a matrix
to obtain Explain why if and only if - Explain why an
matrix is invertible if and only if - If
is an invertible matrix with what is
As seen in this activity, row operations provide a means to compute the determinant of a matrix. For instance, the matrix
is row equivalent to an upper triangular matrix
which shows us that
Notice that the three row operations are represented by matrices whose determinants are not zero. This means that if
The determinant of an upper triangular matrix
We may now put all this together. When performing Gaussian elimination on the matrix
Finally, remember that
Cofactor expansions
We now have a technique for computing the determinant of a matrix using row operations. There is another way to compute determinants, using what are called cofactor expansions, that will be important for us in the next chapter. We will describe this method here.
To begin, the determinant of a
With a little bit of work, it can be shown that this number is the same as the signed area of the parallelogram we introduced earlier.
Using a cofactor expansion to find the determinant of a more general
We illustrate how to use a cofactor expansion to find the determinant of
This is the same matrix that appeared in the last activity where we found that
To begin, we choose one row or column. It doesn't matter which we choose because the result will be the same in any case. Here, we will choose the second row.
The determinant will be found by creating a sum of terms, one for each entry in the row we have chosen. For each entry in the row, we will form its term in the cofactor expansion by multiplying
where and are the row and column numbers, respectively, of the entry,- the entry itself, and
- the determinant of the entries left over when we have crossed out the row and column containing the entry.
Since we are computing the determinant of this matrix
using the second row, the entry in the first column of this row is
The term itself is
whose determinant is
Since this entry is in the second row and first column, the term we construct is
Putting this together, we find the determinant to be
Notice that this agrees with the determinant that we found for this matrix using row operations in the last activity.
Activity 3.4.4.
We will explore cofactor expansions through some examples.
- Using a cofactor expansion, show that the determinant of the following matrix
Remember that you can choose any row or column to create the expansion, but the choice of a particular row or column may simplify the computation.
- Use a cofactor expansion to find the determinant of
Explain how the cofactor expansion technique shows that the determinant of a triangular matrix is equal to the product of its diagonal entries.
- Use a cofactor expansion to determine whether the following vectors form a basis of
- Sage will compute the determinant of a matrix
Awith the commandA.det(). Use Sage to find the determinant of the matrix
In this section, we have seen three ways to compute the determinant: by interpreting the determinant as a signed area or volume; by applying appropriate row operations; and by using a cofactor expansion. It's worth spending a moment to think about the relative merits of these approaches.
The geometric definition of the determinant tells us that the determinant is measuring a natural geometric quantity, an insight that does not easily come through the other two approaches. The intuition we gain by thinking about the determinant geometrically makes it seem reasonable that the determinant should be zero for matrices that are not invertible: if the columns are linearly dependent, the vectors cannot create a positive volume.
Approaching the determinant through row operations provides an effective means of computing the determinant. In fact, this is what most computer programs are doing behind the scenes when they compute a determinant. This approach is also a useful theoretical tool for explaining why the determinant tells us whether a matrix is invertible.
The cofactor expansion method will be useful to us in the next chapter when we look at eigenvalues and eigenvectors. It is not, however, a practical way to compute a determinant. To see why, consider the fact that the determinant of a
By contrast, we have seen that the number of steps required to perform Gaussian elimination on an
Summary
In this section, we associated a numerical quantity, the determinant, to a square matrix and showed that it tells us whether the matrix is invertible.
- The determinant of an
matrix may be thought of as measuring the size of the box formed by the column vectors together with a sign measuring their orientation. When for example, the determinant is the signed area of the parallelogram formed by the two columns of the matrix. - We saw that the determinant satisfied many properties. Most importantly, we saw that
and that the determinant of a triangular matrix is equal to the product of its diagonal entries. - These properties helped us compute the determinant of a matrix using row operations. This also led to the important observation that the determinant of a matrix is nonzero if and only if the matrix is invertible.
- Finally, we learned how to compute the determinant of a matrix using cofactor expansions. Though this is an inefficient method for computing determinants, it will be a valuable tool for us in the next chapter.
Exercises 3.4.5Exercises
Consider the matrices
- Find the determinants of
and using row operations. - Find the determinants of
and using cofactor expansions.
This exercise concerns rotations and reflections in
- Suppose that
is the matrix that performs a counterclockwise rotation in Draw a typical picture of the vectors that form the columns of and use the geometric definition of the determinant to determine - Suppose that
is the matrix that performs a reflection in a line passing through the origin. Draw a typical picture of the columns of and use the geometric definition of the determinant to determine - As we saw in Section 2.6, the matrices have the form
Compute the determinants of
and and verify that they agree with what you found in the earlier parts of this exercise.
In the next chapter, we will say that matrices
- Suppose that
is a matrix and that there is a matrix such thatFind
- Suppose that
and are matrices and that there is a matrix such that Explain why
Consider the matrix
where
- Find an expression for
in terms of the parameter - Use your expression for
to determine the values of for which the vectorsare linearly independent?
Determine whether the following statements are true or false and explain your response.
- If we have a square matrix
and multiply the first row by and add it to the third row to obtain then - If we interchange two rows of a matrix, then the determinant is unchanged.
- If we scale a row of the matrix
by to obtain then - If
and are row equivalent and then also. - If
is row equivalent to the identity matrix, then
Suppose that
Suppose that
- If
and are both invertible, use determinants to explain why is invertible. - If
is invertible, use determinants to explain why both and is invertible.
Provide a justification for your responses to the following questions.
- If every entry in one row of a matrix is zero, what can you say about the determinant?
- If two rows of a square matrix are identical, what can you say about the determinant?
- If two columns of a square matrix are identical, what can you say about the determinant?
- If one column of a matrix is a linear combination of the others, what can you say about the determinant?
Consider the matrix
- Write the equation
in terms of and - Explain why
and the first two columns of satisfy the equation you found in the previous part.
In this section, we studied the effect of row operations on the matrix
Suppose that
- Explain why the matrix
is obtained from by replacing the first column by We call this a column replacement operation. Explain why column replacement operations do not change the determinant. - Explain why the matrix
is obtained from by multiplying the second column by Explain the effect that scaling a column has on the determinant of a matrix. - Explain why the matrix
is obtained from by interchanging the first and third columns. What is the effect of this operation on the determinant? - Use column operations to compute the determinant of
Consider the matrices
Use row operations to find the determinants of these matrices.
Consider the matrices
- Use row (and/or column) operations to find the determinants of these matrices.
- Write the
and matrices that follow in this pattern and state their determinants based on what you have seen.
The following matrix is called a Vandermond matrix:
- Use row operations to explain why
- Explain why
is invertible if and are all distinct real numbers. - There is a natural way to generalize this to a
matrix with parameters and Write this matrix and state its determinant based on your previous work.
This matrix appeared in Exercise 1.4.4.7 when we were finding a polynomial that passed through a given set of points.


