Exercise What is the condition for a diagonal matrix to be invertible? What is the inverse? What about an upper (lower) triangular matrix?
Answer Based on the discussion in an earlier exercise, it is easy to see that the condition for a diagonal matrix
to be invertible is that the diagonal numbers a1, a2, ..., an are nonzero. Moreover, the inverse is
Similar statement holds for upper and lower triangular matrices.