In mathematics, a trace is a property of a matrix and of a linear operator on a vector space. The trace plays an important role in the representation theory of groups (the collection of traces is the character of the representation) and in statistical thermodynamics (the trace of a thermodynamic observable times the density operator is the thermodynamic average of the observable).
Definition for matrices
Let A be an n × n matrix; its trace is defined by
where Aii is the ith diagonal element of A.
Example
Theorem.
Let A and B be square finite-sized matrices, then Tr(A B) = Tr (B A).
Proof
Theorem
The trace of a matrix is invariant under a similarity transformation Tr(B−1A B) = Tr(A).
Proof
where we used B B−1 = E (the identity matrix).
Other properties of traces are (all matrices are n × n matrices):
Definition for a linear operator on a finite-dimensional vector space
Let Vn be an n-dimensional vector space (also known as linear space).
Let be a linear operator (also known as linear map) on this space,
- .
Let
be a basis for Vn, then the matrix of with respect to this basis is given by
Definition: The trace of the linear operator is the trace of the matrix of the operator in any basis. This definition is possible since the trace is independent of the choice of basis.
We prove that a trace of an operator does not depend on choice of basis. Consider two bases connected by the non-singular matrix B (a basis transformation matrix),
Above we introduced the matrix A of in the basis vi. Write A' for its matrix in the basis wi
It is not difficult to prove that
from which follows that the trace of in both bases is equal.
Theorem
Let a linear operator on Vn have n linearly independent eigenvectors,
Then its trace is the sum of the eigenvalues
Proof
The matrix of in basis of its eigenvectors is
where δji is the Kronecker delta.
Note. To avoid misunderstanding: not all linear operators on Vn possess n linearly independent eigenvectors.
Finite-dimensional inner product space
When the n-dimensional linear space Vn is equipped with a positive definite inner product, an expression for the matrix of a linear operator and its trace can be given. These expressions can be generalized to inner product spaces of infinite dimension and are of great importance in quantum mechanics.
Let
be an orthonormal basis for Vn. The symbol δij stands for the Kronecker delta. The matrix of with respect to this basis is given by
Project with vk:
Hence
Infinite-dimensional space
The trace of an operator on an infinite-dimensional linear space is not well-defined for all operators on all infinite-dimensional spaces. Even if we restrict our attention to infinite-dimensional spaces with countable bases, the generalization of the definition is not always possible. For instance, we saw above that the trace of the identity operator on a finite-dimensional space is equal to the dimension of the space, so that a simple extension of the definition leads to a trace of the identity operator that is infinite (i.e., not defined).
We consider an infinite-dimensional space with an inner product (a Hilbert space). Let be a linear operator on this space with the property
where {vi} is an orthonormal basis of the space. Note that the operator
is self-adjoint and positive definite, i.e.,
When the following sum converges,
one may define the trace of by
i.e., it can be shown that this summation converges as well. As in the finite-dimensional case it can be proved that the trace is independent of the choice of (orthonormal) basis,
for any orthonormal basis {wi}. Operators that have a well-defined trace are called "trace class operators" or "nuclear operators".
An important example is the exponential of the self-adjoint operator H,
The operator H being self-adjoint has only real eigenvalues εi. When H is bounded from below (its lowest eigenvalue is finite) then the sum
converges. This trace is the canonical partition function of statistical physics.
Reference
N. I Achieser and I. M. Glasmann, Theorie der linearen Operatoren im Hilbert Raum, Translated from the Russian by H. Baumgärtel, Verlag Harri Deutsch, Thun (1977). ISBN 3871443263