Problem.
Suppose $A \in \mathcal{M}_{m,n}(\mathbb{C})$ and $B \in \mathcal{M}_{n,m}(\mathbb{C})$. Prove that the characteristic polynomials for the matrices $AB$ and $BA$ satisfy $\lambda^np_{AB}(\lambda) = \lambda^mp_{BA}(\lambda)$.
Hint: One way is to use Jordan forms. Alternatively, you might try to use the following block matrices: $P = \begin{pmatrix} \lambda I_m & A \\ B & I_n \end{pmatrix}$ and $Q = \begin{pmatrix} I_m & 0 \\ -B & \lambda I_n \end{pmatrix}$.
My Question.
I have no idea how to use their recommended $P$ and $Q$. Everything I've tried has led absolutely nowhere; no progress at all. I have made some progress using Jordan forms. (Specifically, that $AB$ and $BA$ share the same eigenvalues and that $\dim E_{AB, \lambda} = \dim E_{BA, \lambda}$ for each $\lambda \neq 0$.) So, same factors in $p_{AB}$ and $p_{BA}$, and same geometric multiplicities. But I can't get the final result that the algebraic multiplicities of the nonzero eigenvalues are equal. Instead, I have proved the result using a different strategy, which I have sketched below. Assuming that my proof is correct, I would still like to know how to prove this using the other methods. Any hints?
My Proof (Sketch).
I have showed that for square matrices $\bar{A}$ and $\bar{B}$, $p_{\bar{A}\bar{B}} = p_{\bar{B}\bar{A}}$. So I next assume WLOG that $A$ is wider than tall and $B$ is taller than wide and I augment $A$ and $B$ to square matrices $\bar{A}$ and $\bar{B}$ using columns or, respectively, rows of 0's. Then $\bar{A}\bar{B}$ is a block matrix with $AB$ in the upper left and 0 elsewhere, so $p_{\bar{A}\bar{B}} = p_{AB}x^{n-m}$. Then I proved that $\bar{B}\bar{A} = BA$. Thus $p_{AB}x^{n-m} = p_{\bar{A}\bar{B}} = p_{\bar{B}\bar{A}} = p_{BA}$ and the result follows.
Again, hints for the two methods suggested by the problem (or criticisms of my method) would be greatly appreciated! Thanks!