Britannica Sources used in this answer

How is the trace of a square matrix found?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

In linear algebra, the trace of a square matrix is found by calculating the sum of the elements located on its main diagonal, which runs from the upper left to the lower right of the matrix.1

If A is a square matrix of order n, its trace is the sum of the diagonal elements aii for i=1,2,…,n.1