The question is: Suppose that T is a self-adjoint operator on a finie-dimensional inner product space and that 2 and 3 are the only eigenvalues of T. Prove that $T^2-5T+6I = 0$.
To prove this question, can I take the inner product of $(T^2-5T+6I)v$ and $Tv$, where $Tv = 2v$ and $v \neq 0$, and then show that the inner product of those two vectors is equal to $0$? Since $v \neq 0$, would that imply that $T^2-5T+6I = 0$? Or am I coming at this question completely wrong?
Thanks.