Trace of a Matrix

The trace of an n × n square matrix A is one of the simplest and most useful quantities in linear algebra. It is obtained by adding together the entries on the matrix's main diagonal.

The Main Diagonal of a Square Matrix

In mathematical notation, the trace is defined as:

The Formula for the Trace of a Matrix

The trace is usually denoted by tr(A).

Example

Consider the following 3 × 3 matrix:

The Original Matrix

The entries on the main diagonal are 1, 5, and 9.

To find the trace, add these three values:

Example Calculation of the Matrix Trace

Therefore, the trace of matrix A is equal to 15.

Why Is the Trace Important?

The trace appears throughout linear algebra and its applications. It plays an important role in matrix theory, eigenvalue analysis, differential equations, statistics, quantum mechanics, and many other areas of mathematics and physics.

One particularly important result is that the trace of a matrix is equal to the sum of its eigenvalues, counted with their algebraic multiplicities.

Properties of the Trace

The trace satisfies several fundamental properties that make it a powerful mathematical tool.

  1. Scalar multiplication
    Multiplying a matrix by a scalar multiplies its trace by the same scalar:
    Scalar Multiplication Property of the Trace
  2. Additivity
    The trace of the sum of two matrices is equal to the sum of their traces:
    Additivity Property of the Trace

    Note. Together with the previous property, this shows that the trace is a linear functional on the vector space of square matrices.

  3. Invariance under transposition
    A matrix and its transpose always have the same trace:
    The Trace of a Matrix Equals the Trace of Its Transpose
  4. Cyclic invariance
    The trace of a product of matrices remains unchanged under cyclic permutations of the factors:
    Cyclic Invariance of the Trace

    Non-cyclic permutations. The trace is generally not preserved under arbitrary rearrangements of the factors. For example, tr(ACB) and tr(CBA) are not necessarily equal to tr(ABC), because these products are not obtained through a cyclic permutation.
    An Example of a Non-cyclic Permutation

Although the trace is easy to compute, it captures important information about a matrix and appears in many theoretical and practical applications throughout mathematics.

 

 
 

Please feel free to point out any errors or typos, or share suggestions to improve these notes. English isn't my first language, so if you notice any mistakes, let me know, and I'll be sure to fix them.

FacebookTwitterLinkedinLinkedin
knowledge base

Matrices (linear algebra)