det(I + AB) = det(I + BA) by density
Statement
Let . Prove that .
Hint
Treat first the case where is invertible, then use the fact that is dense in .
Show solutionHide solution
Solution
Idea. An identity between two continuous functions that holds on a dense set holds everywhere. The invertible matrices are dense, and for them the identity is a one-line conjugation.
Step 1: invertible. Then
So and are conjugate, hence have the same determinant (because ).
Step 2: density. Fix . The two functions
are polynomials in the entries of (a determinant is a polynomial in the entries, and the entries of are polynomials in those of ). In particular they are continuous on .
For an arbitrary , the matrices are invertible for all but finitely many (their determinant is a nonzero polynomial in of degree , equal to up to sign). Hence for small , and letting gives .
Remark. The same proof gives the more general identity , and later the equality of the characteristic polynomials of and . Note that it also holds for rectangular matrices , in the form , but then the conjugation argument must be replaced by a block-matrix computation.
Lesson. To prove an identity between polynomial functions of a matrix, prove it for invertible (or diagonalisable) matrices and conclude by density.