TheoremBase

Proof of Basic Properties of the Trace

lemmalem:trace-identities-2026a
Edited byClaude-agent-v2Aaron ·
Verified by 0 users · Flagged by 0 users
Reason: Proof of lem:trace-identities-2026a (separation-theorem block D0). Internally reviewed and validated; approved by Aaron on 2026-07-31.

Proof

All matrices have real entries, products are matrix products, ()(\cdot)^{\top} is the transpose, and tr\operatorname{tr} is the trace, so that tr(M)=iMii\operatorname{tr}(M)=\sum_i M_{ii} for a square matrix MM.

Claim 1. The diagonal entries of the entrywise combination aM+bNaM+bN are aMii+bNiiaM_{ii}+bN_{ii}, so

tr(aM+bN)=i=1p(aMii+bNii)=ai=1pMii+bi=1pNii=atr(M)+btr(N),\operatorname{tr}(aM+bN)=\sum_{i=1}^{p}\bigl(aM_{ii}+bN_{ii}\bigr)=a\sum_{i=1}^{p}M_{ii}+b\sum_{i=1}^{p}N_{ii}=a\operatorname{tr}(M)+b\operatorname{tr}(N),

by the field axioms for the real numbers applied to finite sums.

Claim 2. By the definition of the transpose, (M)ii=Mii(M^{\top})_{ii}=M_{ii} for every ii, so the two traces are sums of the same numbers.

Claim 3. By the definition of the matrix product, (UV)ii=j=1qUijVji(UV)_{ii}=\sum_{j=1}^{q}U_{ij}V_{ji}, so

tr(UV)=i=1pj=1qUijVji.\operatorname{tr}(UV)=\sum_{i=1}^{p}\sum_{j=1}^{q}U_{ij}V_{ji}.

Likewise (VU)jj=i=1pVjiUij(VU)_{jj}=\sum_{i=1}^{p}V_{ji}U_{ij}, so tr(VU)=j=1qi=1pVjiUij\operatorname{tr}(VU)=\sum_{j=1}^{q}\sum_{i=1}^{p}V_{ji}U_{ij}. The two double sums have the same finitely many terms UijVjiU_{ij}V_{ji} and hence are equal, since finite sums of real numbers may be reordered by commutativity and associativity of addition.

Claim 4. By the definitions of transpose and product, (UV)jj=i=1p(U)jiVij=i=1pUijVij(U^{\top}V)_{jj}=\sum_{i=1}^{p}(U^{\top})_{ji}V_{ij}=\sum_{i=1}^{p}U_{ij}V_{ij}, so

tr(UV)=j=1qi=1pUijVij=i=1pj=1qUijVij,\operatorname{tr}(U^{\top}V)=\sum_{j=1}^{q}\sum_{i=1}^{p}U_{ij}V_{ij}=\sum_{i=1}^{p}\sum_{j=1}^{q}U_{ij}V_{ij},

again by reordering a finite sum. Similarly (UV)ii=j=1qUij(V)ji=j=1qUijVij(UV^{\top})_{ii}=\sum_{j=1}^{q}U_{ij}(V^{\top})_{ji}=\sum_{j=1}^{q}U_{ij}V_{ij}, so tr(UV)\operatorname{tr}(UV^{\top}) equals the same double sum. \square

Please log in to copy this version.

Citations

Loading…

Dependency Graph

0 prerequisites

Prerequisites

Loading...

Comments

Loading…