Maths WorkshopMaths problems with full solutions
Exercise 1341Topology › Topology of Mn(ℝ) › Applications and the case n = 2L3Added 6 Nov 2026

det(I + AB) = det(I + BA) by density

#density#determinant#polynomial identity

Statement

Let A,B∈Mn(R)A,B\in M_n(\mathbb{R}). Prove that det⁡(I+AB)=det⁡(I+BA)\det(I+AB)=\det(I+BA).

Hint

Treat first the case where AA is invertible, then use the fact that GLn(R)GL_n(\mathbb{R}) is dense in Mn(R)M_n(\mathbb{R}).

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: AA invertible. Then
A(I+BA)A−1=AA−1+ABAA−1=I+AB.A(I+BA)A^{-1}=A A^{-1}+ABAA^{-1}=I+AB.
So I+ABI+AB and I+BAI+BA are conjugate, hence have the same determinant (because det⁡(PXP−1)=det⁡X\det(PXP^{-1})=\det X).

Step 2: density. Fix BB. The two functions
f(A)=det⁡(I+AB),g(A)=det⁡(I+BA)f(A)=\det(I+AB),\qquad g(A)=\det(I+BA)
are polynomials in the entries of AA (a determinant is a polynomial in the entries, and the entries of I+ABI+AB are polynomials in those of AA). In particular they are continuous on Mn(R)M_n(\mathbb{R}).

For an arbitrary AA, the matrices Aε=A+εIA_\varepsilon=A+\varepsilon I are invertible for all but finitely many ε\varepsilon (their determinant is a nonzero polynomial in ε\varepsilon of degree nn, equal to χ−A(ε)\chi_{-A}(\varepsilon) up to sign). Hence f(Aε)=g(Aε)f(A_\varepsilon)=g(A_\varepsilon) for small ε≠0\varepsilon\ne0, and letting ε→0\varepsilon\to0 gives f(A)=g(A)f(A)=g(A).

Remark. The same proof gives the more general identity det⁡(λI+AB)=det⁡(λI+BA)\det(\lambda I+AB)=\det(\lambda I+BA), and later the equality of the characteristic polynomials of ABAB and BABA. Note that it also holds for rectangular matrices A∈Mn,mA\in M_{n,m}, B∈Mm,nB\in M_{m,n} in the form det⁡(In+AB)=det⁡(Im+BA)\det(I_n+AB)=\det(I_m+BA), 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.