On this post we explain what a (lower or upper) triangular matrix is with several examples. Also, you will find how to calculate the determinant of a triangular matrix and all the properties of this special matrix.
Table of Contents
What is a lower or upper triangular matrix?
The definition of upper or lower triangular matrix is as follows:
A triangular matrix is a square matrix in which all elements above or below the main diagonal are zero (0). If all the entries above the main diagonal are zero, it is a lower triangular matrix. In contrast, if all the entries below the main diagonal are zero, it is an upper triangular matrix.
Triangular matrices are widely used in linear algebra calculations, because inverting a triangular matrix, calculating its determinant, or even solving systems of linear equations with these types of matrices is much easier than with matrices that have non-zero elements in all positions.
Upper triangular matrix
Upper triangular matrices are square matrices whose entries below the main diagonal are zero.
Example of a 3×3 dimension upper triangular matrix:
An upper triangular matrix is also called right triangular matrix and it is denoted with the letter U.
Lower triangular matrix
Lower triangular matrices are square matrices whose entries above the main diagonal are zero.
Example of a 3×3 dimension lower triangular matrix:
A lower triangular matrix is also called left triangular matrix and it is denoted with the letter L.
Examples of upper and lower triangular matrices
Once we’ve seen the meaning of upper and lower triangular matrix, we are going to see several examples of triangular matrices to fully understand the concept:
2×2 dimension upper triangular matrix
3×3 dimension lower triangular matrix
4×4 dimension upper triangular matrix
Properties of upper and lower triangular matrices
The characteristics of both upper and lower triangular matrices are as follows:
- The product of two upper triangular matrices is equal to one upper triangular matrix. And vice versa: multiplying two lower triangular matrices results in another lower triangular matrix.
See: multiplying matrices
- The transpose of an upper triangular matrix is a lower triangular matrix, and vice versa: the transpose of a lower triangular matrix is an upper triangular matrix.
- An upper or lower triangular matrix is invertible if all its elements on the main diagonal are nonzero. In such a case, the inverse of an upper (lower) triangular matrix is also an upper (lower) triangular matrix.
Moreover, the main diagonal of the inverted matrix will always contain the reciprocals of the elements on the main diagonal of the original triangular matrix.
- Any diagonal matrix is an upper triangular and a lower triangular matrix at the same time.
- Therefore, a scalar matrix is also an upper and lower triangular matrix. For example, the identity matrix of order 3.
- Obviously, the null matrix is also a lower and upper triangular matrix, because the elements above and below the main diagonal are 0:
- The eigenvalues of a triangular matrix are the elements on the main diagonal.
- All upper and lower triangular matrices are diagonalizable.
- Any square matrix can be factored into the product of a lower triangular matrix and an upper triangular matrix. That is, any matrix can be transformed into a multiplication of triangular matrices. Also, if the matrix is invertible, this transformation is unique. The LU decomposition method is often used to factor a matrix.
Determinant of a triangular matrix
The determinant of a triangular matrix, whether upper or lower triangular, is equal to the product of the entries on the main diagonal.
Note in the following solved exercise how you simply have to calculate the multiplication of the numbers on the main diagonal of the triangular matrix to find its determinant:
This theorem can be easily proven: we just have to calculate the determinant of a triangular matrix by cofactors. The proof is detailed below using a generic triangular matrix:
On the other hand, we know that a matrix is invertible if its determinant is different from 0. Thus, if no element on the main diagonal is 0, the triangular matrix will also be an invertible matrix.
Triangularize a matrix
There are several theorems about triangularizable matrices. However, we are going to see how to triangularize a matrix by applying elementary transformations on the rows, like in the Gaussian elimination method.
For example:
Thus, the original square matrix has been triangularized.
Hessenberg matrix
The definition of the Hessenberg matrix is as follows:
A Hessenberg matrix is an “almost” triangular matrix, that is, all its elements below the first subdiagonal are zero (upper Hessenberg matrix) or all the elements above the first superdiagonal are zero (lower Hessenberg matrix).
Upper Hessenberg Matrix
Lower Hessenberg Matrix
A matrix that is both an upper and a lower Hessenberg matrix is a tridiagonal matrix .
This matrix was named in honor of Karl Hessenberg, an important German engineer and mathematician of the 20th century.
Finally, this type of matrix has the special property that if it is multiplied by a triangular matrix, the result is still a Hessenberg matrix.