Minimal Polynomial

lean4-prooflinear-algebravisualization
μAp    p(A)=0\mu_A \mid p \iff p(A) = 0

Statement

Let KK be a field and AA a square matrix over KK. The minimal polynomial μAK[x]\mu_A \in K[x] is the unique monic polynomial of smallest degree such that μA(A)=0\mu_A(A) = 0. It satisfies the divisibility characterisation:

p(A)=0    μApp(A) = 0 \implies \mu_A \mid p

for every polynomial pK[x]p \in K[x]. Equivalently, μA\mu_A is the generator of the ideal {pK[x]:p(A)=0}\{p \in K[x] : p(A) = 0\}.

Key relationships:

  • μAχA\mu_A \mid \chi_A (the characteristic polynomial) — from the Cayley–Hamilton TheoremCayley–Hamilton TheorempA(A)=0  where  pA(λ)=det(λIA)p_A(A) = 0 \;\text{where}\; p_A(\lambda) = \det(\lambda I - A)Every square matrix satisfies its own characteristic polynomialRead more →
  • χAμAn\chi_A \mid \mu_A^n where n=degχAn = \deg \chi_A
  • μA\mu_A and χA\chi_A have the same irreducible factors (same roots, possibly different multiplicities)

Visualization

Compare A=(2002)A = \begin{pmatrix} 2 & 0 \\ 0 & 2 \end{pmatrix} and J=(2102)J = \begin{pmatrix} 2 & 1 \\ 0 & 2 \end{pmatrix}.

For AA (scalar matrix):

A2I=0    μA=x2.A - 2I = 0 \implies \mu_A = x - 2.

For JJ (Jordan block):

(J2I)1=(0100)0,(J2I)2=0    μJ=(x2)2.(J - 2I)^1 = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix} \ne 0,\quad (J - 2I)^2 = 0 \implies \mu_J = (x-2)^2.
MatrixChar poly χ\chiMin poly μ\muμχ\mu \mid \chi?
A=2IA = 2I(x2)2(x-2)^2x2x - 2Yes: (x2)2/(x2)(x-2)^2 / (x-2)
J=J2(2)J = J_2(2)(x2)2(x-2)^2(x2)2(x-2)^2Yes: trivially
diag(1,2,3)\text{diag}(1,2,3)(x1)(x2)(x3)(x-1)(x-2)(x-3)(x1)(x2)(x3)(x-1)(x-2)(x-3)Yes: equal

The minimal polynomial detects the Jordan block structure: μA\mu_A has (xλ)k(x - \lambda)^k iff the largest Jordan block for λ\lambda has size kk.

Proof Sketch

  1. Ideal structure. The set I={pK[x]:p(A)=0}I = \{p \in K[x] : p(A) = 0\} is an ideal in K[x]K[x]. Since K[x]K[x] is a PID, I=(μA)I = (\mu_A) for some monic generator μA\mu_A.
  2. Cayley–Hamilton. The characteristic polynomial χAI\chi_A \in I, so μAχA\mu_A \mid \chi_A.
  3. Divisibility criterion. If p(A)=0p(A) = 0 then pIp \in I, so μAp\mu_A \mid p.
  4. Same roots. If λ\lambda is an eigenvalue, then (AλI)v=0(A - \lambda I)v = 0 for some v0v \ne 0; evaluating μA(A)v=0\mu_A(A)v = 0 shows μA(λ)=0\mu_A(\lambda) = 0.

Connections

  • Cayley–Hamilton TheoremCayley–Hamilton TheorempA(A)=0  where  pA(λ)=det(λIA)p_A(A) = 0 \;\text{where}\; p_A(\lambda) = \det(\lambda I - A)Every square matrix satisfies its own characteristic polynomialRead more → — guarantees μAχA\mu_A \mid \chi_A; together, μA\mu_A and χA\chi_A share the same irreducible factors
  • Jordan Canonical FormJordan Canonical FormA=PJP1,J=iJni(λi)A = P J P^{-1},\quad J = \bigoplus_i J_{n_i}(\lambda_i)Every square matrix over an algebraically closed field is similar to a direct sum of Jordan blocks.Read more → — the degree of (xλ)(x - \lambda) in μA\mu_A equals the size of the largest Jordan block for eigenvalue λ\lambda
  • Diagonalizability CriterionDiagonalizability CriterionA diagonalizable    μA squarefreeA \text{ diagonalizable} \iff \mu_A \text{ squarefree}A matrix is diagonalizable if and only if its minimal polynomial is squarefree.Read more → — a matrix is diagonalizable if and only if μA\mu_A is squarefree (no repeated irreducible factor)

Lean4 Proof

import Mathlib.FieldTheory.Minpoly.Field
import Mathlib.LinearAlgebra.Matrix.Charpoly.Minpoly

/-- The minimal polynomial divides any annihilating polynomial.
    Over a field, `minpoly.dvd` is the direct Mathlib alias. -/
theorem minpoly_dvd_of_aeval_zero
    {K : Type*} [Field K]
    {n : Type*} [Fintype n] [DecidableEq n]
    (M : Matrix n n K) {p : K[X]}
    (hp : Polynomial.aeval M p = 0) :
    minpoly K M  p :=
  minpoly.dvd K M hp

/-- The minimal polynomial divides the characteristic polynomial.
    Mathlib's `Matrix.minpoly_dvd_charpoly` is the direct alias. -/
theorem minpoly_dvd_charpoly_matrix
    {K : Type*} [Field K]
    {n : Type*} [Fintype n] [DecidableEq n]
    (M : Matrix n n K) :
    minpoly K M  M.charpoly :=
  Matrix.minpoly_dvd_charpoly M