Triangular Matrix (original) (raw)

Last Updated : 22 Aug, 2025

A triangular matrix is a type of square matrix where most of the entries are zero, either above or below the main diagonal. Depending on where the zeros are placed, triangular matrices are divided into two main types:

tma

Types of Triangular Matrices

There are different types of matrices which are discussed below in this article:

U = \left[\begin{array}{ccc} a & b & c\\ 0 & d & e\\ 0 & 0 & f \end{array}\right]

L = \left[\begin{array}{ccc} 1 & 0 & 0\\ 2 & 3 & 0\\ 4 & 5 & 6 \end{array}\right]

**Strictly Triangular Matrix: A triangular matrix is referred to as a strictly triangular matrix if all the elements of the principal diagonal are zero.

A = \left[\begin{array}{ccc} 0 & 0 & 0\\ p & 0 & 0\\ q & r & 0 \end{array}\right]

B = \left[\begin{array}{ccc} 0 & 12 & -7\\ 0 & 0 & 9\\ 0 & 0 & 0 \end{array}\right]

**Unit Triangular Matrix: A triangular matrix is referred to as a unit triangular matrix if all the elements of the principal diagonal are one.

P = \left[\begin{array}{ccc} 1 & 0 & 0\\ 2 & 1 & 0\\ 5 & 6 & 1 \end{array}\right]

Q = \left[\begin{array}{ccc} 1 & 21 & 19\\ 0 & 1 & 17\\ 0 & 0 & 1 \end{array}\right]

Upper Triangular Matrix

An upper triangular matrix is a square matrix, whose all elements below the principal diagonal are zeros. A square matrix "A = [aij]" is said to be an upper triangular matrix when aij = 0 for all i > j.

Program to check if matrix is upper triangular - GeeksforGeeks

If Un,n is a square matrix of order "n × n" and uij represents an element in the ith row and jth column of the given matrix, then

U_{n,n} = \left\{ \begin{array}{c} u_{ij},fori\leq j\\ 0,fori>j \end{array}\right\}

Examples of Upper Triangular Matrix

The matrix given below is an upper triangular matrix of order "2 × 2." We can see that the elements below the principal diagonal are zeros.

U_{2,2} = \left[\begin{array}{cc} 13 & 9\\ 0 & 7 \end{array}\right]

The matrix given below is an upper triangular matrix of order "3 × 3."

U_{3,3} = \left[\begin{array}{ccc} 3 & -8 & 6\\ 0 & 5 & 11\\ 0 & 0 & 4 \end{array}\right]

Lower Triangular Matrix

A lower triangular matrix is a square matrix whose all elements above the principal diagonal are zeros. A square matrix "A = [aij]" is said to be a lower triangular matrix when aij = 0 for all i < j.

Lower-triangular-Matrix

If L is a square matrix of order "n × n" and lij represents an element in the ith row and jth column of the given matrix, then the condition for the given matrix to be a lower triangular matrix is given as follows:

If L is a square matrix of order "n × n" and lij represents an element in the ith row and jth column of the given matrix, then the condition for the given matrix to be a lower triangular matrix is given as follows:

L = \left\{ \begin{array}{c} l_{ij},fori\geq j\\ 0,fori<j \end{array}\right\}

Examples of Lower Triangular Matrix

The matrix given below is a lower triangular matrix of order "2 × 2."

L = \left[\begin{array}{cc} 1 & 0\\ 3 & 5 \end{array}\right]

The matrix given below is a lower triangular matrix of order "3 × 3." We can see that the elements above the principal diagonal are zeros.

L_{3,3} = \left[\begin{array}{ccc} 4 & 0 & 0\\ 7 & 9 & 0\\ -5 & 3 & 11 \end{array}\right]

Properties of a Triangular Matrix

Various properties of the Triangular Matrix are discussed below in this article:

Solved Examples on Triangular Matrix

**Example 1: Calculate the determinant of the matrix given below.

A = \left[\begin{array}{ccc} 1 & 3 & -4\\ 0 & 7 & 0\\ 0 & 0 & 8 \end{array}\right]

**Solution:

We can notice that the given matrix is an upper triangular matrix.

We know that the determinant of an upper triangular matrix of any order is equal to the product of the principal diagonal elements.

So, |A| = 1 × 7 × 8 = 56

Hence, the determinant of the given matrix is 56.

**Example 2: Prove the inverse of the inverse of a lower triangular matrix will also be a lower triangular matrix.

**Solution:

Let us consider a lower triangular matrix of order "2 × 2," to prove the inverse of the inverse of a lower triangular matrix will also be a lower triangular matrix.

L = \left[\begin{array}{cc} 5 & 0\\ -7 & 8 \end{array}\right]

L-1 = Adj L/ |L|

|L| = 5 × 8
= 40

Adj L = \left[\begin{array}{cc} 8 & 0\\ 7 & 5 \end{array}\right]

L^{-1} = \frac{1}{40} \left[\begin{array}{cc} 8 & 0\\ 7 & 5 \end{array}\right]

We can see the inverse matrix is also a lower triangular matrix.

Hence, proved.

**Example 3: Prove that the transpose of an upper triangular matrix is a lower triangular matrix.

**Solution:

To prove that the transpose of an upper triangular matrix is a lower triangular matrix, let us consider an upper triangular matrix.

U = \left[\begin{array}{ccc} a & b & c\\ 0 & d & e\\ 0 & 0 & f \end{array}\right]

Now, U^{T} = \left[\begin{array}{ccc} a & 0 & 0\\ b & d & 0\\ c & e & f \end{array}\right]

We can notice that the resultant matrix is a lower triangular matrix.

Hence proved.

**Example 4: Find the values of "a" and "b" in the given matrix P, if P is a unit lower triangular matrix.

P = \left[\begin{array}{cc} 2a+5 & 0\\ 5 & 3b-2 \end{array}\right]

**Solution:

We know that a lower triangular matrix is referred to as a unit lower triangular matrix if all the elements of the principal diagonal are one.

So, 2a + 5 = 1

2a = 1 − 5 = −4

a = −4/2 = −2

3b − 2 = 1

3b = 1 + 2 = 3

b = 3/3
= 1

Hence, the values of "a" and "b" are −2 and 1 respectively.

Unsolved Questions on Triangular Matrix

**Question 1: Calculate the determinant of the matrix given below:

A = \begin{bmatrix}1 & 2 & 3 \\4 & 5 & 6 \\7 & 8 & 9\end{bmatrix}

**Question 2: Let U = \begin{bmatrix}2 & 0 & 0 \\3 & 4 & 0 \\-1 & 5 & 6\end{bmatrix}

Find the transpose of U and show whether it is a lower triangular matrix or not.

**Question 3: If P = \begin{bmatrix}a+3 & 0 \\-4 & 2b-1\end{bmatrix} is a unit lower triangular matrix, find the values of a and b.

**Question 4: Show whether the product of the following matrices is upper triangular or not:

A = \begin{bmatrix}1 & 0 & 0 \\2 & 4 & 0 \\3 & 5 & 6\end{bmatrix}

\begin{bmatrix}7 & 0 & 0 \\-1 & 8 & 0 \\0 & 9 & 2\end{bmatrix}