Home › Algebraic Equations › Lesson 2

Polynomial Rings over a Field

Lesson 2 of 13

Key idea of this section

f = qg + r with deg r < deg g          (division with remainder)
f(a) = 0  ⟺  (x − a) divides f       (factor theorem)
a nonzero f ∈ K[x] has at most deg f roots in K

A polynomial over K is a finite formal sum f = aₙxⁿ + ⋯ + a₁x + a₀ with aᵢ ∈ K. Formally, f is the sequence (a₀, a₁, …) with only finitely many nonzero terms; the indeterminate x is not a number but a symbol, and two polynomials are equal precisely when their coefficient sequences agree. This distinction matters over finite fields: over 𝔽ₚ the polynomials xᵖ and x are different (their coefficients differ), although by Fermat's little theorem they define the same function 𝔽ₚ → 𝔽ₚ.

Degree and integral domains

If f, g ≠ 0 then lc(fg) = lc(f) lc(g) ≠ 0, because a field has no zero divisors. Hence deg(fg) = deg f + deg g, K[x] is an integral domain, and its units are exactly the nonzero constants. With the convention deg 0 = −∞ the degree formula holds for all f, g.

Theorem 2.1 (Division with remainder). Let g ∈ K[x] be nonzero. For every f ∈ K[x] there are unique q, r ∈ K[x] with f = qg + r and deg r < deg g.

Proof. Existence, by induction on deg f. If deg f < deg g take q = 0, r = f. Otherwise let deg f = n ≥ m = deg g and put f₁ = f − (lc(f)/lc(g)) xⁿ⁻ᵐ g. The leading terms cancel, so deg f₁ < n, and by induction f₁ = q₁g + r with deg r < m; then f = (q₁ + (lc(f)/lc(g))xⁿ⁻ᵐ)g + r. Uniqueness: if qg + r = q′g + r′, then (q − q′)g = r′ − r. The right side has degree < m, while the left side has degree ≥ m unless q = q′. Hence q = q′ and r = r′. ∎

The only place a division by a coefficient occurs is by lc(g). So the same argument works over any commutative ring provided g is monic (or lc(g) is a unit). This remark is what makes the factor theorem valid over every commutative ring.

Worked example. Divide f = x⁴ − 3x³ + 2x − 5 by g = x² + x − 1. The first quotient term is x²; f − x²g = −4x³ + x² + 2x − 5. Next −4x: adding 4xg gives 5x² − 2x − 5. Next 5: subtracting 5g gives −7x. Hence

x⁴ − 3x³ + 2x − 5 = (x² + x − 1)(x² − 4x + 5) − 7x

Check: (x² + x − 1)(x² − 4x + 5) = x⁴ − 3x³ + 9x − 5, and subtracting 7x gives the original polynomial.

The factor theorem and counting roots

Theorem 2.2 (Factor theorem). Let R be a commutative ring, f ∈ R[x], a ∈ R. Then f = (x − a)q + f(a) for some q ∈ R[x]. In particular f(a) = 0 if and only if (x − a) divides f.

Proof. Divide by the monic polynomial x − a: f = (x − a)q + r with r a constant. Evaluating at a gives r = f(a). ∎

Corollary 2.3. Over an integral domain, a nonzero polynomial of degree n has at most n roots.

Proof. Induction on n. If f(a) = 0 then f = (x − a)q with deg q = n − 1. If f(b) = 0 with b ≠ a, then (b − a)q(b) = 0 and, since there are no zero divisors and b − a ≠ 0, q(b) = 0. So every root other than a is a root of q, which has at most n − 1 roots. ∎

The hypothesis is essential. In ℤ/8ℤ, which has zero divisors, the polynomial x² − 1 has four roots: 1, 3, 5, 7. Over the noncommutative ring of quaternions, x² + 1 has infinitely many roots (every unit pure quaternion). The corollary has a famous consequence: a finite subgroup of the multiplicative group of a field is cyclic. (If the group G had exponent e < |G|, all of its elements would be roots of xᵉ − 1, more than e roots; and a finite abelian group whose exponent equals its order is cyclic.) In particular 𝔽ₚˣ is cyclic of order p − 1: primitive roots exist.

The Euclidean algorithm and ideals

Because of division with remainder, K[x] is a Euclidean domain, hence a principal ideal domain and a unique factorization domain. The greatest common divisor of f and g is the monic generator of the ideal (f, g), and the Euclidean algorithm computes it together with Bézout coefficients u, v with uf + vg = gcd(f, g). A nonconstant polynomial is irreducible if it is not a product of two polynomials of smaller degree. Every nonconstant polynomial is a product of irreducibles, uniquely up to order and constant factors.

Theorem 2.4. For p ∈ K[x] nonconstant, the quotient ring K[x]/(p) is a field if and only if p is irreducible.

Proof. If p = gh with g, h of smaller degree, the classes of g and h are nonzero but multiply to zero, so the quotient is not a domain. Conversely, if p is irreducible and p does not divide f, then gcd(f, p) = 1, so uf + vp = 1 and the class of u inverts the class of f. ∎

Worked example. In ℚ[x], compute gcd(x⁴ − 1, x³ + 2x² + 2x + 1). Dividing, x⁴ − 1 = (x − 2)(x³ + 2x² + 2x + 1) + (2x² + 3x + 1). Then x³ + 2x² + 2x + 1 = ((1/2)x + 1/4)(2x² + 3x + 1) + (3/4)(x + 1), and 2x² + 3x + 1 = (2x + 1)(x + 1). The last nonzero remainder, made monic, is x + 1. Indeed x⁴ − 1 = (x − 1)(x + 1)(x² + 1) and x³ + 2x² + 2x + 1 = (x + 1)(x² + x + 1).

Multiple roots and the formal derivative

Define the formal derivative D(∑ aᵢxⁱ) = ∑ i aᵢ xⁱ⁻¹. It is K-linear and satisfies the Leibniz rule, with no analysis involved. A root a of f is multiple if (x − a)² divides f.

Proposition 2.5. a is a multiple root of f if and only if f(a) = f′(a) = 0. Consequently f has a multiple root in some extension field if and only if gcd(f, f′) ≠ 1.

Proof. Write f = (x − a)ᵐ g with g(a) ≠ 0 and m ≥ 1. Then f′ = (x − a)ᵐ⁻¹(mg + (x − a)g′), so if m ≥ 2 then f′(a) = 0, while if m = 1 then f′(a) = g(a) ≠ 0. For the second statement, note that the gcd of f and f′ does not change when the field is enlarged, since it is computed by the Euclidean algorithm inside K[x]. ∎

The proposition makes a polynomial's multiple roots detectable without finding any roots, and it shows that an irreducible f over a field of characteristic 0 has distinct roots: gcd(f, f′) is a divisor of the irreducible f of smaller degree than f, hence 1. In characteristic p this can fail, because f′ may vanish identically: over the field 𝔽ₚ(t), the polynomial xᵖ − t is irreducible yet has a single root of multiplicity p in its splitting field. Fields in which this pathology cannot occur are called perfect; ℚ and all finite fields are perfect.

Exercise

  • (a)
    Find the remainder when x¹⁰⁰ is divided by x² − 1.
  • (b)
    Find all multiple roots of f = x⁴ − 2x³ + 2x − 1 by computing gcd(f, f′).
Show solution

Answers: (a) Write x¹⁰⁰ = q(x)(x² − 1) + ax + b. Substituting x = 1 and x = −1 gives a + b = 1 and −a + b = 1, so a = 0, b = 1: the remainder is 1. (b) f′ = 4x³ − 6x² + 2 = 2(x − 1)²(2x + 1). Since f = (x − 1)³(x + 1), gcd(f, f′) = (x − 1)², so 1 is the only multiple root (of multiplicity 3).

V.3.1