Eigenvalues of a matrix from its trace and determinant
ProvedMatrix.charpoly_roots_fin_two_of_trace_detlinear-algebra
Let be an integral domain, a matrix over and with and . Then the multiset of roots of the characteristic polynomial of is , i.e. .
Preamble
import Mathlib.LinearAlgebra.Matrix.Charpoly.Coeff import Mathlib.Algebra.Polynomial.Roots open Polynomial
Formal statement
theorem Matrix.charpoly_roots_fin_two_of_trace_det {R : Type*} [CommRing R] [IsDomain R] {V : Matrix (Fin 2) (Fin 2) R} {μ₁ μ₂ : R}
(htr : V.trace = μ₁ + μ₂) (hdet : V.det = μ₁ * μ₂) :
V.charpoly.roots = {μ₁, μ₂} := by sorrySource
Standard linear algebra (Vieta's formulas for the characteristic polynomial of a matrix).