TITLE: Prove that $|AB - \lambda I| = |BA - \lambda I|$.
QUESTION [5 upvotes]: Suppose that one has two matrices $A$, $B$. Then  

Prove that $$|AB - \lambda I| = |BA - \lambda I|,$$
  where $|\cdot|$ denotes the determinant, $I$ - identity matrix and $\lambda \in \mathbb{C}$.

Note that $A$ and $B$ are not necessary invertible. For invertible matrices I easily found
$$|AB - \lambda I| = |B(AB - \lambda I)B^{-1}| = |BA - \lambda I|.$$

REPLY [4 votes]: There is an old-fashioned proof depending only on the properties of determinants and minors.
(i) In $\det(xI-X)$ the coefficient of $x^{n-k}$ is the sum of the principal $k\times k$ minors of $X$. 
(ii) Let $X^{(k)}$ denote the matrix of $k\times k$ minors of $X$ for any square $X$. Then by a theorem sometimes called the Binet-Gauss Theorem we have that $(XY)^{(k)}=X^{(k)}Y^{(k)}$. 
(iii) For any square matrices $X,Y$ we have $\text{tr}(XY)=\text{tr}(YX)$.
So the coefficient of $x^{n-k}$ in $\det(xI-AB)$ is 
$$\text{tr}((AB)^{(k)})=\text{tr}(A^{(k)}B^{(k)})$$ whereas 
the coefficient of $x^{n-k}$ in $\det(xI-BA)$ is 
$$\text{tr}((BA)^{(k)})=\text{tr}(B^{(k)}A^{(k)})$$
and these are equal.