I have a problem that says to find the values of k for which the matrix $A$ is NOT diagonalizable over $\mathbb{C}$. I know that I need to find the zeros for the characteristic polynomial and check for which values their geometric multiplicities equal 1. I'm really just stuck on the calculation.
The matrix $$A=\left(\begin{matrix}0&1&0\\0&0&1\\0&k-6&7-k\end{matrix}\right)$$
I'm getting the characteristic polynomial using the determinant of the characteristic equation as $$-x^3+(7-k)x^2+(k-6)x$$
So I'm just unsure of what the calculations should look like.
There might be a better way, but note that $-x^3+(7-k)x^2+(k-6)x=0$ has solutions
$$\{x=0,x=1,x=6-k\}$$
Since eigenspaces of algebraic multiplicity one have geometric multiplicity one, the only possible cases where an eigenspace could potentially be deficient is when $$6-k=0\text{ or }1.$$
Then you can just check by hand whether the nullspaces of $A-(6-k)I$ are deficient for those two cases. Indeed, in both cases, $A$ turns out to be not diagonalizable. In Mathematica:
which yields
and the presence of
{0,0,0}in both results indicates that a diagonalization does not exist.