12.4: Polynomials
( \newcommand{\kernel}{\mathrm{null}\,}\)
Expressions like 3−5x and 1+3x−2x2 are examples of polynomials. In general, a polynomial is an expression of the form
f(x)=a0+a1x+a2x2+⋯+anxn
where the ai are numbers, called the coefficients of the polynomial, and x is a variable called an indeterminate. The number a0 is called the constant coefficient of the polynomial. The polynomial with every coefficient zero is called the zero polynomial, and is denoted simply as 0.
If f(x)≠0, the coefficient of the highest power of x appearing in f(x) is called the leading coefficient of f(x), and the highest power itself is called the degree of the polynomial and is denoted deg(f(x)). Hence
−1+5x+3x2 has constant coefficient −1, leading coefficient 3, and degree 2,7 has constant coefficient 7, leading coefficient 7, and degree 0,6x−3x3+x4−x5 has constant coefficient 0, leading coefficient −1, and degree 5.
We do not define the degree of the zero polynomial.
Two polynomials f(x) and g(x) are called equal if every coefficient of f(x) is the same as the corresponding coefficient of g(x). More precisely, if
f(x)=a0+a1x+a2x2+⋯ and g(x)=b0+b1x+b2x2+⋯
are polynomials, then
f(x)=g(x) if and only if a0=b0,a1=b1,a2=b2,…
In particular, this means that
f(x)=0 is the zero polynomial if and only if a0=0,a1=0,a2=0,…
This is the reason for calling x an indeterminate.
Let f(x) and g(x) denote nonzero polynomials of degrees n and m respectively, say
f(x)=a0+a1x+a2x2+⋯+anxn and g(x)=b0+b1x+b2x2+⋯+bmxm
where an≠0 and bm≠0. If these expressions are multiplied, the result is
f(x)g(x)=a0b0+(a0b1+a1b0)x+(a0b2+a1b1+a2b0)x2+⋯+anbmxn+m
Since an and bm are nonzero numbers, their product anbm≠0 and we have
035227 If f(x) and g(x) are nonzero polynomials of degrees n and m respectively, their product f(x)g(x) is also nonzero and
deg[f(x)g(x)]=n+m
035231 (2−x+3x2)(3+x2−5x3)=6−3x+11x2−11x3+8x4−15x5.
If f(x) is any polynomial, the next theorem shows that f(x)−f(a) is a multiple of the polynomial x−a. In fact we have
Remainder Theorem035236 If f(x) is a polynomial of degree n≥1 and a is any number, then there exists a polynomial q(x) such that
f(x)=(x−a)q(x)+f(a)
where deg(q(x))=n−1.
Write f(x)=a0+a1x+a2x2+⋯+anxn where the ai are numbers, so that
f(a)=a0+a1a+a2a2+⋯+anan
If these expressions are subtracted, the constant terms cancel and we obtain
f(x)−f(a)=a1(x−a)+a2(x2−a2)+⋯+an(xn−an).
Hence it suffices to show that, for each k≥1, xk−ak=(x−a)p(x) for some polynomial p(x) of degree k−1. This is clear if k=1. If it holds for some value k, the fact that
xk+1−ak+1=(x−a)xk+a(xk−ak)
shows that it holds for k+1. Hence the proof is complete by induction.
There is a systematic procedure for finding the polynomial q(x) in the remainder theorem. It is illustrated below for f(x)=x3−3x2+x−1 and a=2. The polynomial q(x) is generated on the top line one term at a time as follows: First x2 is chosen because x2(x−2) has the same x3-term as f(x), and this is subtracted from f(x) to leave a “remainder” of −x2+x−1. Next, the second term on top is −x because −x(x−2) has the same x2-term, and this is subtracted to leave −x−1. Finally, the third term on top is −1, and the process ends with a “remainder” of −3.
x2−x−1\cline2−9x−2)x3−3x2+x−1x3−2x2\cline3−9−x2+x−1−x2+2x\cline4−9−x−1−x+2\cline6−9−3
Hence x3−3x2+x−1=(x−2)(x2−x−1)+(−3). The final remainder is −3=f(2) as is easily verified. This procedure is called the division algorithm.1
A real number a is called a root of the polynomial f(x) if
f(a)=0
Hence for example, 1 is a root of f(x)=2−x+3x2−4x3, but −1 is not a root because f(−1)=10≠0. If f(x) is a multiple of x−a, we say that x−a is a factor of f(x). Hence the remainder theorem shows immediately that if a is root of f(x), then x−a is factor of f(x). But the converse is also true: If x−a is a factor of f(x), say f(x)=(x−a)q(x), then f(a)=(a−a)q(a)=0. This proves the
Factor Theorem035282 If f(x) is a polynomial and a is a number, then x−a is a factor of f(x) if and only if a is a root of f(x).
035287 If f(x)=x3−2x2−6x+4, then f(−2)=0, so x−(−2)=x+2 is a factor of f(x). In fact, the division algorithm gives f(x)=(x+2)(x2−4x+2).
Consider the polynomial f(x)=x3−3x+2. Then 1 is clearly a root of f(x), and the division algorithm gives f(x)=(x−1)(x2+x−2). But 1 is also a root of x2+x−2; in fact, x2+x−2=(x−1)(x+2). Hence
f(x)=(x−1)2(x+2)
and we say that the root 1 has multiplicity 2.
Note that non-zero constant polynomials f(x)=b≠0 have no roots. However, there do exist nonconstant polynomials with no roots. For example, if g(x)=x2+1, then g(a)=a2+1≥1 for every real number a, so a is not a root. However the complex number i is a root of g(x); we return to this below.
Now suppose that f(x) is any nonzero polynomial. We claim that it can be factored in the following form:
f(x)=(x−a1)(x−a2)⋯(x−am)g(x)
where a1,a2,…,am are the roots of f(x) and g(x) has no root (where the ai may have repetitions, and may not appear at all if f(x) has no real root).
By the above calculation f(x)=x3−3x+2=(x−1)2(x+2) has roots 1 and −2, with 1 of multiplicity two (and g(x)=1). Counting the root −2 once, we say that f(x) has three roots counting multiplicities. The next theorem shows that no polynomial can have more roots than its degree even if multiplicities are counted.
035311 If f(x) is a nonzero polynomial of degree n, then f(x) has at most n roots counting multiplicities.
If n=0, then f(x) is a constant and has no roots. So the theorem is true if n=0. (It also holds for n=1 because, if f(x)=a+bx where b≠0, then the only root is −ab.) In general, suppose inductively that the theorem holds for some value of n≥0, and let f(x) have degree n+1. We must show that f(x) has at most n+1 roots counting multiplicities. This is certainly true if f(x) has no root. On the other hand, if a is a root of f(x), the factor theorem shows that f(x)=(x−a)q(x) for some polynomial q(x), and q(x) has degree n by Theorem [thm:035227]. By induction, q(x) has at most n roots. But if b is any root of f(x), then
(b−a)q(b)=f(b)=0
so either b=a or b is a root of q(x). It follows that f(x) has at most n roots. This completes the induction and so proves Theorem [thm:035311].
As we have seen, a polynomial may have no root, for example f(x)=x2+1. Of course f(x) has complex roots i and −i, where i is the complex number such that i2=−1. But Theorem [thm:035311] even holds for complex roots: the number of complex roots (counting multiplicities) cannot exceed the degree of the polynomial. Moreover, the fundamental theorem of algebra asserts that the only nonzero polynomials with no complex root are the non-zero constant polynomials. This is discussed more in Appendix [chap:appacomplexnumbers], Theorems [thm:034196] and [thm:034210].
- This procedure can be used to divide f(x) by any nonzero polynomial d(x) in place of x−a; the remainder then is a polynomial that is either zero or of degree less than the degree of d(x).↩