Eigenvalues of a symmetric 3 × 3 matrix

Recently, in order to find the principal moments of inertia of a large number of rigid bodies, it was necessary to compute the eigenvalues of many real, symmetric 3 × 3 matrices. The available eigenvalue subroutines seemed rather heavy weapons to turn upon this little problem, so an explicit solution was developed. The resulting expressions are remarkably simple and neat, hence this note.