I was kinda crushed to discover that two different matrices with different properties can actually share the same characteristic polynomial ($-\lambda^3-3\lambda^2+4$):
$A=\begin{pmatrix} 1 & 2& 2\\ -3 &-5 &-3 \\ 3& 3 & 1 \end{pmatrix} , B=\begin{pmatrix} 2 & 4& 3\\ -4 &-6 &-3 \\ 3& 3 & 1 \end{pmatrix}$
$A$ has an eigenline and an eigenplane (and thus an eigenbasis), whereas $B$ has two eigenlines (so no eigenbasis). The repeated eigenvalue -2 of B corresponds to an eigenspace with basis {(-1,1,0)}.
When is the geometric multiplicity of an eigenvalue smaller than its algebraic multiplicity (as in case B)? Are there general conditions to look for?
Thanks!