Let $A$ and $ B$ be two nonsingular matrices. Show that $AB^{-1}$ and $B^{-1}A$ have the same eigenvalues
My attempt: $$ \begin{align} f(\lambda) &= | I\lambda -AB^{-1}| \\ &= |(I\frac{1}{\lambda}-B^{-1}A)^{-1}| \\ &= \dfrac{1}{|I\frac{1}{\lambda}-B^{-1}A|} \\ \end{align} $$
Not sure how to complete the final step. Any help would be appreciated
It's a bit tricky: $$ \begin{align} &f(\lambda)\\ &=\det(AB^{-1}-\lambda I_n)\\ &=\det((\color{#00A000}{BB^{-1}})AB^{-1}-\lambda (\color{#00A000}{BB^{-1}}))\\ &=\det(B(B^{-1}A)B^{-1}- B(\lambda I_n)B^{-1})\\ &=\det(\color{#00A000}B(B^{-1}A-\lambda I_n)\color{#00A000}{B^{-1}})\\ &=\det(BB^{-1})\det(B^{-1}A-\lambda I_n)\\ &=\det(B^{-1}A-\lambda I_n) \end{align} $$
In a more general fashion , you can relate the char polynomials of $AB$ and $BA$ even when $A$ and $B$ are not square matrices, see my answer.