Show that if $A \in M_{nxn}(k)$ and $det A \neq 0$ then for each matrix $B \in M_{nxn}(k)$: $AB$ and $BA$ are similar. Give an example $A,B$ for which $AB$ and $BA$ are not similar.
If $AB$ and $BA$ are similar then I have matrix $C$ for which $AB=C^{-1}(BA)C$. However I don't know how to prove that this matrix exist if I know only that $det A \neq 0$. I thought also about a fact that $tr(AB)=tr(BA)$ but I think it laso is unhelpfull for me.
Can you get me some tips which facts are helpful for me to do this task?