Let $A$ and $B$ be $n×n$ matrices such that $AB = BA$. If all the eigenvalues of $A$ are distinct, then $B$ can be expressed uniquely as a polynomial in $A$ with degree no more than $n − 1$.
My Try: From the fact that $A$ has distinct eigen values, we can say that $A$ is diagonalizable. And from the fact fact that $AB = BA$, I have shown the fact that $B$ also have distinct eigen values and hence also Diagonalizable.
It is also noticed that the matrix $P$ for which $P^{-1}AP = C$, the same matrix $P$ also satisfies $P^{-1}BP = D$, where $C,D$ are resp diagonal matrices.
I have also arrived the fact that if $D$ can be expressed uniquely expressed as a polynomial in $C$ with degree no more than $n − 1$, then $B$ can be expressed uniquely as a polynomial in $A$ with degree no more than $n − 1$.
Having Problem to show that $D$ can be expressed uniquely expressed as a polynomial in $C$ with degree no more than $n − 1$.
Thanks in Advance..