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

det(A² + B²) is positive for commuting real matrices

#complexification#determinant#commuting matrices

Statement

Let A,B∈Mn(R)A,B\in M_n(\mathbb{R}) with AB=BAAB=BA. Prove that det⁡(A2+B2)≥0\det(A^2+B^2)\ge0.

Hint

Factor A2+B2A^2+B^2 over the complex numbers: A2+B2=(A+iB)(A−iB)A^2+B^2=(A+iB)(A-iB).

Show solutionHide solution

Solution

Idea. Over R\mathbb{R}, A2+B2A^2+B^2 does not factor, but over C\mathbb{C} it does, provided AA and BB commute. The two factors are complex conjugates, so their determinants are conjugate and multiply to a modulus squared.

Step 1: the factorisation. Regard A,BA,B as matrices in Mn(C)M_n(\mathbb{C}). Then
(A+iB)(A−iB)=A2−iAB+iBA+B2=A2+B2,(A+iB)(A-iB)=A^2-iAB+iBA+B^2=A^2+B^2,
because −iAB+iBA=−i(AB−BA)=0-iAB+iBA=-i(AB-BA)=0. This is where the commutation is used.

Step 2: determinants. Multiplicativity of det⁡\det over C\mathbb{C} gives
det⁡(A2+B2)=det⁡(A+iB) det⁡(A−iB).\det(A^2+B^2)=\det(A+iB)\,\det(A-iB).

Step 3: conjugates. Since AA and BB have real entries, the matrix A−iBA-iB is the entrywise complex conjugate of A+iBA+iB. The determinant is a polynomial with real (integer) coefficients in the entries, so det⁡(Mˉ)=det⁡M‾\det(\bar M)=\overline{\det M}. Hence
det⁡(A2+B2)=det⁡(A+iB)det⁡(A+iB)‾=∣det⁡(A+iB)∣2≥0.\det(A^2+B^2)=\det(A+iB)\overline{\det(A+iB)}=|\det(A+iB)|^2\ge0.

Remark. Without commutation the statement is false. For example, for n=2n=2 take A=(0100)A=\begin{pmatrix}0&1\\0&0\end{pmatrix} and B=(0010)B=\begin{pmatrix}0&0\\1&0\end{pmatrix}: then A2=B2=0A^2=B^2=0 and the determinant is 00, which does not contradict; but with A=(100−1)A=\begin{pmatrix}1&0\\0&-1\end{pmatrix}, B=(0110)B=\begin{pmatrix}0&1\\1&0\end{pmatrix} one gets A2+B2=2IA^2+B^2=2I, det⁡=4≥0\det=4\ge0 again. Counterexamples exist for n≥2n\ge2 (e.g. suitable non-commuting nilpotent-plus-diagonal pairs), but the point of the problem is only that the proof breaks at Step 1.

Lesson. Complexify to factor sums of squares; real matrices produce conjugate factors, hence a non-negative product.