Lesson Explainer: Determinant of a Triangular Matrix | Nagwa Lesson Explainer: Determinant of a Triangular Matrix | Nagwa

Lesson Explainer: Determinant of a Triangular Matrix Mathematics • First Year of Secondary School

Join Nagwa Classes

Attend live Mathematics sessions on Nagwa Classes to learn more about this topic from an expert teacher!

In this explainer, we will learn how to find the determinant of a triangular matrix.

Let us begin by recalling how to find the determinant of a general 3×3 matrix. To do this, we need to know the definitions of minors and cofactors.

Definition: Minors

Let 𝐴=𝑎 be a matrix of order 𝑚×𝑚. Then, the minor of element 𝑎 (denoted by 𝐴) is the determinant of the (𝑚1)×(𝑚1) matrix obtained after removing row 𝑖 and column 𝑗 from 𝐴.

Definition: Cofactors

Let 𝐴=𝑎 be a matrix of order 𝑚×𝑚. Then, the cofactor of element 𝑎 (denoted by 𝐶) is 𝐶=(1)𝐴, where 𝐴 is the minor of element 𝑎.

The determinant can be written using the cofactor expansion as follows.

Definition: Determinant of a 3 × 3 Matrix (Cofactor Expansion)

Let 𝐴=(𝑎) be a 3×3 matrix. Then, for any fixed 𝑖=1,2, or 3, the determinant of 𝐴 is det(𝐴)=𝑎𝐶+𝑎𝐶+𝑎𝐶, where each 𝐶 is the cofactor of entry 𝑎. This is known as the cofactor expansion (or the Laplace expansion) along row 𝑖. Alternatively, for any fixed 𝑗=1,2, or 3, we have det(𝐴)=𝑎𝐶+𝑎𝐶+𝑎𝐶.

This is the cofactor expansion along column 𝑗.

We also note that an alternate, perhaps more convenient, formulation is to write the above formulas explicitly in terms of 2×2 determinants. So, for the first-row expansion, we have det(𝐴)=𝑎|||𝑎𝑎𝑎𝑎|||𝑎|||𝑎𝑎𝑎𝑎|||+𝑎|||𝑎𝑎𝑎𝑎|||.

An important facet of the cofactor expansion to consider is that we can choose which row or column we wish to expand along. It becomes clear how significant this is when we consider, for example, a matrix like 𝐴=413100324.

If we considered the first row, then the determinant calculation would be det(𝐴)=4||0024||1||1034||+3||1032||.

While doable, this requires writing and calculating three 2×2 determinants. On the other hand, if we used the second row instead, we would just have det(𝐴)=1||1324||, since 𝑎 and 𝑎 are both 0. Even though this calculation is much simpler, we still get the same result at the end because all forms of the cofactor expansion are equivalent.

Let us keep in mind the idea that choosing a row or column with more zeros in it simplifies the calculation when considering our first example.

Example 1: Finding the Determinant of a Matrix that Includes a Row of Zeros

Find the value of ||||5180260000||||.

Answer

To calculate the determinant of a 3×3 matrix, recall that we can use the cofactor expansion along any row using the formula det(𝐴)=𝑎𝐶+𝑎𝐶+𝑎𝐶, where 𝑖=1,2, or 3, and along any column.

Although any choice of row or column will give us the same value for the determinant, it is always easier to choose one that has the greatest number of zeros. In particular, we can see that the third row is entirely zeros:

Therefore, letting 𝑖=3, the determinant calculation will be det(𝐴)=𝑎𝐶+𝑎𝐶+𝑎𝐶=0×𝐶+0×𝐶+0×𝐶=0.

As the last example demonstrated, since the third row of the matrix had zeros for each entry, the determinant was zero. Naturally, since the cofactor expansion can be applied along any row or column, this same result will be true if any entire row or column of a matrix is zero, and this can be generalized to matrices of any size.

Property: Determinants with Zero Rows or Columns

If 𝐴 is a square matrix where each entry in a particular row or column is zero, then det(𝐴) is zero.

Some examples of this include

Whenever we are asked to find a determinant, we should always be mindful to check whether any rows or columns are zeros, since this allows us to immediately conclude that the determinant is zero using this property.

In the next example, we will consider another special case of determinant calculation.

Example 2: Finding the Value of the Determinant of an Upper Triangular Matrix

Fill in the blank: The value of the determinant ||||302057004||||=.

Answer

When asked to find the determinant of a 3×3 matrix, recall that we can use the cofactor expansion along any row using the formula det(𝐴)=𝑎𝐶+𝑎𝐶+𝑎𝐶, where 𝑖=1,2, or 3, and along any column.

It is always beneficial for us to choose a row or column to expand along that has the greatest number of zero entries, since this results in fewer calculations needed. If we examine the given matrix, we find that the first column and the third row are the best candidates since they both contain two entries that are zero:

If we choose the third row, then we have 𝑖=3. So, we get det(𝐴)=𝑎𝐶+𝑎𝐶+𝑎𝐶=0×𝐶0×𝐶+4||3005||=4×3×5=60.

Let us review an important aspect of this example. In the end, the calculation of the determinant was just multiplying the three entries along the main diagonal together. As it turns out, the reason that the calculation was so straightforward is because the matrix was an upper triangular matrix. Let us recall the definition of this type of matrix.

Definition: Triangular Matrix

If the entries below the main diagonal are zero, the matrix is an upper triangular matrix.

If the entries above the main diagonal are zero, the matrix is a lower triangular matrix.

Upper and lower triangular matrices are shown:

A matrix is triangular if it is either upper or lower triangular (or both).

The reason that finding determinants of triangular matrices is so simple is that the zeros in one half of the matrix remove much of the calculation. To see this, let us consider the calculation of the determinant for a general upper triangular matrix, using the cofactor expansion along the third row: ||||𝑎𝑏𝑐0𝑑𝑒00𝑓||||=0×𝐶+0×𝐶+𝑓𝐶=𝑓|||𝑎𝑏0𝑑|||=𝑓(𝑎𝑑0×𝑏)=𝑎𝑑𝑓.

In other words, the end result is just the product of the three entries on the main diagonal. Similarly, for lower triangular matrices, the cofactor expansion along the first row gives us ||||𝑎00𝑏𝑐0𝑑𝑒𝑓||||=𝑎𝐶+0×𝐶+0×𝐶=𝑎|||𝑐0𝑒𝑓|||=𝑎(𝑐𝑓0×𝑒)=𝑎𝑐𝑓.

This gives us the following property.

Property: Determinants of Triangular Matrices

The determinant of a triangular matrix is the product of the entries on the main diagonal:

As a side note, this property also encompasses the subclass of triangular matrices: diagonal matrices. Recall that a diagonal matrix is one where only the entries on the main diagonal are nonzero. Because diagonal matrices are both upper and lower triangular matrices at the same time, they naturally exhibit the same property:

This also applies to identity matrices (where the product of the diagonal entries is always 1) and zero matrices (where the product is always 0), since these are both special cases of diagonal, and hence triangular, matrices.

Let us see how we can use this property to simplify our solutions in the next example.

Example 3: Comparing the Values of the Determinants of Two Triangular Matrices

True or False: If 𝐴=142036004,𝐵=100530674, then detdet(𝐴)=(𝐵).

Answer

One way to answer this question would be to calculate each determinant using the cofactor expansion along the rows or columns. However, we can more efficiently answer this question if we take note of the fact that 𝐴 is an upper triangular matrix and 𝐵 is a lower triangular matrix. We can see this because in 𝐴, the entries below the main diagonal are zero, and in 𝐵, the entries above the main diagonal are zero:

Thus, we can use the property that the determinant of a triangular matrix is equal to the product of the entries on the main diagonal. As we can see, 𝐴 and 𝐵 have the same diagonal entries. Therefore,

That is, detdet(𝐴)=(𝐵)=12, so the answer is true.

Let us further explore examples where we need to find the determinants of triangular matrices. In some cases, the easy part will be identifying that a matrix is triangular and applying the property for determinants and the hard part will involve further calculations to reach the required answer.

Example 4: Solving Equations by Finding the Determinant of a Diagonal Matrix

Consider the equation ||||𝑥1000𝑥+𝑥+10001||||=2.

Determine the value of 𝑥.

Answer

The first thing to notice when we see this matrix is that it is diagonal, which means that all of the entries not on the main diagonal are zero: ||||𝑥1000𝑥+𝑥+10001||||.

Diagonal matrices are a special kind of triangular matrix, and we can recall that the determinant of such a matrix is found by taking the product of the entries on the main diagonal. Therefore, the determinant is ||||𝑥1000𝑥+𝑥+10001||||=(𝑥1)×𝑥+𝑥+1×1=𝑥+𝑥+𝑥𝑥𝑥1=𝑥+𝑥𝑥+𝑥𝑥1=𝑥1.

Now, we want to find 𝑥, using the fact that this determinant is equal to 2. That is, 𝑥1=2.

We can find 𝑥 from here by using the properties of indices, specifically that 𝑥=𝑥. By rearranging and squaring both sides, we have 𝑥=3𝑥=3𝑥=9.

For our final example, let us find the determinant of a matrix given in terms of three variables that we will have to find by finding the determinants of smaller matrices.

Example 5: Finding the Value of a Determinant Involving Unknowns Using Properties

If det𝑥44𝑦=0, det𝑦99𝑧=0, and det𝑥11𝑧=0, find det𝑥120𝑦300𝑧.

Answer

Since we have been given several equations with determinants in them and three unknown variables, the most obvious thing to do would be to find these determinants and see whether this gives us any information about the variables, so let us do this.

First of all, for the 2×2 matrices, we can find their determinants using the formula det𝑎𝑏𝑐𝑑=𝑎𝑑𝑏𝑐.

For the first equation, we have det𝑥44𝑦=0𝑥𝑦4×4=0𝑥𝑦=16.

For the second equation, we have det𝑦99𝑧=0𝑦𝑧9×9=0𝑦𝑧=81.

Finally, the third 2×2 equation gives us det𝑥11𝑧=0𝑥𝑧1×1=0𝑥𝑧=1.

We could use these equations by themselves to find 𝑥, 𝑦, and 𝑧, but this may be more work than necessary. Let us first find the 3×3 determinant so we can see what information is required of us. We can simplify the calculation of this matrix by noticing that it is an upper triangular matrix, since the entries below the main diagonal are zero:

Therefore, the determinant will just be the product of the entries on the main diagonal, giving us

To find 𝑥𝑦𝑧, note that we can take the product of 𝑥𝑦, 𝑦𝑧, and 𝑥𝑧 (since we have already computed these values) and then take the square root. That is to say that we have (𝑥𝑦𝑧)=(𝑥𝑦)(𝑦𝑧)(𝑥𝑧)=16×81×1=1296.

Then, by taking the square root, we get 𝑥𝑦𝑧=±36.

We should be aware that both positive and negative 36 are possibilities here. These different values occur due to the different possible values of 𝑥, 𝑦, and 𝑧, so the value of the determinant will depend on the values of the variables.

Therefore, the determinant is either 36 or 36.

Let us consider the main things we have learned in this explainer.

Key Points

  • We can simplify the calculation of determinants in certain cases if some of the entries are zero. In particular, we can do so in the following:
    • If a matrix has a zero row or column, then its determinant is zero:
    • If a matrix is upper triangular, lower triangular, or diagonal, then its determinant is the product of the entries on the main diagonal:

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy