For fixed interpolation nodes , interpolate any as
Integrating shows that the unique weights making the quadrature rule exact through degree are
Now let the nodes be the zeros of the degree- orthogonal polynomial . Given any , polynomial division gives
Orthogonality gives , while makes the quadrature sum for vanish. The rule is already exact on , so it is exact on . This is the defining precision property of Gaussian quadrature.
Lagrange theorem for polynomial congruences says that a nonzero polynomial of degree over the finite field has at most roots. To prove it, use mathematical induction on . A constant nonzero polynomial has no roots. If , polynomial division in the field gives with . Every root other than is a root of , so the induction hypothesis gives at most roots.
Every nonzero residue class modulo has a unique multiplicative inverse. In the product , pair each class with its inverse. The unpaired classes satisfy , hence . By the theorem these are exactly and , and therefore
This is Wilson theorem.
Now write . By Fermat's little theorem, every nonzero class is a root of
The second factor has degree and hence at most roots. Since their union contains all nonzero classes, has at least roots; Lagrange's theorem gives at most . Thus has exactly solutions.
Let be the Lagrange interpolation polynomial for the roots , and define
For , polynomial division gives with . Orthogonality kills the first term, while interpolation gives . Therefore
Taking proves uniqueness. Taking also shows
This is Gaussian quadrature.
Let . By polynomial division, every has a unique decomposition
Every node is a zero of , so . The assumed degree- exactness also gives . Hence
Therefore for every if and only if
for every . This proves the nodal-polynomial criterion for quadrature exactness.
The factor theorem supplies the factor . Polynomial division gives
The quadratic formula then gives the other two roots of a polynomial:
The known root gives a factor by the factor theorem. Polynomial division leaves , so
Consequently all the roots are
The three linear factors account for the full degree of the polynomial, so there are no further complex roots.
Since for all real , divide the equation by that factor. Its linear coefficient can be integrated by polynomial division:
Thus a positive integrating factor is . Multiplying the divided equation gives the product rule form
The integration by substitution gives
The initial condition fixes . The required solution is therefore
No real singularity was introduced by the division or the integrating factor, so the solution extends over the entire real line.
The given polynomial root supplies the factor . Polynomial division gives
Solving the remaining quadratic equation, the other two polynomial roots are
Let denote the conventional Legendre polynomial, normalized by . The quadrature nodes are its distinct polynomial roots in . For these nodes form the Lagrange cardinal polynomials
Choose the quadrature weights by integrating these polynomials:
An equivalent standard formula is
The reason for selecting these quadrature nodes is the resulting degree of precision of a quadrature rule. For any polynomial of polynomial degree at most , polynomial division gives
The orthogonality of the Legendre polynomial makes , while at each quadrature node. The definition of the quadrature weights integrates exactly, so
In particular, . Applying this exactness to also proves .
Clearing the denominators in the rational interpolation conditions gives
These are linear equations for unknowns. The th row of the coefficient matrix, in the order , is
This rational interpolation linearization is equivalent to the original fraction conditions only if at every interpolation node. If , the cleared equation merely forces , leaving the fraction undefined.
For , the coefficient row becomes
This is the Vandermonde matrix, whose determinant is . Equivalently, a vector in its null space would define a degree-at-most- polynomial vanishing at all distinct interpolation nodes, which is zero by the preceding uniqueness proof. Thus the cleared linear system has exactly one solution.
There is also a constructive description of that solution. Define the monic polynomial
The polynomial is monic of degree and vanishes at every interpolation node. It must therefore equal . By polynomial division, write uniquely
The quotient is monic of degree , and
is the unique coefficient solution. This does not assert that is nonzero at every interpolation node.
For a counterexample with , , choose and the specified data , so . The cleared equations reduce to
giving the unique solution , . But at the quotient is . Indeed, any genuine rational interpolant of this prescribed form would need ; then forces the constant numerator to be zero. At a nonzero denominator its value at would also be zero, never one. Cancelling the common factor in the cleared candidate would merely give the identically zero rational function, which still fails the data. Hence
Polynomial division gives a unique remainder of degree less than in every coset. Thus the classes
span the quotient as an -vector space. A linear combination of them that vanishes would be a polynomial of degree less than divisible by , so it is the zero polynomial. They are therefore linearly independent, proving
Use the intended degree ordering from part (b). Let be the degree- Lagrange cardinal polynomial at the distinct roots of :
For any , polynomial division gives with and . Orthogonality of to makes the integral of zero, and that product also vanishes at every quadrature node. Meanwhile by interpolation. Consequently
Thus the rule is exact up to degree . To determine the sign of a weight, apply exactness to , of degree :
The inequality is strict because is a nonzero polynomial and the weight is positive. This is the Gaussian quadrature construction; the source asks only for nonnegative weights, and the proof gives positivity.
Use the degree-ordered orthogonal polynomials identified in (b); otherwise the printed nodes need not exist. Let be the degree- Lagrange interpolation polynomial with and set .
For any , polynomial division gives with and . Orthogonality gives , while this product also vanishes at every node. The interpolation formula for then proves
Apply this exactness to , of degree at most . It gives , because is not the zero polynomial. Thus all quadrature weights are actually strictly positive, stronger than the requested nonnegativity. Here exactness is for the weighted integral defined at the start of the question.
A Euclidean domain is an integral domain with a Euclidean function such that, for with , there exist satisfying
The polynomial ring has this property with . To perform polynomial division, subtract an appropriate multiple of the divisor to cancel the leading term of the current remainder. Its polynomial degree decreases strictly at each step, so the process terminates below the divisor's degree. The required division of leading coefficients is possible in the field . Thus a polynomial ring over a field is Euclidean, with the same argument applying to every field.
Now let be a nonzero ideal of a Euclidean domain, and choose with the least possible value of . For every , divide . The remainder belongs to , since . If it were nonzero, its smaller Euclidean value would contradict the choice of . Thus and every lies in . Conversely because is an ideal. Hence . The zero ideal is already , proving every Euclidean domain is a principal ideal domain.
Set and . Part (b)(i) gives a unique representative for each element of the quotient ring . By polynomial division, each element of the quotient ring likewise has a unique representative . Thus the proposed map is well-defined and a bijection.
It preserves addition and . To verify multiplication, all terms of polynomial degree at least lie in . Hence
In the other quotient ring, , giving exactly the same coefficient formula:
Therefore
is a ring isomorphism. Both sides are examples of a truncated polynomial ring; the generator on the left is the class of , whose square is nonzero and whose cube vanishes.
The polynomial ring is a euclidean domain under polynomial degree, hence a principal ideal domain. By part (b)(i), each
is a field. By polynomial division, every residue class has exactly one representative of polynomial degree less than . Thus form a basis over , and .
For , the ideals and are distinct maximal ideals, so they are comaximal ideals: their sum is an ideal properly containing and must be the whole ring. The Chinese remainder theorem for ideals and part (b)(ii) therefore give the ring isomorphism
In particular, this is a product of finite fields of the required sizes. The map preserves multiplication as well as addition and is surjective by the Chinese remainder theorem for ideals.
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 satisfying
Here is the polynomial quotient. The bound concerns polynomial degree, rather than the sizes of the coefficients.[ref]
For an original example over the rational numbers, take
Polynomial long division first cancels by subtracting :
Subtracting one more copy of cancels :
Thus
The 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 .
Figure 1.
Polynomial long division cancels the cubic and quadratic terms in two steps, recording and
. Details.
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]
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 gives
The 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.
By polynomial division, write with . Because is a monic polynomial, this division works even over a commutative ring. Evaluating at makes the multiple of vanish, leaving . This explains the reduction in two-coefficient reduction of matrix powers without multiplying out every intermediate matrix.
Over a field, the minimal polynomial divides and gives the strongest such universal reduction: use the polynomial remainder modulo instead. For the scalar matrix , the characteristic polynomial is , while the minimal polynomial is only . Every matrix power is then a scalar multiple of .
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]
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.