How this calculation works
Find the minimal polynomial of an explicitly represented algebraic number inside a rational number field. The input specifies a defining irreducible polynomial for α and a polynomial expression for β. Exact reduction and a first linear dependence among powers of β provide a readable annihilation certificate.
In K=Q[α]/(f), find the least k such that β^k+c_(k−1)β^(k−1)+⋯+c0=0. Then mβ(t)=t^k+c_(k−1)t^(k−1)+⋯+c0.A worked example
Let α⁴=2 and β=α². The vectors for 1 and β are independent, but β²=2. The first dependence is β²−2=0, so the minimal polynomial is t²−2 even though the ambient field degree is4.
Good to know
Rational irreducible modulus degree1–6, exact rational element polynomial. Integration MUST verify modulus irreducibility with an exact factorizer before invoking the prototype field calculation. A caller assertion is not a user certificate. No floating-point algebraic recognition. Field irreducibility must be certified by Eisenstein or an irreducible reduction at a tested prime≤31; unsupported certificates are rejected.
Reference: SymPy exact minimal polynomials and number fields (opens in a new tab) ↗
The modulus must define a field
The expression Q[x]/(f) is a number field only when f is irreducible over Q. A reducible modulus produces a quotient algebra, and interpreting its elements as numbers in one field would change the mathematical problem.
The app integration must perform exact irreducibility checking before the calculation. The research kernel exposes this as a prerequisite rather than hiding an assumption. A rational-root test alone is insufficient for degrees four and above, where quadratic factors can remain.
Compare this with the Matrix minimal polynomial calculator. A matrix annihilator page does not accept a named element in an abstract characteristic-zero number field.
Representing the element exactly
Write β as a polynomial in α with rational coefficients. Any powers at least the degree of f are reduced modulo f, leaving a coordinate vector in the basis 1,α,…,α^(n−1).
This representation identifies an element of the abstract field without choosing a particular real or complex embedding. Different embeddings send β to conjugates and leave its rational minimal polynomial unchanged. Numerical approximations do not establish the same exact representation.
First dependence gives minimality
The powers 1,β,…,β^n lie in an n-dimensional Q-vector space, so some rational dependence must occur. Search in increasing order and stop at the first degree with a monic relation.
The earlier power vectors are independent, proving no lower-degree nonzero polynomial annihilates β. This minimality argument is stronger than computing a resultant and selecting a factor by appearance, which can leave extraneous powers or unrelated factors.
Reduction provides a certificate
Every multiplication by β is followed by exact polynomial remainder division by f. The returned relation can be checked by substituting the reduced powers and verifying that every coordinate sums to zero.
The coefficients are normalized to make the relation monic. No tolerance decides whether a coordinate vanishes: it is either the rational number zero or not. The degree therefore reflects exact algebraic data rather than a numerical near-dependence.
A subfield element in a quartic field
For f=x⁴−2, take β=α². The coordinate vectors of 1 and β are independent, but β² reduces to2. The first relation is t²−2 and has degree two.
The ambient field has degree four while Q(β) has degree two. This distinction is useful when an expression lies in a proper subfield: copying the modulus or the multiplication operator’s characteristic polynomial would overstate the element’s degree.
Constants and primitive elements
A rational constant c has minimal polynomial t−c, regardless of how large the ambient extension is. At the other extreme, β=α has the normalized irreducible defining polynomial itself as its minimal polynomial.
An arbitrary nonconstant expression need not generate the entire field. The output degree records the actual first dependence and thus the dimension of Q(β), without claiming that every expression in α is a primitive element.
Independent verification and limits
SymPy’s algebraic-expression minimal-polynomial algorithm independently confirms that the square of a chosen fourth root of two has minimal polynomial t²−2. The prototype separately verifies the same result through coordinate dependence.
The six-dimensional limit controls exact rational elimination and polynomial growth. This page does not recover algebraic numbers from measured decimals, choose a real embedding or certify root isolation; those are separate tasks with different input requirements.
A few questions, answered
Why can the answer have lower degree than the modulus?
The selected element may belong to a proper subfield, as α² does when α⁴=2.
Can I use a reducible defining polynomial?
No. This number-field workflow requires exact irreducibility verification.
Does selecting a different conjugate change the polynomial?
No. Field embeddings preserve rational polynomial relations and send the element to a conjugate.
Is a small numerical residual an exact relation?
No. This version uses rational arithmetic and requires an exactly zero remainder.