Consider a matrix with coefficients in $\mathbb C$ . What is the condition for which the commutant of the matrix is equal to polynomials in the matrix?
I proved that if the matrix is diagonalisable then the commutant of the matrix is equal to polynomials in the matrix (I mean $C[M]$ ), but is this the necessary and sufficient condition? If yes how to prove the reciprocal?