I have a quick question.
Let $A,B$ be square matrix. And let $p(t)=a_kt^k+\cdots+a_1t+a_0)$ be a polynomial.
Prove that if $A$ and $B$ are similar then $p(A)$ and $p(B)$ are similar.
Proof: If $A$ and $B$ are similar there exists a non singular matrix $P$ such that $B=P^{-1}AP$
We then place the matrix A in the polynomial equation then
$P(A)=a_kA^k+\cdots+a_1A^1+a_0I$ So then we must show for a nonsingular matrix $P$
$P^{-1}P(A), \quad P= P(B)$
So from the left
\begin{align} & =P^{-1}(a_kA^k+\cdots+a_2A^2+A_1A+a_0I)P \\[01pt] & =a_kP^{-1}A^{k}P+\cdots+a_1P^{-1}A^1P+a_0P^{-1}IP \end{align}
and we for any natural number $K$ then$B^K=(P^{-1}AP)^k$
so then
\begin{align} & =a_kB^k+\cdots+a_1 B+a_0 I \\[10pt] & =P(B) \end{align}
so $P(A)$ and $P(B)$ are similar.