NLA-lib Explorer

NLAlib.charpoly_eq_X_sub_C_mul_charpoly_submatrix

Library · theorem

The characteristic polynomial of a matrix with a multiple \alpha of a coordinate vector in the column i_0 loses a linear factor X - \alpha when the row and the column i_0 are deleted.

NLAlib.charpoly_eq_X_sub_C_mul_charpoly_submatrix.{u_1, u_4} {K : Type u_1} [Field K] {n : Type u_4}
  [Fintype n] [DecidableEq n] {M : Matrix n n K} {i₀ : n} {α : K} [DecidableEq { i // ¬i = i₀ }]
  (hcol : ∀ (i : n), M i i₀ = if i = i₀ then α else 0) :
  M.charpoly = (Polynomial.X - Polynomial.C α) * (M.submatrix Subtype.val Subtype.val).charpoly

Full source on GitHub

Import NLAlib.Matrix.Spectral.EigenvalueListing.