A metal cube is heated and expands. When its side is x centimetres, its volume is x3 cubic
centimetres. As the side grows from 2 to x, the volume grows by x3−8, so on average
the volume grows by
cubic centimetres per centimetre of side. How fast does the volume grow when the side is
exactly 2? Putting x=2 into the formula gives 00, which is not a number. But
the numerator factors:
as multiplying out the right-hand side confirms. So for every x=2 we may cancel the
non-zero number x−2: the average rate is x2+2x+4, a formula that makes sense at
every x, and for x close to 2 it is close to 22+2⋅2+4=12.
Why does x3−8 have the factor x−2? Because 23−8=0. The factor theorem of
this page says that this always happens: for every polynomial p and every number a, the
difference p(x)−p(a) has the factor x−a. Limits and derivatives of polynomials rest on
exactly this.
The page also answers two questions that recur throughout calculus. How many solutions can an
equation p(x)=0 have? At most the degree of p. And for which x is a quotient of
polynomials, such as x2−x−6x2−1, positive? Its factors decide, as soon as we
know the signs of products and quotients.
A polynomial is built from the variable x and constants by adding, subtracting and
multiplying, finitely many times. Collecting equal powers of x brings it to a standard form.
In words. The degree is the highest power of x that really occurs. Polynomials of degree
0 are the non-zero constants; those of degree 1, 2 and 3 are called linear,
quadratic and cubic. A polynomial is defined at every real number: its domain is R.
Any polynomial other than the zero polynomial can be written with cn=0, by leaving out
the terms with coefficient 0 at the top. Could one function have two such forms, with
different degrees? No: Corollary 1 below shows that the values of a
polynomial determine its coefficients, so its degree is well defined.
Example.p(x)=3x4−x+7 has degree 4, leading coefficient 3 and constant term
7. The polynomial (x−1)(x+2)=x2+x−2 has degree 2, and its roots are 1 and
−2. The polynomial x2−2 has the roots 2 and −2, because both square
to 2 (the remark on square roots).
Non-example.f(x)=x1 is not a polynomial. Its
natural domain leaves out 0, while every polynomial is defined at
0. In the same way x, whose natural domain is [0,∞), is not a polynomial.
Dividing one polynomial by another gives the next class of functions.
In words. A rational function is a quotient of two polynomials. The formula
q(x)p(x) is a real number exactly when the denominator q(x) is not 0, so the
domain is R without the roots of q. Every polynomial p is a rational function, with
q(x)=1.
Example.f(x)=x2−4x+1 is a rational function. An exercise on
Functions and Their Graphs asks for its natural domain; now we can also say
why the denominator is 0 only at ±2. It is x2−4=(x−2)(x+2), which is 0
exactly when x=2 or x=−2 (part (a) of the sign rules below), so
domf=(−∞,−2)∪(−2,2)∪(2,∞).
Non-example.g(x)=x+1x is not a rational function. Its natural domain
is [0,∞), while the domain of a rational function leaves out only finitely many numbers
(part (a) of the proposition on the domain below).
To find where a rational function is positive, we need the signs of products and quotients.
The order rules, on Real Numbers and Intervals, speak of inequalities,
not of signs; the proposition below derives from them the facts about signs that we use.
In words. “Minus times minus is plus”: only the number of negative factors matters, and a
quotient behaves like a product. Part (b) says that the factor x−t is negative to the left
of t and positive to the right of it.
The first use of the sign rules is the degree of a product of polynomials, on which the division
of polynomials below rests.
In words. Multiplying polynomials adds their degrees and multiplies their leading
coefficients. For example, (3x2+1)(x−5) has degree 2+1=3 and leading coefficient
3⋅1=3.
In words. Every root a splits off a linear factor x−a, and what is left has degree one
less. The quotient x−ap(x)−p(a) of part (a) is undefined at x=a, but it agrees
with the polynomial q at every other point. This is the form in which the Limits and
Derivatives chapters use the theorem. The proof also gives a way to compute q: replace each
xk−ak by (x−a)qk(x) (Example 3).
Example. For p(x)=x3 and a=2, the proof gives q(x)=q3(x)=x2+2x+4, the
factorisation of x3−8 in Why this matters.
Each root splits off a factor, and the degree drops by one each time, so a polynomial cannot
have more roots than its degree.
The theorem says nothing about the zero polynomial, which has no degree: every real number is
a root of it. For any other polynomial, it gives a test for equality.
In words. Two polynomials of degree at most n that agree at n+1 points agree
everywhere, and have the same coefficients. So we may compare coefficients: if
ax2+bx+c=2x2−5 for every x, then a=2, b=0 and c=−5.
Figure 1:Graph of y=x3−3x+c for −3≤x≤3, with a slider for c from −4 to 4 in
steps of 0.5, starting at c=0. At c=0 the graph crosses the x-axis at
x=−3, x=0 and x=3, the roots of x3−3x=x(x2−3). At c=2
it meets the x-axis only at x=−2 and x=1, the roots of
x3−3x+2=(x−1)2(x+2); at x=1 it touches the axis without crossing it. For
every c the polynomial has degree 3, so it has at most three roots.
Try this: move c through its whole range. For which values of c on the slider does the
graph meet the x-axis three times, and for which only once? Can you find a c for which it
meets the axis four times? Theorem 2 says why not, for every real
c, not only those on the slider.
Integers can be divided with a remainder: 17=5⋅3+2, with a remainder 2 smaller
than the divisor 3. Polynomials can be divided in the same way, with “smaller” measured by the
degree.
In words. The remainder is what is left when no more multiples of g can be subtracted
without raising the degree. When r is the zero polynomial, g is a factor of f:
f(x)=g(x)q(x). Dividing by g(x)=x−a, part (a) of Theorem 1
gives the quotient and the remainder at once: p(x)=(x−a)q(x)+p(a), and the
remainder is the constant p(a) (Exercise 8).
In words. A rational function is defined everywhere except at finitely many points, the
roots of the denominator, and around each point a it is defined on a whole open interval,
except perhaps at a itself. It is zero exactly where the numerator is zero and the denominator
is not.
Its sign can be read off its factors. A polynomial such as x2+1 is positive at every real
number: x2≥0 and 1>0 by part (c) of the sign rules, adding
1 to both sides gives x2+1≥1 (property 3 of the order rules),
and so x2+1>0 (property 2).
In words: the sign chart. To find the sign of a rational function:
Factor the numerator and the denominator into a constant, linear factors x−t, and
factors that are positive everywhere, such as x2+1.
Mark every number t of a linear factor on the number line. They cut it into open
intervals, and on each of them f has one sign (Proposition 4).
On each interval, count the negative factors at one point of it (or compute f there).
At the marked numbers themselves, f is 0 where the numerator is 0 and the denominator
is not, and undefined where the denominator is 0 (Proposition 3).
Figure 2:Graph of y=x2−x−6x2−1 for −5≤x≤6. It has gaps at x=−2 and
x=3, where the function is undefined, and next to them it is steep and leaves the view. It
meets the x-axis at x=−1 and x=1. A table lists the values at x=−3, −1.5,
0, 2 and 4, one point in each interval of the sign chart. The exact values are
34, −95, 61, −43 and 25: positive,
negative, positive, negative, positive, as the sign chart of
Example 4 predicts.
Try this: before you look at the table, predict from the factors whether the graph lies above
or below the x-axis on each of the five intervals. Then compare with the graph. The graph and the
table show finitely many points; the sign chart, by Proposition 4, covers every
point of each interval.
This is the part of Theorem 3 that its sketch leaves to this section.
We subtract two divisions of f by g from each other and compare the coefficients of the
highest power of x on the two sides.
Let g have degree m and leading coefficient b, and suppose that
On the right is a polynomial in which no power xj with j≥m has a non-zero coefficient.
Suppose q1−q2 were not the zero polynomial, say of degree k with leading coefficient
e=0. Then the left-hand side would be a polynomial of degree m+k, with leading
coefficient be=0, by Proposition 2. The two sides agree at
every real number, so by Corollary 1 they have the same coefficients.
But the coefficient of xm+k, where m+k≥m, is be=0 on the left
and 0 on the right. So q1−q2 is the zero polynomial: q1(x)=q2(x) for every x,
and then r1(x)=r2(x) for every x as well.
The degree of the zero polynomial
The zero polynomial has no highest power with a non-zero coefficient, so it has no degree.
Some books give it the degree −∞, with the convention −∞+n=−∞, so that
“the degree of a product is the sum of the degrees” holds for every pair of polynomials. We
avoid the convention and state the zero polynomial separately instead. It is the one polynomial
that Theorem 2 must leave out: every real number is a root of it.
A polynomial cnxn+⋯+c1x+c0 with cn=0 has degree n; its values
determine its coefficients (Corollary 1). The degree of a product is
the sum of the degrees (Proposition 2). A rational function
q(x)p(x) is defined exactly where q(x)=0.
Factor theorem (Theorem 1): p(x)−p(a)=(x−a)q(x) for a
polynomial q of degree one less, so
and a is a root of p exactly when x−a is a factor.
A polynomial of degree n has at most n roots (Theorem 2).
Division: f=gq+r with r zero or of smaller degree than g
(Theorem 3); subtract multiples of g to cancel leading terms.
Signs: only the number of negative factors matters (Proposition 1). A factored
rational function has one sign on each interval between the numbers of its linear factors
(Proposition 4). Never multiply an inequality by a factor of unknown sign.
The highest power with a non-zero coefficient is x2, with coefficient −1. So (a) the degree
is 2 and (b) the leading coefficient is −1. The product alone has degree 3, but
subtracting 2x3 cancels its leading term.
The denominator is x2+x−6=(x+3)(x−2). By
part (a) of the sign rules it is 0 exactly when x=−3 or x=2,
and by Definition 2 these two numbers are left out of the domain:
domf=(−∞,−3)∪(−3,2)∪(2,∞). The numerator is also 0 at x=−3, but that does not help: the formula gives 00
there, which is not a number. For x in the domain, f(x)=x−21, but the function
x−21 has a larger domain, so it is a different function.
The denominator is x2+2x−3=(x+3)(x−1), which is 0 at x=−3 and x=1, so
these are not in the domain. The numerator is x2−9=(x−3)(x+3), with roots 3 and
−3. By Proposition 3 (c), the zeros of f are the roots of the numerator
that lie in the domain: only 3. Indeed f(3)=120=0, while f(−3) is
undefined.
Each step cancels the leading term of what is left:
subtracting x2g(x)=x4−x3+x2 from f(x) leaves x3+x2−x+3;
subtracting xg(x)=x3−x2+x from that leaves 2x2−2x+3;
subtracting 2g(x)=2x2−2x+2 from that leaves 1.
What is left has degree 0, less than the degree 2 of g, so we stop. The quotient is the
sum of the multipliers, x2+x+2, and the remainder is 1: for every real x,
x4+2x2−x+3=(x2−x+1)(x2+x+2)+1. At x=1: f(1)=5, and
1⋅4+1=5.
(a) p(−1)=−1+2=1, so p(x)−p(−1)=x3−2x−1. As in the proof of the factor
theorem, with a=−1, we write this as (x3−(−1)3)−2(x−(−1)).
Since x3−(−1)3=x3+1=(x+1)(x2−x+1), it is
(x+1)(x2−x+1)−2(x+1), and taking out the common factor x+1 gives
p(x)−p(−1)=(x+1)(x2−x−1). So q(x)=x2−x−1, of degree 2 and leading coefficient 1, as part (a) of the theorem
says.
By Theorem 1 (a) with a=1, there is a polynomial q with
p(x)=(x−1)q(x)+p(1) for every real x. The constant p(1) is the zero polynomial
or has degree 0, less than the degree 1 of x−1, so by the uniqueness in
Theorem 3 it is the remainder. Here p(1)=1−2+1=0: the remainder
is 0, and x−1 is a factor of p.
The left-hand side is defined for x=−1. Adding −1 to both sides keeps the inequality,
and so does adding 1 back (property 3 of the order rules), so for
x=−1 the inequality holds exactly when
x+12x−1−1<0. Over the common denominator x+1, the numerator is
2x−1−(x+1)=x−2, so this says
The numbers −1 and 2 cut R into three open intervals, and by
Proposition 4 the quotient has one sign on each:
on (−∞,−1) both factors are negative, so it is positive;
on (−1,2) only x−2 is negative, so it is negative;
on (2,∞) neither is negative, so it is positive.
At x=2 it is 0, which is not less than 0, and x=−1 is not in the domain. So the
inequality holds exactly on (−1,2). For example x=0 gives −1<1, while x=−2 gives
−1−5=5, which is not less than 1.
For every real t, t2≥0 (part (c) of the sign rules), so
adding 4 to both sides gives t2+4≥4>0
(property 3 of the order rules). Multiplying by the positive number
t2+4 keeps an inequality (property 5(a)), and multiplying by its reciprocal, also positive
(property 6), takes us back.
So c(t)>1 holds exactly when
that is, after adding −5t to both sides (property 3; adding 5t takes us back), when
t2−5t+4<0. Now
t2−5t+4=(t−1)(t−4). By Proposition 4 (with K=1 and no
denominator): on (−∞,1) both factors are negative and the product is positive; on
(1,4) only t−4 is negative and the product is negative; on (4,∞) it is positive;
and at t=1 and t=4 it is 0. So c(t)>1 exactly for 1<t<4, all of which
satisfy t≥0: the medicine works from 1 hour to 4 hours after the dose.
At t=2, c(2)=810=1.25>1; at t=1, c(1)=55=1, which is not
above 1.
Since p(−1)=0, Theorem 1 gives p(x)=(x+1)q1(x) for every real
x, where q1 has degree 2 and the same leading coefficient as p. At x=1:
0=p(1)=2q1(1), so q1(1)=0 by part (a) of the sign rules.
So, by the factor theorem again, q1(x)=(x−1)q2(x), where q2 has degree 1. At
x=2: 0=p(2)=3⋅1⋅q2(2), so q2(2)=0, and q2(x)=(x−2)K, where
K is a polynomial of degree 0: a non-zero constant, the leading coefficient of p. Hence, for every real x,
Both sides are defined for x=1 and x=−1. Subtracting the right-hand side from both
sides keeps the inequality, and adding it back returns to it
(property 3 of the order rules), so for these x it holds exactly
when x−1x−x+12≥0.
Over the common denominator (x−1)(x+1), the numerator is
x(x+1)−2(x−1)=x2−x+2, so this says
Completing the square, x2−x+2=(x−21)2+47. The square is
≥0 (part (c) of the sign rules), so, adding 47 to both
sides (property 3 of the order rules), the numerator is at least 47, positive at every real x.
By Proposition 4, with
P(x)=x2−x+2, the quotient has one sign on each of (−∞,−1), (−1,1) and
(1,∞), and it is never 0:
on (−∞,−1) both x−1 and x+1 are negative, so it is positive;
on (−1,1) only x−1 is negative, so it is negative;
on (1,∞) neither is negative, so it is positive.
So the inequality holds exactly on (−∞,−1)∪(1,∞). For example x=2 gives
2≥32, while x=0 gives 0≥2, which is false.
The number k is built from the integers c1,…,cn and r by adding and multiplying, so
it is an integer, and r divides c0. (If n=0, then p is the constant c0, and
p(r)=0 says c0=0=r⋅0.)
The example. For x3+x2−7x+2 the constant term is 2, so an integer root must be one
of the integers that divide 2. These are 1, −1, 2 and −2. Indeed, let 2=rk with
integers r and k. Then r=0 and k=0, since otherwise rk=0. If r≥3, then
multiplying by the positive number r (property 5(b) of the order rules)
turns k≥1 into rk≥r, and k≤−1 into rk≤−r. Since r≥3, and so
−r≤−3 (multiplying by −1 reverses it, by property 5(c)), this gives rk≥3 or
rk≤−3; neither is 2. If r≤−3, the same argument applies to 2=(−r)(−k), with
−r≥3. So r is one of 1, −1, 2 and −2, and each of them divides 2. Testing
them, with p now this polynomial: