Trace (linear algebra)
Encyclopedia : T : TR : TRA : Trace (linear algebra)
In linear algebra, the trace of an n-by-n square matrix A is defined to be the sum of the elements on the main diagonal (the diagonal from the upper left to the lower right) of A, i.e.
- tr(A) = A1,1 + A2,2 + ... + An,n.
Properties
The trace is a linear map. That is,
- tr(A + B) = tr(A) + tr(B)
- tr(rA) = r tr(A)
Since the principal diagonal is not moved on transposition, a matrix and its transpose have the same trace:
- tr(A) = tr(AT).
- tr(AB) = tr(BA).
We prove this by invoking the definition of matrix multiplication:
- [tr(AB) = \sum_^n (AB)_ = \sum_^n \sum_^m A_ B_ = \sum_^m \sum_^n B_ A_ = \sum_^m (BA)_ = tr(BA)]
- tr(ABC) = tr(CAB) = tr(BCA).
If A, B, and C are square matrices of the same dimension and are symmetric, then the traces of their products are invariant not only under cyclic permutations but under all permutations, i.e.,
- tr(ABC) = tr(CAB) = tr(BCA) = tr(BAC) = tr(CBA) = tr(ACB).
- tr(P−1AP) = tr(PP−1A) = tr(A)
Eigenvalue relationships
If A is a square n-by-n matrix with real or complex entries and if λ1,...,λn are the (complex) eigenvalues of A (listed according to their algebraic multiplicities), then
- tr(A) = ∑ λi.
From the connection between the trace and the eigenvalues, one can derive a connection between the trace function, the matrix exponential function, and the determinant:
- det(exp(A)) = exp(tr(A)).
Other ideas and applications
If one imagines that the matrix A describes a water flow, in the sense that for every x in Rn, the vector Ax represents the velocity of the water at the location x, then the trace of A can be interpreted as follows: given any region U in Rn, the net flow of water out of U is given by tr(A)· vol(U), where vol(U) is the volume of U. See divergence.
The trace is used to define characters of group representations. Given two representations A(x) and B(x), they are equivalent if tr A(x) = tr B(x).
The trace also plays a central role in the distribution of quadratic forms.
A matrix whose trace is zero is said to be traceless or tracefree.
Inner product
For an m-by-n matrix A with complex (or real) entries, we have
- tr(A*A) ≥ 0
- <A, B> = tr(A*B)
If m=n then the norm induced by the above inner product is called the Frobenius norm of a square matrix. Indeed it is simply the Euclidean norm if the matrix is considered as a vector of length n2.
Derivatives
In optimization and signal processing, the derivatives of trace is important to obtain the optimal solution or more analysis. We can find many formulas from [The Matrix Cookbook] written by [Kaare Brandt Petersen]. The following are a few among them relating to the trace:
- [\frac(\mathbf X) = \mathbf I]
- [\frac(\mathbf A\mathbf X\mathbf B) = \mathbf A^T \mathbf B^T]
- [\frac(\mathbf A\mathbf X^T\mathbf B) = \mathbf B \mathbf A]
- [\frac(\mathbf A\mathbf X^k) = \sum_^(\mathbf X^r \mathbf A \mathbf X^)^T]
- [\frac(\mathbf X\mathbf X^H) = \mathbf X^*]
- [\frac(\mathbf X\mathbf X^H) = \mathbf X]
- [\nabla(\mathbf X\mathbf X^H) = \left(\frac(\mathbf X)} + i \frac(\mathbf X)}\right) (\mathbf X\mathbf X^H)= 2\,\frac(\mathbf X\mathbf X^H) = 2\,\mathbf X .]
Generalization
The concept of trace of a matrix is generalised to the trace class of bounded linear operators on Hilbert spaces.
Partial trace is another generalization of the trace.
See also
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
