# Minimal polynomial (linear algebra)

In linear algebra, the **minimal polynomial** of a square matrix or linear operator \( A \) is the monic polynomial of least degree that annihilates it, meaning that substituting the matrix into the polynomial gives the zero matrix: \( \psi_A(A) = 0 \).<sup>[1](https://pages.github.berkeley.edu/EECS-106/sp22-site/assets/Linear_Systems___Professor_Ma.pdf)</sup> It is the smallest polynomial relation the matrix satisfies, and it encodes the eigenvalue structure of the operator more finely than the characteristic polynomial does.<sup>[2](https://www.maths.tcd.ie/~pete/ma1212/chapter2.pdf)</sup>

| Key fact | Detail |
|---|---|
| Definition | The non-zero monic polynomial \( \psi_A(s) \) of least degree with \( \psi_A(A) = 0 \)<sup>[1](https://pages.github.berkeley.edu/EECS-106/sp22-site/assets/Linear_Systems___Professor_Ma.pdf)</sup> |
| Divisibility | \( \psi_A(s) \) divides every annihilating polynomial of \( A \); this proves uniqueness<sup>[1](https://pages.github.berkeley.edu/EECS-106/sp22-site/assets/Linear_Systems___Professor_Ma.pdf)</sup> |
| Relation to characteristic polynomial | The minimal polynomial divides the characteristic polynomial, by the Cayley–Hamilton theorem<sup>[2](https://www.maths.tcd.ie/~pete/ma1212/chapter2.pdf)</sup> |
| Eigenvalues | \( \lambda \) is an eigenvalue of \( T \) if and only if \( \mu(\lambda) = 0 \)<sup>[3](https://www.math.ucla.edu/~mattkowalski/documents/Algebra_Notes.pdf)</sup> |
| Diagonalizability | \( T \) is diagonalizable if and only if its minimal polynomial is a product of distinct linear factors<sup>[4](https://math.ucr.edu/~mpierce/teaching/linear-algebra/docs/Hoffman%2CKunze-LinearAlgebra.pdf)</sup> |
| Jordan form | The exponent of \( (s - \lambda_i) \) in the minimal polynomial equals the size of the largest Jordan block for \( \lambda_i \)<sup>[2](https://www.maths.tcd.ie/~pete/ma1212/chapter2.pdf)</sup> |
| Similarity invariant | Similar matrices have the same minimal polynomial, so it is a property of the underlying linear operator<sup>[5](https://web.math.princeton.edu/~nelson/217/notes.pdf)</sup> |

## Definition and uniqueness

Given a linear operator \( A \), an *annihilating polynomial* is any polynomial \( f(s) \) such that \( f(A) = 0 \).<sup>[1](https://pages.github.berkeley.edu/EECS-106/sp22-site/assets/Linear_Systems___Professor_Ma.pdf)</sup> The minimal polynomial \( \psi_A(s) \) is the annihilating polynomial of least degree, normalized to have leading coefficient 1.<sup>[1](https://pages.github.berkeley.edu/EECS-106/sp22-site/assets/Linear_Systems___Professor_Ma.pdf)</sup> Equivalently, if \( \mu_T(t) = t^k + \alpha_{k-1}t^{k-1} + \cdots + \alpha_0 \), then \( k \) is the smallest positive integer such that \( \{I, T, T^2, \ldots, T^k\} \) is linearly dependent, and no non-trivial polynomial of degree less than \( k \) annihilates \( T \).<sup>[3](https://www.math.ucla.edu/~mattkowalski/documents/Algebra_Notes.pdf)</sup>

The minimal polynomial is unique. The proof uses polynomial division: if \( p(A) = 0 \) for some annihilating polynomial \( p \), write \( p(s) = \psi_A(s) q(s) + r(s) \) with \( \deg r < \deg \psi_A \). Evaluating at \( A \) gives \( r(A) = 0 \); if \( r \) were non-zero it would be an annihilating polynomial of degree smaller than the minimum, a contradiction, so \( r = 0 \) and \( \psi_A \) divides \( p \).<sup>[1](https://pages.github.berkeley.edu/EECS-106/sp22-site/assets/Linear_Systems___Professor_Ma.pdf)</sup> Since the minimal polynomial divides every annihilating polynomial, two minimal polynomials would each divide the other, and being monic of the same degree they coincide.<sup>[1](https://pages.github.berkeley.edu/EECS-106/sp22-site/assets/Linear_Systems___Professor_Ma.pdf)</sup>

## Relation to the characteristic polynomial

The classical [Cayley–Hamilton theorem](https://www.edgepedia.org/cayley-hamilton-theorem) states that every square matrix satisfies its own characteristic equation, so the characteristic polynomial \( \chi_A(s) \) is itself an annihilating polynomial.<sup>[6](https://bm.kaznu.kz/index.php/kaznu/en/article/view/295)</sup> By the divisibility property, the minimal polynomial is a factor of the characteristic polynomial.<sup>[2](https://www.maths.tcd.ie/~pete/ma1212/chapter2.pdf)</sup> The two polynomials share the same set of roots: \( \lambda \) is an eigenvalue of \( T \) if and only if \( \mu(\lambda) = 0 \).<sup>[3](https://www.math.ucla.edu/~mattkowalski/documents/Algebra_Notes.pdf)</sup> The difference lies in the exponents. If the characteristic polynomial is \( \chi_A(s) = \prod_{i=1}^{\sigma} (s - \lambda_i)^{d_i} \), where \( d_i \) is the algebraic multiplicity of \( \lambda_i \), the minimal polynomial carries each factor \( (s - \lambda_i) \) only to the power needed to annihilate the operator, which can be strictly smaller than \( d_i \).<sup>[1](https://pages.github.berkeley.edu/EECS-106/sp22-site/assets/Linear_Systems___Professor_Ma.pdf)</sup>

**A worked example.** In the Sage computer algebra system, the 4×4 rational matrix with entries 0 through 15 has minimal polynomial \( z^3 - 30z^2 - 80z \), of degree 3 rather than 4; the characteristic polynomial has an extra factor that the minimal polynomial does not need.<sup>[7](https://www.sagemath.org/doc/reference/matrices/sage/matrix/matrix2.html)</sup>

## Diagonalizability and the Jordan form

The minimal polynomial gives a direct test for diagonalizability: a linear operator is diagonalizable if and only if its minimal polynomial is a product of distinct linear factors.<sup>[4](https://math.ucr.edu/~mpierce/teaching/linear-algebra/docs/Hoffman%2CKunze-LinearAlgebra.pdf)</sup> Repeated factors signal that eigenvectors alone do not span the space and that generalized eigenvectors are needed.<sup>[4](https://math.ucr.edu/~mpierce/teaching/linear-algebra/docs/Hoffman%2CKunze-LinearAlgebra.pdf)</sup>

Over an algebraically closed field such as the complex numbers, the minimal polynomial determines the [Jordan block](https://www.edgepedia.org/jordan-block) structure in a precise way. Writing the minimal polynomial as \( m(\lambda) = \prod_i (\lambda - \lambda_i)^{k_i} \), each exponent \( k_i \) is the size of the largest Jordan block corresponding to the eigenvalue \( \lambda_i \).<sup>[2](https://www.maths.tcd.ie/~pete/ma1212/chapter2.pdf)</sup> The count \( \dim \ker (T - \lambda I)^k - \dim \ker (T - \lambda I)^{k-1} \) gives the number of Jordan blocks of size at least \( k \), which supplies the missing information.<sup>[8](https://www.math.ucla.edu/~njhu/notes/quals-ubc/diffeqs/)</sup>

## Invariance under similarity

If \( p(A) = 0 \), then for any nonsingular matrix \( C \), \( p(C^{-1}AC) = C^{-1}p(A)C = 0 \). [Similar matrices](https://www.edgepedia.org/matrix-similarity) therefore have the same minimal polynomial, and the minimal polynomial of a linear transformation \( T \) can be defined as that of any matrix representing \( T \).<sup>[5](https://web.math.princeton.edu/~nelson/217/notes.pdf)</sup> This makes the minimal polynomial an invariant of the operator itself rather than of a particular basis.

## Rational canonical form

The minimal polynomial also governs a canonical form that, unlike the Jordan form, requires no extension of the coefficient field. The rational canonical form (also called the Frobenius form) of a square matrix \( T \) is a block diagonal matrix \( Q^{-1}TQ = \mathrm{diag}[L(\psi_1), L(\psi_2), \ldots, L(\psi_s)] \), where each \( L(f) \) is the companion matrix of a monic polynomial \( f \).<sup>[9](https://mathworld.wolfram.com/RationalCanonicalForm.html)</sup> The polynomials \( \psi_i \) are the invariant factors of \( T \) and satisfy the divisibility chain \( \psi_i \mid \psi_{i+1} \) for \( i = 1, \ldots, s-1 \); the last invariant factor is the minimal polynomial.<sup>[9](https://mathworld.wolfram.com/RationalCanonicalForm.html)</sup> For example, if the entries of \( T \) are rational numbers, then so are the entries of its rational canonical form, whereas the Jordan canonical form may require complex numbers.<sup>[9](https://mathworld.wolfram.com/RationalCanonicalForm.html)</sup>

## Computation

The minimal polynomial can be found by testing divisors of the characteristic polynomial, since it must divide \( \chi_A \).<sup>[2](https://www.maths.tcd.ie/~pete/ma1212/chapter2.pdf)</sup> For large matrices over finite fields, faster probabilistic methods exist: a Monte-Carlo algorithm computes the minimal polynomial of an \( n \times n \) matrix over a finite field using \( O(n^3) \) field operations and \( O(n) \) random vectors, and is suited to practical implementation.<sup>[10](https://arxiv.org/abs/0705.0933)</sup> Related algorithms first compute the characteristic polynomial and then use random vectors, requiring roughly the number of field operations needed for matrix multiplication.<sup>[11](https://www.math.rwth-aachen.de/~Max.Neunhoeffer/Publications/pdf/minpoly.pdf)</sup>

[Computer algebra](https://www.edgepedia.org/computer-algebra) systems expose the computation directly: SageMath provides `minimal_polynomial()` (a synonym of `minpoly()`) for matrices and for elements of field extensions, and SymPy's polynomial module supplies the underlying symbolic machinery for such computations.<sup>[7](https://www.sagemath.org/doc/reference/matrices/sage/matrix/matrix2.html)</sup><sup> • </sup><sup>[12](https://docs.sympy.org/latest/modules/polys/index.html)</sup>

## Applications

Because the minimal polynomial is the smallest polynomial relation satisfied by a matrix, it reduces any power \( A^k \) with \( k \ge \deg \psi_A \) to a linear combination of lower powers. This underlies the use of the Cayley–Hamilton theorem in linear systems theory, where it is applied to derive transfer function matrices from state-space descriptions, among seven classes of applications surveyed in the control-theory literature.<sup>[6](https://bm.kaznu.kz/index.php/kaznu/en/article/view/295)</sup> The same reduction principle lets matrix power series be evaluated with fewer matrix products, a technique used for example in lattice gauge theory simulations to lower the cost of smearing and in computing matrix logarithms.<sup>[13](https://arxiv.org/abs/2404.07704)</sup>

## References

1. [Linear Systems, Chapter 4: System Stability (Definitions 4.12–4.13, Theorem 4.14), UC Berkeley EECS 106 course notes](https://pages.github.berkeley.edu/EECS-106/sp22-site/assets/Linear_Systems___Professor_Ma.pdf)
2. [chapter 2. jordan forms - lecture notes for ma1212](https://www.maths.tcd.ie/~pete/ma1212/chapter2.pdf)
3. [UCLA Algebra Notes: The Minimal Polynomial](https://www.math.ucla.edu/~mattkowalski/documents/Algebra_Notes.pdf)
4. [Linear Algebra (Hoffman & Kunze reproduction), University of California, Riverside](https://math.ucr.edu/~mpierce/teaching/linear-algebra/docs/Hoffman%2CKunze-LinearAlgebra.pdf)
5. [Mathematics 217 Notes, Part I: The Jordan Canonical Form, Princeton University](https://web.math.princeton.edu/~nelson/217/notes.pdf)
6. [Applications of the Cayley-Hamilton Theorem in Linear Systems, Journal of Mathematics Mechanics and Computer Science](https://bm.kaznu.kz/index.php/kaznu/en/article/view/295)
7. [Base class for matrices, part 2, SageMath documentation](https://www.sagemath.org/doc/reference/matrices/sage/matrix/matrix2.html)
8. [Differential Equations notes: The characteristic and minimal polynomials, Nicholas Hu, UCLA](https://www.math.ucla.edu/~njhu/notes/quals-ubc/diffeqs/)
9. [Rational Canonical Form, Wolfram MathWorld](https://mathworld.wolfram.com/RationalCanonicalForm.html)
10. [Computing Minimal Polynomials of Matrices, arXiv:0705.0933](https://arxiv.org/abs/0705.0933)
11. [Computing Minimal Polynomials of Matrices, Neunhoeffer, RWTH Aachen](https://www.math.rwth-aachen.de/~Max.Neunhoeffer/Publications/pdf/minpoly.pdf)
12. [Polynomial Manipulation, SymPy 1.14.0 documentation](https://docs.sympy.org/latest/modules/polys/index.html)
13. [Evaluating matrix power series with the Cayley-Hamilton theorem, arXiv:2404.07704](https://arxiv.org/abs/2404.07704)

---
*Topic: Encyclopedia › Physical world and mathematics › Mathematics and statistics › Numbers and algebra › Linear and multilinear algebra › Decompositions and canonical forms › Jordan and rational canonical forms*

*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

*Copyright 2026 EdgeChat AI, a subsidiary of Biostate AI.*

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license
