If A and B are square matrices of the same size I know how to show that AB and BA have the same eigenvalues and characteristic polynomials. But I want to show that they have identical nonsingular Jordan Blocks.
I am not really sure how to proceed. Maybe some argument about the dimension of the kernel of AB and BA?
Not totally sure about this approach yet... work in progress
Suppose that $\lambda \neq 0$ is an eigenvalue of $AB$. Let $v$ be an associated eigenvector (noting that $Bv \neq 0$). Then, we have $$ (BA - \lambda I)(Bv) = BAB v - \lambda(Bv) = \\ B[AB - \lambda I]v = 0 $$ In other words, we have $$ (AB - \lambda I)v = 0 \implies (BA - \lambda I)(Bv) = 0 $$ Similarly, we can note that if $(AB - \lambda I)^n v = 0$, then $(BA - \lambda I)^n (Bv) = 0$. Thus, $AB$ and $BA$ have the same generalized eigenvectors. The conclusion would follow.