Trace
High school
Consider a square matrix $A$, such as
\[A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}.\]The trace of $A$ is the sum of the entries of $A$ on the diagonal from the top-left corner to the bottom-right corner. For the matrix above, the diagonal entries are $1$, $5$, and $9$, so
\[\trace{A} = 1 + 5 + 9 = 15.\]
Undergraduate
Consider an $n \times n$ matrix $A = [a_{ij}]$. The trace of $A$ is the sum of its diagonal entries:
\[\trace{A} = a_{11} + a_{22} + \dots + a_{nn}.\]Examples
Worked examples
-
Value:
$\trace{A} = 0 + 0 = 0$
-
Value:
None
The matrix \(\begin{bmatrix} 1 & 3 & 5 \\ 0 & 2 & 4 \end{bmatrix}\) has no trace, because the matrix is $2 \times 3$, not square. -
Value:
$\trace{A} = 1 + 4 = 5$
-
Value:
$\trace{A} = 2 + 3 = 5$
Properties
- The trace of $A$ is the sum of its eigenvalues, counted with multiplicity.
- $\traceOf{A B} = \traceOf{B A}$, even though $A B \neq B A$ in general.
All definitions · All distinctions · All examples · Notation