15.4 Contraction and the Trace
Chapter 2 defined the trace of an operator by
choosing a basis, writing down the matrix, and adding
the diagonal entries; it then proved that the answer
does not depend on the choice (Definition 4.5.2).
That is a correct definition and an unsatisfying one. It
says how to compute the number, not what the number is,
and the independence of the basis arrives afterwards, as
a theorem about similar matrices. Section 03 offers a
way out. An operator on
15.4.1. Evaluation, made linear
The dual space was invented so that its elements
could eat vectors. The eating is a function of two
arguments,
Contraction is the evaluation pairing, turned into a single linear map by the tensor product.
Let
Well-definedness. The pairing
Examples.
- In coordinates. Let
, let be a basis and its dual basis (Definition 5.1.3), so . A general is by Theorem 15.2.5, and The contraction sums the coefficients whose two indices agree. That is a diagonal sum, which is the first hint of what is coming. - The smallest case. If
, pick and let be dual to it. Every element of is , and . So is the isomorphism . Degenerate, and worth seeing: the contraction is the only thing that can happen here. - A functional times a vector, in
. With , and , , the dot product. Chapter 11’s inner product on is this contraction composed with the identification of with its dual — which is extra structure, and is why the dot product is not a contraction of .
Non-example by minimal change.
Replace
Why one upper slot and one lower
slot. Contraction needs a functional
and a vector: the functional supplies the
mouth. There is no analogous map
Warning. There is no
canonical contraction of two vectors. A linear
map
15.4.2. Contraction is the trace
We can now say what the trace is.
Let
Idea. Both sides are linear in
Proof. Both
Write
What has changed. Chapter 2’s
definition named a basis and then had to prove that the
answer survived a change of basis, using Theorem 4.2.5.
Here nothing was named. The map
Two consequences come free. First, the trace of a rank-one map.
Let
Proof. The first claim was proved
inside Theorem 15.4.1. For the
second,
Second, the promise made in §03: the trace of a
tensor product of maps multiplies, and now we can see
why. The key is that a functional on
Let
Proof. For fixed
Let
Let
Proof. Both
For such
So the trace multiplies because evaluation
multiplies: a functional on a tensor product is a
product of functionals, and contraction is evaluation.
Chapter 8 proved this by summing
15.4.3. Tensors with many slots
Contraction is not confined to one upper and one
lower slot; it can be applied to a chosen pair inside a
tensor with any number of them. First we name those
tensors. Write
Let
If
: scalars. and : vectors and functionals. : operators, by Theorem 15.3.9 together with the swap of Exercise (C3: Reproving the swap), which sends to . by Proposition 15.4.3, and a functional on is a bilinear form on by Definition 15.2.1. So a type tensor is exactly a bilinear form — the whole subject matter of Chapter 14.
Warning. The word “rank” is
overloaded here. The rank of a tensor in the
sense of Definition 15.4.2 is the
number of slots,
Now the general contraction. Contracting slot
Let
Well-definedness. The right-hand
side is multilinear in the
Warning. Which slots you
contract matters. Let
Quick check. Let
Solution.
Index notation, in the next section, makes contraction visibly what it looks like in physics: set an upper index equal to a lower one and sum.
15.4.4. Exercises
A. Check your understanding
- (a) Define the
contraction
, and say what makes it well defined. - (b) State the relation between the trace and the contraction, with its hypothesis.
- (c) Explain why
there is no canonical linear map
. - (d) For
, what is ? - (e) True or false:
for
, the four contractions all agree. Justify your answer.
Solution.
(a)
is the unique linear map with (Definition 15.4.1). It is well defined because is bilinear, so Definition 15.2.1 produces exactly one such linear map.(b) If
is finite-dimensional, then for all , where is the isomorphism of Theorem 15.3.9 (Theorem 15.4.1).(c) Such a map is the same thing as a bilinear form on
, and a vector space has many bilinear forms with none distinguished; each basis produces a different one. Contraction works only because comes with the evaluation pairing built in.(d)
.(e) False. Definition 15.4.3’s warning gives
with and .
B. Practice
Let
- (a) Write the matrix
of the operator
corresponding to , in the basis . - (b) Compute
from Definition 15.4.3, and check it against . - (c) Compute
without writing down a matrix.
Solution.
(a) The tensor
corresponds to the operator , whose matrix is the matrix unit (Theorem 15.3.9). Adding up,(b) Here
and the diagonal of the matrix in (a) sums to .(c) By Corollary 15.4.4,
.
Let
Solution. Both lie in
Let
- (a)
implies . - (b)
for all , . - (c) Every element of
is a bilinear form on , and conversely. - (d)
for , . - (e)
is surjective whenever .
Solution.
(a) Fails for
. With a basis and its dual, (Proposition 15.2.8) but . Contraction is a functional, not an injection; its kernel has dimension .(b) Holds: Corollary 15.4.2.
(c) Holds. By Proposition 15.4.3,
, and by Definition 15.2.1 the linear maps correspond exactly to the bilinear maps , which are the bilinear forms of Definition 14.1.1.(d) Holds: both equal
by Corollary 15.4.4, the two products of scalars being equal.(e) Holds. Take
; by Theorem 5.1.5 there is with , so for every .
C. Going deeper
Let
- (a) Prove that
for all and . Recall that means first , then . - (b) Hence compute
, and observe that the answer is unchanged when and are exchanged. - (c) Deduce that
for all .
Solution.
(a) Both sides are operators on
, so evaluate at an arbitrary . Applying first gives , and then using linearity of . The right side gives , the same scalar times the same vector. Hence the two operators agree at every .(b) By (a) and Corollary 15.4.2,
Exchanging with turns this into , which is the same product of scalars.(c) The maps
and are bilinear on , and the rank-one maps span (as is onto and simple tensors span, by Proposition 15.2.4). By (b) the two maps agree on such pairs, hence everywhere.
Let
- (a) Prove that
for every basis of with dual basis . (This tensor is basis-free, though each expression for it is not.) - (b) Prove that
in . - (c) Over
with , find a tensor in with , and relate this to Chapter 4’s observation that the trace does not determine the rank of a projection over .
Solution.
(a) By Corollary 15.4.2,
for any basis and its dual basis. Since is injective (Theorem 15.3.9), all these tensors are equal, and each equals .(b)
by Definition 5.1.3.(c) Take
. Then in , while because . Under these are the identity and the zero operator, both projections, of ranks and ; this is exactly Theorem 4.5.4’s warning that over a field of characteristic the integer cannot be recovered from . The contraction is faithful to the tensor, but the field can be too small for the resulting scalar to distinguish them.