Let $A$ and $B$ be matrices over the real numbers, such that $A$ is $3 \times 5$ and $B$ is $5 \times 3$, and the product $AB$ is $$ \left( \begin{array} \\ 1& 1 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right). $$ I want to find the Jordan canonical form of $BA$.
I am rather stuck on this. The only information that I know to go on is that $BA$ is $5 \times 5$ and it's rank is at most 3, so $0$ is an eigenvalue of it and it's multiplicity is at least $2$.
If $ABv=\lambda v$, then $BA(Bv)=B(ABv)=B(\lambda v)=\lambda(Bv)$, so if $v$ is an eigenvector of $AB$ with eigenvalue $\lambda$, then $Bv$ is an eigenvector of $BA$ with eigenvalue $\lambda$. If $\lambda\neq 0$, then $Bv\neq 0$ because $A(Bv)\neq 0$, so this shows that, with the exception of $0$, $AB$ and $BA$ have the same eigenvalues with the same geometric multiplicities.
Similarly, one can show that the characteristic polynomials of $AB$ and $BA$ are the same up to an additional factor of $t^k$, so the algebraic multiplicities of the eigenvalues are the same, except for $0$.
In low dimensions, this information is enough to determine the Jordan Normal Form, except for the $0$ block.
For that, we can look at the minimal polynomial. We have that $(AB-I)^2=0$, and so $B(AB-I)^2A=(BA-I)^2BA=0$. Because this has a single factor of $BA$, we cannot have a block of $0$ of size bigger than $1$.
This argument actually shows that $AB$ and $BA$ have the same sized largest block for each eigenvalue except for $0$, and the maximum block size for $0$ can differ by at most $1$.
To see that the maximal block size for $0$ can change, consider $A=(0,1)$, $B=(1,0)^T$.
As an alternative (and somewhat more useful way, as it will give results in higher dimensions) to looking at characteristic polynomials. We have by induction that $B(AB-\lambda I)^k=(BA-\lambda I)^k B$, and so if $v$ is an approximate eigenvector of $AB$ with eigenvalue $\lambda$ and order $k$, then $Bv$ is an approximate eigenvector of $BA$ with eigenvalue $\lambda$ and order $k$. I think this can be used to show that when $\lambda\neq 0$, the approximate eigenspaces have the same dimensions, and so all the block sizes will be the same for the non-zero eigenvalues. However, I have not checked the details, so this may not go through.