BrightChamps Logo
Login

Summarize this article:

Live Math Learners Count Icon104 Learners

Last updated on September 14, 2025

Inverse of Diagonal Matrix

Professor Greenline Explaining Math Concepts

A diagonal matrix is a special case where the inverse is found by using the reciprocal of each non-zero diagonal element. Let us learn more about the diagonal matrix and its inverse in this article.

Inverse of Diagonal Matrix for US Students
Professor Greenline from BrightChamps

What is a diagonal matrix?

A square matrix is said to be a square matrix with zeros everywhere except on the main diagonal. The main diagonal of a matrix is the line of elements from the top left corner to the bottom right corner. A square matrix A = [aij] is called a diagonal matrix if: aij = 0, for all i ≠ j. This means that only the elements a11, a22, a33, …, ann can be non-zero. For example,

It is a diagonal matrix.

 

 

What is the Inverse of a Diagonal Matrix?

 

The inverse of a diagonal matrix is another diagonal matrix where each element in the diagonal is replaced by its reciprocal. The main condition of the inverse of the matrix is that all elements of the main diagonal should be non-zero. The inverse of a diagonal matrix exists only if none of its diagonal elements are zero. It is a non-singular matrix, meaning its determinant is not zero. 

Professor Greenline from BrightChamps

What is the Formula for Inverse of Diagonal Matrix?

For writing the formula for the inverse of a diagonal matrix, first we will write the diagonal matrix and then its inverse using the reciprocals of the diagonal elements.
For a diagonal matrix A of order 2, the formula is: 
A = 0a11 a220, then the inverse of matrix A is
A-1 = 01a11 1a220
The formula for a diagonal matrix A of order 3:

 


The inverse is:

 

 


What is the Proof for Inverse of Diagonal Matrix?

 

The inverse of a matrix is said to be another matrix that, when multiplied with the original matrix, gives the identity matrix. Now, consider a diagonal matrix,
A = 0x y0

Assume that the inverse of a diagonal matrix as:
A-1 = ca db

We know that, A × A-1 = I
The identity matrix I is,
I = 01 10

A × A-1 = I

0x y0 × ca db = 01 10

ycxa ydxb = 01 10

Therefore, we have:
xa = 1, a = 1/x
xb = 0, b = 0
yc = 1, c = 1/y
yd = 0, d = 0

By using the above values, we can get the inverse of a diagonal matrix,
A-1 = 01x 1y0

The inverse of a diagonal matrix is found by taking the reciprocal of each non-zero diagonal element. For a diagonal matrix of order n, we have:

 

 

Inverse of Diagonal Matrix Theorem

 

Statement: A diagonal matrix can have an inverse only if all the numbers on its main diagonal are not zero. If the matrix is, D = diag(d1, d2, d3,…, dn) then each diagonal element di must not be equal to zero. 

Proof: Let’s take a diagonal matrix as:
D = diag(d1, d2, d3,…, dn)
If no element from this matrix is zero, we can find its inverse by taking the reciprocal of each diagonal element. 
The inverse matrix would look like:
D-1 = diag 1d1,1d2, 1d3, ..., 1dn 
If we multiply the original matrix D by its inverse D-1, we get
D × D-1 = diag (1, 1, 1,..., 1), which is an identity matrix.
This proves that the inverse exists when all the diagonal values are not zero. 

If one of the diagonal elements is 0, then the matrix becomes singular and its inverse does not exist. If an entire row of a matrix is zero, the matrix is singular and cannot be inverted, because its determinant is zero. Therefore, the matrix becomes non-invertible.
 

Professor Greenline from BrightChamps

Real Life Applications of Inverse of Diagonal Matrix

In real life, we deal with large amounts of data, systems, and calculations that involve matrices. Finding the inverse of a diagonal matrix is especially useful because it’s a straightforward process that involves taking the reciprocals of the diagonal numbers. Here are some real-life examples where a matrix is used.

  • Computer graphics: In computer graphics, diagonal matrices are used to scale images to shrink or stretch them in height, width, or depth; to reverse this scaling, their inverse is applied.
  • Electrical engineering: In electrical systems with multiple independent components, the matrix that shows resistance to current flow is often diagonal. The inverse of the diagonal matrix is used to find admittance, which is essential in designing stable and efficient power systems.
  • Economics: Diagonal matrices are used to show the cost or productivity of each sector, like agriculture, manufacturing, etc. To find how much output is needed to meet demand, the inverse of the diagonal matrix is used to reverse the effects of cost or efficiency changes.
  • Control Systems: In automatic control systems, diagonal matrices are used to model systems that operate independently. The inverse helps to determine how much input is needed to get the desired output.
  • Machine Learning and Data Science: In data science, diagonal matrices are used in scaling features, like adjusting different data inputs like age, income, height, etc. The inverse is used to return the data to its original scale for interpretation or visualization. 
     
Max Pointing Out Common Math Mistakes

Common Mistakes and How to Avoid Them in Inverse of Diagonal Matrix

The inverse of a diagonal matrix is easier to find the inverse of other types of matrices. But students often make mistakes in identifying which matrices can be inverted while doing the calculation. Let us look at some of the common mistakes and learn how to avoid them.
 

Mistake 1

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Taking the inverse of 0 on the diagonal
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

In a matrix, 

 

The middle diagonal element is 0. Remember that you cannot divide by 0, so you can’t take the reciprocal of 0. The given matrix has no inverse. Always check that none of the diagonal numbers are zero before finding the inverse. If any one of the diagonal elements is 0, the inverse does not exist.
 

Mistake 2

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Inverting off-diagonal zeros
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

 Trying to invert every element in a diagonal matrix is a common error. The diagonal element’s reciprocal should be taken. All other entries stay zero.  
 

Mistake 3

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Forgetting zeros in the matrix
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

While writing the matrix, sometimes students forget to write 0s in their places and only write the reciprocals, which makes the inverse look incomplete and incorrect. Always remember that the inverse of a diagonal matrix is also a diagonal matrix. So, fill the non-diagonal elements with 0.
 

Mistake 4

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Using general matrix methods

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Sometimes we try to use the row operations or formulas for general square matrices when we just have to find the inverse of a diagonal matrix. When we have a diagonal matrix, skip the long methods, just take the reciprocal of the diagonal elements and write them in the same position.
 

Mistake 5

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Not simplifying reciprocals
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

We forget to simplify answers like  54 as 14/5 this, which leads to a mistake. Always double-check the matrix to see whether the elements are simplified or not. If not, simplify and write the final answer, and be careful with the signs. 

arrow-right
Ray Thinking Deeply About Math Problems

FAQs on Inverse of Diagonal Matrix

1. What is the inverse of a diagonal matrix?

The inverse of a diagonal matrix is also a diagonal matrix, where each diagonal element is replaced by its reciprocal and all the other elements that are zero.
 

Math FAQ Answers Dropdown Arrow

2.Can every diagonal matrix have an inverse?

No, a diagonal matrix can have an inverse only when the numbers on its diagonal are non-zero.
 

Math FAQ Answers Dropdown Arrow

3.What is the rule for diagonal matrices?

A diagonal matrix is said to be a square matrix, where all the elements outside the main diagonal are considered as zero and only the diagonal elements may be non-zero.
dij=0 when i ≠ j.
 

Math FAQ Answers Dropdown Arrow

4.What happens if one of the diagonal elements is zero?

If any of the diagonal elements are considered as zero, then the matrix does not have an inverse. 
 

Math FAQ Answers Dropdown Arrow

5. Is finding the inverse of a diagonal matrix easier than other matrices?

Yes, it is easier to find the inverse of a diagonal matrix than other matrices, because you simply take the reciprocal of each non-zero diagonal element.
 

Math FAQ Answers Dropdown Arrow
Math Teacher Background Image
Math Teacher Image

Jaskaran Singh Saluja

About the Author

Jaskaran Singh Saluja is a math wizard with nearly three years of experience as a math teacher. His expertise is in algebra, so he can make algebra classes interesting by turning tricky equations into simple puzzles.

Max, the Girl Character from BrightChamps

Fun Fact

: He loves to play the quiz with kids through algebra to make kids love it.

INDONESIA - Axa Tower 45th floor, JL prof. Dr Satrio Kav. 18, Kel. Karet Kuningan, Kec. Setiabudi, Kota Adm. Jakarta Selatan, Prov. DKI Jakarta
INDIA - H.No. 8-2-699/1, SyNo. 346, Rd No. 12, Banjara Hills, Hyderabad, Telangana - 500034
SINGAPORE - 60 Paya Lebar Road #05-16, Paya Lebar Square, Singapore (409051)
USA - 251, Little Falls Drive, Wilmington, Delaware 19808
VIETNAM (Office 1) - Hung Vuong Building, 670 Ba Thang Hai, ward 14, district 10, Ho Chi Minh City
VIETNAM (Office 2) - 143 Nguyễn Thị Thập, Khu đô thị Him Lam, Quận 7, Thành phố Hồ Chí Minh 700000, Vietnam
UAE - BrightChamps, 8W building 5th Floor, DAFZ, Dubai, United Arab Emirates
UK - Ground floor, Redwood House, Brotherswood Court, Almondsbury Business Park, Bristol, BS32 4QW, United Kingdom