If $W = span(I,A,A^1,A^2, \dots)$. What is the upper bound on dimension of $W$? All matrices are $n \times n$.
I know that the dim($W$) $\leq n$, by the Cayley-Hamiltonian theorem. However, I don't see how the Cayley-Hamiltonian (C-H) theorem is used to show this. From what I understand, the C-H theorem says once you get the characteristic polynomial equation for matrix $M$, $p(\lambda)$, then $p(M) =$ the zero matrix. I'm not sure how C-H can be used in showing that $dim(W) \leq n$.
Second question:
If $A=$ zero matrix, then would the dimension of $W = 1$ or $2$?
Hint: The Cayley-Hamilton theorem implies that $A^n$ is a linear combination of $I,A,A^2,\ldots,A^{n-1}$.