Multiply the diagonal entries of a triangular matrix
Recognise whether a matrix is upper triangular, lower triangular, or neither. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.
A matrix is upper triangular if everything below the main diagonal is zero, and lower triangular if everything above it is zero. Either way it is triangular, and
Three numbers to multiply, no expansion, no signs to track. The diagonal is allowed to contain negatives and the product keeps their sign: two negatives give a positive, three give a negative.
Two things this is not:
- - It is not the sum of the diagonal. That sum is the trace,, and it is a different number with a different purpose.
- - It does not apply to a matrix that merely contains zeros. The whole half must be zero: every entry below the diagonal for upper triangular, every entry above it for lower triangular.
The determinant is a sum of products, each taking one entry from every row and every column.
Take an upper triangular matrix and consider any product other than the diagonal one. It must take, from some row, an entry in a column (something below the diagonal, which is zero) — because if every row took a column, then all columns used would be their row indices, forcing the selection to be exactly the diagonal. So any off-diagonal selection picks up at least one zero from below the diagonal.
Hence exactly one product survives:, taken in the identity ordering, whose sign is.
The same argument reflected gives the lower triangular case, and the transpose rule makes the reflection free.
And this is the pivot rule. Elimination converts a matrix into an upper triangular using row additions (free) and row exchanges (each a minus sign). So
One fact, two readings. That is why libraries compute determinants by elimination: the diagonal rule finishes the job.
Problem.. Compute.
Solution. Every entry above the diagonal is zero, so is lower triangular and the determinant is the diagonal product:
Check one term that should have died. Take the selection that uses from row 1. Then whatever rows 2 to 4 contribute, the product contains that zero, so it vanishes. Try instead the selection taking from row 2 and the diagonal elsewhere: it also needs, so row 3 must avoid columns 1 and 2 — but the only nonzero in row 3 in columns 3 or 4 is, and then row 4 must take. That selection is the diagonal read in a different order... which is not a valid selection, since it repeats columns. Every genuinely different selection meets a zero.
A case that needs elimination first. is not triangular. Eliminate:,, then. Pivots, no swaps, so.
- Recognise whether a matrix is upper triangular, lower triangular, or neither
- Read a triangular determinant as the product of the diagonal
- Use the rule to shortcut a determinant that becomes triangular after elimination
- 1.
- 2. — is the diagonal product right here?
- 3. A reduction needs 1 exchange and produces pivots. What is?
- 4. Why does the rule survive if the diagonal entries are negative?
Answers
- 1.. Upper triangular, four factors.
- 2. No. The matrix is not triangular; the determinant is, while the diagonal product would be.
- 3.. One swap, and the pivot product is.
- 4. Because a determinant is a product of signed entries, not of magnitudes. The signs of the diagonal entries are part of the number; nothing about being triangular changes that.