Let be the vector space of real polynomials of degree of a polynomial at most . Choose distinct real sample points and positive real weights . Thenis an inner product. Symmetry and bilinearity follow from linearity of polynomial evaluation. Its value at is nonnegative, and equality forces all . By the root bound for a polynomial, a nonzero polynomial of degree of a polynomial at most cannot vanish at distinct points. Thus the form has positive definiteness.
Equivalently, the polynomial evaluation map on a finite point set identifies with , equipped with a weighted Euclidean inner product. Too few sample points destroy positive definiteness: if the distinct points number at most , the nonzero polynomial lies in and has zero sampled squared norm.
For three equally weighted samples at , an orthonormal basis isThis construction gives a finite sampling version of orthogonal polynomials and permits exact Gram-Schmidt orthogonalization using only finitely many evaluations.
Repeat the random evaluation test for a polynomial identity with fresh independent random variables, keeping the same fixed polynomial. Reject as soon as any polynomial evaluation is nonzero; accept only if all values vanish. An identity is always accepted, preserving one-sided error. If a nonzero polynomial has single-trial false acceptance probability , independence gives . The Schwartz-Zippel lemma bounds this by when .
For over the finite field , two uniform independent choices have equally likely ordered outcomes, each with probability . Both polynomial evaluations are zero only at . Hence false acceptance falls from in one trial to in two trials, and correct rejection rises from to .
Four of the twenty-five independent pairs falsely accept the nonidentity
. The orange cells have both coordinates among the polynomial roots one and two of in the finite field . Every blue cell supplies at least one nonzero witness. The full grid enumerates exact outcomes under independence and a uniform distribution on a finite set; it is not a simulation. Details.If the second choice reuses the first, the pair is and only five diagonal outcomes are possible. Two still falsely accept, so the error remains . Choosing fresh independent points is precisely what makes the full -cell grid and the product of probabilities valid. For a target error , this example needsThe ceiling function makes the trial count an integer. Four trials give , while six give ; five still give , so six is the first count below one percent. This is an exact error guarantee for each run on , rather than an observed success rate.
Linear functional Created 2026-09-24 Updated 2026-10-14
A linear functional is a linear map from a vector space to its scalar field :Its output is one scalar, rather than an arbitrary vector in another space. In , gives , , and : adding the two inputs adds their measured values.
The level sets visualize what the measurement retains and discards. For this example they are parallel straight lines . Moving parallel to changes the input but leaves unchanged. The zero level set is its kernel of a linear map, while the other level sets are translates of that vector subspace.
Inputs need not be geometric arrows. On the vector space of polynomials of polynomial degree at most two, evaluating at zero is a linear functional, as is taking the definite integral from zero to one. For , they give and . Thus polynomial evaluation and integration are two different measurements of the same polynomial. Coordinate extraction is another measurement, developed under dual basis.
A linear functional is defined by linearity, not by continuity. In finite-dimensional real or complex normed vector spaces it is automatically continuous; in infinite dimension it need not be. The continuous dual space adds this requirement when small changes in the input should give small changes in the output.
One-sided error Created 2026-09-24 Updated 2026-10-18
A randomized decision algorithm has one-sided error when one answer is always correct and only the other answer can be mistaken.
The guarantee concerns each fixed input, with probability taken over the choices of the randomized algorithm. Always state which answer is protected. In polynomial identity testing, call an input positive when its polynomial is identically zero, and let acceptance mean claiming an identity. Then the possibilities are:
| Actual polynomial | Accept: claim identity | Reject: claim nonidentity |
|---|---|---|
| Identically zero | Always correct; every trial accepts. | Impossible with exact polynomial evaluation. |
| Nonzero | Possible mistake if the chosen point is a zero. | Always correct; the point is a witness. |
Thus a zero polynomial evaluation can leave uncertainty, but a nonzero polynomial evaluation settles the question. An error bound for a fixed nonzero polynomial is not the conditional probability that a particular accepted input is an identity; that latter question would need a distribution on the inputs as well.
In computational complexity theory, a polynomial-time algorithm with this orientation and false acceptance probability at most establishes membership in co-RP. Reversing the question to ask whether the polynomial is nonzero gives the RP orientation: negative instances are always rejected. The random evaluation test for a polynomial identity explains the required field, total degree, sampling and evaluation assumptions.
All the following polynomial coefficients and sums lie in the field with two elements, so . For the constant polynomial,For the linear polynomial, subtracting the leading multiple means adding it:For the quadratic polynomial, first cancel using , leaving ; then cancel using . ThusThe requested polynomial quotients and polynomial remainders are thereforeFor a general polynomial , write with constant . Since , polynomial evaluation at gives . This is the polynomial remainder theorem with in the field with two elements. HenceThe polynomial remainder is precisely the parity bit obtained by taking the exclusive or of all the polynomial coefficients.
The prescribed form is a sum of products of real polynomial evaluations. It is a symmetric bilinear form, since each evaluation is a linear map. AlsoEquality forces . A nonzero polynomial of degree of a polynomial at most two cannot have three distinct roots of a polynomial, by the root bound for a polynomial. Thus equality holds only for the zero polynomial, establishing positive definiteness. Therefore the form is a real inner product, and is an inner product space. This is a discrete sampling inner product on polynomial spaces.
Polynomial division Created 2026-09-24 Updated 2026-10-18
Polynomial division separates a polynomial into a multiple of a chosen divisor and a smaller polynomial remainder. Given over a field , with , there are unique polynomials satisfyingHere is the polynomial quotient. The bound concerns polynomial degree, rather than the sizes of the coefficients.[ref]
Fields and Galois Theory by James S. Milne. Fields and Galois Theory, version 5.10, Chapter 1, p. 10, §1.6: division algorithm, zero remainder alternative and uniqueness
For an original example over the rational numbers, takePolynomial long division first cancels by subtracting :Subtracting one more copy of cancels :ThusThe final polynomial remainder has polynomial degree one, below the divisor's polynomial degree two. Multiplying out the last identity checks every coefficient, including the constant term .
The polynomial degree bound makes this decomposition useful: it replaces a potentially long polynomial with a short polynomial remainder whenever multiples of can be discarded. At any root of a polynomial of , those multiples vanish under polynomial evaluation. Repeated polynomial division also drives the Euclidean algorithm for finding a greatest common divisor of polynomials.
The coefficient setting matters. Over a commutative ring, the same existence and uniqueness hold when the divisor's leading coefficient is a unit in a ring. A monic polynomial therefore works over the integers, even though they do not form a field; monic polynomial division over a ring explains why zero divisors cause no difficulty in that case.[ref]
Chapter 3 Ring theory. Abstract Algebra, Chapter 3 Ring theory, §3.9, Theorem 3.9.1: division with a unit leading coefficient
A nonzero divisor alone is insufficient over the integers. Dividing by with an integer polynomial quotient and a constant polynomial remainder would require for an integer , which is impossible. Over the rational numbers the division instead givesThe obstruction is the nonunit leading coefficient . This example separates existence from uniqueness: over an integral domain, the polynomial degree argument still makes any admissible pair unique, if it exists.
Polynomial evaluation 2026-10-14
Polynomial evaluation replaces the indeterminate of a polynomial by an input value. For a fixed scalar , the rule is a linear functional on a vector space of polynomials, because evaluating a linear combination gives the same linear combination of the values. For , evaluation at zero gives one and evaluation at two gives seventeen. Polynomial interpolation uses these measurements to reconstruct a polynomial subject to a polynomial degree bound.
Polynomial identity testing Created 2026-09-24 Updated 2026-10-18
Polynomial identity testing asks whether a polynomial represented implicitly, such as by an arithmetic circuit or a remainder computation, is the zero polynomial.
Here zero means that every coefficient vanishes after collecting equal monomials in the polynomial ring. Testing equality of two polynomials amounts to testing for zero. An arithmetic circuit can permit cheap polynomial evaluation even when expanding all monomials is expensive. The random evaluation test for a polynomial identity exploits this: one nonzero value disproves the polynomial identity, while a known total degree limits how often a nonzero polynomial can evade detection.[ref]
Lecture 9: Polynomial Identity Testing by the Schwartz-Zippel Lemma. CPSC 536N: Randomized Algorithms; Lecture 9: Polynomial Identity Testing by the Schwartz-Zippel Lemma, §1: formal zero means all coefficients vanish; representations and evaluation access
For example, for an integer , has distinct monomials, one for each subset of the variables. Its factored expression needs only additions and multiplications for one polynomial evaluation. Evaluating the compact expression avoids creating its expanded list of coefficients. The saving is especially attractive in many variables; it does not make a zero result into a proof of identity.
Work in the finite field , using modular arithmetic modulo five. Consider the two original polynomial examplesThe distributive property gives , so all coefficients of cancel: is identically zero. In contrast, in this finite field, with nonzero leading coefficient. Its roots of a polynomial are exactly one and two: a product in a field is zero only if a factor is zero.
The complete polynomial evaluations, displayed as representatives modulo five, areIn particular, is a nonzero witness, which disproves identity without examining other points. At one or two, a zero value fails to reveal that is nonzero. A random variable with a uniform distribution on a finite set hits those two polynomial roots with probability .
A crucial limit appears with . Its coefficients make it a nonzero polynomial of polynomial degree five in , yet direct polynomial evaluation gives zero at all five field elements: the values before reduction are , all divisible by five. Thus induces the same polynomial function as the zero polynomial. Any number of trials restricted to will falsely accept this identity. This is compatible with the Schwartz-Zippel lemma: the ratio of polynomial degree to sampling-set size is , which gives no useful guarantee.
When a polynomial's representation permits polynomial evaluation over a larger field extension, a larger sampling set can restore the useful degree ratio. Access only to the induced polynomial function on the original finite field cannot distinguish from zero.[ref]
Lecture 9: Polynomial Identity Testing by the Schwartz-Zippel Lemma. CPSC 536N: Randomized Algorithms; Lecture 9: Polynomial Identity Testing by the Schwartz-Zippel Lemma, §1.4: formal nonzero polynomials can vanish everywhere on a finite field; extension-field evaluations need a suitable representation
Polynomial remainder theorem 2026-10-18
Dividing a polynomial by leaves the constant polynomial remainder . Polynomial division makes the polynomial remainder constant because its polynomial degree must be below one; polynomial evaluation at identifies that constant. In particular, it is zero exactly when is a root of a polynomial of , which is the factor theorem.[ref]
Fields and Galois Theory by James S. Milne. Fields and Galois Theory, version 5.10, Chapter 1, p. 10, §1.7: division by X−a and evaluation of the constant remainder
In the worked example, division by leaves and division by leaves . Division by their product leaves , a polynomial remainder that stores both values at once. The argument also holds over a commutative ring for in that ring, because is a monic polynomial.
Let be a nonzero multivariate polynomial over a field , with total degree at most . Choose a nonempty finite set . For independent random variables , each with a uniform distribution on a finite set on , the Schwartz-Zippel lemma givesNonzeroness is essential; the zero polynomial always evaluates to zero. The total degree sums exponents within each monomial, rather than taking their maximum: has total degree five. The field need not be finite, but must be finite. The estimate reduces error only when .[ref]
CMPT 710 - Complexity Theory: Lecture 18. CMPT 710 and CMPT 407 - Computational Complexity - Fall 2007; CMPT 710 - Complexity Theory: Lecture 18, §3.1, pp. 3–4: Lemma 4 and its inductive proof
The proof begins with the root bound for a polynomial. For several variables, write , with . The total degree of is at most . By induction, vanishes with probability at most . Otherwise the remaining univariate polynomial has at most polynomial roots. Adding the two contributions gives .[ref]
CMPT 710 - Complexity Theory: Lecture 18. CMPT 710 and CMPT 407 - Computational Complexity - Fall 2007; CMPT 710 - Complexity Theory: Lecture 18, §3.1, pp. 3–4: split by the leading coefficient in the last variable
The algorithm samples a point, performs exact polynomial evaluation, rejects the identity if the value is nonzero, and otherwise accepts. The lemma bounds false acceptance for every fixed nonzero input. For the polynomial identity testing over a finite field example, has and , so its exact error attains the bound. Numerical near-zero values from floating-point arithmetic do not satisfy this exact algebraic contract. A polynomial-time algorithm claim additionally needs efficient sampling and evaluation, including the bit cost of representing and operating on field elements. Counting field operations alone does not establish that cost.
Remainder of polynomial division Created 2026-10-14 Updated 2026-10-18
The polynomial remainder is the polynomial in polynomial division . Division by has a constant polynomial remainder , as expressed by the factor theorem.
For any identity , polynomial evaluation at a root of a polynomial of givesThis substitution requires no division by . In the worked example, polynomial factorization gives , so its two roots of a polynomial are and . The cubic polynomial and its linear polynomial remainder agree there:A cubic expression has been compressed into a straight line carrying exactly these two values.
The original polynomial and its polynomial remainder agree at both polynomial roots of because vanishes there
. Details. Conversely, those two values determine the linear polynomial remainder by polynomial interpolation. Write ; then and , giving and . The polynomial degree bound is essential: adding any multiple of preserves the two values, but generally raises the polynomial degree. The plot also shows agreement at , where rather than . Agreement of and at a point therefore does not imply that the point is a root of a polynomial of the divisor.




