[Math] How to diagonalize matrices with repeated eigenvalues

diagonalizationeigenvalues-eigenvectorslinear algebramatrices

Consider the matrix $$A=\begin{pmatrix}q & p & p\\p & q & p\\p & p & q\end{pmatrix}$$ with $p,q\neq 0$. Its eigenvalues are $\lambda_{1,2}=q-p$ and $\lambda_3=q+2p$ where one eigenvalue is repeated. I'm having trouble diagonalizing such matrices. The eigenvectors $X_1$ and $X_2$ corresponding to the eigenvalue $(q-p)$ have to be chosen in a way so that they are linearly independent. Otherwise the diagonalizing matrix $S$ becomes non-invertible. What is the systematic way to find normalized linearly independent eigenvectors in this situation?

Best Answer

The sum of each row of the matrix is $q+2p$ and therefore $(1,1,1)$ is an eigenvector corresponding to the eigenvalue $q+2p$. Now to compute the remaining eigenvectors, these for a basis of th null space of$$A-(q-p)\operatorname{Id}=\begin{pmatrix}p&p&p\\p&p&p\\p&p&p\end{pmatrix}.$$So, take $(1,-1,0)$ and $(0,1,-1)$.

Related Question