[Math] Sum of eigenvalues of a symmetric matrix

eigenvalues-eigenvectorsmatrices

Problem to calculate the sum of eigenvalues of a matrix:

$$ \begin{pmatrix}
1 & 1 & 3 \\
1 & 5 & 1 \\
3 & 1 & 1 \\
\end{pmatrix}$$

I can calculate the eigenvalues by using the characteristic equation and then add them up. However, the given hint for this problem was that the sum of eigenvalues is the sum of diagonal elements, making this a $10$ sec problem.

So I am wondering if all symmetric matrices have this property (sum of eigenvalues of a symmetric matrix is the sum of its diagonal elements)?

But I couldn't find such property mentioned online or in the book.

I tried with a few symmetric matrices on wolframalpha and it seems to be true.

Please help to clarify this doubt.

Best Answer

The sum of the eigenvalues is just the sum of the roots of the characteristic polynomial, hence it is encoded in a coefficient of such polynomial by Viete's theorem. Such coefficient is just the sum of the diagonal entries of the matrix, hence the sum of the eigenvalues equals the sum of the diagonal entries for any matrix.

Related Question