Help please, I have a doubt.
If $A$ and $B$ are matrices in $\textsf{M}_{n \times n}(\mathbb{R})$, prove or refute that $AB$ and $BA$ have the same minimal polynomial.
I know they share the same eigenvalues, but I do not know how to use this fact to prove the proposition, I would like to know any tip
The claim is not true. Let $E_{i,j}$ be the matrix unit with $(i, j)-$ entry 1, $0$ elsewhere. Then $E_{12}E_{3,1}$ is $0$, min poly $x$ while $E_{3,1}E_{1,2}$ is not zero.The claim is true if one of the matrices is invertible because in that case the products are similar matrices. For $2\times 2$-matrices take $E_{12}$ and $E_{11}.$