I'm struggling with the following problem:
Let $p$ be a polynomial, then if $p(A)=0$, where $0$ stands for the zero matrix, then the eigenvalues of $A$ are roots of the polynomial.
What I did/tried:
I attempted to calculate the polynomial of $Av$ where v is an eigenvector because then I guessed that the eigenvalues would appear, but I wasn't successful.
If $p(x)=\sum a_kx^k$ and $v$ is eigenvector of$A$ with eigenvalue $\lambda$, then $$p(A)v=(\sum a_kA^k)v=\sum a_kA^kv = \sum a_k\lambda^k v=(\sum a_k\lambda^k) v=p(\lambda)v.$$ As $p(A)=0$ and $v\ne 0$, we conclude $p(\lambda)=0$.