I saw this on Strong's book Introduction to Linear Algebra, but it didn't prove it:
If $ A $ and $ A^T $ commute, then they share the same eigenvectors.
And now I am wondering whether it is still true even if they may not be diagonalizable.
There are many similar questions like "$A$ and $B$ are both diagonalizable and commute if and only if they share the same eigenvectors", but I am still wondering whether it is still true when $B=A^T$ and $A$ is not diagonalizable.
I assume that you are working over $\mathbb{R}$.
Let $v$ be an eigenvector of $A$. We prove that $v$ is also an eigenvector of $A^T$.
Since $v$ is an eigenvector of $A$, there exists $\lambda \in \mathbb{R}$ such that $Av=\lambda v$. Then \begin{align*} 0 = ||Av-\lambda v||_2^2 & = (Av-\lambda v)^T(Av-\lambda v) \\ &= v^TA^TAv - \lambda v^TA^Tv - \lambda v^TAv + \lambda^2 v^Tv \\&= v^TA A^Tv - \lambda v^TA^Tv - \lambda v^TAv + \lambda^2 v^Tv \\ & = (A^Tv-\lambda v)^T(A^Tv-\lambda v)\\ & = ||A^Tv-\lambda v||_2^2 \end{align*}
and hence $A^Tv = \lambda v$, which means that $v$ is an eigenvector of $A^T$.