PROJECTENGRAM

TRACE OF A MATRIX

Trace of a Matrix

Tags: #◇CSMATH2 #◇Linear Algebra #◇Computational Mathematics #◇Matrices #◇Matrix Operations #◇Computer Science #◇Vector Spaces #◇Linear Transformations


◇Overview

Definition: The trace of a square matrix A, denoted by tr(A), is the sum of its main diagonal entries. (Handout 2, Page 3)

◇Key Concepts

Example Properties of the Trace

◇Details / Theory

Definition: The trace of a square matrix A, denoted by tr(A), is the sum of its main diagonal entries. (Handout 2, Page 3)
tr(A)=i=1∑n​aii​=a11​+a22​+⋯+ann​ Example: For A=[2​1​0 −1​4​2 10​5​3​], tr(A)=2+4+3=9. Properties of the Trace: If A and B are n×n matrices and c is a scalar: (Handout 2, Page 3 for first two; others are common properties)

  1. tr(A+B)=tr(A)+tr(B)

  2. tr(AB)=tr(BA)
    Personal Note: This is a very useful property, especially since AB=BA in general.

  3. tr(cA)=c⋅tr(A)

  4. tr(A⊤)=tr(A)

◇Common Pitfalls

Trace is only defined for square matrices. tr(AB)=tr(BA)\text{tr}(AB) = \text{tr}(BA) but tr(AB)≠tr(A)⋅tr(B)\text{tr}(AB) \neq \text{tr}(A) \cdot \text{tr}(B) in general.

◇Summary

TL;DR — tr(A)=∑aii\text{tr}(A) = \sum a_{ii} (sum of diagonal entries). Linear, cyclic (tr(AB)=tr(BA)\text{tr}(AB) = \text{tr}(BA)), and equals the sum of eigenvalues.

Related: Source / Reference:

◇References & Navigation

CONFIRMATION // 理解度の確認

ACTIVE RECALL VERIFICATION

Select an answer to verify conceptual comprehension and reveal the technical rationale.

Q1

How is the trace of a square matrix AA, denoted tr(A)\text{tr}(A), mathematically calculated?

Q2

Which of the following is a true property regarding the trace operation?

Q3

Does the trace operation distribute over matrix multiplication, meaning does tr(AB)=tr(A)⋅tr(B)\text{tr}(AB) = \text{tr}(A) \cdot \text{tr}(B)?