Define trace of a matrix.
In a square matrix, the sum of elements of the principal diagonal is called the ‘trace of a matrix’. We denote the trace of the matrix A by ‘tr A’.
Example : If A =⎡⎢⎣114267045⎤⎥⎦ , then tr A = 1 + 6 + 5 = 12.