Currently checking the homework of an engineering freshman (this job gets assigned to math students at my university, I'm an undergrad math student myself) and the students were supposed to calculate the eigenvalues of a (symmetric) matrix. However, instead of using the usual means (Laplace expansion or Sarrus' rule) the student used a formula, which I've never encountered and which he, unfortunately, didn't write down explicitly, but the answer is correct. Maybe one of you can explain the formula that was used in this example, I'd like to understand why this works.
The matrix given was
$A=\begin{pmatrix} 3&-1&1\\-1&3&1\\1&1&3 \end{pmatrix}$
and the first expression on his homework sheet reads
$\chi_A(\lambda)=\lambda^3-9\lambda^2+(8+8+8)\lambda-\det A=\lambda^3-9\lambda^2+24\lambda-16$.
The answer is correct, but I don't see where he got that coefficient of $8+8+8$ from. I tried to do some Google research on that topic, but I couldn't find anything.
I do know that for an $n\times n$ matrix $M$, requiring that the characteristic polynomial be monic, the $(n-1)$-th coefficient always equals $-\mathrm{tr}(M)$ and the zeroth coefficient always equals $-\det M$. But where did he get the coefficient of $\lambda$ from? I'd like to understand if there is a closed formula for (symmetric) $3\times3$ matrices that I don't know about.
$8+8+8$ is the sum of the principal $2 \times 2$ minors of the matrix.
In general (not just for size $3 \times 3$), the top coefficient in the characteristic polynomial is just $1$, the next is minus the trace (and the trace is the sum of the diagonal elements, i.e., the sum of the principal $1 \times 1$ minors), the next one is the sum of the principal $2 \times 2$ minors, the next one is minus the sum of the principal $3 \times 3$ minors, and so on.
This is a standard fact, which is mentioned in the Wikipedia article Characteristic polynomial, for example.