Open In App

Diagonal Matrix

Last Updated : 24 Jan, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

Diagonal Matrix is a matrix in which all the non-diagonal elements are zero. A matrix is defined as a rectangular array of numbers that are arranged in rows and columns. The size of a matrix can be determined by the number of rows and columns in it. A matrix is said to be an “m by n” matrix when it has “m” rows and “n” columns and is written as an “m × n” matrix. For example, the order of the matrix that has five rows and four columns is “5 × 4.” We have different types of matrices, such as rectangular, square, triangular, symmetric, singular, etc. The image given below is an “m × n” matrix that has “m” rows and “n” columns.

What is a Diagonal Matrix?

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. 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.”

Diagonal Matrix

Learn More,

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 (3 × 3)
  • Diagonal Matrix of order (4 × 4)
Diagonal Matrix of order (4 × 4)

Properties of a Diagonal Matrix

The following are the properties of the Singular 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.

  • A diagonal matrix is a symmetric matrix, as the transpose of a diagonal matrix is the same matrix itself.

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]

Learn More,

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 square 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 a 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 on 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.

FAQs on Diagonal Matrix

1. Define a Diagonal Matrix.

A diagonal matrix is a square matrix in which all of the elements except the principal diagonal elements are zeroes.

2. Is an Identity Matrix a Diagonal Matrix?

An identity matrix is a square matrix whose principal diagonal elements are ones and the rest of the elements are zeros. So, an identity matrix or unit matrix is a diagonal matrix.

3. What is the 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]         , then |D| = a11 × a22 × a33.

4. Is a Zero Matrix a Diagonal Matrix?

A diagonal matrix is a square matrix whose non-diagonal elements are zeroes. We know that in a zero matrix all its elements are zeroes. So, we can conclude that a zero matrix is a diagonal matrix.



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads