
What is a Diagonal Matrix Definition Formula Properties and Solved Examples
The concept of diagonal matrix plays a key role in mathematics and is widely applicable to both real-life situations and exam scenarios. Diagonal matrices simplify operations with matrices and appear frequently in board exam questions, entrance tests, and linear algebra contexts.
What Is Diagonal Matrix?
A diagonal matrix is a special type of square matrix in which every element is zero except for those on the main (or principal) diagonal. In other words, for an n × n matrix, all entries aij are zero whenever i ≠ j. You’ll find this concept applied in areas such as linear algebra, transformations, and solving systems of equations.
Key Formula for Diagonal Matrix
Here’s the standard formula: \[ D = \begin{bmatrix} d_1 & 0 & \cdots & 0 \\ 0 & d_2 & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \cdots & d_n \end{bmatrix} \] where \(d_1, d_2, ..., d_n\) are the diagonal elements, and all other entries are 0.
Diagonal Matrix Notation & Structure
A diagonal matrix only contains nonzero values on its main diagonal; every other position contains a zero. Here are common examples:
| Matrix Size | Example | Structure |
|---|---|---|
| 2 × 2 | \(\begin{bmatrix}4 & 0 \\ 0 & 7 \end{bmatrix}\) | Only (1,1) and (2,2) may be nonzero; others are zero |
| 3 × 3 | \(\begin{bmatrix}2 & 0 & 0 \\ 0 & 5 & 0 \\ 0 & 0 & -1 \end{bmatrix}\) | Nonzero entries only on { (1,1), (2,2), (3,3) } |
Diagonal Matrix Examples
Let's see some worked examples for absolute clarity:
| Type | Matrix | Is it Diagonal? |
|---|---|---|
| 2×2 | \(\begin{bmatrix}3 & 0 \\ 0 & 1 \end{bmatrix}\) | Yes |
| 3×3 | \(\begin{bmatrix}0 & 0 & 0 \\ 0 & -8 & 0 \\ 0 & 0 & 2 \end{bmatrix}\) | Yes |
| Non-diagonal | \(\begin{bmatrix}3 & 2 \\ 0 & 1 \end{bmatrix}\) | No (off-diagonal entry is not zero) |
Properties of Diagonal Matrix
- A diagonal matrix is always a square matrix.
- Sum/Product: Adding or multiplying two diagonal matrices (of the same size) gives another diagonal matrix.
- Multiplication is commutative: \(AB = BA\).
- The determinant is the product of the diagonal elements.
- The inverse exists (is diagonal) if all diagonal elements are nonzero.
- The transpose of a diagonal matrix is itself.
- Diagonal matrices are also symmetric matrices.
- The trace is the sum of all diagonal elements.
Difference: Diagonal vs Scalar Matrix
| Property | Diagonal Matrix | Scalar Matrix |
|---|---|---|
| Definition | Only diagonal elements can be nonzero, all off-diagonal = 0 | All diagonal elements equal (k), off-diagonal = 0 |
| Example | \(\begin{bmatrix}2 & 0 \\ 0 & 3\end{bmatrix}\) | \(\begin{bmatrix}5 & 0 \\ 0 & 5\end{bmatrix}\) |
Diagonal Matrix Determinant & Eigenvalues
The determinant of a diagonal matrix is the product of its main diagonal elements: \[ |D| = d_1 \times d_2 \times \cdots \times d_n \] Eigenvalues of a diagonal matrix are simply its diagonal entries.
Example:
For \( D = \begin{bmatrix}2 & 0\\ 0 & -3\end{bmatrix} \):
Determinant: \(2 \times (-3) = -6\)
Eigenvalues: 2 and -3
Applications & Cross-Disciplinary Usage
Diagonal matrices are not only useful in Maths but also play an important role in Physics, Computer Science, Engineering, and data analysis. They assist in:
- Solving linear equations efficiently
- Matrix diagonalization and simplification
- Finding eigenvalues and eigenvectors in transformations
- Solving physical problems with independent axes (e.g., inertia tensor in mechanics)
Students preparing for JEE, NEET, and CBSE Board exams will encounter diagonal matrices in theory and problem-solving.
Step-by-Step Illustration
- Is the following matrix diagonal?
\(A = \begin{bmatrix}7 & 0\\ 0 & 4\end{bmatrix}\) - Check all off-diagonal elements
A12 = 0, A21 = 0 - Therefore, A is a diagonal matrix.
Speed Trick or Exam Shortcut
Shortcut: For finding the determinant or eigenvalues of a large diagonal matrix, simply multiply or read off the diagonal entries! No expansion required.
Example Trick: For quick multiplication:
- \(A = \begin{bmatrix}a & 0\\ 0 & b\end{bmatrix}\), \(B = \begin{bmatrix}c & 0\\ 0 & d\end{bmatrix}\)
- \(AB = \begin{bmatrix}ac & 0\\ 0 & bd\end{bmatrix}\)
- No row-column calculation: just multiply corresponding diagonals!
Tricks like this help students save time and reduce errors in exams. Vedantu’s live sessions cover many such tips for competitive test success.
Try These Yourself
- Write a 3×3 diagonal matrix with all entries different.
- Determine if \( \begin{bmatrix}1 & 0\\ 2 & 4\end{bmatrix} \) is diagonal.
- Calculate the determinant of \( \begin{bmatrix}9 & 0\\ 0 & 5\end{bmatrix} \).
- Convert a scalar matrix to a diagonal matrix example.
Frequent Errors and Misunderstandings
- Assuming all square matrices with zeros elsewhere are diagonal (forgetting non-square cases).
- Mixing up scalar and diagonal matrix definitions.
- Forgetting that if any diagonal entry is zero, the matrix may not be invertible.
Relation to Other Concepts
The idea of diagonal matrix connects with topics such as scalar matrices, identity matrices, and matrix determinants. Mastering it sets the stage for matrix diagonalization, finding eigenvalues, and more advanced algebra topics.
Classroom Tip
Quick rule: “If a matrix looks like a digital scoreboard—only numbers down the center, zeros everywhere else—it’s diagonal.” Vedantu’s teachers often teach students to scan columns and rows for this pattern during problem-solving and MCQs.
We explored diagonal matrix—from definition, formula, examples, and error-checking, to real-world connections. Continue practicing with Vedantu and solidify your understanding with more problems and stepwise guidance from online sessions.
Further Study: Related Concepts
FAQs on Diagonal Matrix Explained with Definition and Properties
1. What is a diagonal matrix?
A diagonal matrix is a square matrix in which all the elements outside the main diagonal are zero. In other words, if A = [aij], then aij = 0 whenever i ≠ j.
- Only the entries on the main diagonal (from top-left to bottom-right) can be non-zero.
- It must be a square matrix (same number of rows and columns).
- Example: \( \begin{bmatrix} 2 & 0 & 0 \\ 0 & 5 & 0 \\ 0 & 0 & -1 \end{bmatrix} \)
2. What is the general form of a diagonal matrix?
The general form of a diagonal matrix of order n has arbitrary elements on the main diagonal and zeros elsewhere. It is written as:
\( A = \begin{bmatrix} d_1 & 0 & 0 & \cdots & 0 \\ 0 & d_2 & 0 & \cdots & 0 \\ 0 & 0 & d_3 & \cdots & 0 \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & 0 & \cdots & d_n \end{bmatrix} \)
- d1, d2, …, dn are diagonal elements.
- All non-diagonal entries are 0.
3. How do you identify a diagonal matrix?
A matrix is a diagonal matrix if it is square and every element outside the main diagonal is zero.
- Step 1: Check that the number of rows = number of columns.
- Step 2: Verify that all entries aij = 0 for i ≠ j.
- If both conditions hold, it is a diagonal matrix.
4. What are the properties of a diagonal matrix?
A diagonal matrix has special algebraic properties that make calculations simple.
- The sum and product of diagonal matrices (of same order) are also diagonal matrices.
- The determinant equals the product of diagonal elements.
- The inverse (if it exists) is also a diagonal matrix.
- All eigenvalues are the diagonal entries.
5. How do you find the determinant of a diagonal matrix?
The determinant of a diagonal matrix is the product of its diagonal elements. If A = diag(d1, d2, …, dn), then:
det(A) = d1 × d2 × … × dn.
- Example: For \( \begin{bmatrix} 2 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 4 \end{bmatrix} \),
- det(A) = 2 × 3 × 4 = 24.
6. How do you find the inverse of a diagonal matrix?
The inverse of a diagonal matrix is obtained by taking the reciprocal of each non-zero diagonal element. If A = diag(d1, d2, …, dn), then:
A-1 = diag(1/d1, 1/d2, …, 1/dn).
- Each diagonal entry must be non-zero.
- Example: If A = diag(2, 5), then A-1 = diag(1/2, 1/5).
7. What are the eigenvalues of a diagonal matrix?
The eigenvalues of a diagonal matrix are exactly its diagonal elements. If A = diag(d1, d2, …, dn), then the eigenvalues are:
λ = d1, d2, …, dn.
- No extra calculation is required.
- Example: For diag(3, −1, 4), the eigenvalues are 3, −1, 4.
8. What is the difference between a diagonal matrix and a scalar matrix?
A scalar matrix is a special type of diagonal matrix where all diagonal elements are equal.
- Diagonal matrix: Diagonal entries can be different (e.g., diag(2, 5, 7)).
- Scalar matrix: All diagonal entries are the same (e.g., diag(3, 3, 3)).
9. Is the identity matrix a diagonal matrix?
Yes, the identity matrix is a diagonal matrix with all diagonal elements equal to 1. For example, the 3×3 identity matrix is:
\( I = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix} \)
- All non-diagonal entries are 0.
- All diagonal entries are 1.
10. What is an example of a diagonal matrix?
An example of a diagonal matrix is one where only the main diagonal contains non-zero numbers. Consider:
\( A = \begin{bmatrix} 6 & 0 & 0 \\ 0 & -2 & 0 \\ 0 & 0 & 9 \end{bmatrix} \)
- The diagonal elements are 6, −2, 9.
- All other entries are 0.
- det(A) = 6 × (−2) × 9 = −108.





















