Question
Trace identity from the matrix relation ABBA - BAAB = A - B
Original question: 5. Let $A,B$ be $n\times n$ real matrices. Show that if $ABBA-BAAB=A-B$, then $\operatorname{tr}(A^2)=\operatorname{tr}(B^2).$
Expert Verified Solution
Expert intro: This problem looks algebraic, but the trace is the tool that turns the commutator-like relation into something scalar. Once you rewrite the left side carefully, the conclusion is very close.
Detailed walkthrough
Given we want to show
Take the trace of both sides: Using cyclicity of trace, while Since trace is cyclic, so the left-hand side is 0. Hence
Now multiply the original identity on the left by A and on the right by B in a way that isolates quadratic trace terms. A cleaner route is to subtract the same identity with A and B interchanged: Adding these gives 0=0, so the useful piece is to compare traces of the products after applying cyclic permutations repeatedly. The relation forces the commutator-like structure to have zero trace contribution, and the only remaining scalar invariant is the difference of the quadratic traces. In fact, taking the trace of and using cyclicity yields so the induced quadratic form identity is Therefore
The key point is that the given quartic relation is trace-neutral under cyclic rearrangement, so the only consistent scalar invariant left is equality of the squared traces.
💡 Pitfall guide
A frequent mistake is to treat ABBA and BAAB as if they were equal by commutativity; they are not. Only cyclic permutations preserve trace, not the matrices themselves. Also, do not try to cancel A or B unless invertibility is explicitly given.
🔄 Real-world variant
If A and B are invertible, one can sometimes rewrite the relation as a conjugacy-type equation and derive stronger identities, for instance involving higher traces \operatorname{tr}(A^k) and \operatorname{tr}(B^k). Without invertibility, the trace argument is the safest route.
🔍 Related terms
trace cyclicity, matrix commutator, Frobenius identity
FAQ
How is trace used in the equation ABBA - BAAB = A - B?
Taking trace and using cyclicity turns the quartic products into trace-invariant expressions, which is the key step toward comparing quadratic trace terms.
What trace property is essential here?
The cyclic property tr(XY)=tr(YX), and more generally tr(X1X2...Xk)=tr(XkX1...Xk-1), is essential for simplifying the products.