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.
Finding and classifying
- $f(x) = x^3 - 3x^2 - 9x + 5$.
- $f'(x) = 3x^2 - 6x - 9 = 3(x - 3)(x + 1)$.
- $f'(x) = 0$ at $x = -1$ and $x = 3$.
- $f(-1) = 10$ and $f(3) = -22$.
- Test gradients: $f'(-2) = 15 > 0$, $f'(0) = -9 < 0$, $f'(4) = 15 > 0$.
- So $(-1, 10)$ is a maximum and $(3, -22)$ is a minimum.
Check yourself
At a local maximum, how does the gradient change?
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.
Using f″
- For $f(x) = x^3 - 3x^2 - 9x + 5$, $f''(x) = 6x - 6$.
- $f''(-1) = -12 < 0$: maximum.
- $f''(3) = 12 > 0$: minimum.
Check yourself
f′(a) = 0 and f″(a) = 5. What kind of point is at x = a?
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.
The inflection of the cubic
- $f''(x) = 6x - 6 = 0$ at $x = 1$.
- $f''(0) = -6$ and $f''(2) = 6$, so the sign changes.
- $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?
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.
The largest open box
- Squares of side $x$ are cut from the corners of a 12 cm by 12 cm sheet, and the sides are folded up.
- $V = x(12 - 2x)^2$, with $0 < x < 6$.
- $\frac{dV}{dx} = (12 - 2x)^2 - 4x(12 - 2x) = (12 - 2x)(12 - 6x)$.
- $\frac{dV}{dx} = 0$ at $x = 2$ (and $x = 6$, which gives no box).
- $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?
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$.
$f(x) = x^3 - 6x^2 + 9x$
- $f'(x) = 3x^2 - 12x + 9 = 3(x - 1)(x - 3)$.
- $f'(x) = 0$ at $x = 1$ and $x = 3$.
- Test signs: for $x < 1$, $f'(x) > 0$; for $1 < x < 3$, $f'(x) < 0$; for $x > 3$, $f'(x) > 0$.
- So $f$ is increasing for $x < 1$ and $x > 3$, and decreasing for $1 < x < 3$.
- Maximum at $(1, 4)$; minimum at $(3, 0)$.
Check yourself
On which interval is $f(x) = x^3 - 6x^2 + 9x$ decreasing?
Show the answer
$1 < x < 3$
$f'(x) < 0$ between the roots.
6A classic optimisation: the open box
Making a box from a square sheet
- A square sheet of side 12 cm has squares of side $x$ cut from each corner, and the sides are folded up.
- Volume: $V = x(12 - 2x)^2$, for $0 < x < 6$.
- Expand: $V = 144x - 48x^2 + 4x^3$.
- $\frac{dV}{dx} = 144 - 96x + 12x^2 = 12(x - 2)(x - 6)$.
- $x = 6$ gives no box, so $x = 2$.
- Check: $\frac{d^2V}{dx^2} = -96 + 24x = -48 < 0$ at $x = 2$, so a maximum.
- 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?
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