Companion Matrix
Statement
Given a monic polynomial over a commutative ring , its companion matrix is the matrix
The key property: , i.e.\ the characteristic polynomial of equals . Furthermore, the minimal polynomial of also equals , so is a cyclic matrix (it has a cyclic vector spanning the whole space under repeated application of ).
Visualization
For (as in the prompt), , , :
Characteristic polynomial check (expanding ):
det( λ 0 -5 )
(-1 λ -2 )
( 0 -1 λ )
= λ(λ² - 2) - (-1)(-5) · correction...
expanding along first row:
= λ · det( λ -2 ) - 0 + (-5) · det(-1 λ )
(-1 λ) ( 0 -1)
= λ(λ² - 2) - (-5)(1)
= λ³ - 2λ + 5 = p(λ). ✓
For the simpler case :
Proof Sketch
- Cofactor expansion. Compute by expanding along the last column or by induction on .
- Inductive step. For an companion matrix, expand along the first row. The minor is an companion matrix for ; the last column contributes .
- Cayley–Hamilton. By the Cayley–Hamilton theorem, .
- Minimal polynomial. The vector satisfies (standard basis vectors), so are linearly independent. Any annihilating polynomial must have degree . Since , the minimal polynomial equals .
Connections
- Cayley–Hamilton TheoremCayley–Hamilton TheoremEvery square matrix satisfies its own characteristic polynomialRead more → — the companion matrix satisfies by Cayley–Hamilton, as
- Minimal PolynomialMinimal PolynomialThe minimal polynomial of a matrix is the monic polynomial of least degree that annihilates it.Read more → — the minimal polynomial of equals its characteristic polynomial ; companion matrices are maximally non-degenerate (cyclic)
- Jordan Canonical FormJordan Canonical FormEvery square matrix over an algebraically closed field is similar to a direct sum of Jordan blocks.Read more → — every square matrix over an algebraically closed field is similar to a direct sum of companion matrices of its elementary divisors
Lean4 Proof
import Mathlib.LinearAlgebra.Matrix.Charpoly.Basic
/-- The companion matrix of the monic degree-2 polynomial x² + bx + c.
We prove directly that its characteristic polynomial equals x² + bx + c
by computing the determinant. -/
def companionMat (b c : ℤ) : Matrix (Fin 2) (Fin 2) ℤ :=
!![0, -c; 1, -b]
/-- The characteristic polynomial of the 2×2 companion matrix is x² + bx + c.
This is the n=2 instance of the general companion-matrix theorem:
χ_{C(p)} = p. -/
theorem companion_charpoly (b c : ℤ) :
(companionMat b c).charpoly =
Polynomial.X ^ 2 + Polynomial.C b * Polynomial.X + Polynomial.C c := by
simp [companionMat, Matrix.charpoly, Matrix.charmatrix,
Matrix.det_fin_two, Polynomial.ext_iff]
ring