Minimal Polynomial Calculator

Analyze matrices through exact arithmetic and dependency testing. See powers, coefficients, degree, and verification instantly. Built for students, proofs, homework, and symbolic exploration daily.

Calculator Input

Enter integers, decimals, or fractions such as 3/4. This calculator works with square rational matrices up to 4 × 4.

Example Data Table

Example Matrix Expected Minimal Polynomial Why It Happens
Jordan block [[2, 1], [0, 2]] (x - 2)^2 = x^2 - 4x + 4 A repeated eigenvalue with a nondiagonal Jordan block needs degree 2.
Diagonal matrix [[1, 0], [0, 3]] (x - 1)(x - 3) = x^2 - 4x + 3 Distinct diagonal entries require both linear factors.
Identity matrix [[1, 0], [0, 1]] x - 1 The identity matrix is annihilated by one linear factor.

Formula Used

Definition: The minimal polynomial of a square matrix A is the unique monic polynomial m(x) of smallest degree such that m(A) = 0.

Core relation: The calculator searches for the first exact dependence among I, A, A², …, Aᵏ. When it finds

Aᵏ + ck-1Ak-1 + … + c1A + c0I = 0,

it returns

m(x) = xᵏ + ck-1xk-1 + … + c1x + c0.

Characteristic check: The page also computes the characteristic polynomial using the Faddeev–LeVerrier recursion, then verifies that the minimal polynomial divides it.

Exact arithmetic: Fractions are reduced symbolically throughout elimination, multiplication, and verification, so rational inputs stay exact.

How to Use This Calculator

  1. Select the matrix size from 1 × 1 through 4 × 4.
  2. Enter each matrix entry as an integer, decimal, or fraction.
  3. Choose the decimal preview precision for displayed approximations.
  4. Press Compute Minimal Polynomial.
  5. Review the result block above the form for degree, polynomial, and checks.
  6. Inspect the matrix powers to see where the first dependence occurs.
  7. Use the CSV or PDF buttons to save the current report.

Frequently Asked Questions

1) What does this calculator accept?

It accepts square matrices up to 4 × 4 with rational-style entries. You can type integers, decimals, or fractions such as 7/3.

2) Why does the calculator use exact fractions?

Exact arithmetic avoids rounding errors that often hide the true annihilating relation. This is especially important for repeated eigenvalues and Jordan blocks.

3) Is the minimal polynomial always the characteristic polynomial?

No. The minimal polynomial always divides the characteristic polynomial, but it can have lower degree. Identity and diagonal matrices often show this difference clearly.

4) What does the displayed matrix relation mean?

It shows the first exact dependence among I, A, A², and higher powers. That relation directly gives the monic minimal polynomial coefficients.

5) Why are matrix powers included in the results?

They let you inspect the algebra behind the answer. You can verify the first dependency step instead of treating the result as a black box.

6) Can I use decimal entries safely?

Yes, provided the decimals represent exact rational values you intend. For example, 0.25 becomes 1/4 automatically before any symbolic elimination begins.

7) What does the verification matrix show?

It shows m(A). A correct result should produce the zero matrix. That confirmation is printed beside the polynomial summary for convenience.

8) When would the degree equal the matrix size?

That can happen when no lower-degree dependence exists among I, A, A², and later powers. Certain companion or cyclic matrices behave this way.

Related Calculators

finite field multiplication calculatorcyclotomic polynomial calculatorfinite field inverse calculatorsplitting field calculator

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.