Open Mathhh

Extreme values, optimisation and number of roots

Level 14: Logarithms, Limits and Introductory Calculus · worksheets 81 to 110 · 3 min read

I can

  • find the greatest or least value of a function on an interval
  • solve problems about the largest product, area or height
  • count the real roots of a cubic by using its turning points

Key idea

On an interval like 0 ≤ x ≤ 3, the greatest and least values are at a stationary point inside the interval or at one of the two ends. So find f′(x) = 0, then work out f at each stationary point inside the interval and at both ends. Pick the biggest or smallest.

For a word problem, write one quantity using one letter, then do the same steps. For a rectangle with perimeter 28, the sides add to 14, so the area is x(14 − x).

For roots of a cubic like x³ − 3x + k = 0, find the turning points of x³ − 3x. The equation x³ − 3x = −k has three roots when the line y = −k cuts the graph three times, which means −k lies strictly between the two turning values.

Worked examples

Example 1: greatest value of f(x) = −2x² + 8x − 11 for 0 ≤ x ≤ 3

Watch it: greatest value of f(x) = −2x² + 8x − 11 for 0 ≤ x ≤ 3, step by step:

  1. A greatest value is at a stationary point or at an end.
  2. f(2) = −2 × 4 + 16 − 11 = −3.
  3. At the end x = 3: f(3) = −18 + 24 − 11 = −5.
  4. The other end.
  5. Compare the three values.
  6. The greatest value is −3, at x = 2.
  1. f′(x) = −4x + 8 = 0, so x = 2.
  2. f(2) = −8 + 16 − 11 = −3.
  3. Ends: f(0) = −11 and f(3) = −18 + 24 − 11 = −5.
  4. The biggest of −3, −11 and −5 is −3.

Greatest value = −3

Example 2: rectangle with perimeter 28 cm

Watch it: rectangle with perimeter 28 cm, largest area, step by step:

  1. Half the perimeter is 14, so the sides are x and 14 − x.
  2. The largest area is where the gradient is 0.
  3. Both sides are 7, so A = 7 × 7 = 49.
  4. The rectangle is a square.
  5. The area A is largest at x = 7, where A = 49.
  1. Sides add to 14. Area A = x(14 − x) = 14x − x².
  2. A′ = 14 − 2x = 0, so x = 7.
  3. A = 7 × 7 = 49.

Largest area = 49 cm²

Example 3: x³ − 3x + k = 0 has three distinct real roots. How many integer k?

Watch it: x³ − 3x + k = 0 with three distinct real roots, step by step:

  1. Find the turning points of g.
  2. Put x = −1 and x = 1 into g.
  3. Three roots need the line y = −k to cut between the turning points.
  4. Multiply by −1 and swap the signs.
  5. −1, 0 and 1 all fit.
  6. The line y = −k must cut the curve three times, so −k is between −2 and 2.
  1. g(x) = x³ − 3x has g′(x) = 3x² − 3 = 0, so x = ±1.
  2. g(−1) = 2 and g(1) = −2.
  3. Three roots need −2 < −k < 2, which means −2 < k < 2.
  4. The integers are −1, 0, 1.

Answer: 3

Try it

Find the minimum value of f(x) = 2x² − 4x + 8 for −1 ≤ x ≤ 3.
Show answer6
Find the maximum value of f(x) = x³ − 3x for 0 ≤ x ≤ 3.
Show answer18
Two positive numbers have sum 12. Find the largest possible value of their product.
Show answer36
A ball is thrown upward and its height after t seconds is h = 10t − 5t² metres. Find the greatest height.
Show answer5
x³ − 3x² + k = 0 has a repeated root. Find the possible values of k.
Show answer0, 4
x³ − 27x + k = 0 has three distinct real roots. Find the largest integer value of k.
Show answer53

Common mistakes

  • Forgetting to check the ends of the interval.
  • Using a stationary point that lies outside the interval.
  • Allowing the turning value itself when the roots must be distinct. The inequality is strict.

Remember

  • Check stationary points inside the interval and both ends.
  • Write a word problem with one letter before you differentiate.
  • A repeated root happens when −k equals a turning value.

Practise this

Worksheets 81 to 110 of Level 14 practise this note. Sign in to Mathhh, write your answers by hand and see your marks straight away.

Open Mathhh

More Level 14 notes

Keep learning

All Level 14 notes · All study notes