Why Diagonal Matrices are Better Than Love.
July 16, 2010
What is a diagonal matrix? It’s one that looks like this:
There are a number of good reasons to like diagonal matrices. They look kind of neat and they have some sweet properties. So what are some of these properties?
Wanna take the determinant? Just multiply the elements of the diagonal.
Theorem: Given a diagonal matrix like the one above, we have that the determinant .
Proof. How do you find a determinant? By minors. Do it. It’s gonna really blow your socks off. It’s amazing. Seriously. Do it. .
Isn’t that enough for you to start loving diagonal matrices? No? Well, let’s talk about something else, then. What if you want to take the inverse of your matrix? Do you need to go through all of that crap where you find the adjoint and then transpose it and then multiply it by the reciprocal of the determinant? Hell no!
Theorem: Given a diagonal matrix like the one above, we have that the inverse will be
so, in other words, we just need to make a new matrix with the inverses of the elements in the diagonals.
Proof. Two ways to prove this. Either you “take my word for it” and just multiply the two matrices out to see that this works, or you can do the long way. Either way, it works. .
Note that this theorem above implies:
Proof. As above, , and we have
Corollary: A diagonal matrix is invertible if and only if each element on the diagonal is non-zero.
Proof. Seriously, you can do this one yourself. One way: note that the above proof will not work since 0 has no inverse. Another way: note that the determinant would be 0 and use that “zero determinant implies no inverse” theorem. .
Okay, now, wanna hear something else cool? This is along the lines of all that linear algebra we’ve been talkin’ about. Suppose we have a finite vector space and a linear map such that , the matrix corresponding to this map, is diagonal. Wanna know what the eigenvalues are? Just look at the diagonal!
Theorem: Let be a finite dimensional vector space and is a linear map such that is diagonal and given by
then the eigenvalues of are exactly .
Proof. Now, this is actually sort’a sweet, but at first you might not believe it. Because, I mean, it seems almost too easy, right? So, okay, what does this actually mean though. Let’s take one particular column. states that which makes an eigenvalue for each with corresponding eigenvector . Neat. .
This kind of thing is why we love diagonal matrices. We can instantly find the eigenvalues, we can easily invert it, and we can find the determinant just by multiplying a few things together. That’s why you should diagonal matrices.