The two square products can have different sizes, but their matrix traces are both the same finite double sum:Interchanging two finite sums and commuting their scalar factors is valid over the real numbers. No commutation of the matrix products themselves is asserted. This proves the cyclic property of the trace in the rectangular-factor case.
Let . If , the matrix is zero and the identity is immediate. Otherwise choose the rank factorization from part b. The column space of is the image of .
An idempotent matrix acts as the identity on its image: if , then . Applying this to each column of gives . Substituting yields . Since has full column rank, the represented map is injective, so each column of is zero. Thus .
Now the rectangular cyclic property of the trace givesThis proves that the trace of an idempotent equals its rank using the supplied factorization method. Orthogonality of the projection is unnecessary: the argument applies to every real idempotent matrix.
Similarity invariance of trace Created 2026-10-20 Updated 2026-10-25
For an invertible matrix , the cyclic property of the trace gives . Thus the diagonal sum defining the trace does not depend on the choice of basis for an endomorphism. Cyclic permutation of factors is valid inside a trace; arbitrary permutation of factors need not be.
Trace of a commutator 2026-10-25
For linear maps on a finite-dimensional vector space, the cyclic property of the trace gives . In matrix entries both traces are after exchanging indices. Thus the trace of a finite-dimensional Lie algebra representation vanishes on the derived algebra. In particular, for a perfect Lie algebra, every representing matrix has zero trace.