Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • Compute Services
  • System Modeler
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

Wolfram Consulting

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Notebook Assistant + LLM Kit
    • Compute Services
    • System Modeler
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
MatrixMinimalPolynomial
  • See Also
    • CharacteristicPolynomial
    • MatrixPolynomialValue
    • Eigenvalues
    • FrobeniusDecomposition
    • CompanionMatrix
    • JordanMatrix
    • Eigensystem
    • JordanDecomposition
  • Related Guides
    • Matrix Operations
    • See Also
      • CharacteristicPolynomial
      • MatrixPolynomialValue
      • Eigenvalues
      • FrobeniusDecomposition
      • CompanionMatrix
      • JordanMatrix
      • Eigensystem
      • JordanDecomposition
    • Related Guides
      • Matrix Operations

MatrixMinimalPolynomial[m,x]

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

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Basic Uses  
Special Matrices  
Options  
Modulus  
Extension  
Applications  
Properties & Relations  
Possible Issues  
See Also
Related Guides
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • CharacteristicPolynomial
    • MatrixPolynomialValue
    • Eigenvalues
    • FrobeniusDecomposition
    • CompanionMatrix
    • JordanMatrix
    • Eigensystem
    • JordanDecomposition
  • Related Guides
    • Matrix Operations
    • See Also
      • CharacteristicPolynomial
      • MatrixPolynomialValue
      • Eigenvalues
      • FrobeniusDecomposition
      • CompanionMatrix
      • JordanMatrix
      • Eigensystem
      • JordanDecomposition
    • Related Guides
      • Matrix Operations

MatrixMinimalPolynomial

MatrixMinimalPolynomial[m,x]

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

Details and Options

  • 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 Automaticalgebraic number extensions
    Modulus 0prime modulus to use
  • MatrixMinimalPolynomial[m,Modulusp] computes the polynomial modulo the prime p. If p is zero, ordinary arithmetic is used. »

Examples

open all close all

Basic Examples  (2)

Find the minimal polynomial of a matrix:

The corresponding matrix polynomial is zero:

The zero matrix has the simplest possible minimal polynomial:

The identity matrix has the next to simplest possible:

Scope  (10)

Basic Uses  (5)

Minimal polynomial of a numeric matrix:

Minimal polynomial of a complex matrix:

An exact minimal polynomial:

Visualize the result:

Minimal polynomial of a symbolic matrix:

Minimal polynomial of a matrix m with finite field elements:

The polynomial evaluated at m yields a matrix of zeros in the finite field:

Special Matrices  (5)

Minimal polynomials of sparse matrices:

Minimal polynomials of structured matrices:

The minimal polynomial of a diagonal matrix has linear terms in the distinct diagonal entries:

For multiples of the identity matrix, this becomes a single linear factor:

The minimal polynomial of JordanMatrix[λ,n]:

The polynomial is proportional to :

The minimal polynomial of CompanionMatrix[{c0,c1,…,cn}}]:

Options  (3)

Modulus  (1)

Compute a minimal polynomial modulo 19:

Modulo 19, this agrees with the non-modular minimal polynomial.

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:

Show that they are the same:

Find the minimal polynomial of a matrix that has a parameter as well as an algebraic extension:

Now repeat using a prime modulus:

These agree modulo the prime:

Applications  (2)

The factored form of the matrix minimal polynomial gives important information about the eigenspaces of the matrix. Namely, it indicates how much larger the generalized eigenspace for is than its ordinary eigenspace. Consider the follow matrix :

Compute its minimal polynomial :

And its characteristic polynomial :

Because has a linear term in , its generalized and ordinary eigenspaces are equal. The eigenspace is:

The geometric multiplicity of , , matches its algebraic multiplicity, the power of in :

Confirm the generalized eigenspace is the ordinary eigenspace by showing and have the same null spaces:

The presence of in means has a larger null space than :

The generalized eigenspace is now larger than the ordinary eigenspace:

Since the algebraic multiplicity of is , higher powers of have the same null space:

Finally, the presence of in means that has larger null spaces for and but not :

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  (6)

The minimal polynomial of is the lowest-order polynomial for which yields a zero matrix:

Confirm that is an zero matrix:

Since is quintic, no quadric (or lower-order) polynomial can give zero when evaluated at :

The degree of a matrix minimal polynomial can be anywhere from 1 to the matrix dimension n:

This is different from the characteristic polynomial, which always has degree n:

The minimal polynomial divides the characteristic polynomial with a (possibly constant) polynomial quotient:

The minimal polynomial and the characteristic polynomial have the same distinct roots:

In particular, this means divides raised to the power:

A matrix minimal polynomial is often the same as the characteristic polynomial up to a constant factor:

Estimate the fraction of zero–one matrices for which this is true:

Compute a minimal polynomial:

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:

Extract the last column:

This gives the negatives of the minimal polynomial coefficients with lead coefficient implicitly set to 1:

Possible Issues  (1)

The polynomial returned by MatrixMinimalPolynomial is generally monic for exact input:

However, it may not be monic for inexact input:

Make the polynomial monic:

See Also

CharacteristicPolynomial  MatrixPolynomialValue  Eigenvalues  FrobeniusDecomposition  CompanionMatrix  JordanMatrix  Eigensystem  JordanDecomposition

Related Guides

    ▪
  • Matrix Operations

History

Introduced in 2025 (14.3)

Wolfram Research (2025), MatrixMinimalPolynomial, Wolfram Language function, https://reference.wolfram.com/language/ref/MatrixMinimalPolynomial.html.

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: 01-April-2026]}

BibLaTeX

@online{reference.wolfram_2025_matrixminimalpolynomial, organization={Wolfram Research}, title={MatrixMinimalPolynomial}, year={2025}, url={https://reference.wolfram.com/language/ref/MatrixMinimalPolynomial.html}, note=[Accessed: 01-April-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English