Introduction to Modern Algebra

Whole numbers can be divided with a remainder, they have greatest common divisors and primes, and modulo a prime pp they give the field Fp\mathbb{F}_p (Theorem 10.2.6). Polynomials can be added, multiplied and divided with a remainder too.

A polynomial needs a precise meaning that works with coefficients in any ring, including rings such as Fp\mathbb{F}_p, where a polynomial and the function it defines can come apart. From here on, every ring is commutative.

Polynomials

Definition 11.1.1 (Polynomial ring).

Let RR be a ring. A polynomial in xx with coefficients in RR is an expression

f=a0+a1x+a2x2+⋯+anxnf = a_0 + a_1x + a_2x^2 + \dots + a_nx^n

with n≥0n \ge 0 and a0,…,an∈Ra_0, \dots, a_n \in R. Two polynomials are equal when they have the same coefficient for each power of xx, a missing power counting as coefficient 00. Polynomials are added coefficient by coefficient. They are multiplied by expanding with xixj=xi+jx^ix^j = x^{i+j}: if f=∑iaixif = \sum_i a_ix^i and g=∑jbjxjg = \sum_j b_jx^j, the coefficient of xkx^k in fgfg is

ck=∑i+j=kaibj.c_k = \sum_{i + j = k} a_ib_j.

With these operations the polynomials form a ring R[x]R[x], the polynomial ring over RR.

If f≠0f \neq 0, the largest nn with an≠0a_n \neq 0 is the degree deg⁡f\deg f of ff, and ana_n is its leading coefficient. A polynomial is monic if its leading coefficient is 11, and constant if it is 00 or has degree 00.

The ring axioms for R[x]R[x] come from those of RR. Addition is addition of coefficient lists, so it inherits commutativity, associativity, the zero polynomial 00 and negatives from RR. Multiplication is commutative because the formula for ckc_k is symmetric in ff and gg. It is associative because in both (fg)h(fg)h and f(gh)f(gh) the coefficient of xmx^m is the sum of aibjcla_ib_jc_l over all i+j+l=mi + j + l = m, where h=∑lclxlh = \sum_l c_lx^l. The constant polynomial 11 is the identity, and the distributive law holds coefficient by coefficient.

The constant polynomials are a copy of RR inside R[x]R[x], and they add and multiply as in RR. The zero polynomial has no degree, so a statement about deg⁡f\deg f assumes f≠0f \neq 0.

In Fp[x]\mathbb{F}_p[x] the coefficients are classes [0],[1],…,[p−1][0], [1], \dots, [p - 1], and they are written 0,1,…,p−10, 1, \dots, p - 1, as in x2+2x+1x^2 + 2x + 1 for x2+[2]x+[1]x^2 + [2]x + [1].

The degree of a product

Over Z/6Z\mathbb{Z}/6\mathbb{Z} a product can lose degree: (2x+1)(3x+1)=5x+1(2x + 1)(3x + 1) = 5x + 1, because 2⋅3=02 \cdot 3 = 0. Over an integral domain this cannot happen.

Theorem 11.1.2 (Degree of a product).

Let RR be an integral domain, and let ff and gg be non-zero polynomials in R[x]R[x]. Then fg≠0fg \neq 0,

deg⁡(fg)=deg⁡f+deg⁡g,\deg(fg) = \deg f + \deg g,

and the leading coefficient of fgfg is the product of the leading coefficients of ff and gg. Consequently:

  • (i) R[x]R[x] is an integral domain.
  • (ii) The units of R[x]R[x] are the constant polynomials aa with aa a unit of RR: R[x]×=R×R[x]^\times = R^\times.
Proof.

Idea. Look only at the top coefficient of fgfg: it is the product of the two leading coefficients, which an integral domain does not allow to be 00. Parts (i) and (ii) then follow from the degrees.

  1. Write f=a0+⋯+amxmf = a_0 + \dots + a_mx^m and g=b0+⋯+bnxng = b_0 + \dots + b_nx^n with am≠0a_m \neq 0 and bn≠0b_n \neq 0. Then ck=0c_k = 0 for k>m+nk > m + n, and cm+n=ambnc_{m+n} = a_mb_n.

    In the formula ck=∑i+j=kaibjc_k = \sum_{i + j = k} a_ib_j, a product aibja_ib_j can be non-zero only when i≤mi \le m and j≤nj \le n, so only when i+j≤m+ni + j \le m + n. For k=m+nk = m + n, the only such pair is i=mi = m, j=nj = n.

  2. fg≠0fg \neq 0, its degree is m+nm + n, and its leading coefficient is ambna_mb_n.

    Since RR has no zero divisors, ambn≠0a_mb_n \neq 0, and by the first step no coefficient of fgfg above cm+n=ambnc_{m+n} = a_mb_n is non-zero.

  3. (i) R[x]R[x] is an integral domain.

    R[x]R[x] is commutative, and 1≠01 \neq 0 in R[x]R[x] because 1≠01 \neq 0 in RR. A product of two non-zero polynomials is non-zero, by the second step.

  4. (ii) The units of R[x]R[x] are the constants aa with aa a unit of RR.

    Suppose fg=1fg = 1. Then f,g≠0f, g \neq 0 and, by the second step, deg⁡f+deg⁡g=deg⁡1=0\deg f + \deg g = \deg 1 = 0, so both have degree 00: f=af = a and g=bg = b are constants with ab=1ab = 1 in RR, and aa is a unit of RR. Conversely, a unit aa of RR is a unit of R[x]R[x], with inverse the constant polynomial a−1a^{-1}.

□

A field is an integral domain (Theorem 10.2.4), so for a field FF the ring F[x]F[x] is an integral domain whose units are the non-zero constants.

Evaluating a polynomial

A polynomial is not a function, but each polynomial gives one. To evaluate f=∑iaixif = \sum_i a_ix^i at an element aa, replace xx by aa: f(a)=∑iaiaif(a) = \sum_i a_ia^i. The element aa may lie in RR or in a bigger ring, as when a polynomial with rational coefficients is evaluated at 2\sqrt{2}.

Theorem 11.1.3 (Evaluation).

Let RR be a subring of a commutative ring SS (for example S=RS = R), and let a∈Sa \in S. For f=a0+a1x+⋯+anxnf = a_0 + a_1x + \dots + a_nx^n in R[x]R[x], put

f(a)=a0+a1a+⋯+anan∈S.f(a) = a_0 + a_1a + \dots + a_na^n \in S.

Then the map R[x]→SR[x] \to S, f↦f(a)f \mapsto f(a), is a ring homomorphism: (f+g)(a)=f(a)+g(a)(f + g)(a) = f(a) + g(a), (fg)(a)=f(a)g(a)(fg)(a) = f(a)g(a), and the constant polynomial 11 goes to 11.

Proof.

Idea. The rule for multiplying polynomials is exactly what expanding a product of two sums of powers of aa in SS gives. Sums and the constant 11 are direct checks.

  1. (f+g)(a)=f(a)+g(a)(f + g)(a) = f(a) + g(a).

    The coefficient of xix^i in f+gf + g is ai+bia_i + b_i, where g=∑ibixig = \sum_i b_ix^i, and ∑i(ai+bi)ai=∑iaiai+∑ibiai\sum_i (a_i + b_i)a^i = \sum_i a_ia^i + \sum_i b_ia^i by the distributive law in SS.

  2. (fg)(a)=f(a)g(a)(fg)(a) = f(a)g(a).

    By the distributive law, f(a)g(a)f(a)g(a) is the sum of the products (aiai)(bjaj)(a_ia^i)(b_ja^j) over all pairs (i,j)(i, j). Since SS is commutative, each product equals aibj ai+ja_ib_j\,a^{i+j}. Collecting the pairs with i+j=ki + j = k,

    f(a)g(a)=∑k(∑i+j=kaibj)ak,f(a)g(a) = \sum_k \Bigl(\sum_{i + j = k} a_ib_j\Bigr)a^k,

    which is (fg)(a)(fg)(a) by the definition of the product fgfg.

  3. The constant polynomial 11 goes to 11.

    It has a0=1a_0 = 1 and no other terms, so its value is 11.

□

An element aa with f(a)=0f(a) = 0 is a root of ff. So 2\sqrt{2} is a root of x2−2x^2 - 2, and ii is a root of x2+1x^2 + 1.

A polynomial is not its function

Over R\mathbb{R}, a polynomial and the function it defines are usually not told apart. Over a finite field they must be: there are only ppp^p functions from Fp\mathbb{F}_p to itself, but infinitely many polynomials in Fp[x]\mathbb{F}_p[x].

Example 11.1.4 (A non-zero polynomial with every element as a root).

Let pp be a prime. The polynomial xp−xx^p - x in Fp[x]\mathbb{F}_p[x] is not zero, since its coefficient of xpx^p is 11. Yet ap−a=0a^p - a = 0 for every a∈Fpa \in \mathbb{F}_p. So xp−xx^p - x and 00 are different polynomials that define the same function on Fp\mathbb{F}_p.

Why every element of Fp\mathbb{F}_p is a root.

Recall Fermat’s little theorem: np≡n(modp)n^p \equiv n \pmod p for every integer nn. Each element of Fp\mathbb{F}_p is a class [n][n], and classes are multiplied through representatives, so [n]p=[np]=[n][n]^p = [n^p] = [n]. So ap−a=0a^p - a = 0 for every a∈Fpa \in \mathbb{F}_p. □

For p=2p = 2 this says that x2+xx^2 + x vanishes at 00 and at 11, although it has degree 22. So in Fp[x]\mathbb{F}_p[x], statements about polynomials are about coefficients, never only about values.