Diagonal Matrix: Types, Properties & Determinants

Collegedunia Team logo

Collegedunia Team

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.

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:

  1. The matrix should be square
  2. All the elements of the matrix other than the diagonal should be zero

Example of a Diagonal Matrix 

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:

  1. Lower Triangular: A square matrix with elements above the principal diagonal as zeroes. For example
    Lower Triangular
    Lower Triangular Matrix
  2. Upper Triangular: A square matrix with elements below the principal diagonal as zeroes.
    Upper Triangular
    Upper Triangular Matrix
  3. 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
    Example of Identity Matrix
  4. Zero Matrix: The diagonal matrix where all the elements of the square matrix are zero.
    Example of Zero Matrix
    Example of Zero Matrix

Also Read:


How to Find a Diagonal Matrix?

[Click Here for Sample Questions]

Following are the steps to identify the diagonal matrix:

  1. 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.
  2. The next step is to identify if all the elements other than the diagonal elements are zero.

Example 

  1. \(\begin{bmatrix} 4 & 0\\ 0 & 4 \end{bmatrix}\)
  2. \(\begin{bmatrix} 4 & 0 & 0 & 5 \\ 0 & 5 & 0 & 4 \end{bmatrix}\)
  3. \(\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:


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

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

× 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

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:


Things to Remember

  1. A square matrix with only the diagonal elements as non-zero is called a diagonal matrix. 
  2. A square matrix with elements above the principal diagonal as zeroes is a lower triangular matrix.
  3. A square matrix with elements below the principal diagonal as zeroes is an upper triangular matrix.
  4. The diagonal matrix with all its diagonal elements as unity is called an identity matrix. 
  5. The diagonal matrix where all the elements of the square matrix are zero is a zero matrix.
  6. When 2 diagonal matrices are multiplied or added the resultant matrix is another matrix of the same order. 
  7. The transpose of a diagonal matrix is a diagonal matrix.
  8. Under multiplication, diagonal matrices are cumulative.
  9. A diagonal matrix split into different blocks is termed a block diagonal matrix.
  10. 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: 

CBSE CLASS XII Related Questions

  • 1.
    Using integration, find the area of the region bounded by the curve \( y = x|x| \), the x-axis, and the vertical lines \( x = -2 \) and \( x = 2 \).


      • 2.
        Find:

        If \[ (3\hat{i}-2\hat{j}+5\hat{k})\times(4\hat{i}+p\hat{j}+q\hat{k})=\vec{0} \] then find the values of \(p\) and \(q\).

          • \(p = -\frac{2}{3}, \, q = \frac{5}{3}\)
          • \(p = -\frac{8}{3}, \, q = \frac{20}{3}\)
          • \(p = \frac{20}{3}, \, q = -\frac{8}{3}\)
          • \(p = 0, \, q = 0\)

        • 3.

          An NGO organises a charity event in which they decide to distribute woollen caps to protect children from winter. The caps to be distributed are in three separate boxes, Box I has 30 red caps, Box II has 20 red and 10 green caps, and Box III has 30 green caps. The probability that a Box i is selected and a cap picked out is i/6, where i = 1, 2, 3.  
          Based on the above information, answer the following questions :


            • 4.

              A carpenter needs to design a wooden box in the shape of a cuboid such that the sum of its length and breadth is 3 cm more than its height. Twice of its length, thrice of its breadth and its height add up to 10 cm. Its breadth added to 7 times its height is 1 cm less than 3 times its length. 


                • 5.
                  Find:

                  The principal value of \[ \sec^{-1}(\sqrt{2})+2\csc^{-1}(-2) \] is:

                    • \(-\frac{\pi}{2}\)
                    • \(-\frac{\pi}{4}\)
                    • \(\frac{\pi}{4}\)
                    • \(\frac{\pi}{2}\)

                  • 6.
                    Find:

                    If the function \[ f(x)= \begin{cases} \frac{\sin x}{x}+\cos x, & x\neq0\\ k, & x=0 \end{cases} \] is continuous at \(x=0\), then find the value of \(k\).

                      • \(0\)
                      • \(-2\)
                      • \(-1\)
                      • \(2\)
                    CBSE CLASS XII Previous Year Papers

                    Comments


                    No Comments To Show