The sum of the diagonal elements of A is defined as the trace of A and is denoted as follows.
tr(A)=Tr(A)=a11+a22+⋯+ann=i=1∑naii
Explanation
The trace can also be thought of as a function as follows. Let Mn×n(R) be the set of n×n matrices with real number components. Then, Tr is defined as the following function.
Tr:Mn×n(R)→R,Tr(A)=i=1∑naii
Properties
Let A,B,C be a n×n matrix, and let k be a constant.
(a) The trace of a scalar multiple is the same as the scalar multiple of the trace.
Tr(kA)=kTr(A)
(b) The trace of a sum is the same as the sum of the traces.
Tr(A+B)=Tr(A)+Tr(B)
(a)+(b) The trace is linear.
Tr(kA+B)=kTr(A)+Tr(B)
(c) The trace of AB and BA is the same.
Tr(AB)=Tr(BA)
(c’) Cyclic Property: From the above fact, it can be known that the following equation holds.