Abstract
Trigonometric formulas for eigenvalues of matrices that build on Cardano’s and Viète’s work on algebraic solutions of the cubic are numerically unstable for matrices with repeated eigenvalues. This work presents numerically stable, closed-form evaluation of eigenvalues of real, diagonalizable matrices via four invariants: the trace, the deviatoric invariants and, and the discriminant. We analyze the conditioning of these invariants and derive tight forward error bounds. For we propose an algorithm and prove its accuracy. We benchmark all invariants and the resulting eigenvalue formulas, relating observed forward errors to the derived bounds. In particular, we show that, for the special case of matrices with a well-conditioned eigenbasis, the newly proposed algorithms have errors within the forward stability bounds. Performance benchmarks show that the proposed algorithm is approximately ten times faster than the highly optimized LAPACK library for a challenging test case, while maintaining comparable accuracy.
Author supplied keywords
Cite
CITATION STYLE
Habera, M., & Zilian, A. (2026). Numerically stable evaluation of closed-form expressions for eigenvalues of matrices. Numerical Algorithms. https://doi.org/10.1007/s11075-026-02328-5
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.