impera Open Impera

IB Diploma Mathematics AA · Calculus

Stationary points and optimisation

1Finding stationary points

A stationary point is where the gradient is zero: $f'(x) = 0$.

Stationary points of y = x³ − 3x² − 9x + 5

There are three types:

  • Local maximum: the gradient goes from positive to negative.
  • Local minimum: the gradient goes from negative to positive.
  • Stationary point of inflection: the gradient is zero but keeps the same sign either side.
Worked example

Finding and classifying

  1. $f(x) = x^3 - 3x^2 - 9x + 5$.
  2. $f'(x) = 3x^2 - 6x - 9 = 3(x - 3)(x + 1)$.
  3. $f'(x) = 0$ at $x = -1$ and $x = 3$.
  4. $f(-1) = 10$ and $f(3) = -22$.
  5. Test gradients: $f'(-2) = 15 > 0$, $f'(0) = -9 < 0$, $f'(4) = 15 > 0$.
  6. So $(-1, 10)$ is a maximum and $(3, -22)$ is a minimum.
Check yourself

At a local maximum, how does the gradient change?

  • From negative to positive

  • From positive to negative

  • It stays zero

  • It stays positive

Show the answer

From positive to negative

The curve rises, flattens, then falls.

2The second derivative

The second derivative $f''(x)$ is the derivative of $f'(x)$. It tells you how the gradient is changing.

The second derivative test at a stationary point:

  • $f''(x) < 0$: local maximum (the curve bends down).
  • $f''(x) > 0$: local minimum (the curve bends up).
  • $f''(x) = 0$: the test fails. Use the gradient on each side instead.
Worked example

Using f″

  1. For $f(x) = x^3 - 3x^2 - 9x + 5$, $f''(x) = 6x - 6$.
  2. $f''(-1) = -12 < 0$: maximum.
  3. $f''(3) = 12 > 0$: minimum.
Check yourself

f′(a) = 0 and f″(a) = 5. What kind of point is at x = a?

  • A local minimum

  • A point of inflection

  • A local maximum

  • Not a stationary point

Show the answer

A local minimum

A positive second derivative means the curve bends upward.

3Concavity and points of inflection

  • $f''(x) > 0$: the curve is concave up, like a cup.
  • $f''(x) < 0$: the curve is concave down, like a cap.

A point of inflection is where the concavity changes. At such a point $f''(x) = 0$ and $f''$ changes sign.

A point of inflection does not need to be stationary. It is only stationary if $f'(x) = 0$ there as well.

Worked example

The inflection of the cubic

  1. $f''(x) = 6x - 6 = 0$ at $x = 1$.
  2. $f''(0) = -6$ and $f''(2) = 6$, so the sign changes.
  3. $f(1) = -6$. The point of inflection is $(1, -6)$, with gradient $f'(1) = -12$. It is not stationary.

Be careful: $f(x) = x^4$ has $f''(0) = 0$, but $f''$ does not change sign. It is a minimum, not an inflection.

Check yourself

What two things must be true at a point of inflection?

  • f(x) = 0 and f′(x) = 0

  • f′(x) = 0 and f″(x) = 0

  • f″(x) = 0 and f″ changes sign

  • f′(x) = 0 and f′ changes sign

Show the answer

f″(x) = 0 and f″ changes sign

Concavity must actually change.

4Optimisation

Optimisation means finding the largest or smallest value of something, such as area, volume, cost or time.

  • Write a formula for the quantity in terms of one variable. Use the constraint to remove any others.
  • Differentiate and set the derivative to zero.
  • Check it is a maximum or minimum, and that it fits the context.
Worked example

The largest open box

  1. Squares of side $x$ are cut from the corners of a 12 cm by 12 cm sheet, and the sides are folded up.
  2. $V = x(12 - 2x)^2$, with $0 < x < 6$.
  3. $\frac{dV}{dx} = (12 - 2x)^2 - 4x(12 - 2x) = (12 - 2x)(12 - 6x)$.
  4. $\frac{dV}{dx} = 0$ at $x = 2$ (and $x = 6$, which gives no box).
  5. $V(2) = 2 \times 8^2 = 128$ cm³. The sign of $\frac{dV}{dx}$ changes from positive to negative, so this is the maximum.

Also check the end points of the allowed interval. The largest value is sometimes at an end, not at a stationary point.

Check yourself

In optimisation, why do you write the formula in terms of one variable?

  • Because the answer must be a whole number

  • So that you can differentiate it and solve

  • Because two variables cannot be multiplied

  • To make the graph look nicer

Show the answer

So that you can differentiate it and solve

A single-variable function can be maximised with f′ = 0.

5Increasing and decreasing functions

A function is increasing where $f'(x) > 0$ and decreasing where $f'(x) < 0$.

Worked example

$f(x) = x^3 - 6x^2 + 9x$

  1. $f'(x) = 3x^2 - 12x + 9 = 3(x - 1)(x - 3)$.
  2. $f'(x) = 0$ at $x = 1$ and $x = 3$.
  3. Test signs: for $x < 1$, $f'(x) > 0$; for $1 < x < 3$, $f'(x) < 0$; for $x > 3$, $f'(x) > 0$.
  4. So $f$ is increasing for $x < 1$ and $x > 3$, and decreasing for $1 < x < 3$.
  5. Maximum at $(1, 4)$; minimum at $(3, 0)$.
Check yourself

On which interval is $f(x) = x^3 - 6x^2 + 9x$ decreasing?

  • $x < 1$

  • Everywhere

  • $1 < x < 3$

  • $x > 3$

Show the answer

$1 < x < 3$

$f'(x) < 0$ between the roots.

6A classic optimisation: the open box

Worked example

Making a box from a square sheet

  1. A square sheet of side 12 cm has squares of side $x$ cut from each corner, and the sides are folded up.
  2. Volume: $V = x(12 - 2x)^2$, for $0 < x < 6$.
  3. Expand: $V = 144x - 48x^2 + 4x^3$.
  4. $\frac{dV}{dx} = 144 - 96x + 12x^2 = 12(x - 2)(x - 6)$.
  5. $x = 6$ gives no box, so $x = 2$.
  6. Check: $\frac{d^2V}{dx^2} = -96 + 24x = -48 < 0$ at $x = 2$, so a maximum.
  7. Maximum volume: $V = 2 \times 8^2 = 128$ cm³.

Always check the domain: values that make lengths zero or negative are not valid.

Check yourself

Why is $x = 6$ rejected in the box problem?

  • It is too small to give a box of any use

  • It makes the base length zero, so there is no box

  • It gives a negative volume, so it is not allowed

  • It is a minimum of $\frac{dV}{dx}$, not of V

Show the answer

It makes the base length zero, so there is no box

$12 - 2(6) = 0$.

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