Skip to main content

Section 22 Properties of Determinants

Subsection Introduction

This section is different than others in that it contains mainly proofs of previously stated results and only a little new material. Consequently, there is no application attached to this section.

We have seen that an important property of the determinant is that it provides an easy criteria for the invertibility of a matrix. As a result, we obtained an algebraic method for finding the eigenvalues of a matrix, using the characteristic equation. In this section, we will investigate other properties of the determinant related to how elementary row operations change the determinant. These properties of the determinant will help us evaluate the determinant in a more efficient way compared to using the cofactor expansion method, which is computationally intensive for large n values due to it being a recursive method. Finally, we will derive a geometrical interpretation of the determinant.

Preview Activity 22.1.

(a)

We first consider how the determinant changes if we multiply a row of the matrix by a constant.

(i)

Let A=[2314]. Pick a few different values for the constant k and compare the determinant of A and that of [2k3k14]. What do you conjecture that the effect of multiplying a row by a constant on the determinant is?

(ii)

If we want to make sure our conjecture is valid for any 2×2 matrix, we need to show that for A=[abcd], the relationship between det(A) and the determinant of [akbkcd] follows our conjecture. We should also check that the relationship between det(A) and the determinant of [abckdk] follows our conjecture. Verify this.

(iii)

Make a similar conjecture for what happens to the determinant when a row of a 3×3 matrix A is multiplied by a constant k, and explain why your conjecture is true using the cofactor expansion definition of the determinant.

(b)

The second type of elementary row operation we consider is row swapping.

(i)

Take a general 2×2 matrix A=[abcd] and determine how row swapping effects the determinant.

(ii)

Now choose a few different 3×3 matrices and see how row swapping changes the determinant in these matrices by evaluating the determinant with a calculator or any other appropriate technology.

(iii)

Based on your results so far, conjecture how row swapping changes the determinant in general.

(c)

The last type of elementary row operation is adding a multiple of a row to another. Determine the effect of this operation on a 2×2 matrix by evaluating the determinant of a general 2×2 matrix after a multiple of one row is added to the other row.

(d)

All of the elementary row operations we discussed above can be achieved by matrix multiplication with elementary matrices. For each of the following elementary matrices, determine what elementary operation it corresponds to by calculating the product EA, where A=[a11a12a13a21a22a23a31a32a33] is a general 3×3 matrix.

(i)

E=[010100001]

(ii)

E=[100030001]

(iii)

E=[100012001]

Subsection Elementary Row Operations and Their Effects on the Determinant

In Preview Activity 22.1, we conjectured how elementary row operations affect the determinant of a matrix. In the following activity, we prove how the determinant changes when a row is multiplied by a constant using the cofactor expansion definition of the determinant.

Activity 22.2.

In this activity, assume that the determinant of A can be determined by a cofactor expansion along any row or column. (We will prove this result independently later in this section.) Consider an arbitrary n×n matrix A=[aij].

(a)

Write the expression for det(A) using the cofactor expansion along the second row.

(b)

Let B be obtained by multiplying the second row of A by k. Write the expression for det(B) if the cofactor expansion along the second row is used.

(c)

Use the expressions you found above, to express det(B) in terms of det(A).

(d)

Explain how this method generalizes to prove the relationship between the determinant of a matrix A and that of the matrix obtained by multiplying a row by a constant k.

Your work in Activity 22.2 proves the first part of the following theorem on how elementary row operations change the determinant of a matrix.

In the next section, we will use elementary matrices to prove the last two properties of Theorem 22.1.

Subsection Elementary Matrices

As we saw in Preview Activity 22.1, elementary row operations can be achieved by multiplication by elementary matrices.

Definition 22.2.

An elementary matrix is a matrix obtained by performing a single elementary row operation on an identity matrix.

The following elementary matrices correspond, respectively, to an elementary row operation which swaps rows 2 and 4; an elementary row operation which multiplies the third row by 5; and an elementary row operation which adds four times the third row to the first row on any 4×4 matrix:

E1=[1000000100100100],  E2=[1000010000500001],   and   E3=[1040010000100001].

To obtain an elementary matrix corresponding an elementary row operation, we simply perform the elementary row operation on the identity matrix. For example, E1 above is obtained by swapping rows 2 and 4 of the identity matrix.

With the use of elementary matrices, we can now prove the result about how the determinant is affected by elementary row operations. We first rewrite Theorem 22.1 in terms of elementary matrices:

Notes on Theorem 22.3.

An elementary matrix E obtained by multiplying a row by r is a diagonal matrix with one r along the diagonal and the rest 1s, so det(E)=r. Similarly, an elementary matrix E obtained by adding a multiple of a row to another is a triangular matrix with 1s along the diagonal, so det(E)=1. The fact that the the determinant of an elementary matrix obtained by swapping two rows is 1 is a bit more complicated and is verified independently later in this section. Also, the proof of Theorem 22.3 depends on the fact that the cofactor expansion of a matrix is the same along any two rows. A proof of this can also be found later in this section.

Proof of Theorem 22.3.

We will prove the result by induction on n, the size of the matrix A. We verified these results in Preview Activity 22.1 for n=2 using elementary row operations. The elementary matrix versions follow immediately.

Now assume the theorem is true for k×k matrices with k2 and consider an n×n matrix A where n=k+1. If E is an n×n elementary matrix, we want to show that det(EA)=det(E)det(A). Let EA=B. (Although it is an abuse of language, we will refer to both the elementary matrix and the elementary row operation corresponding to it by E.)

When finding det(B)=det(EA) we will use a cofactor expansion along a row which is not affected by the elementary row operation E. Since E affects at most two rows and A has n3 rows, it is possible to find such a row, say row i. The cofactor expansion along row i of B is

(22.1)bi1(1)i+1det(Bi1)+bi2(1)i+2det(Bi2)++bin(1)i+ndet(Bin).

Since we chose a row of A which was not affected by the elementary row operation, it follows that bij=aij for 1jn. Also, the matrix Bij obtained by removing row i and column j from matrix B=EA can be obtained from Aij by an elementary row operation of the same type as E. Hence there is an elementary matrix Ek of the same type as E with Bij=EkAij. Therefore, by induction, det(Bij)=det(Ek)det(Aij) and det(Ek) is equal to 1, -1 or r depending on the type of elementary row operation. If we substitute this information into equation (22.1), we obtain

det(B)=ai1(1)i+1det(Ek)det(Ai1)+ai2(1)i+2det(Ek)det(Ai2)++ain(1)i+ndet(Ek)det(Ain)=det(Ek)det(A).

This equation proves det(EA)=det(Ek)det(A) for any n×n matrix A where Ek is the corresponding elementary row operation on the k×k matrices obtained in the cofactor expansion.

The proof of the inductive step will be finished if we show that det(Ek)=det(E). This equality follows if we let A=In in det(EA)=det(Ek)det(A). Therefore, det(E) is equal to r, or 1, or 1, depending on the type of the elementary row operation E since the same is true of det(Ek) by inductive hypothesis.

Therefore, by the principle of induction, the claim is true for every n2.

As a corollary of this theorem, we can prove the multiplicativity of determinants:

Proof.

If A is non-invertible, then AB is also non-invertible and both det(A) and det(AB) are 0, proving the equality in this case.

Suppose now that A is invertible. By the Invertible Matrix Theorem, we know that A is row equivalent to In. Expressed in terms of elementary matrices, this means that there are elementary matrices E1,E2,,E such that

(22.2)A=E1E2EIn=E1E2E.

Therefore, repeatedly applying Theorem 22.3, we find that

(22.3)det(A)=det(E1)det(E2)det(E).

If we multiply equation (22.2) by B on the right, we obtain

AB=E1E2EB.

Again, by repeatedly applying Theorem 22.3 with this product of matrices, we find

det(AB)=det(E1E2EB)=det(E1)det(E2)det(E)det(B).

From equation (22.3), the product of det(Ei)'s equals det(A), so

det(AB)=det(A)det(B)

which finishes the proof of the theorem.

We can use the multiplicative property of the determinant and the determinants of elementary matrices to calculate the determinant of a matrix in a more efficient way than using the cofactor expansion. The next activity provides an example.

Activity 22.3.

Let A=[112226121].

(a)

Use elementary row operations to reduce A to a row echelon form. Keep track of the elementary row operation you use.

(b)

Taking into account how elementary row operations affect the determinant, use the row echelon form of A to calculate det(A).

Your work in Activity 22.3 provides an efficient method for calculating the determinant. If A is a square matrix, we use row operations given by elementary matrices E1, E2, , Ek to row reduce A to row echelon form R. That is

R=EkEk1E2E1A.

We know det(Ei) for each i, and since R is a triangular matrix we can find its determinant. Then

det(A)=det(E1)1det(E2)1det(E2)1det(R).

In other words, if we keep track of how the row operations affect the determinant, we can calculate the determinant of a matrix A using row operations.

Activity 22.4.

Theorem 22.3 and Theorem 22.4 can be used to prove the following (part c of Theorem 17.3) that A is invertible if and only if det(A)0. We see how in this activity. Let A be an n×n matrix. We can row reduce A to its reduced row echelon form R by elementary matrices E1, E2, , Ek so that

R=E1E2EkA.
(a)

Suppose A is invertible. What, then, is R? What is det(R)? Can the determinant of an elementary matrix ever be 0? How do we conclude that det(A)0?

(b)

Now suppose that det(A)0. What can we conclude about det(R)? What, then, must R be? How do we conclude that A is invertible?

Summary.

Let A be an n×n matrix. Suppose we swap rows s times and divide rows by constants k1,k2,,kr while computing a row echelon form  REF (A) of A. Then det(A)=(1)sk1k2krdet( REF (A)).

Subsection Geometric Interpretation of the Determinant

Determinants have interesting and useful applications from a geometric perspective. To understand the geometric interpretation of the determinant of an n×n matrix A, we consider the image of the unit square under the transformation T(x)=Ax and see how its area changes based on A.

Activity 22.5.

(a)

Let A=[2003]. Start with the unit square in R2 with corners at the origin and at (1,1). In other words, the unit square we are considering consists of all vectors v=[xy] where 0x1 and 0y1, visualized as points in the plane.

(i)

Consider the collection of image vectors Av obtained by multiplying v's by A. Sketch the rectangle formed by these image vectors.

(ii)

Explain how the area of this image rectangle and the unit square is related via det(A).

(iii)

Does the relationship you found above generalize to an arbitrary A=[a00b]? If not, modify the relationship to hold for all diagonal matrices.

(b)

Let A=[2103].

(i)

Sketch the image of the unit square under the transformation T(v)=Av. To make the sketching easier, find the images of the vectors [0 0]T,[1 0]T,[0 1]T,[1 1]T as points first and then connect these images to find the image of the unit square.

(ii)

Check that the area of the parallelogram you obtained in the above part is equal to det(A).

(iii)

Does the relationship between the area and det(A) still hold if A=[2103]? If not, how will you modify the relationship?

It can be shown that for all 2×2 matrices a similar relationship holds.

There is a similar geometric interpretation of the determinant of a 3×3 matrix in terms of volume.

The sign of det(A) can be interpreted in terms of the orientation of the column vectors of A. See the project in Section 17 for details.

Subsection An Explicit Formula for the Inverse and Cramer's Rule

In Section 10 we found the inverse A1 using row reduction of the matrix obtained by augmenting A with In. However, in theoretical applications, having an explicit formula for A1 can be handy. Such an explicit formula provides us with an algebraic expression for A1 in terms of the entries of A. A consequence of the formula we develop is Cramer's Rule, which can be used to provide formulas that give solutions to certain linear systems.

We begin with an interesting connection between a square matrix and the matrix of its cofactors that we explore in the next activity.

Activity 22.6.

Let A=[213145212].

(a)

Calculate the (1,1), (1,2), and (1,3) cofactors of A.

(b)

If Cij represents the (i,j) cofactor of A, then the cofactor matrix C is the matrix C=[Cij]. The adjugate matrix of A is the transpose of the cofactor matrix. In our example, the adjugate matrix of A is

adj(A)=[1357827947].

Check the entries of this adjugate matrix with your calculations from part (a). Then calculate the matrix product

A adj(A).
(c)

What do you notice about the product A adj(A)? How is this product related to det(A)?

The result of Activity 22.6 is rather surprising, but it is valid in general. That is, if A=[aij] is an invertible n×n matrix and Cij is the (i,j) cofactor of A, then A adj(A)=det(A)In. In other words, A(adj(A)det(A))=In and so

A1=1det(A)adj(A).

This gives us another formulation of the inverse of a matrix. To see why A adj(A)=det(A)In, we use the row-column version of the matrix product to find the ijth entry of A adj(A) as indicated by the shaded row and column

[a11a12a1na21a22a2nai1ai2ainan1an2ann][C11C21Cj1Cn1C12C22Cj2Cn2C1nC2nCjnCnn].

Thus the ijth entry of A adj(A) is

(22.4)ai1Cj1+ai2Cj2++ainCjn.

Notice that if i=j, then expression (22.4) is the cofactor expansion of A along the ith row. So the iith entry of A adj(A) is det(A). It remains to show that the ijth entry of A adj(A) is 0 when ij.

When ij, the expression (22.4) is the cofactor expansion of the matrix

[a11a12a1na21a22a2nai1ai2ainaj11aj12aj1nai1ai2ainaj+11ai+12aj+1nan1an2ann]

along the jth row. This matrix is the one obtained by replacing the jth row of A with the ith row of A. Since this matrix has two identical rows, it is not row equivalent to the identity matrix and is therefore not invertible. Thus, when ij expression (22.4) is 0. This makes A adj(A)=det(A)In.

One consequence of the formula A1=1det(A)adj(A) is Cramer's rule, which describes the solution to the equation Ax=b.

Activity 22.7.

Let A=[3142], and let b=[26].

(a)

Solve the equation Ax=b using the inverse of A.

(b)

Let A1=[2162], the matrix obtained by replacing the first column of A with b. Calculate det(A1)det(A) and compare to your solution from part (a). What do you notice?

(c)

Now let A2=[3246], the matrix obtained by replacing the second column of A with b. Calculate det(A2)det(A) and compare to your solution from part (a). What do you notice?

The result from Activity 22.7 may seem a bit strange, but turns out to be true in general. The result is called Cramer's Rule.

To see why Cramer's Rule works in general, let A be an n×n invertible matrix and b=[b1 b2  bn]T. The solution to Ax=b is

x=A1b=1det(A)adj(A)b=1det(A)[C11C21Cn1C12C22Cn2C1nC2nCnn][b1b2bn].

Expanding the product gives us

x=1det(A)[b1C11+b2C21++bnCn1b1C12+b2C22++bnCn2b1C1n+b2C2n++bnCnn].

The expression

b1C1j+b2C2j++bnCnj

is the cofactor expansion of the matrix

Aj=[a11a12a1j1b1a1j+1a1na21a22a2j1b2a2j+1a2nan1an2anj1bnanj+1ann]

along the jth column, giving us the formula in Cramer's Rule.

Cramer's Rule is not a computationally efficient method. To find a solution to a linear system of n equations in n unknowns using Cramer's Rule requires calculating n+1 determinants of n×n matrices — quite inefficient when n is 3 or greater. Our standard method of solving systems using Gaussian elimination is much more efficient. However, Cramer's Rule does provide a formula for the solution to Ax=b as long as A is invertible.

Subsection The Determinant of the Transpose

In this section we establish the fact that the determinant of a square matrix is the same as the determinant of its transpose.

The result is easily verified for 2×2 matrices, so we will proceed by induction and assume that the determinant of the transpose of any (n1)×(n1) matrix is the same as the determinant of its transpose. Suppose A=[aij] is an n×n matrix. By definition,

det(A)=a11C11+a12C12+a13C13++a1nC1n

and

det(AT)=a11C11+a21C21+a31C31++an1Cn1.

Note that the only terms in either determinant that contains a11 is a11C11. This term is the same in both determinants, so we proceed to examine other elements. Let us consider all terms in the cofactor expansion for det(AT) that contain ai1a1j. The only summand that contains ai1 is ai1Ci1. Letting Aij be the sub-matrix of A obtained by deleting the ith row and jth column, we see that ai1Ci1=(1)i+1ai1det(Ai1). Now let's examine the sub-matrix Ai1:

[a12a13a1ja1n1a1na22a23a2ja2n1a2nai12ai13ai1jai1n1ai1nai+12ai+13ai+1jai+1n1ai+1nan2an3anjann1ann]

When we expand along the first row to calculate det(Ai1), the only term that will involve a1j is

(1)j1+1a1jdet(Ai1,1j),

where Aik,jm denotes the sub-matrix of A obtained by deleting rows i and k and columns j and m from A. So the term that contains ai1a1j in the cofactor expansion for det(AT) is

(22.5)(1)i+1ai1(1)ja1jdet(Ai11j)=(1)i+j+1ai1a1jdet(Ai1,1j).

Now we examine the cofactor expansion for det(A) to find the terms that contain ai1a1j. The quantity a1j only appears in the cofactor expansion as

a1jC1j=(1)1+ja1jdet(A1j).

Now let's examine the sub-matrix A1j:

[a21a22a2j1a2j+1a2na31a32a3j1a3j+1a3nai1ai2aij1aij+1ainan1an2anj1anj+1ann]

Here is where we use the induction hypothesis. Since A1j is an (n1)×(n1) matrix, its determinant can be found with a cofactor expansion down the first column. The only term in this cofactor expansion that will involve ai1 is

(1)i1+1ai1det(A1i,j1).

So the term that contains ai1a1j in the cofactor expansion for det(A) is

(22.6)(1)1+ja1j(1)i1+1ai1det(A1ji1)=(1)i+j+1ai1a1jdet(A1i,j1).

Since the quantities in (22.5) and (22.6) are equal, we conclude that the terms in the two cofactor expansions are the same and

det(AT)=det(A).

Subsection Row Swaps and Determinants

In this section we determine the effect of row swaps to the determinant. Let Ers be the elementary matrix that swaps rows r and s in the n×n matrix A=[aij]. Applying E12 to a 2×2 matrix A=[abcd], we see that

det(A)=adbc=(adbc)=det([cdab])=det(E12A).

So swapping rows in a 2×2 matrix multiplies the determinant by 1. Suppose that row swapping on any (n1)×(n1) matrix multiplies the determinant by 1 (in other words, we are proving our statement by mathematical induction). Now suppose A is an n×n matrix and let B=[bij]=ErsA. We first consider the case that s=r+1 — that we swap adjacent rows. We consider two cases, r>1 and r=1. First let us suppose that r>1. Let Cij be the (i,j) cofactor of A and Cij the (i,j) cofactor of B. We have

det(A)=a11C11+a12C12++a1nC1n

and

det(B)=b11C11+b12C12++b1nC1n.

Since r>1,it follows that a1j=b1j for every j. For each j the sub-matrix B1j obtained from B by deleting the ith row and jth column is the same matrix as obtained from Aij by swapping rows r and s. So by our induction hypothesis, we have C1j=C1j for each j. Then

det(B)=b11C11+b12C12++b1nC1n=a11(C11)+a12(C12)++a1n(C1n)=(a11C11+a12C12++a1nC1n)=det(A).

Now we consider the case where r=1, where B is the matrix obtained from A by swapping the first and second rows. Here we will use the fact that det(A)=det(AT) which allows us to calculate det(A) and det(B) with the cofactor expansions down the first column. In this case we have

det(A)=a11C11+a21C21++an1Cn1

and

det(B)=b11C11+b21C21++bn1Cn1=a21C11+a11C21+a31C31++an1Cn1.

For each i3, the sub-matrix Bi1 is just Ai1 with rows 1 and 2 swapped. So we have Ci1=Ci1 by our induction hypothesis. Since we swapped rows 1 and 2, we have B21=A11 and B11=A21. Thus,

b11C11=(1)1+1b11det(A21)=a21det(A21)=a21C21

and

b21C21=(1)2+1a11det(A11)=a11det(A11)=a11C11.

Putting this all together gives us

det(B)=b11C11+b21C21++bn1Cn1=a21C21a11C11+a31(C31)++an1(Cn1)=(a11C11+a21C21++an1Cn1)=det(A).

So we have shown that if B is obtained from A by interchanging two adjacent rows, then det(B)=det(A). Now we consider the general case. Suppose B is obtained from A by interchanging rows r and s, with r<s. We can perform this single row interchange through a sequence of adjacent row interchanges. First we swap rows r and r+1, then rows r+1 and r+2, and continue until we swap rows s1 and s. This places the original row r into the row s position, and the process involved sr adjacent row interchanges. Each of these interchanges multiplies the determinant by a factor of 1. At the end of this sequence of row swaps, the original row s is now row s1. So it will take one fewer adjacent row interchanges to move this row to be row r. This sequence of (sr)+(sr1)=2(sr1)1 row interchanges produces the matrix B. Thus,

det(B)=(1)2(sr)1det(A)=det(A),

and interchanging any two rows multiplies the determinant by 1.

Subsection Cofactor Expansions

We have stated that the determinant of a matrix can be calculated by using a cofactor expansion along any row or column. We use the result that swapping rows introduces a factor of 1 in the determinant to verify that result in this section. Note that in proving that det(AT)=det(A), we have already shown that the cofactor expansion along the first column is the same as the cofactor expansion along the first row. If we can prove that the cofactor expansion along any row is the same, then the fact that det(AT)=det(A) will imply that the cofactor expansion along any column is the same as well.

Now we demonstrate that the cofactor expansions along the first row and the ith row are the same. Let A=[aij] be an n×n matrix. The cofactor expansion of A along the first row is

a11C11+a12C12++a1nC1n

and the cofactor expansion along the ith row is

ai1Ci1+ai2Ci2++ainCin.

Let B be the matrix obtained by swapping row i with previous rows so that row i becomes the first row and the order of the remaining rows is preserved.

B=[ai1ai2aijaina11a12a1ja1na21a22a2ja2nai11ai12ai1jai1nai+11ai+12ai+1jai+1nan1an2anjann]

Then

det(B)=(1)i1det(A).

So, letting Cij be the (i,j) cofactor of B we have

det(A)=(1)i1det(B)=(1)i1(ai1C11+ai2C12++ainC1n).

Notice that for each j we have B1j=Aij. So

det(A)=(1)i1(ai1C11+ai2C12++ainC1n)=(1)i1(ai1(1)(1+1)det(B11)+ai2(1)1+2det(B12)++ain(1)1+ndet(B1n))=(1)i1(ai1(1)(1+1)det(Ai1)+ai2(1)1+2det(Ai2)++ain(1)1+ndet(Ain))=ai1(1)(i+1)det(Ai1)+ai2(1)i+2det(Ai2)++ain(1)i+ndet(Ain)=ai1Ci1+ai2Ci2++ainCin.

Subsection The LU Factorization of a Matrix

There are many instances where we have a number of systems to solve of the form Ax=b, all with the same coefficient matrix. The system may evolve over time so that we do not know the constant vectors b in the system all at once, but only determine them as time progresses. Each time we obtain a new vector b, we have to apply the same row operations to reduce the coefficient matrix to solve the new system. This is time repetitive and time consuming. Instead, we can keep track of the row operations in one row reduction and save ourselves a significant amount of time. One way of doing this is the LU-factorization (or decomposition).

To illustrate, suppose we can write the matrix A as a product A=LU, where

L=[1000110001101001]   and   U=[1010013200030000].

Let b=[3 1 1 3]T and x=[x1 x2 x3 x4]T, and consider the linear system Ax=b. If Ax=b, then LUx=b. We can solve this system without applying row operations as follows. Let Ux=z, where z=[z1 z2 z3 z4]T. We can solve Lz=b by using forward substitution.

The equation Lz=b is equivalent to the system

z1      =3z1 + z2    =1  z2 + z3  =1      z4=3.

The first equation shows that z1=3. Substituting into the second equation gives us z2=4. Using this information in the third equation yields z3=3, and then the fourth equation shows that z4=0. To return to the original system, since Ux=z, we now solve this system to find the solution vector x. In this case, since U is upper triangular, we use back substitution. The equation Ux=z is equivalent to the system

x1   + x3  =3  x2 + 3x3  2x4=4      3x4=3.

Note that the third column of U is not a pivot column, so x3 is a free variable. The last equation shows that x4=1. Substituting into the second equation and solving for x2 yields x2=23x3. The first equation then gives us x1=3x3. So the general solution

x=[3201]+[1310]x3

to Ax=b can be found through L and U via forward and backward substitution. If we can find a factorization of a matrix A into a lower triangular matrix L and an upper triangular matrix U, then A=LU is called an LU-factorization or LU-decomposition.

We can use elementary matrices to obtain a factorization of certain matrices into products of lower triangular (the “L” in LU) and upper triangular (the “U” in LU) matrices. We illustrate with an example. Let

A=[1010112201311010].

Our goal is to find an upper triangular matrix U and a lower triangular matrix L so that A=LU. We begin by row reducing A to an upper triangular matrix, keeping track of the elementary matrices used to perform the row operations. We start by replacing the entries below the (1,1) entry in A with zeros. The elementary matrices that perform these operations are

E1=[1000110000100001]   and   E2=[1000010000101001],

and

E2E1A=[1010013201310000].

We next zero out the entries below the (2,2) entry as

E3E2E1A=[1010013200030000],

where

E3=[1000010001100001].

The product E3E2E1A is an upper triangular matrix U. So we have

E3E2E1A=U

and

A=E11E21E31U,

where

E11E21E31=[1000110001101001]

is a lower triangular matrix L. So we have decomposed the matrix A into a product A=LU, where L is lower triangular and U is upper triangular. Since every matrix is row equivalent to a matrix in row echelon form, we can always find an upper triangular matrix U in this way. However, we may not always obtain a corresponding lower triangular matrix, as the next example illustrates.

Suppose we change the problem slightly and consider the matrix

B=[1010112201311001].

Using the same elementary matrices E1, E2, and E3 as earlier, we have

E3E2E1B=[1010013200030011].

To reduce B to row-echelon form now requires a row interchange. Letting

E4=[1000010000010010]

brings us to

E4E3E2E1B=[1010013200110003].

So in this case we have U=E4E3E2E1B, but

E11E21E31E41=[1000110001011010]

is not lower triangular. The difference in this latter example is that we needed a row swap to obtain the upper triangular form.

Subsection Examples

What follows are worked examples that use the concepts from this section.

Example 22.8.

(a)

If A, B are n×n matrices with det(A)=3 and det(B)=2, evaluate the following determinant values. Briefly justify.

(i)

det(A1)

Solution.

Assume that det(A)=3 and det(B)=2.

Since det(A)0, we know that A is invertible. Since 1=det(In)=det(AA1)=det(A)det(A1), it follows that det(A1)=1det(A)=13.

(ii)

det(ABAT)

Solution.

Assume that det(A)=3 and det(B)=2.

We know that det(AT)=det(A), so

det(ABAT)=det(A)det(B)det(AT)=det(A)det(B)det(A)=(3)(2)(3)=18.
(iii)

det(A3(BA)1(AB)2)

Solution.

Assume that det(A)=3 and det(B)=2.

Using properties of determinants gives us

det(A3(BA)1(AB)2)=det(A3)det((BA)1)det((AB)2)=(det(A))3(1det(AB))(det(AB))2=27(1det(A)det(B))(det(A)det(B))2=(27)(62)6=162.
(b)

If the determinant of [abcdefghi] is m, find the determinant of each of the following matrices.

(i)

[abc2d2e2fghi]

Solution.

Assume that det([abcdefghi])=m.

Multiplying a row by a scalar multiples the determinant by that scalar, so

det([abc2d2e2fghi])=2m.
(ii)

[defghiabc]

Solution.

Assume that det([abcdefghi])=m.

Interchanging two rows multiples the determinant by 1. It takes two row swaps in the original matrix to obtain this one, so

det([defghiabc])=(1)2m=m.
(iii)

[abcg2dh2ei2fa+db+ec+f]

Solution.

Assume that det([abcdefghi])=m.

Adding a multiple of a row to another does not change the determinant of the matrix. Since there is a row swap needed to get this matrix from the original we have

det([abcg2dh2ei2fa+db+ec+f])=m.

Example 22.9.

Let A=[280223127].

(a)

Find an LU factorization for A.

Solution.

We row reduce A to an upper triangular matrix by applying elementary matrices. First notice that if E1=[100110001], then

E1A=[280063127].

Letting E2=[1000101201] gives us

E2E1A=[280063027].

Finally, when E3=[1000100131] we have

U=E3E2E1A=[280063008].

This gives us E3E2E1A=U, so we can take

L=E11E21E31=[10011012131].
(b)

Use the LU factorization with forward substitution and back substitution to solve the system Ax=[18 3 12]T.

Solution.

To solve the system Ax=b, where b=[18 3 12]T, we use the LU factorization of A and solve LUx=b. Let x=[x1 x2 x3]T and let z=[z1 z2 z3]T with Ux=z so that Lz=L(Ux)=Ax=b. First we solve Lz=[18 3 12]T to find z using forward substitution. The first row of L shows that z1=18 and the second row that z1+z2=3. So z2=15. The third row of L gives us 12z1+13z2+z3=12, so z3=129+5=8. Now to find x we solve Ux=z using back substitution. The third row of U tells us that 8x3=8 or that x3=1. The second row of U shows that 6x23x3=15 or x2=2. Finally, the first row of U gives us 2x1+8x2=18, or x1=1. So the solution to Ax=b is x=[1 2 1]T.

Subsection Summary

  • The elementary row operations have the following effects on the determinant:

    • If we multiply a row of a matrix by a constant k, then the determinant is multiplied by k.

    • If we swap two rows of a matrix, then the determinant changes sign.

    • If we add a multiple of a row of a matrix to another, the determinant does not change.

  • Each of the elementary row operations can be achieved by multiplication by elementary matrices. To obtain the elementary matrix corresponding to an elementary row operation, we perform the operation on the identity matrix.

  • Let A be an n×n invertible matrix. For any b in Rn, the solution x of Ax=b has entries

    xi=det(Ai(b))det(A)

    where Ai(b) represents the matrix formed by replacing ith column of A with b.

  • Let A be an invertible n×n matrix. Then

    A1=1det(A) adj A

    where the  adj A matrix, the adjugate of A, is defined as the matrix whose ij-th entry is Cji, the ji-th cofactor of A.

  • For a 2×2 matrix A, the area of the image of the unit square under the transformation T(x)=Ax is equal to |det(A)|, which is also equal to the area of the parallelogram defined by the columns of A.

  • For a 3×3 matrix A, the volume of the image of the unit cube under the transformation T(x)=Ax is equal to |det(A)|, which is also equal to the volume of the parallelepiped defined by the columns of A.

  • An LU factorization of a square matrix A consists of a lower triangular matrix L and an upper triangular matrix U so that A=LU.

  • A square matrix A has an LU factorization if we can use row operations without row interchanges to row reduce A to an upper triangular matrix U. In this situation the elementary matrices that perform the row operations produce a lower triangular matrix L so that A=LU. If A cannot be reduced to an upper triangular matrix U without row interchanges, then we can factor A in the form PLU, where L is a lower triangular matrix, U is an upper triangular matrix, and P is obtained from the identity matrix by appropriate row interchanges.

  • There are many instances where we have a number of systems to solve of the form Ax=b, all with the same coefficient matrix but where the vectors b can change. With an LU factorization, we can keep track of the row operations in one row reduction and save ourselves a significant amount of time when solving these systems.

Exercises Exercises

1.

Find a formula for det(rA) in terms of r and det(A), where A is an n×n matrix and r is a scalar. Explain why your formula is valid.

2.

Find det(A) by hand using elementary row operations where

A=[1213123121231838].

3.

Consider the matrix A=[4111141111411114]. We will find det(A) using elementary row operations. (This matrix arises in graph theory, and its determinant gives the number of spanning trees in the complete graph with 5 vertices. This number is also equal to the number of labeled trees with 5 vertices.)

(a)

Add rows R2, R3 and R4 to the first row in that order.

(b)

Then add the new R1 to rows R2, R3 and R4 to get a triangular matrix B.

(c)

Find the determinant of B. Then use det(B) and properties of how elementary row operations affect determinants to find det(A).

(d)

Generalize your work to find the determinant of the n×n matrix

A=[n11111n1111111n].

4.

For which matrices A, if any, is det(A)=det(A)? Justify your answer.

5.

Find the inverse A1 of A=[101010201] using the adjugate matrix.

6.

For an invertible n×n matrix A, what is the relationship between det(A) and det( adj A)? Justify your result.

7.

Let A=[ab1cd2ef3], and assume that det(A)=2. Determine the determinants of each of the following.

(a)

B=[ab13c3d6e+af+b4]

(b)

C=[2e2f62c2e2d2f22a2b2]

8.

Find the area of the parallelogram with one vertex at the origin and adjacent vertices at (1,2) and (a,b). For which (a,b) is the area 0? When does this happen geometrically?

9.

Find the volume of the parallelepiped with one vertex at the origin and three adjacent vertices at (3,2,0), (1,1,1) and (1,3,c) where c is unknown. For which c, is the volume 0? When does this happen geometrically?

10.

Find an LU factorization of each of the following matrices A. Use the LU factorization to solve the system Ax=b for the given vector b.

(a)

A=[213101215], b=[121]

(b)

A=[110111021], b=[121]

(c)

A=[1110101111000110], b=[3020]

11.

Let A=[1221].

(a)

Find an LU decomposition of A.

(b)

Find a different factorization of A into a product LU where L is a lower triangular matrix different from L and U is an upper triangular matrix different from U. Conclude that the LU decomposition of a matrix is not unique.

12.

Let A=[123120200].

(a)

Find an LU decomposition of A.

(b)

Find an LU decomposition of A in which the diagonal entries of D are all 1.

Hint.

Continue row reducing.

(c)

Find an upper triangular matrix L whose diagonal entries are all 1, a lower triangular matrix U whose diagonal entries are all 1, and a diagonal matrix D such that A=LDU.

13.

Label each of the following statements as True or False. Provide justification for your response.

(a) True/False.

If two rows are equal in A, then det(A)=0.

(b) True/False.

If A is a square matrix and R is a row echelon form of A, then det(A)=det(R).

(c) True/False.

If a matrix A is invertible, then 0 is not an eigenvalue of A.

(d) True/False.

If A is a 2×2 matrix for which the image of the unit square under the transformation T(x)=Ax has zero area, then A is non-invertible.

(e) True/False.

Row operations do not change the determinant of a square matrix.

(f) True/False.

If Aij is the matrix obtained from a square matrix A=[aij] by deleting the ith row and jth column of A, then

ai1(1)i+1det(Ai1)+ai2(1)i+2det(Ai2)++ain(1)i+ndet(Ain)=a1j(1)j+1det(A1j)+a2i(1)j+2det(A2i)++anj(1)j+ndet(Anj)

for any i and j between 1 and n.

(g) True/False.

If A is an invertible matrix, then det(ATA)>0.