How to prove $$\det(I-AB)=\det(I-BA)$$ if one of the matrices is singular. I tried the following way: Let $A$ be singular. Then $$\det(AB)=0$$ and $$\det(BA)=0$$
Now since $AB$ be singular $\exists$ a non-zero vector $x$ such that $$ABx=0$$ Hence
$$(I-AB)x=x$$ and similarly $\exists$ non-zero vector $y$ such that
$$(I-BA)y=y$$
Any help here?