Let $A$ and $B$ be $m \times n$ and $n \times m$ real matrices.
I was asked to prove that if $\lambda$ is a nonzero eigenvalue of the $m \times m$ matrix $AB$ then it is also an eigenvalue of the $n \times n$ matrix $BA$ (I didn't have trouble showing that)
I need now to find an example showing that this need not be true if $\lambda = 0$
Take $$ A= \left( \begin{matrix} 1 \\ 1 \end{matrix} \right) \ \ \ \ \ \ \ \ \mbox{ and } \ \ \ \ \ \ \ \ B= ( \begin{matrix} 1 & 1 \end{matrix} ) $$