gives the minimal polynomial for the square matrix m in the variable x.


MatrixMinimalPolynomial
gives the minimal polynomial for the square matrix m in the variable x.
Details

- The minimal polynomial of a square matrix m is a polynomial
of lowest degree such that the matrix polynomial
is the zero matrix.
- MatrixMinimalPolynomial[m,x] divides CharacteristicPolynomial[m,x]. Often they agree; that is, the quotient is a constant.
- The matrix minimal polynomial is only defined up to a constant factor.
- m must be a square matrix with numeric or symbolic entries.
- The following options can be given:
-
Extension Automatic algebraic number extensions Modulus 0 modulus to assume for integers
Examples
open all close allBasic Examples (1)
Scope (5)
Options (3)
Modulus (1)
Extension (2)
Compute a minimal polynomial where some matrix elements depend on algebraic numbers:
The algebraic relations can be interpreted as replacing t1 with and t2 with :
Compare this to a direct computation using these algebraic numbers explicitly:
Find the minimal polynomial of a matrix that has a parameter as well as an algebraic extension:
Applications (1)
Use the minimal polynomial to compute the DrazinInverse:
The coefficients can be used to compute the Drazin inverse:
Verify some properties of the Drazin inverse:
Compare with the result of DrazinInverse:
Properties & Relations (5)
A random integer square matrix of dimension 3:
A matrix minimal polynomial is often the same as the characteristic polynomial up to a constant factor:
The degree of a matrix minimal polynomial can be strictly lower than the matrix dimension:
The minimal polynomial divides the characteristic polynomial with a polynomial quotient:
The minimal polynomial of a matrix annihilates the matrix:
The last element in the diagonal of the Smith normal form of a characteristic matrix gives the minimal polynomial:
Find the last block in the Frobenius normal form:
This gives the negatives of the minimal polynomial coefficients with lead coefficient implicitly set to 1:
Related Guides
History
Text
Wolfram Research (2025), MatrixMinimalPolynomial, Wolfram Language function, https://reference.wolfram.com/language/ref/MatrixMinimalPolynomial.html.
CMS
Wolfram Language. 2025. "MatrixMinimalPolynomial." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MatrixMinimalPolynomial.html.
APA
Wolfram Language. (2025). MatrixMinimalPolynomial. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MatrixMinimalPolynomial.html
BibTeX
@misc{reference.wolfram_2025_matrixminimalpolynomial, author="Wolfram Research", title="{MatrixMinimalPolynomial}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/MatrixMinimalPolynomial.html}", note=[Accessed: 04-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_matrixminimalpolynomial, organization={Wolfram Research}, title={MatrixMinimalPolynomial}, year={2025}, url={https://reference.wolfram.com/language/ref/MatrixMinimalPolynomial.html}, note=[Accessed: 04-August-2025]}