Proving that $T^2-5T+6I = 0$. 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. 

As $T$ is self-adjoint, it is diagonizable, so the minimal polynomial splits into linear factors and has only simple roots. This together with the fact that the only eigenvalues are $2$ and $3$ implies that the minimal polynomial is $(X-2)(X-3) = X^2-5X+6$. By the definition of the minimal polynomial, we have $T^2-5T+6I=0$.
