TITLE: Help with understanding the proof for: $AB$ and $BA$ have the same characteristic polynomial (for square complex matrices)
QUESTION [5 upvotes]: I saw many proofs but they all use advanced techniques and are impossible to understand.
I'm looking for a proof that $AB$ and $BA$ have the same characteristic polynomial for any square matrices $A$ and $B$ over $\mathbb C$.
It's really easy when dealing with invertible matrices, but hard to prove for singular matrices.
I found several solutions that I could not understand: 
This solution says 

it is not too difficult to show that $AB$, and $BA$ have the same characteristic polynomial ... If the matrices are in $M_n(\mathbb C)$, you use the fact that $GL_n(\mathbb C)$ is dense in $M_n(\mathbb C)$ and the continuity of the function which maps a matrix to its characteristic polynomial. There are at least 5 other ways to proceed 

I've bolded every term that I am not familiar with.
This solution I could not understand as well (it uses the limit definition when $\lambda$ approaches zero but I hardly understand how that solves the issue).
I'm looking for a simpler solution using more basic linear algebra.

REPLY [9 votes]: Late remark. I think the cleanest solution is the following purely algebraic one, which some other people (like Bill Dubuque) have posted on this and other sites for quite a number of times (but I am unable to find a link).
The proof is really simple and it works for square matrices over any field. First, suppose $x$ and the entries of $A$ and $B$ are (independent) indeterminates. Then
$$
\det(xI-AB)\det(A)=\det(xA-ABA)=\det(A)\det(xI-BA).
$$
Cancel out $\det(A)$ (it's cancellable because it is a non-zero polynomial in the indeterminate entries of $A$) on both sides, we get $\det(xI-AB)=\det(xI-BA)$. Spealialise the entries of $A$ and $B$ to concrete values in the field of interest, we get the final result.
Proofs like this are usually not taught at universities, probably because students are taught basic linear algebra before they learn the formal definitions of "indeterminate" or "polynomial" in some abstract algebra courses.