Algebra

Matrix Trace

A pupil follows highlighted tiles across the main diagonal of a grid.

Matrix Trace definition

The trace of a square matrix is the sum of the entries along its main diagonal.

In Spanish
traza de una matriz
Topic
Eigenvalues and changes of basis

Matrix Trace in a picture

Matrix Trace diagramFor rows (3, 8) and (1, 2), only the entries 3 and 2 contribute.Matrix rows: (3, 8), (1, 2)Locate the main diagonalDiagonal entries: 3 and 2Ignore off-diagonal entriesTrace = 3 + 2 = 5Add the selected entries
For rows (3, 8) and (1, 2), only the entries 3 and 2 contribute.

How it works

For an n × n matrix, add a₁₁ through aₙₙ. Entries off the diagonal do not enter the sum. The trace stays the same under similarity. Over the complex numbers it also equals the sum of the eigenvalues counted with algebraic multiplicity.

Worked examples

Find the trace of diag(2, −4, 7).

2 − 4 + 7 = 5.

Find the trace of the 4 × 4 identity matrix.

4.

A 3 × 3 matrix has eigenvalues 2, 2, and −1. Find its trace.

3.

Common mistake

Add diagonal entries. The determinant uses a different calculation.

Quick check

Which entries are added?

Show answer

The main-diagonal entries.

Does trace change under similarity?

Show answer

No.

What is the trace of a square zero matrix?

Show answer

Zero.

Sources

Flashcard

Matrix Trace

Reveal the definition

The trace of a square matrix is the sum of the entries along its main diagonal.

Effortless Math. “Matrix Trace.” Math Dictionary.