TheoremBase

Each identity is obtained by writing the trace as the sum of diagonal entries and using linearity and interchange of finite sums.

Proof

Each result cited is universally quantified over the data in its own statement.

Conventions. We work in Metric Spaces: Balls, the Metric Topology, and the Real and Complex Numbers as Metric Spaces; R\mathbb{R} is an ordered field by The Real Numbers, with the Natural Numbers, Integers and Rationals Identified with Subsets of the Reals, and Completeness §reals, hence a field and a commutative ring by Ordered Fields §ordered-field and Fields §field; the associative, commutative and distributive laws of Commutative Rings §ring are used for real numbers without further mention. Addition on R\mathbb{R} is associative and commutative with neutral element 00, and for a∈Na\in\mathbb{N} a sum ∑k=1af(k)\sum_{k=1}^{a}f(k) is the sum over the set [a]={1,…,a}[a]=\{1,\dots,a\}, by Commutative Rings, Fields and Ordered Fields: Standard Notation §rings, Sums and Products over a Finite Set and over an Interval §intervals and Intervals of Natural Numbers §segment; [a][a] is finite by Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice §naturals. For a,b∈Na,b\in\mathbb{N}, maps f,g:[a]→Rf,g:[a]\to\mathbb{R} and c∈Rc\in\mathbb{R} we use: (S1) ∑k=1a(f(k)+g(k))=∑k=1af(k)+∑k=1ag(k)\sum_{k=1}^{a}(f(k)+g(k))=\sum_{k=1}^{a}f(k)+\sum_{k=1}^{a}g(k), by Iterated Operations over Finite Sets: Singletons, Disjoint Unions, Reindexing, Products of Sets, Termwise Combination, Homomorphisms and Intervals §termwise; (S2) c∑k=1af(k)=∑k=1ac f(k)c\sum_{k=1}^{a}f(k)=\sum_{k=1}^{a}c\,f(k), by Finite Sums in a Commutative Ring and in an Ordered Field: Distributivity, Differences, Telescoping, Constant Terms, Comparison and the Triangle Inequality §distributive; (S3) for h:[a]×[b]→Rh:[a]\times[b]\to\mathbb{R}, ∑k=1a∑l=1bh(k,l)=∑l=1b∑k=1ah(k,l)\sum_{k=1}^{a}\sum_{l=1}^{b}h(k,l)=\sum_{l=1}^{b}\sum_{k=1}^{a}h(k,l), by Iterated Operations over Finite Sets: Singletons, Disjoint Unions, Reindexing, Products of Sets, Termwise Combination, Homomorphisms and Intervals §product. Two sums whose terms agree at every index are equal, the term maps being equal by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §equality.

Maps given by expressions. Every term map summed below (such as i↦sMiii\mapsto sM_{ii} on [n][n], or j↦UijVjij\mapsto U_{ij}V_{ji} on [q][q] for fixed ii) and every map on a product of two index sets (such as (i,j)↦UijVji(i,j)\mapsto U_{ij}V_{ji} on [p]×[q][p]\times[q]) takes values in R\mathbb{R} and exists by Maps and Relations Given by Formulas §map, respectively Maps and Relations Given by Formulas §binary: its expression is built from entries, which are values of maps, and from sums and products in R\mathbb{R}, which are values of binary operations, and such expressions are predicative by Predicative Substitution of Values of Functions and Binary Operations, and Predicative Formulas for Negatives, Differences, Absolute Values, Distances, Reciprocals and Quotients in an Ordered Field §value-substitution, Predicative Substitution of Values of Functions and Binary Operations, and Predicative Formulas for Negatives, Differences, Absolute Values, Distances, Reciprocals and Quotients in an Ordered Field §operation-substitution and Predicativity of Expressions with Abbreviations, and Symbol-Free Forms of the Basic Defined Set Symbols §closure. Wherever an inner sum occurs as a function of an outer index, the computations below identify it termwise with a diagonal entry of a product matrix, which is a value of a map.

The trace is the sum of the diagonal entries, by Trace of a Real Square Matrix §trace; entries of sMsM, tNtN and sM+tNsM+tN are as in Real Matrices: the Set of Real m x n Matrices with Their Entrywise Operations §operations, of products as in Product of Real Matrices §product and of transposes as in Transpose of a Real Matrix §transpose.

Clause linearity. For i∈[n]i\in[n], (sM+tN)ii=(sM)ii+(tN)ii=sMii+tNii(sM+tN)_{ii}=(sM)_{ii}+(tN)_{ii}=sM_{ii}+tN_{ii}, so by (S1) and (S2)

tr⁡(sM+tN)=∑i=1n(sMii+tNii)=s∑i=1nMii+t∑i=1nNii=str⁡(M)+ttr⁡(N).\operatorname{tr}(sM+tN)=\sum_{i=1}^{n}(sM_{ii}+tN_{ii})=s\sum_{i=1}^{n}M_{ii}+t\sum_{i=1}^{n}N_{ii}=s\operatorname{tr}(M)+t\operatorname{tr}(N).

Clause transpose. M⊤∈Mn(R)M^{\top}\in\mathcal{M}_{n}(\mathbb{R}) and (M⊤)ii=Mii(M^{\top})_{ii}=M_{ii} for i∈[n]i\in[n], so tr⁡(M⊤)=∑i=1nMii=tr⁡(M)\operatorname{tr}(M^{\top})=\sum_{i=1}^{n}M_{ii}=\operatorname{tr}(M).

Clause cyclic. Here UV∈Mp(R)UV\in\mathcal{M}_{p}(\mathbb{R}) and VU∈Mq(R)VU\in\mathcal{M}_{q}(\mathbb{R}). By (S3),

tr⁡(UV)=∑i=1p∑j=1qUijVji=∑j=1q∑i=1pVjiUij=∑j=1q(VU)jj=tr⁡(VU).\operatorname{tr}(UV)=\sum_{i=1}^{p}\sum_{j=1}^{q}U_{ij}V_{ji}=\sum_{j=1}^{q}\sum_{i=1}^{p}V_{ji}U_{ij}=\sum_{j=1}^{q}(VU)_{jj}=\operatorname{tr}(VU).

Clause entrywise. Here U⊤,V⊤∈Mq×p(R)U^{\top},V^{\top}\in\mathcal{M}_{q\times p}(\mathbb{R}), U⊤V∈Mq(R)U^{\top}V\in\mathcal{M}_{q}(\mathbb{R}) and UV⊤∈Mp(R)UV^{\top}\in\mathcal{M}_{p}(\mathbb{R}), with (U⊤)ji=Uij(U^{\top})_{ji}=U_{ij} and (V⊤)ji=Vij(V^{\top})_{ji}=V_{ij} for i∈[p]i\in[p] and j∈[q]j\in[q]. By (S3),

tr⁡(U⊤V)=∑j=1q∑i=1p(U⊤)jiVij=∑j=1q∑i=1pUijVij=∑i=1p∑j=1qUijVij,\operatorname{tr}(U^{\top}V)=\sum_{j=1}^{q}\sum_{i=1}^{p}(U^{\top})_{ji}V_{ij}=\sum_{j=1}^{q}\sum_{i=1}^{p}U_{ij}V_{ij}=\sum_{i=1}^{p}\sum_{j=1}^{q}U_{ij}V_{ij}, tr⁡(UV⊤)=∑i=1p∑j=1qUij(V⊤)ji=∑i=1p∑j=1qUijVij.\operatorname{tr}(UV^{\top})=\sum_{i=1}^{p}\sum_{j=1}^{q}U_{ij}(V^{\top})_{ji}=\sum_{i=1}^{p}\sum_{j=1}^{q}U_{ij}V_{ij}.

Citations

Loading…

Dependencies

Uses0

Loading…

Comments

Log in to comment.

Loading…