Polynomial Division Stepper

Long division of polynomials stepped one leading term at a time over Q, Z, F_p or Z_m: the learner steps, finishes or edits f, g and the coefficient ring, and sees each step cancel the leading term, stall when the divisor's leading coefficient is not a unit, the remainder equal f(a) for x - a (with a slider and synthetic division), or an element of F(alpha) reduced modulo the minimal polynomial to its normal form.

Used in: Ring Theory

Props

PropTypeDefaultDescription
titlestring"Polynomial division in ℚ[x]" (normal-form: "Normal form in ℚ(α)")Title bar text.
controlsstring[]all controls shownIds of the hideable readouts, panels and toggles to show (see the controls registry, e.g. readout.remainder-value, readout.root, panel.horner, readout.coordinates, panel.inverse). Core controls always show. Page building fills this from the subject's topic scope.
mode"divide" | "normal-form"inferred: element or minimalPolynomial -> normal-form, else dividedivide: divide dividend by divisor step by step. normal-form: reduce an element of F(α), written in alpha, modulo the minimal polynomial to c_0 + c_1 α + ... + c_{n-1} α^{n-1}.
dividendstring"x^4 + 2x^3 + x + 3"Divide mode: the dividend f, one variable (any letter), e.g. "x^5 + 2*x^3 + x + 1", "2x^4 + x^3 - 3x + 5". Rational coefficients such as 1/2 or 0.5 are allowed when the ring has them.
divisorstring"x^2 + x + 1"Divide mode: the nonzero divisor g, same variable. "x - a" with a one-letter parameter (see parameters) or "x - 2" turns on the remainder / root readouts and synthetic division.
ringstring | number"Q"Coefficient ring: "Q" (exact rationals; "R" is read as Q), "Z", "F_p" for a prime p ("F_7", "GF(7)"), "Z_m" ("Z_6", "Z/6", or a number 6). Over Z and Z_m a step stalls when the divisor's leading coefficient cannot cancel the leading coefficient of r, and over Z_m it may be non-unique. In normal-form mode this is the base field F.
stepnumber0Number of division steps already applied at start (a large number such as 99 shows the finished division).
parameters{name, min, max, initial?, step?}[][]Divide mode: sliders for one-letter names used in dividend or divisor, e.g. [{"name": "a", "min": -3, "max": 4, "initial": 1}] with divisor "x - a". Integer ranges step by 1 unless step is given.
showHornerbooleanfalseDivide mode with divisor x - a: start with the synthetic division (Horner) table switched on. The learner can switch it on or off.
comparestring[]noneDivide mode: a second division [dividend, divisor] in the same ring, shown finished below (e.g. a non-monic divisor over Z that stalls next to a monic one that works).
elementstring"(1 + alpha)^4"Normal-form mode: the element β of F(α) as an expression in alpha (or α, or the minimal polynomial's variable), e.g. "x^3", "(1 + alpha)^4", "1/(1 + alpha)". Division by a polynomial in alpha is inverted modulo the minimal polynomial (F must be a field).
minimalPolynomialstring"x^3 - 2"Normal-form mode: the minimal polynomial m(x) of α over F (degree 1 to 12). Its degree is the size of the power basis.
alphastring"cbrt(2)" with the default polynomial, else noneNormal-form mode: α as a real number, e.g. "cbrt(2)", "1 + sqrt(2)" (functions as in the shared expression parser). Shown in the header and used for the numerical check; a warning appears when it is not a root of the minimal polynomial. Over Q only.
showInversebooleantrueNormal-form mode, element with a polynomial denominator h(α): show the extended Euclidean table that inverts h modulo m (false shows only the resulting inverse).
showEvaluationbooleanfalseNormal-form mode with a real alpha: start with the numerical check (β and r(α) evaluated at α) switched on.