Advanced level

Polynomials

A polynomial is a sum of monomials — and everything you do to one is an extension of ordinary arithmetic. Degree and coefficients, adding, subtracting and multiplying, dividing by a binomial with Horner’s scheme, the remainder and factor theorems, integer roots, factoring and biquadratic equations.

Before you start

This topic builds on earlier ideas. Before you start, it's worth working through the lessons below — they'll make everything click:

Where this is used

Real situations where you count exactly the way this lesson teaches:

  • A box folded from a sheet of card
    Cut squares of side x from the corners of a 30 × 20 cm sheet and fold the edges up. The volume is the polynomial V(x) = x(30 − 2x)(20 − 2x) = 4x³ − 100x² + 600x. At x = 4 cm that is 4 · 22 · 12 = 1,056 cm³, while x = 3 cm gives only 3 · 24 · 14 = 1,008 cm³ — one centimetre in the cut is almost 5% of the capacity.
  • Saving with a deposit every year
    Three yearly deposits of 1,000 in an account paying 5% grow to 1,000(q³ + q² + q), where q = 1.05 — a cubic in the annual multiplier. Substituting: 1,000 · (1.157625 + 1.1025 + 1.05) = 3,310.13, so 310.13 on top of the 3,000 paid in.
  • Programming and evaluating a curve fast
    A degree-five polynomial evaluated directly, with every power computed from scratch, needs 15 multiplications: 10 for the powers x² to x⁵ and 5 for the coefficients. Horner’s scheme — the same one that divides by a binomial — needs 5 multiplications and 5 additions. In a loop rendering a million points of a curve that is three times fewer multiplications per point.
  • Electronics and a temperature sensor
    The resistance of a Pt100 sensor is the polynomial R(T) = 100(1 + 3.9083 · 10⁻³ T − 5.775 · 10⁻⁷ T²). At T = 100 °C that gives 100 · (1 + 0.39083 − 0.005775) = 138.51 Ω. Without the quadratic term it would read 139.08 Ω — half an ohm, which on this scale is an error of about 1.5 °C.

All formulas

  • General form

    W(x)=anxn+an1xn1++a1x+a0W(x) = a_n x^n + a_{n-1} x^{n-1} + \dots + a_1 x + a_0

    the degree n is the highest power with a non-zero coefficient

  • Degree of a product

    deg(VW)=degV+degW\deg (V \cdot W) = \deg V + \deg W

    adding can drop the degree, multiplying never does

  • Division with remainder

    W(x)=P(x)Q(x)+R(x),degR<degPW(x) = P(x) \cdot Q(x) + R(x), \quad \deg R < \deg P

    the remainder has a lower degree than the divisor

  • Remainder theorem

    W(x)=(xa)Q(x)+W(a)W(x) = (x - a) \cdot Q(x) + W(a)

    the remainder is simply the value of the polynomial at a

  • Factor theorem

    (xa)W(x)    W(a)=0(x - a) \mid W(x) \iff W(a) = 0

    a root and a linear factor are the same piece of information

  • Integer roots

    pa0for every integer root pp \mid a_0 \quad \text{for every integer root } p

    they can only be divisors of the constant term

  • Biquadratic equation

    ax4+bx2+c=0  t=x2  at2+bt+c=0ax^4 + bx^2 + c = 0 \ \xrightarrow{\ t = x^2\ } \ at^2 + bt + c = 0

    substitute t = x², then take square roots to get back to x

The expression 2x3x+52x^3 - x + 5 is a polynomial: a sum of monomials in which the variable appears only in powers with non-negative integer exponents. No 1x\tfrac{1}{x}, no x\sqrt{x} — and that is the whole of the restriction.

It is worth knowing straight away, because this entire lesson rests on the fact that polynomials behave exactly like numbers: you add them, multiply them, divide them with remainder and factor them. Anyone who can do long division and factor an integer already knows half of what follows.

Degree, coefficients and the constant term

W(x)=anxn+an1xn1++a1x+a0W(x) = a_n x^n + a_{n-1} x^{n-1} + \dots + a_1 x + a_0

The degree is the highest power with a non-zero coefficient, and a0a_0 is the constant term — the value of the polynomial at zero. In W(x)=x32x25x+6W(x) = x^3 - 2x^2 - 5x + 6 the degree is 33 and the constant term is 66.

Two polynomials are equal when they have the same coefficients on the same powers — agreeing at a few arguments is not enough. That principle is what every "choose the coefficients so that…" problem is built on.

Adding, subtracting and multiplying

Adding and subtracting is collecting like terms, power against power. The only trap is in the subtraction: a minus in front of a bracket flips the sign of every term inside it.

(3x2x+4)(x2+5x2)=3x2x+4x25x+2=2x26x+6(3x^2 - x + 4) - (x^2 + 5x - 2) = 3x^2 - x + 4 - x^2 - 5x + 2 = 2x^2 - 6x + 6

Multiplying is the distributive law applied to every pair of terms. The degree of a product is always the sum of the degrees — which is where it differs from a sum, whose degree can drop when the leading terms cancel:

deg(VW)=degV+degW\deg (V \cdot W) = \deg V + \deg W

Every one of the special products is a particular case of this multiplication — and it is worth using them instead of expanding from scratch.

Dividing by a binomial: Horner’s scheme

Polynomials divide with remainder, exactly as integers do:

W(x)=P(x)Q(x)+R(x),degR<degPW(x) = P(x) \cdot Q(x) + R(x), \qquad \deg R < \deg P

When the divisor is a binomial xax - a, the remainder must have degree below 11 — so it is a number. The whole computation then fits into one row of a table: Horner’s scheme. Write out the coefficients of the dividend (with zeros for missing powers), copy the first one down, and compute each next entry as the previous result times aa plus the next coefficient.

For W(x)=x32x25x+6W(x) = x^3 - 2x^2 - 5x + 6 divided by x3x - 3 (so a=3a = 3):

x3x^3x2x^2xx11
coefficients112-25-566
a=3a = 311112-20\mathbf{0}

The last number is the remainder — here 00. The three before it are the coefficients of the quotient, one degree lower:

x32x25x+6=(x3)(x2+x2)x^3 - 2x^2 - 5x + 6 = (x - 3)(x^2 + x - 2)

The remainder and factor theorems

The remainder on dividing by xax - a is no accident. Substitute x=ax = a into W(x)=(xa)Q(x)+RW(x) = (x - a)Q(x) + R: the first term vanishes and R=W(a)R = W(a) is left:

W(x)=(xa)Q(x)+W(a)W(x) = (x - a) \cdot Q(x) + W(a)

From it follows the factor theorem — Bézout’s theorem in the Polish tradition — one of the most useful corollaries in all of school algebra:

(xa)W(x)    W(a)=0(x - a) \mid W(x) \iff W(a) = 0

In other words: a root of a polynomial and a linear factor of it are one piece of information written two ways. Finding a single root immediately drops the degree of the problem by one.

Find the remainder when W(x) = 2x³ − 4x² + x − 5 is divided by x + 2.

Integer roots

The factor theorem says where the factors are — but not where to start looking. Another theorem does: if a polynomial with integer coefficients has an integer root, that root divides the constant term.

For W(x)=x32x25x+6W(x) = x^3 - 2x^2 - 5x + 6 the constant term is 66, so the candidates are ±1,±2,±3,±6\pm 1, \pm 2, \pm 3, \pm 6 — eight numbers instead of infinitely many. Checking in turn: W(1)=125+6=0W(1) = 1 - 2 - 5 + 6 = 0, so x=1x = 1 is a root.

−2−10123−8−6−4−20246810−213W(x) = x³ − 2x² − 5x + 6roots
The graph crosses the axis at exactly −2, 1 and 3 — the three divisors of the constant term that passed the test W(a) = 0.

Factoring

Turn the root you found into a factor, divide it out with Horner’s scheme, and carry on with a polynomial one degree lower — down to a quadratic, which factors with the discriminant or with a special product.

Factor W(x) = x³ − 2x² − 5x + 6.

Not every polynomial factors into linear pieces. A quadratic factor with a negative discriminant — x2+1x^2 + 1, for instance — is irreducible over the reals and stays as it is.

Biquadratic equations

The equation ax4+bx2+c=0ax^4 + bx^2 + c = 0 contains only even powers, so the substitution t=x2t = x^2 turns it into a quadratic:

ax4+bx2+c=0  t=x2  at2+bt+c=0ax^4 + bx^2 + c = 0 \ \xrightarrow{\ t = x^2\ } \ at^2 + bt + c = 0

Just remember that t=x2t = x^2 cannot be negative. The way back to xx is therefore: a positive tt gives two solutions ±t\pm\sqrt{t}, t=0t = 0 gives one, and a negative tt is discarded.

Solve x⁴ − 13x² + 36 = 0.

Practice

Work through a set of exercises — they get harder as you go. At the end you'll see your score and the mistakes worth reviewing.

Exercise 1 of 8Score: 0
simplify (−x² + 4) + (−5x² + 7x + 6)

Common mistakes

  • The minus in front of a bracket — subtracting a polynomial flips the sign of every term inside, not only the first.
  • Missing powers in Horner’s scheme — dividing x37x^3 - 7 means writing the coefficients 1,0,0,71, 0, 0, -7. Skipping the zeros shifts the whole computation.
  • The wrong sign of aa — dividing by x+2x + 2 means a=2a = -2, not 22. Horner’s scheme reads the root, not the number in the bracket.
  • Hunting for roots outside the divisors of the constant term — there are no integer roots anywhere else; if no divisor gives zero, the polynomial simply has none.
  • Forgetting both signs on the way backt=9t = 9 gives x=3x = 3 and x=3x = -3; keeping only the positive one loses half the solutions.
  • Accepting a negative ttx2=4x^2 = -4 has no real solutions, so such a tt is discarded rather than square-rooted.

Formula card

Topic: Polynomials

  • General form

    W(x)=anxn+an1xn1++a1x+a0W(x) = a_n x^n + a_{n-1} x^{n-1} + \dots + a_1 x + a_0

    the degree n is the highest power with a non-zero coefficient

  • Degree of a product

    deg(VW)=degV+degW\deg (V \cdot W) = \deg V + \deg W

    adding can drop the degree, multiplying never does

  • Division with remainder

    W(x)=P(x)Q(x)+R(x),degR<degPW(x) = P(x) \cdot Q(x) + R(x), \quad \deg R < \deg P

    the remainder has a lower degree than the divisor

  • Remainder theorem

    W(x)=(xa)Q(x)+W(a)W(x) = (x - a) \cdot Q(x) + W(a)

    the remainder is simply the value of the polynomial at a

  • Factor theorem

    (xa)W(x)    W(a)=0(x - a) \mid W(x) \iff W(a) = 0

    a root and a linear factor are the same piece of information

  • Integer roots

    pa0for every integer root pp \mid a_0 \quad \text{for every integer root } p

    they can only be divisors of the constant term

  • Biquadratic equation

    ax4+bx2+c=0  t=x2  at2+bt+c=0ax^4 + bx^2 + c = 0 \ \xrightarrow{\ t = x^2\ } \ at^2 + bt + c = 0

    substitute t = x², then take square roots to get back to x

−2−10123−8−6−4−20246810−213W(x) = x³ − 2x² − 5x + 6roots
The graph of W(x) = x³ − 2x² − 5x + 6. It crosses the axis at −2, 1 and 3 — exactly at its roots.

Frequently asked questions

Related articles