Trace

The sum of diagonal entries of a square matrix, invariant under change of basis
Trace

Let FF be a field and let A=(aij)A=(a_{ij}) be an n×nn\times n matrix over FF. The trace of AA is

tr(A)=i=1naii. \operatorname{tr}(A)=\sum_{i=1}^n a_{ii}.

If TT is a on a finite-dimensional vector space, tr(T)\operatorname{tr}(T) is defined as the trace of any matrix representing TT in a basis; this is independent of the basis.

The trace is encoded in the : for an n×nn\times n matrix AA, the coefficient of tn1t^{n-1} in χA(t)\chi_A(t) is tr(A)-\operatorname{tr}(A). Over an algebraic closure, the trace is also the sum of the counted with algebraic multiplicity.

Examples:

  • tr(In)=n\operatorname{tr}(I_n)=n and tr(0)=0\operatorname{tr}(0)=0.
  • For A=(abcd)A=\begin{pmatrix}a&b\\ c&d\end{pmatrix}, tr(A)=a+d\operatorname{tr}(A)=a+d.
  • If PP is an idempotent projection (P2=PP^2=P), then tr(P)\operatorname{tr}(P) equals the dimension of its image (in finite dimensions).