Upper and lower triangular matrices and their determinants

The zeros in a triangular matrix make its determinant much easier to find. We’ll look at where those zeros go, then use row operations to turn another matrix into triangular form.

Look for zeros on one side of the main diagonal

In a square matrix, the main diagonal runs from the upper-left entry to the lower-right entry. An upper triangular matrix has zeros everywhere below that diagonal. Here the diagonal entries are shaded.

A=[12340-2020053000-1]

A lower triangular matrix has zeros everywhere above its main diagonal. In either form, other entries can also be zero. A diagonal matrix is both upper and lower triangular.

L=[1032]

Multiply the diagonal entries to find the determinant

Expand the determinant of A along its first column. Only the entry at the top survives, so we get that entry times the determinant of a smaller upper triangular matrix. Repeating the expansion leaves the product of the diagonal entries. For a lower triangular matrix, the same argument starts along the first row.

det(A)=(1)(-2)(5)(-1)=10det(L)=(1)(2)=2

If any diagonal entry of a triangular matrix is zero, the product is zero and the matrix is singular.

Example: Use row operations to make a triangular matrix

Let’s find the determinant of B. Swap the first two rows so the top-left entry is 1. A row swap reverses the determinant’s sign.

B=[-2401-1406-4]
S=[1-14-24006-4]

Now add twice the first row to the second row. Then subtract three times the new second row from the third. Adding a multiple of another row leaves the determinant the same, so the final matrix U has the same determinant as S.

U=[1-1402800-28]
det(U)=(1)(2)(-28)=-56det(B)=-det(U)=56

We accounted for the one row swap. If you also multiply a row by a number, the determinant is multiplied by that number, so track that factor before using the diagonal product.