Characteristic roots of matrices #
Over any field, if p(A) is invertible then p does not vanish at any characteristic root of A.
Over an algebraically closed field, the characteristic polynomial of a square matrix of positive
size has a root. This file records that fact as a Nonempty instance on the root multiset, so that
families indexed by the characteristic roots, counted with algebraic multiplicity, have a nonempty
index type.
It also records the determinant form of the spectral mapping theorem: for a polynomial p, the
determinant of p(A) is the product of p(λ) over the characteristic roots λ of A, counted
with algebraic multiplicity. Mathlib's Matrix.det_eq_prod_roots_charpoly is the case p = X.
More generally, over an integral domain, when the characteristic polynomial of A splits, the
characteristic roots of p(A) are the values p(λ) at the characteristic roots λ of A,
counted with algebraic multiplicity. So the determinant of p(A) is the product of the p(λ)
and its trace is their sum; Mathlib's Matrix.det_eq_prod_roots_charpoly_of_splits and
Matrix.trace_eq_sum_roots_charpoly_of_splits are the case p = X. These are proved by
evaluating the resultant formulas Matrix.det_aeval_eq_resultant and
Matrix.charpoly_aeval_eq_resultant over the split characteristic polynomial. In particular
det (1 - X A), the reverse of χ_A = ∏ (X - λ), factors as ∏ (1 - λ X).
Main results #
Matrix.eval_ne_zero_of_det_aeval_ne_zero: ifdet (p(A)) ≠ 0, thenp(λ) ≠ 0for every characteristic rootλofA.Matrix.nonempty_roots_charpoly— a square matrix of positive size over an algebraically closed field has a characteristic root.Matrix.charpoly_roots_filter_ne_zero_mul_eq— the nonzero characteristic roots of rectangular productsA * BandB * Aagree, counted with multiplicity.Matrix.det_aeval_eq_prod_roots_charpoly:det (p(A)) = ∏ p(λ)over the characteristic rootsλofA.Matrix.det_aeval_eq_prod_roots_charpoly_of_splits: the same when the characteristic polynomial ofAsplits.Matrix.charpoly_aeval_eq_prod_roots_charpoly_of_splits: the characteristic polynomial ofp(A)is∏ (X - p(λ)).Matrix.trace_aeval_eq_sum_roots_charpoly_of_splits:tr (p(A)) = ∑ p(λ); forp = X ^ kthe trace ofA ^ kis thek-th power sum of the characteristic roots.Matrix.charpolyRev_eq_prod_roots_charpoly_of_splits:det (1 - X A) = ∏ (1 - λ X).Matrix.coeff_charpolyRev_eq_esymm_roots_charpoly_of_splits: Vieta's formula fordet (1 - X A), whoser-th coefficient is(-1) ^ rtimes ther-th elementary symmetric function of the characteristic roots.
Rectangular products A * B and B * A have the same nonzero characteristic roots,
counted with algebraic multiplicity.
If det (p(A)) ≠ 0 for a square matrix A over a field, then p does not vanish at any
characteristic root of A: by spectral mapping, p(λ) is in the spectrum of p(A).
Spectral mapping for determinants. If the characteristic polynomial of A splits, the
determinant of p(A) is the product of p(λ) over the characteristic roots λ of A, counted
with algebraic multiplicity.
Spectral mapping for characteristic polynomials. If the characteristic polynomial of A
splits, the characteristic polynomial of p(A) is ∏ (X - p(λ)) over the characteristic roots
λ of A, counted with algebraic multiplicity.
Spectral mapping for traces. If the characteristic polynomial of A splits, the trace of
p(A) is the sum of p(λ) over the characteristic roots λ of A, counted with algebraic
multiplicity.
If the characteristic polynomial of A splits, det (1 - X A) is the product of the linear
factors 1 - λ X over the characteristic roots λ of A, counted with algebraic
multiplicity.
Vieta's formula for det (1 - X A). If the characteristic polynomial of A splits, the
r-th coefficient of det (1 - X A) is (-1) ^ r times the r-th elementary symmetric function
of the characteristic roots of A, counted with algebraic multiplicity.
A square matrix of positive size over an algebraically closed field has a characteristic root.
Spectral mapping for determinants. Over an algebraically closed field, the determinant of
p(A) is the product of p(λ) over the characteristic roots λ of A, counted with algebraic
multiplicity.