Matrix Trace
The trace of a square matrix A, written tr(A), is the sum of the entries on its main diagonal. It equals the sum of A's eigenvalues and is a fundamental invariant under similarity transforms.
Frequently asked questions
Why is the trace useful?
It equals the sum of the eigenvalues, is invariant under change of basis (tr(P⁻¹AP) = tr(A)) and shows up in many identities, e.g. tr(AB) = tr(BA).
Does the trace require a square matrix?
Yes. The trace is the sum of diagonal entries, so it is only defined when the number of rows equals the number of columns.
Is the trace linear?
Yes. tr(A + B) = tr(A) + tr(B) and tr(cA) = c·tr(A) for any scalar c.