I'm revising for an exam in linear algebra, and I've found myself stuck on this one specific exercise.
I'm supposed to decide a matrix $P$ and a diagonal matrix $D$ from my matrix $H$ (which I'll post below, so that $P^{-1}HP = D$.
Normally, I know how to solve tasks like these, but the fractions are what's giving me the issues when trying to get the eigenvalues out of the matrix. I'm just clueless on how to get them, so if any of you could help me out I'd greatly appreciate it.
$$H= \begin{pmatrix} \frac{3}{2} & - \frac{1}{2} &0\\ - \frac{1}{2} & \frac{3}{2}&0 \\ 0 &0&1\end{pmatrix}$$
Note that: $$ |H-\lambda I|= \begin{vmatrix} \frac{3}{2}-\lambda & -\frac{1}{2} & 0 \\ -\frac{1}{2} & \frac{3}{2}-\lambda & 0 \\ 0 & 0 & 1-\lambda \end{vmatrix}=(1-\lambda)\left(\left(\frac{3}{2}-\lambda\right)^2-\frac{1} {4}\right)= (1-\lambda)(2-3\lambda+\lambda^2)=(1-\lambda)(\lambda-1)(\lambda-2)=-(\lambda-1)^2(\lambda-2) $$ (I calculated the determinant using the Laplace expansion of the third column). The eigenvalues are hence $1$ and $2$. Can you take it from here?