Let $n$ be a positive integer. Let $A$ be an $n\times n$ matrix with real entries. Let $W$ be a subspace of $\mathbb{R}^n$ such that for every $\textbf{w}$ in $W$, $A\mathbf{w}$ is also in $W$. Suppose $A$ is diagonalisable and has exactly three distinct eigenvalues $\lambda_1,\lambda_2,$ and $\lambda_3$. Show that $W$ has a basis consisting of eigenvectors of $A$.
My thought:
So, it is clear that the corresponding eigenvectors $\mathbf{v}_1,\mathbf{v}_2$ and $\mathbf{v}_3$ are linearly independent.
On the other hand, we know that $A$ has a rank 3.
If we can show that $\dim W=\text{rank} A=3$, and the three eigenvectors belong to $W$, then the problem can be solved flawlessly.
My problem:
- The three eigenvectors are not necessarily belong to $W$. Say, $W$ can be simply $\{\textbf{0}\}$!
- How is the dimension of $W$ and the rank of $A$ interrelated?
Perhaps my progress is totally off course. I am nearly clueless on this question.
Thanks for any answers in advance.