A polynomial with coefficients in K is a formal sum
P=a0+a1X+a2X2+⋯+anXn=k∑akXk,
with ak∈K all zero from some index on. With the natural addition and the product
(i∑aiXi)(j∑bjXj)=k∑(i+j=k∑aibj)Xk,
the set K[X] is a commutative ring. The degree degP of P=0 is the largest n with an=0; an is the leading coefficient (P is monic when an=1), and by convention deg0=−∞. Every polynomial defines a function x↦P(x) on K by substitution.
Examples
Example 8.4
Divide A=X4+X3−2X+1 by B=X2+1:
X4+X3−2X+1=(X2+1)(X2+X−1)+(−3X+2).
(Compute: subtract X2B, then XB, then −B; the remainder −3X+2 has degree 1<2.)
Example 8.9 (The auxiliary-polynomial trick)
Let P be the polynomial of degree ≤n with
P(k)=k+1k(k=0,1,…,n);
it exists and is unique by Lagrange interpolation below. What is P(n+1)? Clear denominators: the polynomial Q=(X+1)P−X has degree ≤n+1 and vanishes at the n+1 points 0,1,…,n, so by Theorem 8.7
Q=cX(X−1)(X−2)⋯(X−n)
for some constant c. Evaluate where Q is known independently: at X=−1, Q(−1)=0⋅P(−1)+1=1, while the product equals (−1)(−2)⋯(−1−n)=(−1)n+1(n+1)!; hence c=(n+1)!(−1)n+1. Now evaluate at X=n+1:
(n+2)P(n+1)−(n+1)=Q(n+1)=c(n+1)!=(−1)n+1,
so P(n+1)=n+2(n+1)+(−1)n+1: equal to 1 for odd n, and to n+2n for even n — the interpolating polynomial does not continue the pattern n+2n+1. The trick to remember: encode the data as roots of an auxiliary polynomial, identify the unknown constant at a point outside the data, and harvest.
Example 8.13 (Detecting multiple roots with a gcd)
When no root is known, Proposition 8.11 still gives a global multiple-root detector: a is a multiple root of P iff it is a common root of P and P′, so P has a multiple root (in C) iff gcd(P,P′)=1 — computable by the Euclidean algorithm without solving anything. Sample: P=X3−3X+2, P′=3X2−3=3(X−1)(X+1). Testing the roots ±1 of P′ inside P: P(1)=0 but P(−1)=4, so
gcd(P,P′)=X−1:
the root 1 is multiple; dividing twice, P=(X−1)2(X+2). The gcd even reports the full set of multiple roots, each with multiplicity lowered by one — the fact every computer-algebra system exploits to “square-free factorize” before any root-hunting, and the polynomial twin of Exercise 8.9’s no-multiple-root arguments.