Minimal Polynomial Matrix Calculator

Compute matrix minimal polynomials with exact algebra steps. Review powers, coefficients, identities, and zero tests. Export records and learn each formula through clear examples.

Calculator

Use integers, decimals, or fractions like 3/4.

Example data table

Name Matrix Expected minimal polynomial Why it helps
Jordan block [[2,1,0],[0,2,1],[0,0,2]] (λ - 2)^3 Tests repeated roots and nilpotent part.
Diagonal matrix [[1,0,0],[0,2,0],[0,0,3]] (λ - 1)(λ - 2)(λ - 3) Shows distinct eigenvalue factors.
Nilpotent block [[0,1,0],[0,0,1],[0,0,0]] λ^3 Checks the first power that becomes zero.
Scalar matrix [[4,0],[0,4]] λ - 4 Shows degree one behavior.

Formula used

The minimal polynomial m(λ) is the monic polynomial with smallest degree that makes m(A) equal to the zero matrix.

For degree d, the calculator tests this identity:

m(A) = Ad + cd-1Ad-1 + ... + c1A + c0I = 0.

It builds I, A, A2, and later powers. Then it solves a rational linear system. The first successful relation gives the minimal polynomial.

How to use this calculator

  1. Select the matrix size from 1 x 1 to 5 x 5.
  2. Enter each matrix value. Fractions and decimals are accepted.
  3. Choose a polynomial variable and decimal preview length.
  4. Tick the power table option when you need extra details.
  5. Press the calculate button. The result appears above the form.
  6. Download the result as a CSV or PDF file.

Minimal Polynomial Matrix Guide

What the result means

A square matrix can satisfy many polynomial equations. The minimal polynomial is the shortest monic equation among them. It contains strong information about the matrix. It also divides the characteristic polynomial. That link follows from the Cayley Hamilton theorem. The result helps in linear algebra, control systems, differential equations, and matrix functions. It shows which powers of A are truly needed.

Why exact arithmetic matters

Many web tools use floating point arithmetic. That can hide small errors. This calculator uses rational arithmetic for the elimination step. Entries like 1/3 stay exact. Decimal entries are converted into fractions. The output includes fraction values and decimal previews. This makes the answer easier to audit. It also helps when the matrix has repeated eigenvalues.

How the calculator searches

The method starts with the identity matrix. It then multiplies by A to create each power. For every possible degree, it asks one question. Can the newest power be written as a combination of earlier powers? If the answer is yes, those coefficients define the polynomial. The calculator then evaluates the polynomial at A. A zero matrix confirms the answer.

Reading special cases

A scalar matrix has a degree one minimal polynomial. A diagonal matrix uses each distinct diagonal value once. A nilpotent block uses a power of the variable. A Jordan block may need a higher exponent for the repeated root. These patterns make the minimal polynomial useful. It explains diagonalizability, recurrence of powers, and matrix simplification.

Checking your answer

After calculation, inspect the coefficient table. The leading coefficient is always one. Lower coefficients may be zero. That is normal. For teaching, compare the displayed relation with hand calculations. For applications, keep units outside the matrix. The calculator treats entries as pure numbers. Large matrices with many fractions may create long rational values. In that case, use simpler equivalent entries when possible. Exact checks remain the safest final test before saving or sharing the result with others.

Practical use

Use the example loader before entering a large matrix. Compare the power table with the final identity. If entries are long, use fractions. Save the CSV for records. Save the PDF for class notes or reports.

FAQs

What is a matrix minimal polynomial?

It is the lowest degree monic polynomial that becomes the zero matrix when the matrix is substituted into it.

Does it always exist?

Yes. Every square matrix has one because the characteristic polynomial already makes the matrix zero by the Cayley Hamilton theorem.

Can it equal the characteristic polynomial?

Yes. It equals the characteristic polynomial in many cases, but it can also have lower degree.

Why must the matrix be square?

Matrix powers require square multiplication. Minimal polynomials are defined for square linear operators.

Can I enter fractions?

Yes. Values such as 2/3, -5/4, and 7 are accepted. Simple decimals are also accepted.

What does p(A) mean?

It means the polynomial is evaluated using matrix powers. Constants multiply the identity matrix.

Why is p(A) shown?

It verifies the result. The displayed zero matrix proves the polynomial kills the input matrix.

What size can I calculate?

This page supports sizes from 1 x 1 through 5 x 5. That range keeps exact arithmetic practical.

Related Calculators

Paver Sand Bedding Calculator (depth-based)Paver Edge Restraint Length & Cost CalculatorPaver Sealer Quantity & Cost CalculatorExcavation Hauling Loads Calculator (truck loads)Soil Disposal Fee CalculatorSite Leveling Cost CalculatorCompaction Passes Time & Cost CalculatorPlate Compactor Rental Cost CalculatorGravel Volume Calculator (yards/tons)Gravel Weight Calculator (by material type)

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.