Diagonalization¶
Question
What is diagonalization?
Diagonal matrices¶
Recall that diagonal matrices are quite interesting to study from the point of view of eigenvectors and eigenvalues. So let us first explore some properties of the same. Let \(D\) be an arbitrary diagonal matrix:
Determinant¶
The determinant of a diagonal matrix is given by the product of the values along the diagonal:
Invertibility¶
From the above equation, it follows that a diagonal matrix is invertible if and only if none of the diagonal elements are zero.
Matrix power¶
Consider the product \(D^k\). This is extremely simple in the case of a diagonal matrix:
$$ D^k = \text{diag}(a_1^k, \cdots, a_n^k) $$ We won't prove this statement now. But this is quite easy to see.
Eigenvalues¶
This is something that we have already seen. The eigenvalues of a diagonal matrix are the diagonal elements. For the next two properties, let us express the diagonal matrix in terms of its eigenvalues:
$$ D = \text{diag}(\lambda_1, \cdots, \lambda_n) $$ A diagonal matrix has \(n\) eigenvalues, not necessarily distinct. The characteristic polynomial corresponding to it is:
Eigenvectors¶
It is easy to see that the elements of the standard basis \(\beta = \{e_1, \cdots, e_n\}\) are the eigenvectors of \(D\). Specifically, \(e_i\) is an eigenvector of \(D\) corresponding to the eigenvalue \(\lambda_i\) as \(De_i = \lambda_i e_i\). Can we characterize every possible eigenvector corresponding to eigenvalue \(\lambda_i\)? For this particular case, let us assume that the eigenvalues are all distinct. Now, let \(v\) be some eigenvector of \(D\) corresponding to \(\lambda_i\):
This can be further simplified as:
Since, \(\lambda_i \neq \lambda_j\) for \(i \neq j\), we have, \(v_j = 0\) for \(j \neq i\). Thus, the eigenvector corresponding to \(\lambda_i\) is some non-zero vector in \(\text{span}(\{e_i\})\).
Diagonalizability¶
Now that we have seen some interesting properties concerning diagonal matrices, we shall study a special kind of matrices called diagonalizable matrices. These matrices are not necessarily diagonal, yet share a close kinship with them. Even if a matrix is not diagonal, can we hope that it is related in some way to a diagonal matrix?
In the last section, we noted that the vectors in the standard basis are eigenvectors of a diagonal matrix. We will generalize this property. Assume that an \(n \times n\) matrix has a set of \(n\) linearly independent eigenvectors: \(\beta = \{v_1, \cdots, v_n\}\). Then \(\beta\) is a basis for \(\mathbb{R}^n\). From this, we have a definition for diagonalizable matrices:
Definition-1
An \(n \times n\) matrix \(A\) is diagonalizable if there is a basis of eigenvectors for \(\mathbb{R}^n\).
Taking off from this definition, for \(1 \leq i \leq n\), we have:
We can rearrange all these \(n\) equations as follows:
Let \(Q\) be the matrix of eigenvectors and \(D\) be the diagonal matrix of eigenvalues:
We can now express the equation as:
\(Q\) is invertible as the columns are linearly independent. With this, we can now rewrite the equation as:
We have managed to establish a bridge from the matrix \(A\) to a diagonal matrix \(D\). Matrices \(A\) and \(D\) are similar.
Similar matrices
Two \(n \times n\) matrices \(A\) and \(B\) are similar if there exists an invertible matrix \(Q\) such that \(A = QBQ^{-1}\).
This gives an alternative definition for diagonalizable matrices:
Definition-2
A matrix \(A\) is diagonalizable if it is similar to a diagonal matrix.
Examples¶
All diagonal matrices are diagonalizable. These are trivial examples of diagonalizable matrices. Let us take up a slightly non-trivial example of a diaongalizable matrix:
The eigenvalues are \(1\) and \(5\). The eigenvectors corresponding to these two eigenvalues are \([1, -1]^T\) and \([3, 1]^T\). If we let these two matrices be the columns of a matrix \(Q\), then:
We have:
Properties¶
Let us look at two observations which exemplify the relationship between diagonalizable matrices and their diagonal counterparts.
Eigenvalues¶
The following observation will be useful for the rest of the analysis:
Note
If two matrices \(A\) and \(B\) are similar then they have the same eigenvalues.
There exists some invertible matrix \(Q\) such that \(A = QBQ^{-1}\). We can now look at the characteristic polynomial of \(A\):
The two matrices have the same characteristic polynomial and hence the same eigenvalues. Thus, a diagonalizable matrix has \(n\) eigenvalues, not necessarily distinct. These eigenvalues can be directly read off if we know the diagonal counterpart corresponding to \(A\).
Matrix power¶
If \(A\) is a diagonalizable matrix, then:
We see that \(A^{k}\) is also diagonalizable. The eigenvlaues of \(A^k\) are the \(k^{th}\) powers of the eigenvalues of \(A\).
Summary¶
Diagonalizable matrices are those matrices that are not necessarily diagonal, yet share a close kinship with them. The following are equivalent definitions. An \(n \times n\) matrix \(A\) is diagonalizable if:
- \(\mathbb{R}^n\) has a basis of eigenvectors of \(A\).
- \(A\) is similar to a diagonal matrix.