MATRICES AND VECTOR SPACES
the right) bybwe obtain
a†b=(a∗ 1 a∗ 2 ···a∗N)
b 1
b 2
..
.
bN
=∑Ni=1a∗ibi, (8.42)which is the expression for the inner product〈a|b〉in that basis. We note that for
real vectors (8.42) reduces toaTb=
∑N
i=1aibi.
If the basiseiisnotorthonormal, so that, in general,〈ei|ej〉=Gij=δij,then, from (8.18), the scalar product ofaandbin terms of their components with
respect to this basis is given by
〈a|b〉=∑Ni=1∑Nj=1a∗iGijbj=a†Gb,whereGis theN×Nmatrix with elementsGij.
8.8 The trace of a matrixFor a given matrixA, in the previous two sections we have considered various
other matrices that can be derived from it. However, sometimes one wishes to
derive a single number from a matrix. The simplest example is thetrace(orspur)
of a square matrix, which is denoted by TrA. This quantity is defined as the sum
of the diagonal elements of the matrix,
TrA=A 11 +A 22 +···+ANN=∑Ni=1Aii. (8.43)It is clear that taking the trace is a linear operation so that, for example,
Tr(A±B)=TrA±TrB.A very useful property of traces is that the trace of the product of two matricesis independent of the order of their multiplication; this results holds whether or
not the matrices commute and is proved as follows:
TrAB=∑Ni=1(AB)ii=∑Ni=1∑Nj=1AijBji=∑Ni=1∑Nj=1BjiAij=∑Nj=1(BA)jj=TrBA.
(8.44)The result can be extended to the product of several matrices. For example, from
(8.44), we immediately find
TrABC=TrBCA=TrCAB,