Show that if $A,B \in M_{n \times n}(K)$, where $K=\mathbb{R}, \mathbb{C}$, then the matrices $AB$ and $BA$ have same eigenvalues.
I do that like this:
let $\lambda$ be the eigenvalue of $B$ and $v\neq 0$
$ABv=A\lambda v=\lambda Av=BAv$
the third equation is valid, because $Av$ is the eigenvector of $B$. Am I doing it right?
It suffices to show that $AB$ and $BA$ have the same characteristic polynomial. First assume that $A$ is invertible then
$$\chi_{AB}(x)=\det(AB-xI)=\det A\det(B-xA^{-1})\\=\det(B-xA^{-1})\det A=\det(BA-xI)=\chi_{BA}(x)$$ Now since $\operatorname{GL}_n(K)$ is dense in $\operatorname{M}_n(K)$ then there's a sequence of invertible matrices $(A_n)$ convergent to $A$ and by the continuity of the $\det$ function we have $$\chi_{AB}(x)=\det(AB-xI)=\lim_{n\to\infty}\det(A_nB-xI)=\lim_{n\to\infty}\det(BA_n-xI)\\=\det(BA-xI)=\chi_{BA}(x).$$