impera Open Impera

IB Diploma Mathematics AA · Functions

Polynomial functions (HL)

1Polynomials and their graphs

A polynomial is a sum of terms in whole-number powers of $x$:

$$P(x) = a_n x^n + a_{n-1}x^{n-1} + \dots + a_1 x + a_0$$

  • The degree is the highest power.
  • A zero (root) is a value of $x$ where $P(x) = 0$.

A polynomial of degree $n$ has at most $n$ real zeros and at most $n - 1$ turning points.

How the graph behaves at a zero depends on the factor.

  • A single factor $(x - a)$: the graph crosses the axis.
  • A repeated factor $(x - a)^2$: the graph touches the axis and turns back.

Two cubic graphs: single roots and a repeated root

For large $x$, the highest power dominates. A cubic with a positive leading coefficient starts low on the left and ends high on the right.

Check yourself

What happens to the graph at a repeated zero, such as from (x − 2)²?

  • It has a vertical asymptote there

  • It stops and does not continue

  • It touches the x-axis and turns back

  • It crosses the x-axis at a steep angle

Show the answer

It touches the x-axis and turns back

A squared factor does not change sign.

2The remainder and factor theorems

The remainder theorem: when a polynomial $P(x)$ is divided by $(x - a)$, the remainder is $P(a)$.

The factor theorem: $(x - a)$ is a factor of $P(x)$ if and only if $P(a) = 0$.

These let you test factors by substituting numbers, without dividing.

Worked example

Factorizing a cubic

  1. Factorize $P(x) = x^3 - 2x^2 - 5x + 6$.
  2. Try $x = 1$: $1 - 2 - 5 + 6 = 0$. So $(x - 1)$ is a factor.
  3. Divide: $x^3 - 2x^2 - 5x + 6 = (x - 1)(x^2 - x - 6)$.
  4. Factorize the quadratic: $(x - 1)(x - 3)(x + 2)$.
  5. The zeros are 1, 3 and $-2$.
Worked example

A remainder

  1. Find the remainder when $x^3 + 2x - 5$ is divided by $(x - 2)$.
  2. $P(2) = 8 + 4 - 5 = 7$.
Check yourself

What does the factor theorem say?

  • Every polynomial has x as one of its factors

  • The remainder on dividing by (x − a) is always 1

  • (x − a) is a factor of P(x) exactly when P(a) = 0

  • P(a) is always zero for every value of a chosen

Show the answer

(x − a) is a factor of P(x) exactly when P(a) = 0

Substituting a root gives zero.

3Sums and products of roots

The roots of a polynomial are linked to its coefficients.

For a quadratic $ax^2 + bx + c = 0$ with roots $\alpha$ and $\beta$:

$$\alpha + \beta = -\frac{b}{a} \quad\text{and}\quad \alpha\beta = \frac{c}{a}$$

For a polynomial of degree $n$, $a_n x^n + a_{n-1}x^{n-1} + \dots + a_0 = 0$:

  • the sum of the roots is $-\dfrac{a_{n-1}}{a_n}$;
  • the product of the roots is $\dfrac{(-1)^n a_0}{a_n}$.

A polynomial of degree $n$ has exactly $n$ roots when complex roots and repeated roots are counted. This is the fundamental theorem of algebra. If the coefficients are real, complex roots come in conjugate pairs.

Worked example

Sum and product

  1. For $2x^2 - 6x + 5 = 0$: sum $= \dfrac{6}{2} = 3$, product $= \dfrac{5}{2}$.
  2. For $x^3 - 2x^2 - 5x + 6 = 0$: sum $= 2$, and product $= \dfrac{(-1)^3 \times 6}{1} = -6$.
  3. Check with the roots 1, 3 and $-2$: sum $= 2$, product $= -6$. Correct.
Check yourself

What is the sum of the roots of x² − 7x + 10 = 0?

  • 7

  • 10

  • −7

  • −10

Show the answer

7

Sum = −b ÷ a = 7. The roots are 2 and 5.

4Multiplicity of roots

The multiplicity of a root affects how the graph behaves at the axis.

  • Single root (factor $(x - a)$): the graph crosses the axis.
  • Double root ($(x - a)^2$): the graph touches the axis and turns back.
  • Triple root ($(x - a)^3$): the graph crosses with a flattening (a point of inflection).
Worked example

$y = (x - 1)^2(x + 2)$

  1. Roots: $x = 1$ (double) and $x = -2$ (single).
  2. At $x = -2$ the graph crosses; at $x = 1$ it touches.
  3. Leading term $x^3$, so the graph goes from bottom left to top right.
  4. $y$-intercept: $(0 - 1)^2(0 + 2) = 2$.
Check yourself

A polynomial has a factor (x − 1)³. What does the graph do at x = 1?

  • Has a vertical asymptote there

  • Touches the axis and turns back there

  • Does not reach the axis at all

  • Crosses the axis and flattens there

Show the answer

Crosses the axis and flattens there

An odd power changes sign, but the cube makes it flat.

5Finding a polynomial from its graph

Worked example

A cubic with roots $-1$, $2$ and $3$, passing through $(0, 12)$

  1. Write $y = a(x + 1)(x - 2)(x - 3)$.
  2. At $x = 0$: $12 = a(1)(-2)(-3) = 6a$, so $a = 2$.
  3. $y = 2(x + 1)(x - 2)(x - 3)$.
Check yourself

A cubic has roots $1$, $2$ and $3$ and $y$-intercept $-12$. What is $a$ in $y = a(x - 1)(x - 2)(x - 3)$?

  • 2

  • 6

  • $-2$

  • $-6$

Show the answer

2

$a(-1)(-2)(-3) = -6a = -12$.

6Going deeper: finding unknown coefficients, and using sums and products of roots

Worked example

$f(x) = 2x^3 + ax^2 + bx - 6$ has a factor $(x - 2)$ and leaves remainder $-12$ when divided by $(x + 1)$. Find $a$ and $b$ and factorise $f(x)$.

  1. Factor theorem: $f(2) = 0$. $16 + 4a + 2b - 6 = 0$, so $2a + b = -5$.
  2. Remainder theorem: $f(-1) = -12$. $-2 + a - b - 6 = -12$, so $a - b = -4$.
  3. Add the equations: $3a = -9$, so $a = -3$ and $b = 1$.
  4. $f(x) = 2x^3 - 3x^2 + x - 6 = (x - 2)(2x^2 + x + 3)$.
  5. Check by expanding: $2x^3 + x^2 + 3x - 4x^2 - 2x - 6 = 2x^3 - 3x^2 + x - 6$.
  6. The quadratic has discriminant $1 - 24 = -23 < 0$, so $f$ has one real root, $x = 2$, and two complex conjugate roots.
  7. Check with the root formulas: sum of roots $= -\frac{-3}{2} = \frac{3}{2}$; the quadratic's roots sum to $-\frac{1}{2}$, and $2 - \frac{1}{2} = \frac{3}{2}$.

Sums and products of roots. For $a_n x^n + a_{n-1}x^{n-1} + \dots + a_0 = 0$:

  • Sum of the roots $= -\frac{a_{n-1}}{a_n}$.
  • Product of the roots $= (-1)^n \frac{a_0}{a_n}$.
Worked example

the roots of $x^3 - 4x^2 + 2x + 5 = 0$ are $\alpha$, $\beta$, $\gamma$.

  1. $\alpha + \beta + \gamma = 4$.
  2. $\alpha\beta + \beta\gamma + \gamma\alpha = 2$.
  3. $\alpha\beta\gamma = -5$.
  4. $\alpha^2 + \beta^2 + \gamma^2 = (\alpha + \beta + \gamma)^2 - 2(\alpha\beta + \beta\gamma + \gamma\alpha) = 16 - 4 = 12$.
  5. $\frac{1}{\alpha} + \frac{1}{\beta} + \frac{1}{\gamma} = \frac{\alpha\beta + \beta\gamma + \gamma\alpha}{\alpha\beta\gamma} = -\frac{2}{5}$.

Complex roots come in pairs. If a polynomial has real coefficients and $2 + 3i$ is a root, then $2 - 3i$ is also a root. Together they give the real quadratic factor $x^2 - 4x + 13$ (sum 4, product $4 + 9 = 13$).

Reading a graph

  • A root of multiplicity 1 crosses the axis; multiplicity 2 touches and turns; multiplicity 3 crosses with a flat point of inflexion.
  • The sign of the leading coefficient and the degree fix the end behaviour.
  • A degree $n$ polynomial has at most $n - 1$ turning points and exactly $n$ roots counted with multiplicity, real or complex.

Common mistakes

  • Using $f(1)$ for a factor $(x + 1)$: the value to substitute is the root, $-1$.
  • Forgetting the factor $(-1)^n$ in the product of roots.
  • For a divisor $(2x - 1)$, substitute $x = \frac{1}{2}$.
Check yourself

What is the sum of the roots of 3x⁴ − 6x³ + x − 9 = 0?

  • 6

  • −3

  • 2

  • −2

Show the answer

2

The sum is −(−6) ÷ 3 = 2.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera