Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Why this matters

A metal cube is heated and expands. When its side is xx centimetres, its volume is x3x^3 cubic centimetres. As the side grows from 2 to xx, the volume grows by x3−8x^3 - 8, so on average the volume grows by

x3−8x−2\frac{x^3 - 8}{x - 2}

cubic centimetres per centimetre of side. How fast does the volume grow when the side is exactly 2? Putting x=2x = 2 into the formula gives 00\frac{0}{0}, which is not a number. But the numerator factors:

x3−8=(x−2) (x2+2x+4),x^3 - 8 = (x - 2)\,(x^2 + 2x + 4),

as multiplying out the right-hand side confirms. So for every x≠2x \ne 2 we may cancel the non-zero number x−2x - 2: the average rate is x2+2x+4x^2 + 2x + 4, a formula that makes sense at every xx, and for xx close to 2 it is close to 22+2⋅2+4=122^2 + 2 \cdot 2 + 4 = 12.

Why does x3−8x^3 - 8 have the factor x−2x - 2? Because 23−8=02^3 - 8 = 0. The factor theorem of this page says that this always happens: for every polynomial pp and every number aa, the difference p(x)−p(a)p(x) - p(a) has the factor x−ax - 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)=0p(x) = 0 have? At most the degree of pp. And for which xx is a quotient of polynomials, such as x2−1x2−x−6\frac{x^2 - 1}{x^2 - x - 6}, positive? Its factors decide, as soon as we know the signs of products and quotients.

Polynomials and rational functions

A polynomial is built from the variable xx and constants by adding, subtracting and multiplying, finitely many times. Collecting equal powers of xx brings it to a standard form.

In words. The degree is the highest power of xx 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\R. Any polynomial other than the zero polynomial can be written with cn≠0c_n \ne 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+7p(x) = 3x^4 - x + 7 has degree 4, leading coefficient 3 and constant term 7. The polynomial (x−1)(x+2)=x2+x−2(x - 1)(x + 2) = x^2 + x - 2 has degree 2, and its roots are 1 and −2{-2}. The polynomial x2−2x^2 - 2 has the roots 2\sqrt{2} and −2{-\sqrt{2}}, because both square to 2 (the remark on square roots).

Non-example. f(x)=1xf(x) = \dfrac{1}{x} is not a polynomial. Its natural domain leaves out 0, while every polynomial is defined at 0. In the same way x\sqrt{x}, whose natural domain is [0,∞)[0, \infty), 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 p(x)q(x)\frac{p(x)}{q(x)} is a real number exactly when the denominator q(x)q(x) is not 0, so the domain is R\R without the roots of qq. Every polynomial pp is a rational function, with q(x)=1q(x) = 1.

Example. f(x)=x+1x2−4f(x) = \dfrac{x + 1}{x^2 - 4} 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\pm 2. It is x2−4=(x−2)(x+2)x^2 - 4 = (x - 2)(x + 2), which is 0 exactly when x=2x = 2 or x=−2x = -2 (part (a) of the sign rules below), so dom⁡f=(−∞,−2)∪(−2,2)∪(2,∞)\dom f = (-\infty, -2) \cup (-2, 2) \cup (2, \infty).

Non-example. g(x)=xx+1g(x) = \dfrac{\sqrt{x}}{x + 1} is not a rational function. Its natural domain is [0,∞)[0, \infty), while the domain of a rational function leaves out only finitely many numbers (part (a) of the proposition on the domain below).

Main results

Signs of products and quotients

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−tx - t is negative to the left of tt and positive to the right of it.

Degree of a product

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)(3x^2 + 1)(x - 5) has degree 2+1=32 + 1 = 3 and leading coefficient 3⋅1=33 \cdot 1 = 3.

Factors and roots

In words. Every root aa splits off a linear factor x−ax - a, and what is left has degree one less. The quotient p(x)−p(a)x−a\frac{p(x) - p(a)}{x - a} of part (a) is undefined at x=ax = a, but it agrees with the polynomial qq 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 qq: replace each xk−akx^k - a^k by (x−a) qk(x)(x - a)\, q_k(x) (Example 3).

Example. For p(x)=x3p(x) = x^3 and a=2a = 2, the proof gives q(x)=q3(x)=x2+2x+4q(x) = q_3(x) = x^2 + 2x + 4, the factorisation of x3−8x^3 - 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 nn that agree at n+1n + 1 points agree everywhere, and have the same coefficients. So we may compare coefficients: if ax2+bx+c=2x2−5ax^2 + bx + c = 2x^2 - 5 for every xx, then a=2a = 2, b=0b = 0 and c=−5c = -5.

Figure 1:Graph of y=x3−3x+cy = x^3 - 3x + c for −3≤x≤3-3 \le x \le 3, with a slider for cc from −4{-4} to 4 in steps of 0.5, starting at c=0c = 0. At c=0c = 0 the graph crosses the xx-axis at x=−3x = -\sqrt{3}, x=0x = 0 and x=3x = \sqrt{3}, the roots of x3−3x=x(x2−3)x^3 - 3x = x(x^2 - 3). At c=2c = 2 it meets the xx-axis only at x=−2x = {-2} and x=1x = 1, the roots of x3−3x+2=(x−1)2(x+2)x^3 - 3x + 2 = (x - 1)^2 (x + 2); at x=1x = 1 it touches the axis without crossing it. For every cc the polynomial has degree 3, so it has at most three roots.

Try this: move cc through its whole range. For which values of cc on the slider does the graph meet the xx-axis three times, and for which only once? Can you find a cc for which it meets the axis four times? Theorem 2 says why not, for every real cc, not only those on the slider.

Division of polynomials

Integers can be divided with a remainder: 17=5⋅3+217 = 5 \cdot 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 gg can be subtracted without raising the degree. When rr is the zero polynomial, gg is a factor of ff: f(x)=g(x) q(x)f(x) = g(x)\, q(x). Dividing by g(x)=x−ag(x) = x - a, part (a) of Theorem 1 gives the quotient and the remainder at once: p(x)=(x−a) q(x)+p(a)p(x) = (x - a)\, q(x) + p(a), and the remainder is the constant p(a)p(a) (Exercise 8).

Domain, zeros and sign of a rational function

In words. A rational function is defined everywhere except at finitely many points, the roots of the denominator, and around each point aa it is defined on a whole open interval, except perhaps at aa 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+1x^2 + 1 is positive at every real number: x2≥0x^2 \ge 0 and 1>01 > 0 by part (c) of the sign rules, adding 1 to both sides gives x2+1≥1x^2 + 1 \ge 1 (property 3 of the order rules), and so x2+1>0x^2 + 1 > 0 (property 2).

In words: the sign chart. To find the sign of a rational function:

  1. Factor the numerator and the denominator into a constant, linear factors x−tx - t, and factors that are positive everywhere, such as x2+1x^2 + 1.

  2. Mark every number tt of a linear factor on the number line. They cut it into open intervals, and on each of them ff has one sign (Proposition 4).

  3. On each interval, count the negative factors at one point of it (or compute ff there).

  4. At the marked numbers themselves, ff is 0 where the numerator is 0 and the denominator is not, and undefined where the denominator is 0 (Proposition 3).

Worked examples

Dividing and factoring

Domain, zeros and sign

Figure 2:Graph of y=x2−1x2−x−6y = \frac{x^2 - 1}{x^2 - x - 6} for −5≤x≤6-5 \le x \le 6. It has gaps at x=−2x = {-2} and x=3x = 3, where the function is undefined, and next to them it is steep and leaves the view. It meets the xx-axis at x=−1x = {-1} and x=1x = 1. A table lists the values at x=−3x = {-3}, −1.5{-1.5}, 0, 2 and 4, one point in each interval of the sign chart. The exact values are 43\frac{4}{3}, −59{-\frac{5}{9}}, 16\frac{1}{6}, −34{-\frac{3}{4}} and 52\frac{5}{2}: 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 xx-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.

Common mistakes

Rigorous track

Summary

Exercises

Where this leads

These topics build on this one:

Found an error on this page? Report it (the form opens with this page filled in).