0.8  Polynomials

We now have fields: number systems in which we can add, subtract, multiply and divide by anything non-zero. The next objects built on top of a field are polynomials. They will be everywhere in this book: as examples of vectors in Chapter 1, as the characteristic and minimal polynomials of a matrix later on, and as the reason some fields behave differently from others. This section says precisely what a polynomial is, introduces its degree, and explains why a polynomial is not the same thing as the function it defines.

0.8.1. What a polynomial is

At school, a polynomial is “an expression like 3x2−x+2”. That is a good picture, but it leaves one question open: what is x? One tempting answer is that x is a number to be plugged in, so a polynomial is really a function. This answer breaks down as soon as we leave the familiar number systems.

Work over the field F2={0,1} of Example (Arithmetic on Z/nZ and the Field F2), where 1+1=0. The expressions x2+x and 0 look different. But if we plug in the two elements of F2, we get 02+0=0 and 12+1=1+1=0. As functions on F2, the two are the same. If a polynomial were its function, then x2+x would be the zero polynomial, and it would have no sensible degree. We want x2+x to be a genuine polynomial of degree 2, so we must define polynomials by their coefficients alone.

A polynomial is its list of coefficients, and nothing else.

Definition 0.8.1 (Polynomial)

Let F be a field. A polynomial over F in the indeterminate x is a sequence (a0,a1,a2,…) of elements of F, indexed by N, such that only finitely many ak are non-zero. That is, there is some N∈N with ak=0 for every k>N.

The element ak is the coefficient of xk. We write the polynomial as p=a0+a1x+a2x2+⋯+aNxN=∑k=0Nakxk. Two polynomials p=∑akxk and q=∑bkxk are equal if and only if ak=bk for every k∈N.

In words: a polynomial is an infinite list of coefficients that is eventually all zero. The expression ∑k=0Nakxk is only a way of displaying the list: xk marks the position k, and we stop writing once the remaining coefficients are all zero. Two polynomials are equal exactly when they agree position by position. A sequence indexed by N is a function N→F, so this is just equality of functions in the sense of Definition 0.4.1.

There is one thing to check about the notation. The number N in the display is not unique: if ak=0 for every k>N, the same is true for every k>N+1. Writing ∑k=0Nakxk or ∑k=0N+1akxk only adds a term 0⋅xN+1, which we agree to drop. So the display names the same sequence whichever admissible N we use. We also drop terms with zero coefficient in the middle, write x for 1⋅x1, and write a0 for a0x0.

Example (Polynomials over various fields)

Read off the coefficient sequence of each polynomial, and check it against Definition 0.8.1. 3x2−x+2∈R[x],x5+πx3−2∈R[x],(1+i)x−i∈C[x],x2+x∈F2[x],7,0. (The symbol F[x] for the set of all polynomials over F is defined formally in Definition 0.8.2 below.)

Solution. The first is the sequence (2,−1,3,0,0,…) of real numbers. It has finitely many non-zero terms, so it is a polynomial over R.

The second is (−2,0,0,π,0,1,0,…). Its coefficients are real but irrational; the definition only asks that they lie in the field.

The third is (−i,1+i,0,…), a polynomial over C.

The fourth is (0,1,1,0,…) with entries in F2. It is not the zero sequence, so it is not the zero polynomial, even though it vanishes at both points of F2.

The constant 7 is the sequence (7,0,0,…). It is a polynomial over Q, R or C. Over F2 it would be (1,0,0,…), because 7=1 there.

The last, 0=(0,0,0,…), is the zero polynomial. It is the degenerate case: every coefficient is zero, and the finiteness condition holds with N=0. It matters because it is the one polynomial whose degree needs a special convention, as we will see.

Now the non-example, by a minimal change. Take the polynomial 1+x+x2, whose sequence is (1,1,1,0,0,…), and change every later 0 to 1. The result (1,1,1,1,…), informally “1+x+x2+x3+⋯”, is still a sequence of elements of R. What fails is the clause only finitely many coefficients are non-zero, so this is not a polynomial. (It is a formal power series, which we will not need.) Expressions such as x−1+1 and x are not polynomials either: they are not of the form ∑akxk with k∈N at all.

Why insist on finitely many non-zero coefficients? Because we want to plug elements of the field into polynomials, which means forming the sum ∑akck, and in a field only finite sums make sense. Finiteness is also what gives every non-zero polynomial a highest power, its degree.

0.8.2. Adding and multiplying polynomials

The coefficient picture tells us how to add and multiply. Adding 3x2−x+2 and x+5 at school means collecting like powers, so we add coefficients position by position. Multiplying means expanding every product aixi⋅bjxj=aibjxi+j and collecting like powers, so the coefficient of xk collects all pairs (i,j) with i+j=k.

Definition 0.8.2 (The polynomial ring F[x])

Let F be a field. The set of all polynomials over F is denoted F[x]. For p=∑akxk and q=∑bkxk in F[x], define the sum p+q and the product pq by their coefficients: p+q=∑k(ak+bk)xk,pq=∑k(∑i=0kaibk−i)xk.

We must check that p+q and pq are again polynomials, that is, that their coefficient sequences are eventually zero. Suppose ai=0 for every i>m and bj=0 for every j>n. If k>max(m,n), then ak+bk=0+0=0. If k>m+n, then in each product aibk−i either i>m or k−i>n, because otherwise k=i+(k−i)≤m+n. So every term is 0, and the coefficient of xk in pq is 0. Hence both are polynomials, and addition and multiplication are well defined on F[x].

With this multiplication, x⋅x has coefficient sequence (0,0,1,0,…), and by induction on k the k-th power of the polynomial x is the sequence with a 1 in position k and 0 elsewhere. So the notation xk in Definition 0.8.1 agrees with the actual power, and ∑akxk is an honest sum of products.

Example (A product, coefficient by coefficient)

In R[x], compute (3x2−x+2)(x+1) from the definition.

Solution. Here (a0,a1,a2)=(2,−1,3) and (b0,b1)=(1,1), with all other coefficients 0. The coefficient of xk in the product is ∑i=0kaibk−i: k=0:a0b0=2,k=1:a0b1+a1b0=2−1=1,k=2:a0b2+a1b1+a2b0=0−1+3=2,k=3:a0b3+a1b2+a2b1+a3b0=0+0+3+0=3, and every coefficient with k≥4 is 0 by the argument above (here m+n=3). Hence (3x2−x+2)(x+1)=3x3+2x2+x+2, which is what expanding by hand gives.

The operations obey the rules we expect. We record them once, so that later sections can use them freely.

Theorem 0.8.1 (Arithmetic in F[x])

Let F be a field and p,q,r∈F[x]. Then:

  1. p+q=q+p and (p+q)+r=p+(q+r);
  2. p+0=p, and p+(−p)=0, where −p=∑(−ak)xk;
  3. pq=qp and (pq)r=p(qr);
  4. 1⋅p=p, where 1 is the constant polynomial (1,0,0,…);
  5. p(q+r)=pq+pr.

Idea. Two polynomials are equal when their coefficients agree, so each identity reduces to an identity between coefficients, which the field axioms supply. For products it helps to write the coefficient of xk in pq symmetrically, as a sum over all pairs (i,j) of natural numbers with i+j=k.

Proof. Let p=∑akxk, q=∑bkxk and r=∑ckxk. By Definition 0.8.1, it suffices to compare the coefficient of xk on both sides, for each k∈N.

Parts 1, 2 and 4 hold because in each position they are the corresponding field axioms of Definition 0.7.1: for example, the coefficient of xk in p+q is ak+bk=bk+ak, the coefficient in q+p. For 4, the coefficient of xk in 1⋅p is ∑i+j=keiaj with e0=1 and ei=0 for i≥1, which equals ak.

For 3, the coefficient of xk in pq is ∑i+j=kaibj. Since multiplication in F is commutative, this equals ∑i+j=kbjai, the coefficient in qp. Next, the coefficient of xk in (pq)r is ∑s+l=k(∑i+j=saibj)cl=∑i+j+l=kaibjcl, where the equality uses distributivity and associativity in F. The same computation for p(qr) gives ∑i+s=kai(∑j+l=sbjcl)=∑i+j+l=kaibjcl. Therefore (pq)r=p(qr).

For 5, the coefficient of xk in p(q+r) is ∑i+j=kai(bj+cj)=∑i+j=kaibj+∑i+j=kaicj by distributivity in F, which is the coefficient in pq+pr. This proves the theorem.

A set with an addition and a multiplication satisfying these rules is called a commutative ring; this is where the name “polynomial ring” comes from. We will not need the word again in this chapter. What matters is that we may now calculate with polynomials exactly as at school.

Quick check. Over R, are (x+1)2 and x2+2x+1 equal as polynomials? Over F2, are (x+1)2 and x2+1 equal as polynomials?

Solution. Both answers are yes, but for a reason that depends on the field. Expanding gives (x+1)2=x2+2x+1, with coefficient sequence (1,2,1,0,…). Over R this is exactly the sequence of x2+2x+1. Over F2 we have 2=1+1=0, so the sequence is (1,0,1,0,…), which is the sequence of x2+1.

0.8.3. Degree

The most useful single number attached to a polynomial is the highest power of x that actually occurs. Every non-zero polynomial has one: it has at least one non-zero coefficient and only finitely many, so there is a largest position holding a non-zero coefficient. The zero polynomial has no such position, and we must decide what to do with it.

Definition 0.8.3 (Degree)

Let p=∑akxk∈F[x].

  • If p≠0, the degree of p, written deg⁡p, is the largest n∈N with an≠0. The coefficient an is the leading coefficient of p, and p is monic if its leading coefficient is 1.
  • The zero polynomial has degree deg⁡0=−∞.

We use the conventions −∞<n and −∞+n=n+(−∞)=−∞ for every n∈N, and −∞+(−∞)=−∞.

Examples, simplest first. A non-zero constant c has degree 0; its leading coefficient is c. The polynomial x+5∈R[x] is monic of degree 1. The polynomial 3x3+2x2+x+2 from Example (A product, coefficient by coefficient) has degree 3 and leading coefficient 3. Over F2, x2+x has degree 2, even though it vanishes at every point of F2.

Why −∞, and not 0 or −1? Look at the formula we expect: the degree of a product is the sum of the degrees. With deg⁡0=0 it fails at once, since 0⋅x=0 would give 0=deg⁡0=deg⁡0+deg⁡x=1. With deg⁡0=−1 it fails too: −1=deg⁡(0⋅x)≠deg⁡0+deg⁡x=0. The formula needs deg⁡0+n=deg⁡0 for every n, and −∞ is exactly the symbol with that property. The convention keeps a formula true, and that is its only job.

It turns out that the degree of a sum is controlled by the larger degree, and the degree of a product is the sum of the degrees:

Theorem 0.8.2 (Degree of a sum)

Let F be a field and p,q∈F[x]. Then deg⁡(p+q)≤max(deg⁡p,deg⁡q), with equality whenever deg⁡p≠deg⁡q.

Proof. Let p=∑akxk, q=∑bkxk and M=max(deg⁡p,deg⁡q). If M=−∞, then p=q=0, so p+q=0 and both sides are −∞. Suppose M∈N. For every k>M we have k>deg⁡p and k>deg⁡q, so ak=bk=0 by Definition 0.8.3. Hence the coefficient ak+bk of xk in p+q is 0 for every k>M, and therefore deg⁡(p+q)≤M.

Now suppose deg⁡p≠deg⁡q; by symmetry we may assume deg⁡p>deg⁡q, so M=deg⁡p∈N. Then aM≠0 and bM=0, because M>deg⁡q. The coefficient of xM in p+q is aM+0=aM≠0, so deg⁡(p+q)≥M. Together with the first part, deg⁡(p+q)=M. This proves the theorem.

The inequality can be strict: over any field, deg⁡(x+(−x))=deg⁡0=−∞<1. The leading terms cancel. That is the only way the degree of a sum can drop.

Theorem 0.8.3 (Degree of a product)

Let F be a field and p,q∈F[x]. Then deg⁡(pq)=deg⁡p+deg⁡q. If p and q are non-zero, the leading coefficient of pq is the product of their leading coefficients.

Idea. Expanding (amxm+lower terms)(bnxn+lower terms), the only way to reach xm+n is amxm⋅bnxn, and nothing reaches beyond. So the top coefficient is ambn. The one real question is whether ambn could be 0. In a field it cannot, and this is exactly where the field axioms enter.

Proof. If p=0 or q=0, then pq=0 by the definition of the product, so both sides equal −∞ by the conventions in Definition 0.8.3. Suppose now p=∑akxk and q=∑bkxk are non-zero, with m=deg⁡p and n=deg⁡q. Then am≠0, bn≠0, ai=0 for i>m and bj=0 for j>n.

We showed after Definition 0.8.2 that the coefficient of xk in pq is 0 for every k>m+n. For k=m+n, the coefficient is ∑i+j=m+naibj. A term with i>m has ai=0, and a term with i<m has j=m+n−i>n, so bj=0. Hence only i=m, j=n survives, and the coefficient is ambn.

Since am≠0 and bn≠0, Theorem 0.7.1 gives ambn≠0, because a product of non-zero elements of a field is non-zero. Therefore deg⁡(pq)=m+n and the leading coefficient of pq is ambn, as claimed.

Warning. The field axioms are doing real work here. The same definitions make sense with coefficients in Z/6Z, which is not a field. There (2x+1)(3x2+x)=6x3+5x2+x=5x2+x, because 2⋅3=6=0. The factors have degrees 1 and 2, but the product has degree 2, not 3.

The first consequence is that polynomials over a field behave like integers: a product can only be zero if a factor is, and non-zero factors can be canceled.

Corollary 0.8.4 (No zero divisors in F[x])

Let F be a field and p,q,r∈F[x].

  1. If pq=0, then p=0 or q=0.
  2. If pq=pr and p≠0, then q=r.

Proof. For 1, we prove the contrapositive. Suppose p≠0 and q≠0. Then deg⁡p,deg⁡q∈N, so by Theorem 0.8.3, deg⁡(pq)=deg⁡p+deg⁡q∈N. In particular deg⁡(pq)≠−∞, so pq≠0.

For 2, suppose pq=pr and p≠0. By Theorem 0.8.1, p(q−r)=pq−pr=0. By part 1 and p≠0, we get q−r=0, that is, q=r. This proves the corollary.

Quick check. Let p,q∈R[x] with deg⁡p=3 and deg⁡q=2. What are deg⁡(pq), deg⁡(p+q) and deg⁡(p2)? Can you say what deg⁡(p−x3) is?

Solution. By Theorem 0.8.3, deg⁡(pq)=5 and deg⁡(p2)=6. Since the degrees differ, Theorem 0.8.2 gives deg⁡(p+q)=3. The degree of p−x3 is not determined: if the leading coefficient of p is 1, the x3 terms cancel and the degree is at most 2 (it could even be −∞ if p=x3); otherwise it is 3.

0.8.4. Polynomials of bounded degree

In linear algebra we constantly need “all polynomials up to a given size”. For instance, the quadratics ax2+bx+c are described by three numbers, much like points of R3. So we give such collections names.

Definition 0.8.4 (Polynomials of degree at most n)

Let F be a field and n∈N. The set of polynomials over F of degree at most n is F[x]≤n={p∈F[x]:deg⁡p≤n}={a0+a1x+⋯+anxn:a0,…,an∈F}.

The two descriptions agree: deg⁡p≤n says exactly that every coefficient beyond position n is zero, and the coefficients a0,…,an are then free, any of them allowed to be zero. In particular the zero polynomial lies in F[x]≤n, since −∞≤n.

Example (Inside R[x]≤2)

Which of 3x2−2x+1, 5x+7, −4, 0 and x3−x3+x lie in R[x]≤2? Which lie in R[x]≤0?

Solution. All five lie in R[x]≤2. Their degrees are 2, 1, 0, −∞, and 1 (the last is the polynomial x, since x3−x3=0 as polynomials). Only −4 and 0 lie in R[x]≤0, which is the set of constant polynomials, 0 included.

Sometimes we need the degree to be exactly n, for instance when we speak of “a quadratic” and mean that the x2 term is really there.

Definition 0.8.5 (Polynomials of degree exactly n)

Let F be a field and n∈N. The set of polynomials over F of degree exactly n is F[x]=n={p∈F[x]:deg⁡p=n}={a0+a1x+⋯+anxn:a0,…,an∈F, an≠0}.

Example (Comparing the two notations)

For each of x2+1, 3x−2 and 0, decide whether it lies in R[x]≤2 and whether it lies in R[x]=2.

Solution. The polynomial x2+1 has degree 2, so it lies in both. The polynomial 3x−2 has degree 1≤2, so it lies in R[x]≤2 but not in R[x]=2. The zero polynomial has degree −∞≤2, so it lies in R[x]≤2, but −∞≠2, so it is not in R[x]=2. In general F[x]≤n=F[x]=n∪F[x]≤n−1 for n≥1, and the union is disjoint.

The two sets differ in one small clause, an≠0, and that clause changes their behavior completely.

Warning. F[x]≤n is closed under addition, but F[x]=n is not. For example x2+x and −x2+1 both lie in R[x]=2, but their sum x+1 has degree 1. The leading terms cancel. Also F[x]=n does not contain 0. In Chapter 1 this is why F[x]≤n is a subspace and F[x]=n is not.

The positive half is Theorem 0.8.2 at work: if deg⁡p≤n and deg⁡q≤n, then deg⁡(p+q)≤max(deg⁡p,deg⁡q)≤n. Multiplying by a constant c∈F also cannot raise the degree, by Theorem 0.8.3.

0.8.5. Evaluation and roots

A polynomial is not a function, but every polynomial defines a function: plug an element of the field in for x.

Definition 0.8.6 (Evaluation and roots)

Let F be a field, p=∑k=0Nakxk∈F[x] and c∈F. The value of p at c is the element p(c)=∑k=0Nakck=a0+a1c+⋯+aNcN∈F, where c0=1. An element c∈F is a root of p if p(c)=0. The function F→F, c↦p(c), is the polynomial function of p.

The value does not depend on the choice of N: enlarging N adds terms 0⋅ck=0 (by Theorem 0.7.1), which do not change the sum. So p(c) is well defined.

For example, p=x2−3x+2∈R[x] has p(0)=2 and p(1)=1−3+2=0, so 1 is a root. Over F3={0,1,2}, the polynomial x3+2 has 13+2=3=0, so 1 is a root; the other two values are 0+2=2 and 8+2=10=1, so 1 is its only root in F3.

Evaluation turns the operations of F[x] into the operations of F:

Theorem 0.8.5 (Evaluation respects sums and products)

Let F be a field, p,q∈F[x] and c∈F. Then (p+q)(c)=p(c)+q(c),(pq)(c)=p(c)q(c), and the constant polynomial a has value a at c.

Proof. Let p=∑i=0maixi and q=∑j=0nbjxj, where we choose m and n large enough that all non-zero coefficients are included. The statement about constants is immediate from Definition 0.8.6. For sums, taking N=max(m,n) and padding with zero coefficients, (p+q)(c)=∑k=0N(ak+bk)ck=∑k=0Nakck+∑k=0Nbkck by distributivity in F.

For products, all non-zero coefficients of pq occur at positions k≤m+n, so (pq)(c)=∑k=0m+n(∑i+j=kaibj)ck=∑i=0m∑j=0naibjcicj=∑i=0m∑j=0n(aici)(bjcj)=(∑i=0maici)(∑j=0nbjcj), where the first equality is Definition 0.8.2, the second uses distributivity and ci+j=cicj and regroups the pairs (i,j), the third uses commutativity of multiplication in F to move ci past bj, and the last is distributivity again. This shows (pq)(c)=p(c)q(c).

Note which step used commutativity. In the next section we will plug a square matrix A into a polynomial. Products of matrices do not commute in general, but the proof only moves scalars past powers of A, and multiplies powers of the same A; both are still allowed for matrices, so the same identity will hold there.

As a first use, a root of a factor is a root of the product: if q(c)=0, then (pq)(c)=p(c)⋅0=0. Conversely, if (pq)(c)=0 then p(c)q(c)=0, so p(c)=0 or q(c)=0 by Theorem 0.7.1. This is how one solves x2−3x+2=(x−1)(x−2)=0 at school.

Now we can return to the question from the start of the section.

Example (Different polynomials, same function)

Over F2, compare the polynomials x2+x and 0, and the polynomials x2 and x, both as polynomials and as functions F2→F2.

Solution. As polynomials, x2+x has coefficient sequence (0,1,1,0,…) and 0 has (0,0,0,…). They differ in position 1, so x2+x≠0 by Definition 0.8.1. Its degree is 2.

As functions, F2={0,1} has two elements, and 02+0=0,12+1=1+1=0. So the polynomial function of x2+x is the zero function, the same as that of 0. Both elements of F2 are roots of a polynomial of degree 2 that is not the zero polynomial.

Similarly x2≠x as polynomials, but 02=0 and 12=1, so they define the same function. Indeed, by Theorem 0.8.5, two polynomials define the same function exactly when their difference is a polynomial whose function is zero, and x2−x=x2+x in F2[x].

Warning. A polynomial is not a function. Two different polynomials can define the same polynomial function, as x2+x and 0 do over F2. So “p(c)=0 for every c∈F” does not imply p=0 in general, and we may never read off coefficients or a degree from the values alone. This happens over every finite field: if F={c1,…,cq}, then (x−c1)(x−c2)⋯(x−cq) has degree q by Theorem 0.8.3, yet vanishes at every ci by Theorem 0.8.5. Over Fp, Exercise (C2: A non-zero polynomial vanishing everywhere) below gives the shorter example xp−x.

Over an infinite field such as Q, R or C, the problem disappears: a polynomial whose function is zero is the zero polynomial, so polynomials and polynomial functions can be identified. We prove this in Chapter 3 (in the section on applications of linear systems), once we can count roots. Until then, whenever we say two polynomials are equal we mean their coefficients agree.

0.8.6. Looking ahead

Two tools will be built on this section later.

Remark. Division with remainder. Over a field, if f,g∈F[x] and g≠0, there are unique q,r∈F[x] with f=qg+r and deg⁡r<deg⁡g. This is long division of polynomials, and the convention deg⁡0=−∞ makes “deg⁡r<deg⁡g” cover the case r=0. We state it here only for orientation; it is proved in Chapter 6 and is not used before then.

Remark. Polynomials in a matrix. In the next section, once matrices and their products are available, we substitute a square matrix A for x, replacing the constant term a0 by a0I. This is how the characteristic and minimal polynomials of later chapters act on matrices.

0.8.7. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Define the degree of a polynomial over a field F, including the zero polynomial. State the formula for deg⁡(pq).
  • (b) Is 1+x+x2+x3+⋯, with every coefficient equal to 1, a polynomial over R? Justify your answer.
  • (c) Determine whether the following statement is true: “for all p,q∈F[x], deg⁡(p+q)=max(deg⁡p,deg⁡q).” Justify your answer.
  • (d) Determine whether the following statement is true: “if p∈F2[x] and p(c)=0 for every c∈F2, then p=0.” Justify your answer.
  • (e) Explain why F[x]=2 is not closed under addition, while F[x]≤2 is.

Solution.

  • (a) For p=∑akxk≠0, deg⁡p is the largest n with an≠0; and deg⁡0=−∞. For all p,q∈F[x], deg⁡(pq)=deg⁡p+deg⁡q (Theorem 0.8.3).
  • (b) No. Its coefficient sequence (1,1,1,…) has infinitely many non-zero terms, so it fails the clause “only finitely many ak are non-zero” of Definition 0.8.1.
  • (c) False. Take p=x and q=−x. Then p+q=0 has degree −∞, while max(deg⁡p,deg⁡q)=1. Only the inequality ≤ holds in general (Theorem 0.8.2).
  • (d) False. By Example (Different polynomials, same function), p=x2+x satisfies p(0)=p(1)=0, but p≠0.
  • (e) The sum of x2 and −x2+1, both of degree exactly 2, is 1, of degree 0. For F[x]≤2: if deg⁡p≤2 and deg⁡q≤2, then deg⁡(p+q)≤max(deg⁡p,deg⁡q)≤2 by Theorem 0.8.2.

B. Practice

Exercise (B1: Sums, products and degrees)
  • (a) In R[x], let p=2x3−x+4 and q=−2x3+x2+3. Compute p+q and pq, and give their degrees. Which inequality or formula from this section does each degree illustrate?
  • (b) In F3[x], compute (x+2)(x2+x+1). Hence find all roots in F3 of the product.

Solution.

  • (a) Adding coefficients gives p+q=x2−x+7, of degree 2. Here deg⁡p=deg⁡q=3 and the x3 terms cancel, so the inequality of Theorem 0.8.2 is strict. Expanding, pq=−4x6+2x5+2x4−3x3+4x2−3x+12, of degree 6=3+3, as Theorem 0.8.3 predicts; its leading coefficient is 2⋅(−2)=−4.
  • (b) Expanding, (x+2)(x2+x+1)=x3+3x2+3x+2. In F3 we have 3=0, so the product is x3+2. By Theorem 0.8.5 and Theorem 0.7.1, c is a root of the product if and only if c+2=0 or c2+c+1=0. The first gives c=1. For the second, the values at 0,1,2 are 1, 3=0 and 7=1. Hence the only root in F3 is c=1, which occurs in both factors.
Exercise (B2: Degree of a composition)

For p=∑k=0makxk and q in F[x], define the composition p∘q=∑k=0makqk∈F[x], where q0=1.

  • (a) Prove that if p and q are non-constant, then deg⁡(p∘q)=deg⁡p⋅deg⁡q.
  • (b) Give an example showing the formula fails when q is constant.

Hint: first find deg⁡(qk).

Solution.

  • (a) Let m=deg⁡p≥1 and d=deg⁡q≥1, so am≠0. By Theorem 0.8.3 and induction on k (Theorem 0.2.7), deg⁡(qk)=kd for every k∈N: the case k=0 is deg⁡1=0, and deg⁡(qk+1)=deg⁡(qk)+deg⁡q=kd+d. Hence, again by Theorem 0.8.3, deg⁡(amqm)=0+md=md, and for k<m, deg⁡(akqk)≤kd<md (it is kd or −∞). Let s=∑k=0m−1akqk. Applying Theorem 0.8.2 m−1 times gives deg⁡s≤maxk<mdeg⁡(akqk)<md. Since deg⁡s≠deg⁡(amqm), the equality case of Theorem 0.8.2 gives deg⁡(p∘q)=deg⁡(s+amqm)=md. This proves deg⁡(p∘q)=deg⁡p⋅deg⁡q.
  • (b) Take p=x−1 and q=1. Then p∘q=1−1=0 has degree −∞, while deg⁡p⋅deg⁡q=1⋅0=0.
Exercise (B3: All small polynomials over F2)

List all polynomials in F2[x]≤2. For each, give its degree and its polynomial function (the values at 0 and 1). Hence determine which of them define the zero function, and explain why every function F2→F2 is the polynomial function of exactly two of them.

Solution. A polynomial a0+a1x+a2x2 with ai∈F2 has value a0 at 0 and a0+a1+a2 at 1. With 23=8 choices of coefficients:

polynomial degree value at 0 value at 1
0 −∞ 0 0
1 0 1 1
x 1 0 1
x+1 1 1 0
x2 2 0 1
x2+1 2 1 0
x2+x 2 0 0
x2+x+1 2 1 1

The zero function requires a0=0 and a0+a1+a2=0, that is, a0=0 and a1=a2. Hence exactly 0 and x2+x define the zero function.

A function f:F2→F2 is determined by the pair (f(0),f(1)). Given such a pair (u,v), the polynomial a0+a1x+a2x2 defines f exactly when a0=u and a1+a2=v−u. The first fixes a0, and for each of the two choices of a2 the second fixes a1=v−u−a2. Therefore exactly two of the eight polynomials define f, and the table confirms this.

C. Going deeper

Exercise (C1: Roots of a quadratic)

Let F be a field.

  • (a) Let p=ax2+bx+c∈F[x] and r∈F with p(r)=0. Prove that p=(x−r)(ax+(b+ar)).
  • (b) Deduce that a non-zero polynomial in F[x]≤2 has at most 2 roots in F.
  • (c) The same definitions make sense with coefficients in Z/8Z. Show that x2−1 has four roots there, and name the step of (b) that breaks.

Hint for (b): use (a) together with Theorem 0.8.5.

Solution.

  • (a) Since p(r)=0, we have ar2+br+c=0, so c=−ar2−br. Expanding with Theorem 0.8.1, (x−r)(ax+(b+ar))=ax2+(b+ar)x−arx−r(b+ar)=ax2+bx−(br+ar2)=ax2+bx+c=p.
  • (b) Let p≠0 with deg⁡p≤2. Case 1. deg⁡p=0. Then p=c≠0 is constant and p(r)=c≠0 for every r, so p has no roots. Case 2. deg⁡p=1, say p=bx+c with b≠0. Then p(r)=0 if and only if r=−b−1c, so p has exactly one root. Case 3. deg⁡p=2, say p=ax2+bx+c with a≠0. If p has no root we are done. Otherwise let r be a root. By (a), p=(x−r)q with q=ax+(b+ar), of degree 1 since a≠0. Let s be any root of p. By Theorem 0.8.5, 0=p(s)=(s−r)q(s), so s=r or q(s)=0 by Theorem 0.7.1. By Case 2, q has exactly one root. Hence every root of p is r or the root of q, and p has at most 2 roots. This proves the claim.
  • (c) In Z/8Z, 12=1, 32=9=1, 52=25=1 and 72=49=1, so 1,3,5,7 are four roots of x2−1. The argument in (b) breaks at “(s−r)q(s)=0 implies s−r=0 or q(s)=0”: for r=1, s=3 we get (3−1)(3+1)=2⋅4=0 with both factors non-zero. That step needs the field property that a product of non-zero elements is non-zero.
Exercise (C2: A non-zero polynomial vanishing everywhere)

Let p be a prime and F=Fp.

  • (a) Fix a∈F∖{0}. Prove that the map F∖{0}→F∖{0}, b↦ab, is a bijection.
  • (b) Deduce that ap−1=1 for every a∈F∖{0}.
  • (c) Hence show that the polynomial xp−x∈Fp[x] is not the zero polynomial but that its polynomial function is the zero function.

Hint for (b): multiply together all the elements of F∖{0} in two ways.

Solution.

  • (a) The map lands in F∖{0}, since a product of non-zero elements of a field is non-zero (Theorem 0.7.1). It is injective: if ab=ab′, multiplying by a−1 gives b=b′. The set F∖{0} is finite with p−1 elements, so an injective map from it to itself is surjective by Theorem 0.4.9, hence bijective.
  • (b) Let P be the product of all p−1 elements of F∖{0}; it is non-zero by Theorem 0.7.1. Since b↦ab is a bijection by (a), the elements ab, as b runs over F∖{0}, are the same elements in a different order. Multiplication in F is commutative and associative, so the product does not depend on the order, and P=∏b≠0(ab)=ap−1∏b≠0b=ap−1P. Multiplying by P−1 gives ap−1=1.
  • (c) The coefficient of xp in xp−x is 1≠0, so the polynomial is non-zero, of degree p. For its function: 0p−0=0, and for a≠0, (b) gives ap−a=a⋅ap−1−a=a−a=0. Hence every element of Fp is a root, and the polynomial function of xp−x is the zero function. For p=2 this is x2−x=x2+x, the polynomial of Example (Different polynomials, same function).
Exercise (C3: Which polynomials have inverses?)
  • (a) Let F be a field and p,q∈F[x] with pq=1. Prove that p and q are non-zero constants.
  • (b) Show that (a) fails with coefficients in Z/4Z by computing (2x+1)2 there.

Solution.

  • (a) Since pq=1≠0, neither p nor q is the zero polynomial, so deg⁡p,deg⁡q∈N. By Theorem 0.8.3, deg⁡p+deg⁡q=deg⁡1=0. Two natural numbers with sum 0 are both 0, so deg⁡p=deg⁡q=0. Therefore p and q are non-zero constants.
  • (b) In Z/4Z, (2x+1)2=4x2+4x+1=1, because 4=0. So 2x+1 has degree 1 and is its own inverse. The proof of (a) breaks at Theorem 0.8.3, which fails here because the leading coefficient 2⋅2=4=0.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.