Linear Algebra

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

  1. Read the main-diagonal entries a and d.
  2. Add them: tr(A) = a + d.

Example

Find the trace of [[5, 2], [−1, 3]].

  1. Diagonal entries: 5 and 3.
  2. Trace = 5 + 3 = 8.

Answer: 8

Loading drills…