I have the following $2\times 2$ matrix $$\left( \begin{array}{rrr} 0 & 1 \\ -1 & a \\ \end{array}\right)$$ with $a ∈ \mathbb{R}$, and then same matrix but with $a ∈ \mathbb{C}$. For which $a$ is the matrix diagonalizable?
Is there a condition i'm missing or a rule to use, because computing the eigenvalues and eingenspaces is annoying with the variable $a$.
Thanks for any type of help! :)
I do not fully agree with the other two answers (in the details), here is why :
A matrix is diagonalisable if its minimal polynomial is split with single roots.
The characteristic polynomial of $M=\begin{pmatrix}0&1\\-1&a\end{pmatrix}$ is
$\chi(t)=\det(M-tI)=\begin{vmatrix}0-t&1\\-1&a-t\end{vmatrix}=(-t)(a-t)-(-1)(1)=t^2-at+1$
The minimal polynomial $\mu(t)$ is a divisor of $\chi(t)$ but since we are in dimension $2$, $\mu(t)$ can only be of degree $0,1$ or $2$.
The degree is neither $0$ since $M\neq 0$ nor $1$ since $M-tI\neq 0$ for any $t$, consequently $\mu(t)=\chi(t)$.
The discriminant of $\mu(t)$ is $\Delta=a^2-4$.
We have a double root only in the case $a=\pm 2$ in which case $M$ is not diagonalisable.