Invert a diagonal matrix by taking reciprocals of its diagonal
Write the inverse of a diagonal matrix as the diagonal matrix of reciprocals. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.
For a diagonal matrix,
and exists exactly when no is zero.
The zeros off the diagonal stay zero in the inverse. They are not choices to be recomputed: a diagonal matrix has no coupling, so there is no coupling to undo.
Multiply by the candidate inverse. Entry of the product is
Concretely: row of has one nonzero, in column; column of has one nonzero, in row. Their product is — the diagonal entry. Any other row and column meet at a position where one of them is zero, so the off-diagonal entries are. The result is exactly, in both orders, and a diagonal matrix commutes with its inverse precisely because nothing mixes.
Note what the check is: a product against the identity, not "I divided each entry". Dividing is how you build the candidate; multiplying is how you know it is right. Those are different acts, and the second one is the one that catches a slip.
Let
The inverse:.
Check one entry: row 3 of times column 3 of is. Row 2 of times column 3 of is.
Solve. Three separate equations:
So. The same answer as: divide each entry of by the matching diagonal entry.
No elimination was needed, and none would help. A diagonal system is already solved — you only have to read it one coordinate at a time.
- Write the inverse of a diagonal matrix as the diagonal matrix of reciprocals
- Decide invertibility from the diagonal entries alone
- Solve a diagonal system coordinate by coordinate
- 1. What is?
- 2. When is a diagonal matrix not invertible?
- 3. Why do the off-diagonal zeros stay zero in the inverse?
- 4. Solve.
Answers
- 1.. Check one:.
- 2. Exactly when some diagonal entry is zero. Equivalently, when its determinant — the product of the diagonal — is zero.
- 3. Because the matrix never mixes two coordinates, so there is no mixing to undo. Row of and column of are the only pair that meet, and row of multiplied by a column of hits a zero.
- 4. and: divide each entry of the right side by the matching diagonal entry.