A diagonal matrix is a square matrix in which all of the elements except the principal diagonal elements are zeroes. It is both upper and lower triangular, as all the elements except the main diagonal elements are zeros. This structure simplifies many operations like multiplication and raising matrices to powers.
A square matrix "A = [aij]" is said to be a diagonal matrix if aij = 0 when i ≠ j.
The matrix given below represents a diagonal matrix of order "5 × 5."

Examples of a Diagonal Matrix
Some common examples of diagonal matrices of different orders are given below:
Diagonal Matrix of order (3 × 3)

Diagonal Matrix of order (4 × 4)

Properties of a Diagonal Matrix
The following are the properties of the Diagonal Matrix:
- Every diagonal matrix is a square matrix, i.e., a matrix that has an equal number of rows and columns.
- Scalar matrices, identity matrices, and null matrices are examples of diagonal matrices, as their non-principal diagonal elements are zeros.
- The resultant matrix of the sum of two diagonal matrices is also a diagonal matrix.
- The resultant matrix of the product of diagonal matrices is also a diagonal matrix, where the main diagonal elements of the resultant matrix are products of the corresponding elements of the original matrices.
If A = \left[\begin{array}{cc} -3 & 0\\ 0 & -3 \end{array}\right] and B = \left[\begin{array}{cc} 8 & 0\\ 0 & 5 \end{array}\right] , then AB = \left[\begin{array}{cc} -24 & 0\\ 0 & -15 \end{array}\right] .
- A diagonal matrix is a symmetric matrix, as the transpose of a diagonal matrix is the same matrix itself.
If D = \left[\begin{array}{cc} 6 & 0\\ 0 & 7 \end{array}\right] is a diagonal matrix, then D^{T} = \left[\begin{array}{cc} 6 & 0\\ 0 & 7 \end{array}\right] , i.e., D = DT.
- The sum of two diagonal matrix is also a diagonal matrix.
If A = \left[\begin{array}{cc} -5 & 0\\ 0 & 11 \end{array}\right] and B = \left[\begin{array}{cc} 7 & 0\\ 0 & -13 \end{array}\right] are two diagonal matrices, then
A + B = B + A = \left[\begin{array}{cc} 2 & 0\\ 0 & -2 \end{array}\right]
AB = BA = \left[\begin{array}{cc} -35 & 0\\ 0 & -143 \end{array}\right]
Block Diagonal Matrix
The term "block matrix" refers to a matrix that is divided into blocks. In such matrices, the non-diagonal blocks are zero matrices, whereas the main diagonal blocks are diagonal matrices. A matrix "A = [aij]" is called a block diagonal matrix when aij = 0, for i ≠ j, i.e., when the non-diagonal blocks are zero.
A = \left[\begin{array}{cccccc} a_{11} & 0 & 0 & . & . & 0\\ 0 & a_{22} & 0 & . & . & 0\\ 0 & 0 & a_{33} & . & . & 0\\ . & . & . & . & . & .\\ . & . & . & . & . & .\\ 0 & 0 & 0 & . & . & a_{nn} \end{array}\right]_{n\times n}
Determinant of a Diagonal Matrix
The determinant of a diagonal matrix is equal to the product of its principal diagonal elements.
If,
D = \left[\begin{array}{ccc} a_{11} & 0 & 0\\ 0 & a_{22} & 0\\ 0 & 0 & a_{33} \end{array}\right]
|D| = a11 × a22 × a33.
Learn, Determinant of a Matrix
Inverse of Diagonal Matrix
The inverse of a diagonal matrix is also a diagonal matrix with the principal diagonal's elements being the reciprocals of the corresponding elements of the original matrix.
If D = \left[\begin{array}{ccc} a_{11} & 0 & 0\\ 0 & a_{22} & 0\\ 0 & 0 & a_{33} \end{array}\right] , then D^{-1} = \left[\begin{array}{ccc} \frac{1}{a_{11}} & 0 & 0\\ 0 & \frac{1}{a_{22}} & 0\\ 0 & 0 & \frac{1}{a_{33}} \end{array}\right] .
Learn, Inverse of a Matrix
Anti-Diagonal Matrix
An anti-diagonal matrix, or non-diagonal matrix, is said to be the mirror image of a diagonal matrix concerning the placement of the elements. In an anti-diagonal matrix, all elements are zero except the diagonal (not the principal diagonal) elements from the upper right edge to the lower left edge. The matrix given below is an anti-diagonal matrix of order "3 × 3."
A = \left[\begin{array}{ccc} 0 & 0 & a_{11}\\ 0 & a_{22} & 0\\ a_{33} & 0 & 0 \end{array}\right]
Also, Check
Solved Examples of Diagonal Matrix
Example 1: If A = \left[\begin{array}{ccc} -4 & 0 & 0\\ 0 & 11 & 0\\ 0 & 0 & 7 \end{array}\right] , then prove that A = AT.
Solution:
Given matrix, A = \left[\begin{array}{ccc} -4 & 0 & 0\\ 0 & 11 & 0\\ 0 & 0 & 7 \end{array}\right]
A^{T} = \left[\begin{array}{ccc} -4 & 0 & 0\\ 0 & 11 & 0\\ 0 & 0 & 7 \end{array}\right] = A
So, A = AT
Hence proved.
Example 2: Find the determinant of the matrix given below.
D = \left[\begin{array}{ccc} -5 & 0 & 0\\ 0 & 0 & 0\\ 0 & 0 & 14 \end{array}\right]
Solution:
Given matrix, D = \left[\begin{array}{ccc} -5 & 0 & 0\\ 0 & 0 & 0\\ 0 & 0 & 14 \end{array}\right]
We can notice that the given matrix is a diagonal matrix. We know that the determinant of a diagonal matrix is equal to the product of its principal diagonal elements.
So, |D| = -5 × 0 × 14 = 0
Hence, the determinant of the given matrix is 0.
Example 3: Find the inverse of the matrix given below.
B = \left[\begin{array}{cc} 11 & 0\\ 0 & 17 \end{array}\right]
Solution:
We can notice that the given matrix is a diagonal matrix. We know that the inverse of a diagonal matrix is obtained by replacing the principal diagonal's elements with the reciprocals of the corresponding elements of the original matrix, while the rest of the elements remain the same.
So, B^{-1} = \left[\begin{array}{cc} \frac{1}{11} & 0\\ 0 & \frac{1}{17} \end{array}\right] .
Example 4: Prove that A + B = B + A, if A = \left[\begin{array}{cc} 6 & 0\\ 0 & 7 \end{array}\right] and B = \left[\begin{array}{cc} -10 & 0\\ 0 & 13 \end{array}\right] .
Solution:
Given matrices,
A = \left[\begin{array}{cc} 6 & 0\\ 0 & 7 \end{array}\right] and B = \left[\begin{array}{cc} -10 & 0\\ 0 & 13 \end{array}\right]
A + B = \left[\begin{array}{cc} -4 & 0\\ 0 & 20 \end{array}\right]
B + A = \left[\begin{array}{cc} -4 & 0\\ 0 & 20 \end{array}\right]
So, A + B = B + A
Hence, proved.
Diagonal Matrix Practice Worksheet
Problem 1: Identify whether the following matrix is diagonal:
\begin{pmatrix} 5 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 7 \end{pmatrix}
Problem 2: Identify whether the following matrix is diagonal:
\begin{pmatrix} 1 & 2 & 0 \\ 0 & 4 & 0 \\ 0 & 0 & 6 \end{pmatrix}
Problem 3: Multiply the following diagonal matrices:
\begin{pmatrix} 2 & 0 \\ 0 & 3 \end{pmatrix} \times \begin{pmatrix} 4 & 0 \\ 0 & 5 \end{pmatrix}
Problem 4: Multiply the following diagonal matrices:
\begin{pmatrix} 7 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 9 \end{pmatrix} \times \begin{pmatrix} 3 & 0 & 0 \\ 0 & 6 & 0 \\ 0 & 0 & 2 \end{pmatrix}
Problem 5: Add the following diagonal matrices:
\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} + \begin{pmatrix} 2 & 0 \\ 0 & 2 \end{pmatrix}
Problem 6: Add the following diagonal matrices:
\begin{pmatrix} 5 & 0 & 0 \\ 0 & 8 & 0 \\ 0 & 0 & 3 \end{pmatrix} + \begin{pmatrix} 7 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 6 \end{pmatrix}
Problem 7: Find the inverse of the following diagonal matrix:
\begin{pmatrix} 3 & 0 \\ 0 & 4 \end{pmatrix}
Problem 8: Find the inverse of the following diagonal matrix:
\begin{pmatrix} 2 & 0 & 0 \\ 0 & 5 & 0 \\ 0 & 0 & 7 \end{pmatrix}
Problem 9: Find the determinant of the following diagonal matrix:
\begin{pmatrix} 4 & 0 \\ 0 & 5 \end{pmatrix}
Problem 10: Find the determinant of the following diagonal matrix:
\begin{pmatrix} 3 & 0 & 0 \\ 0 & 6 & 0 \\ 0 & 0 & 2 \end{pmatrix}
Similar Reads
Diagonal Formula Diagonal Formula is the formula that is used to calculate the length of the diagonal of any polygon. A diagonal is a slant line that joints two alternate sides of any polygon and finding its length is very important for solving various problems of geometry.There are different ways for finding the di
7 min read
Diagonals Diagonal is a line segment that joins two non-adjacent corners of polygons or any other geometric shapes. Diagonals in math are defined only for lateral shapes, or the shapes that have corners, such as Squares, Rectangles, Pentagons, etc. but they are not defined for curved shapes such as Circles, a
13 min read
How to find the Diagonal of a Matrix? British Mathematician Arthur Cayley was the first person to develop the algebraic aspect of the matrix. After that, Psychiat Heisenberg used matrices as a tool to explain his famous Quantum principle. The study of matrices originated while solving different types of simple and complex linear problem
6 min read
Diagonal of a Square Formula Diagonal of a square is the shortest distance between the non-adjacent vertices of a square. It is a fundamental concept in geometry, often used in various mathematical problems and real-world applications. This diagonal splits the square into two congruent isosceles right triangles, providing a bas
5 min read
Diagonal of Cuboid Diagonal of a Cuboid is a line segment that joins two opposite vertices of the cuboid. It can pass through either the body or the face of the diagonal of the cuboid. Cuboid, in 3D, is an elongated version of a cube, i.e., a box-like shape with three different sides. The length of the diagonal of a c
8 min read
Diagonal of a Cube Formula Diagonal of a cube is the line segment joining the two non-adjacent vertices of a Cube. The diagonal of a cube formula helps us to calculate the length of diagonals in a cube. There are primarily two diagonals in a cube, namely face diagonals and body diagonals. In this article, we will learn the ty
8 min read
Diagonal of a Polygon Formula Diagonals of a polygon are the lines that connect the alternate vertices of the polygon. A polygon of n sides has n(n-3)/2 diagonals. A polygon is a closed figure with n sides (where n is always greater than equal to 3). A polygon is a closed shape with three or more straight sides, and diagonals ar
10 min read
Diagonal of Parallelogram Formula Diagonal of Parallelogram Formula: A parallelogram is a quadrilateral with equal pairs of opposite sides and angles. One of its pairs of opposite sides is parallel to the other. The interior angles lying are supplementary, that is, their sum is 180 degrees. The diagonals of a parallelogram bisect ea
7 min read
Real Life Application of Diagonals Diagonals are straight lines connecting the opposite corners of a polygon. Diagonals for curved shapes, such as circles, spheres, cones, etc, can also be easily found. Diagonals have various applications and uses in various real-life scenarios and some of them are discussed below. Here, we will disc
4 min read
Why is the diagonal of a square longer than its side? Answer: The length of a Diagonal is â2 times the side of a square.In mathematics, the proportions, measurements, dimensions, forms, shapes, and angles of different objects around us are studied under the branch called geometry. Geometry is one of the oldest branches of mathematics and has a very sig
4 min read