How to solve
The trace of a square matrix is the sum of its main-diagonal entries. For a 2×2 matrix [[a, b], [c, d]] that is simply a + d — independent of the off-diagonal entries.
Steps
- Read the main-diagonal entries a and d.
- Add them: tr(A) = a + d.
Example
Find the trace of [[5, 2], [−1, 3]].
- Diagonal entries: 5 and 3.
- Trace = 5 + 3 = 8.
Answer: 8
Loading drills…