
Content Curator
Diagonal Matrix forms a significant part of linear algebra that expresses its properties and operations. Matrix (plural matrices) in general, is a mathematical concept represented as a rectangular array of numbers, symbols, or expressions. These are arranged in the form of rows and columns. Matrices find wide application in the field of engineering, physics, economics, statistics, and computer graphics. For example, consider a matrix with m number of rows and n number of columns, it is thus a “m × n” matrix.
When the number of rows and columns, is the same (m=n), the matrix is called a square matrix. A diagonal Matrix is a type of square matrix.
| Table of Content |
Key Takeaways: Square Matrix, Diagonal Matrix, Upper Triangular, Lower Triangular, Block diagonal, Inverse, Anti Diagonal, Determinant
What is a Diagonal Matrix?
[Click Here for Sample Questions]
The square matrix in which all elements other than diagonal are zero is called a diagonal matrix. In other words, we can say that a diagonal matrix is a square matrix where except for the diagonal it's all elements are zero.
Consider a matrix D = [dij]n × n.
This will be a diagonal matrix when
dij = 0, when i ≠ j.
Hence, the following conditions are to be met for a matrix to be a diagonal matrix:
- The matrix should be square
- All the elements of the matrix other than the diagonal should be zero

Example of a Diagonal Matrix
The video below explains this:
Matrices Detailed Video Explanation:
Types of Diagonal Matrix
[Click Here for Sample Questions]
Diagonal matrix are of two types:
- Lower Triangular: A square matrix with elements above the principal diagonal as zeroes. For example
Lower Triangular Matrix - Upper Triangular: A square matrix with elements below the principal diagonal as zeroes.
Upper Triangular Matrix - Identity Matrix: The diagonal matrix where all the diagonal elements of the matrix are 1 and all other elements are zero.
Example of Identity Matrix - Zero Matrix: The diagonal matrix where all the elements of the square matrix are zero.
Example of Zero Matrix
Also Read:
| Related Articles | ||
|---|---|---|
| Symmetric Matrix | Invertible Matrices | Types of Matrices |
How to Find a Diagonal Matrix?
[Click Here for Sample Questions]
Following are the steps to identify the diagonal matrix:
- The first step is to identify is the matrix is square or not. To identify a square count the number of rows and columns so if the number of rows and columns are equal it is a diagonal matrix.
- The next step is to identify if all the elements other than the diagonal elements are zero.
Example
- \(\begin{bmatrix} 4 & 0\\ 0 & 4 \end{bmatrix}\)
- \(\begin{bmatrix} 4 & 0 & 0 & 5 \\ 0 & 5 & 0 & 4 \end{bmatrix}\)
- \(\begin{bmatrix} 1 & 0 & 0 \\ 0 & 4 & 0 \\ 0 & 0 & 1 \end{bmatrix}\)
Explanation
The matrix A is square as the number of rows and columns are equal and all the elements other than the diagonal elements (4, 4) are zero. Matrix A is a diagonal matrix.
The matrix B is not a square matrix as the number of rows and columns are not equal and thus matrix B is also not a diagonal matrix.
The matrix C is a square matrix as the number of rows and columns are equal and all the elements other than the diagonal elements are zero.
According to the definition of the diagonal matrix should be. The square matrix and the elements other than the principal diagonal should be zero. So, the definition doesn't mention that the elements of diagonal cannot be zero. So, matrix C is a diagonal matrix by the definition of a diagonal matrix.
Properties of a Diagonal Matrix
[Click Here for Sample Questions]
1. When 2 diagonal matrices are multiplied or added the resultant matrix is another matrix of the same order.
For Example,
Matrix A = \(\begin{bmatrix} 3 & 0 \\ 0 & 4 \end{bmatrix}\)
Matrix B = \(\begin{bmatrix} 1 & 0 \\ 0 & 5 \end{bmatrix}\)
Matrix A+B = \(\begin{bmatrix} 3+1 & 0+0 \\ 0+0 & 4+5 \end{bmatrix}\)
Result = \(\begin{bmatrix} 4 & 0 \\ 0 & 9 \end{bmatrix}\)
The resultant matrix is a diagonal matrix and is of the same order. Hence the property is proved
Similarly,
Matrix A×B = \(\begin{bmatrix} 3 \times 1 & 0 \times 0 \\ 0 \times 0 & 4 \times 5 \end{bmatrix}\)
Result = \(\begin{bmatrix} 3 & 0 \\ 0 & 20 \end{bmatrix}\)
The resultant matrix is a diagonal matrix and is of the same order.
Hence, the property is proved.
2. The transpose of a diagonal matrix is a diagonal matrix.
Transpose means to interchange the rows and columns of the matrix.
For example,
Matrix A = \(\begin{bmatrix} 3 & 0 \\ 0 & 4 \end{bmatrix}\)
Interchanging the row and columns
Matrix B = \(\begin{bmatrix} 3 & 0 \\ 0 & 4 \end{bmatrix}\)
Hence, the property is proved.
3. Under multiplication, diagonal matrices are cumulative.
For example,
Matrix A = \(\begin{bmatrix} 3 & 0 \\ 0 & 4 \end{bmatrix}\)
Matrix B = \(\begin{bmatrix} 1 & 0 \\ 0 & 5 \end{bmatrix}\)
Multiplying (A×B),
\(\begin{bmatrix} (3 \times 1) + (0 \times 0) & (3 \times 0) + (0 \times 5) \\ (0 \times 1) + (4 \times 0) & (0 \times 0) + (4 \times 5) \end{bmatrix}\)
Result = \(\begin{bmatrix} 3 & 0 \\ 0 & 20 \end{bmatrix}\)
Multiplying (B×A),
\(\begin{bmatrix} (1 \times 3) + (0 \times 0) & (1 \times 0) + (0 \times 4) \\ (0 \times 3) + (5 \times 0) & (0 \times 0) + (5 \times 4) \end{bmatrix}\)
Result = \(\begin{bmatrix} 3 & 0 \\ 0 & 20 \end{bmatrix}\)
Therefore, A×B = B×A.
Hence, the property is proved.
Also Read:
| Related Articles | ||
|---|---|---|
| Transpose of a Matrix | Matrix Multiplication | Operations on Matrices |
| Matrix Addition | Non-Singular Matrix | Application of Determinants and Matrices |
Block Diagonal Matrix
[Click Here for Sample Questions]
A diagonal matrix split into different blocks is termed a Block Diagonal Matrix. The non-diagonal blocks form zero matrices and the main diagonal blocks the square matrices.
So, for a matrix D,
the non-diagonal blocks, Dij = 0, when i ≠ j
Thus, D is called a block diagonal matrix.

n × n Order Block Diagonal Matrix
Inverse of Diagonal Matrix
[Click Here for Sample Questions]
When the elements on the main diagonal of a square matrix are the reciprocals of the corresponding elements of the original matrix, this forms the inverse of the diagonal matrix.
For example,

n × n Diagonal Matrix and its Inverse
Anti Diagonal Matrix
[Click Here for Sample Questions]
When the elements of a square matrix are all zero except the ones on the diagonals (lower left to upper side corners are ≠ 0), it forms an anti diagonal matrix.
For example,

5×5 Anti Diagonal Matrix
Determinant of Diagonal Matrix
[Click Here for Sample Questions]
The product of the diagonal elements forms the determinant of a diagonal matrix.
For example,
For A = \(\begin{bmatrix} 1 & 3 \\ 0 & 2 \end{bmatrix}\), the determinant is \(|A|=(1)(2)\)
For B = \(\begin{bmatrix} -2 & 4 & 0 \\ 0 & -1 & 4 \\ 0 & 0 & -4 \end{bmatrix}\), the determinant is \(|B|=(-2)(-1)(-4)\)
For C = \(\begin{bmatrix} 1 & 2 & 3 & 4 \\ 0 & -2 & 0 & 2 \\ 0 & 0 & 5 & 3 \\ 0 & 0 & 0 & -1 \end{bmatrix}\), the determinant is \(|C|=(1)(-2)(5)(-1)\)
Examples of Determinants of a Diagonal Matrix
Also Read:
| Related Articles | ||
|---|---|---|
| Minors and Cofactors | Determinant Formula | Scalar Matrix |
| Properties of Determinants | Algebra of Matrices | Singular Matrix |
Things to Remember
- A square matrix with only the diagonal elements as non-zero is called a diagonal matrix.
- A square matrix with elements above the principal diagonal as zeroes is a lower triangular matrix.
- A square matrix with elements below the principal diagonal as zeroes is an upper triangular matrix.
- The diagonal matrix with all its diagonal elements as unity is called an identity matrix.
- The diagonal matrix where all the elements of the square matrix are zero is a zero matrix.
- When 2 diagonal matrices are multiplied or added the resultant matrix is another matrix of the same order.
- The transpose of a diagonal matrix is a diagonal matrix.
- Under multiplication, diagonal matrices are cumulative.
- A diagonal matrix split into different blocks is termed a block diagonal matrix.
- The product of the diagonal elements forms the determinant of a diagonal matrix.
Sample Questions
Ques. Identify the following matrix? (2 marks)
A) \(\begin{bmatrix} 4 & 0 \\ 0 & -5 \end{bmatrix}\)
B) \(\begin{bmatrix} 4 & 2 \\ 1 & -5 \end{bmatrix}\)
Ans. Matrix A is a diagonal matrix as its row and columns are equal and the element other than the diagonal elements is zero.
Matrix B is a square matrix as the rows and columns are equal but not a diagonal matrix as elements other than diagonal is not equal to zero.
Ques. Matrix A = \(\begin{bmatrix} 2 & 0 \\ 0 & -1 \end{bmatrix}\)and Matrix B = \(\begin{bmatrix} 1 & 0 \\ 1 & -2 \end{bmatrix}\). Is AB = BA? (2 marks)
Ans. The matric A is a diagonal matrix but matrix B is not. According to the property of a diagonal matrix, the matrix A and Matrix B will not be commutative which is AB ≠ BA.
Ques. Give the inverse of the matrix: (2 marks)
\(\begin{bmatrix} 7 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 4 \end{bmatrix}\)
Ans. When the elements on the main diagonal of a square matrix are the reciprocals of the corresponding elements of the original matrix, this forms the inverse of the diagonal matrix. So for this, the inverse matrix is
\(\begin{bmatrix} 1/7 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1/4 \end{bmatrix}\)
Ques. Is the identity matrix the same as a diagonal matrix? (2 marks)
Ans. In an identity matrix, all the diagonal elements are unity and the other elements are zero. Since all the non-diagonal elements are zero, an identity matrix is also a diagonal matrix. However, every diagonal matrix cannot be termed as an identity matrix.
Ques. If A = \(\begin{bmatrix} 1 & 0 \\ 0 & 2 \end{bmatrix}\) and B = \(\begin{bmatrix} 3 & 0 \\ 0 & 4 \end{bmatrix}\). Find A × B and find if the solution is a diagonal matrix or not. (3 marks)
Ans. If,
A = \(\begin{bmatrix} 1 & 0 \\ 0 & 2 \end{bmatrix}\)
B = \(\begin{bmatrix} 3 & 0 \\ 0 & 4 \end{bmatrix}\)
Then, A × B
= \(\begin{bmatrix} 3+0 & 0+0 \\ 0+0 & 0+8 \end{bmatrix}\)
= \(\begin{bmatrix} 3 & 0 \\ 0 & 8 \end{bmatrix}\)
Hence, the resultant is a diagonal matrix.
Ques. Apply the transpose property of the diagonal matrix on A and prove that the resultant is the same as the original matrix: (2 marks)
\(\begin{bmatrix} 5 & 0 \\ 0 & 10 \end{bmatrix}\)
Ans. Property 2 states that: The transpose of a diagonal matrix is a diagonal matrix. Hence, in this case, if
A = \(\begin{bmatrix} 5 & 0 \\ 0 & 10 \end{bmatrix}\)
AT = \(\begin{bmatrix} 5 & 0 \\ 0 & 10 \end{bmatrix}\)
This proves that A and AT are the same matrices. Hence proved.
Ques. Find the determinant of the following lower triangular matrix, A and B as follows: (2 marks)
A = \(\begin{bmatrix} 2 & 0 & 0 & 0 \\ 4 & -2 & 0 & 0 \\ -5 & 6 & 1 & 0 \\ 1 & 5 & 3 & 3 \end{bmatrix}\) and B = \(\begin{bmatrix} -1 & 0 & 0 & 0 & 0 \\ 0 & 3 & 0 & 0 & 0 \\ 0 & 0 & 2 & 0 & 0 \\ 0 & 0 & 0 & 4 & 0 \\ 0 & 0 & 0 & 0 & -2 \end{bmatrix}\)
Ans. |A| = (2) × (-2) × (1) × (3) = -12
|B| = (-1) × (3) × (2) × (4) × (-2) = 48
Ques. Differentiate between scalar and a diagonal matrix. (2 marks)
Ans. A square matrix where all the non-diagonal elements are zeros is a diagonal matrix. The elements on the principal diagonals are all non-zeros. They can either be the same or different.
In a scalar matrix, all the non-diagonal elements are zeros and all the diagonal elements must be a constant.
For example,
\(\underline{\text{Diagonal Matrix}} \\ \ \ \ \begin{pmatrix} a & 0 & 0 \\ 0 & b & 0 \\ 0 & 0 & c \end{pmatrix}\) \(\underline{\text{Scalar Matrix}} \\ \ \begin{pmatrix} a & 0 & 0 \\ 0 & a & 0 \\ 0 & 0 & a \end{pmatrix}\)
For Latest Updates on Upcoming Board Exams, Click Here: https://t.me/class_10_12_board_updates
Check-Out:






Comments