Some matrices with real entries which are not diagonalizable over ℝ are diagonalizable over the complex numbers ℂ. For instance $\left(\begin{smallmatrix}1&0\\0&1\end{smallmatrix}\right)$ has $λ^2+1$ as characteristic polynomial. This polynomial doesn’t factor over the reals, but over ℂ it does. Its roots are $λ=±i$. Interpreting the matrix as a linear transformation $ℂ^2→ℂ^2$, it has eigenvalues $i$ and $-i$ and linearly independent eigenvectors $(1,-i),(-i,1)$. So we can diagonalize $A$:$$A=\left(\begin{array}{cc}0 & -1 \\ 1 & 0\end{array}\right)=\left(\begin{array}{cc}1 & -i \\ -i & 1\end{array}\right)\left(\begin{array}{cc}i & 0 \\ 0 & -i\end{array}\right)\left(\begin{array}{cc}\frac12 & \frac i2 \\ \frac i2 & \frac12\end{array}\right)$$
But there exist real matrices which aren’t diagonalizable even if complex eigenvectors and eigenvalues are allowed. For example $\pmatrix{0&1\\0&0}$. In fact, the characteristic polynomial is $λ^2$ and it has only one double root $λ=0$. However the eigenspace corresponding to the 0 eigenvalue has dimension 1.\[B\pmatrix{v_1\\v_2}=\pmatrix{0\\0}⇔v_2=0\]
and thus the eigenspace is $\ker(B)=\operatorname{span}_ℂ\{(1,0)^{\sf T}\}$, with only one dimension.
PlanetMath
Let $A∈M_n,A^k = 0,A^{k-1}≠0$. Prove that $k≤\operatorname{rank}(A)+1$.
aops
Assume $A$ is in Jordan form, so $A=S_{m_1}⊕S_{m_2}⋯⊕S_{m_t}$, where $S_{m_i}$ is a Jordan block of size $m_i$ with zeros along diagonal, and $m_1 + m_2 +⋯+ m_t = n$. Each $S_{m_i}$ contributes $m_i - 1$ to the rank, so $\operatorname{rank}(A) = (m_1 - 1) + (m_2 - 1) + ⋯ + (m_t - 1)$. Now since the index of nilpotency is $k$, we know that at least one $m_i = k$, so $\operatorname{rank}(A)≥k-1$. Equality holds when $t=1$, i.e., when $n=k$.