$\begin{pmatrix}8&k\\ 0&4\end{pmatrix}$
So I know that for a matrix to be diagonalizable, it needs to have 2 distinct real eigenvalues.
So I calculated the characteristic polynomial to be:
$x^2-12x+32-k$
Therefore, for the discriminant to be greater than $0$, I got the inequality:
$k>-4$
Therefore, I thought that it would diagonalizable for all $k$ except $k=-4$, but this is not correct.
Any help?
Note that to diagonalize the matrix you need a basis of eigenvectors for $\mathbb{R^2}$.
When we find two distinct eigenvalues that is given for free.
If eigenvalues are not distinct we need to check whether or not for the eigenvalues 2 (which has algebraic multiplicity 2) we can find 2 linearly independent eigenvectors, in this case you can diagonalize the matrix.
Otherwise you can only obtain a Jordan form.
In this case since $\lambda_1=8$ and $\lambda_2=4$, we can diagonalize $\forall k$.