Sum the diagonal entries
Compute the trace of a small square matrix from its diagonal. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.
For a square matrix:
That is the whole definition. It reads entries out of, and everything off the diagonal is irrelevant.
Two facts make it more than bookkeeping:
- - equals the sum of the eigenvalues of;
- - for any shapes that allow both products.
The first is why it appears in every eigenvalue check. The second is the subject of the next skill.
A rectangular matrix has no trace. The definition needs and one of the two indices runs out, so there is no main diagonal at all.
Write's characteristic polynomial as. Expanded, it starts
The middle coefficient is the trace: when you expand the determinant along permutations, the only terms that contribute to the second-highest power of are the ones keeping every diagonal factor, and those are exactly.
On the other side, the characteristic polynomial factors as, and the coefficient of there is the sum of the eigenvalues. Two expressions for one polynomial means those coefficients are equal, so the trace is the eigenvalue sum.
For a this reduces to something you can use in one line: and.
..
The eigenvalues satisfy, so they are. Both are irrational and neither is an entry — which is the point: the trace and the determinant are combinations of the entries, not entries.
Now use the trace to find a missing eigenvalue:
If one eigenvalue is, the other must be. Check it:, but, so was not an eigenvalue. The trace step is a consequence of the eigenvalues being right, never a way to fix a wrong one.
- Compute the trace of a small square matrix from its diagonal
- Explain why a rectangular matrix has no trace
- Use the trace with the determinant to recover the second eigenvalue of a 2x2
is with and eigenvalues,,, and one more. What is the fourth eigenvalue? And what is?
Answers
The four eigenvalues sum to, and, so the fourth eigenvalue is.
is the sum of the squared eigenvalues:. The trace of a power is the power of the eigenvalues summed, not the square of the trace — agrees here only because the eigenvalues happen to give the same number, which is a coincidence worth not relying on.