Mathematics · Glossary

What is Polynomial, degree?

Also known as: polynomial · monic polynomial

Definition 8.1 University Mathematics — Year 1 · Chapter 8 — Polynomials

A polynomial with coefficients in KK is a formal sum

P=a0+a1X+a2X2++anXn=kakXk,P = a_0 + a_1 X + a_2 X^2 + \dots + a_n X^n = \sum_{k} a_k X^k,

with akKa_k \in K all zero from some index on. With the natural addition and the product

(iaiXi)(jbjXj)=k(i+j=kaibj)Xk,\Bigl(\sum_i a_i X^i\Bigr)\Bigl(\sum_j b_j X^j\Bigr) = \sum_k \Bigl(\sum_{i+j=k} a_i b_j\Bigr) X^k,

the set K[X]K[X] is a commutative ring. The degree degP\deg P of P0P \neq 0 is the largest nn with an0a_n \neq 0; ana_n is the leading coefficient (PP is monic when an=1a_n = 1), and by convention deg0=\deg 0 = -\infty. Every polynomial defines a function xP(x)x \mapsto P(x) on KK by substitution.

Examples

Example 8.4

Divide A=X4+X32X+1A = X^4 + X^3 - 2X + 1 by B=X2+1B = X^2 + 1:

X4+X32X+1=(X2+1)(X2+X1)+(3X+2).X^4 + X^3 - 2X + 1 = (X^2 + 1)(X^2 + X - 1) + (-3X + 2).

(Compute: subtract X2BX^2 B, then XBX B, then B-B; the remainder 3X+2-3X + 2 has degree 1<21 < 2.)

Example 8.9 (The auxiliary-polynomial trick)

Let PP be the polynomial of degree n\leq n with

P(k)=kk+1(k=0,1,,n);P(k) = \frac{k}{k+1} \qquad (k = 0, 1, \dots, n) ;

it exists and is unique by Lagrange interpolation below. What is P(n+1)P(n+1)? Clear denominators: the polynomial Q=(X+1)PXQ = (X+1)P - X has degree n+1\leq n + 1 and vanishes at the n+1n + 1 points 0,1,,n0, 1, \dots, n, so by Theorem 8.7

Q=cX(X1)(X2)(Xn)Q = c\,X(X-1)(X-2)\cdots(X-n)

for some constant cc. Evaluate where QQ is known independently: at X=1X = -1, Q(1)=0P(1)+1=1Q(-1) = 0 \cdot P(-1) + 1 = 1, while the product equals (1)(2)(1n)=(1)n+1(n+1)!(-1)(-2)\cdots(-1-n) = (-1)^{n+1}(n+1)!; hence c=(1)n+1(n+1)!c = \frac{(-1)^{n+1}}{(n+1)!}. Now evaluate at X=n+1X = n + 1:

(n+2)P(n+1)(n+1)=Q(n+1)=c(n+1)!=(1)n+1,(n+2)\,P(n+1) - (n+1) = Q(n+1) = c\,(n+1)! = (-1)^{n+1} ,

so P(n+1)=(n+1)+(1)n+1n+2P(n+1) = \dfrac{(n+1) + (-1)^{n+1}}{n+2}: equal to 11 for odd nn, and to nn+2\frac{n}{n+2} for even nn — the interpolating polynomial does not continue the pattern n+1n+2\frac{n+1}{n+2}. 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: aa is a multiple root of PP iff it is a common root of PP and PP', so PP has a multiple root (in C\C) iff gcd(P,P)1\gcd(P, P') \neq 1 — computable by the Euclidean algorithm without solving anything. Sample: P=X33X+2P = X^3 - 3X + 2, P=3X23=3(X1)(X+1)P' = 3X^2 - 3 = 3(X - 1)(X + 1). Testing the roots ±1\pm1 of PP' inside PP: P(1)=0P(1) = 0 but P(1)=4P(-1) = 4, so

gcd(P,P)=X1:\gcd(P, P') = X - 1 :

the root 11 is multiple; dividing twice, P=(X1)2(X+2)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.

Read in context →