IB Diploma Mathematics AI · Calculus
Optimisation
1Stationary points
At a stationary point, the gradient is zero: $f'(x) = 0$.
- At a local maximum, the gradient changes from positive to negative.
- At a local minimum, the gradient changes from negative to positive.
To find and classify them:
- Differentiate and solve $f'(x) = 0$.
- Find the $y$-coordinates.
- Check the sign of $f'(x)$ just either side, or look at the graph on your calculator.
Stationary points of a cubic: the gradient is zero at each
Finding and classifying
- $f(x) = x^3 - 6x^2 + 9x + 1$, so $f'(x) = 3x^2 - 12x + 9 = 3(x - 1)(x - 3)$.
- $f'(x) = 0$ at $x = 1$ and $x = 3$.
- $f(1) = 5$ and $f(3) = 1$.
- $f'(0) = 9 > 0$, $f'(2) = -3 < 0$, $f'(4) = 9 > 0$.
- So $(1, 5)$ is a local maximum and $(3, 1)$ is a local minimum.
Check yourself
At a local minimum, how does the gradient change?
Show the answer
From negative to positive
The graph goes down, flattens, then goes up.
2Solving optimisation problems
Optimisation means finding the largest or smallest value of a quantity, such as the greatest profit or the least material.
- Write the quantity to optimise as a function of one variable. Use the other information to remove any second variable.
- Differentiate and set the derivative equal to zero.
- Solve to find the value of the variable.
- Check it is a maximum or minimum, and that it fits the context.
- Answer the question asked, with units.
A box with the least material
- An open box has a square base of side $x$ cm and height $h$ cm. Its volume is 32 cm³. Find the least surface area.
- Volume: $x^2h = 32$, so $h = \frac{32}{x^2}$.
- Area (base plus four sides): $A = x^2 + 4xh = x^2 + \frac{128}{x}$.
- $\frac{dA}{dx} = 2x - \frac{128}{x^2} = 0$, so $x^3 = 64$ and $x = 4$.
- $h = 2$ and $A = 16 + 32 = 48$ cm². The graph shows this is a minimum.
Check yourself
In an optimisation problem with two variables, what must you do first?
Show the answer
Use the given facts to write the quantity in terms of one variable
You can only differentiate a function of one variable here.
3Maximum profit and minimum cost
Business questions often give a profit, cost or revenue function.
Best production level
- A company's daily profit is $P(x) = -0.5x^2 + 40x - 300$ euros, for $x$ items.
- $P'(x) = -x + 40 = 0$, so $x = 40$ items.
- $P(40) = -800 + 1600 - 300 = 500$ euros.
- $P'(x)$ changes from positive to negative at $x = 40$, so this is the maximum profit.
Check the endpoints too. If the domain is limited (for example, the factory can make at most 30 items), the greatest value may be at an end of the domain, not at a stationary point.
Check yourself
A profit function has its stationary point at x = 50, but at most 30 items can be made. Where is the maximum profit likely to be?
Show the answer
At x = 30, the end of the domain
The stationary point lies outside the allowed values.
4Using technology
In Maths AI papers, the calculator can find maximum and minimum points directly from a graph. A good method is:
- Write the function you are optimising.
- Find the derivative, to show understanding, where the question asks for it.
- Use the graph to find the maximum or minimum and to check the answer.
Read the question: "show that" or "use calculus" means you must show the derivative and set it to zero. "Find" means a calculator answer is acceptable.
Check yourself
A question says "use calculus to find the maximum". What must you show?
Show the answer
The derivative set equal to zero and solved
Calculus means differentiating.
5Minimising surface area
An open box with a square base and volume 32 m³
- Let the base side be $x$ and the height $h$. Volume: $x^2h = 32$, so $h = \frac{32}{x^2}$.
- Surface area (open top): $A = x^2 + 4xh = x^2 + \frac{128}{x}$.
- $\frac{dA}{dx} = 2x - \frac{128}{x^2}$.
- Set to zero: $2x^3 = 128$, so $x^3 = 64$ and $x = 4$.
- $h = \frac{32}{16} = 2$ m.
- Minimum area: $16 + 32 = 48$ m².
Always express the quantity to optimise in terms of one variable before differentiating.
Check yourself
Why is $h$ written as $\frac{32}{x^2}$ in the box problem?
Show the answer
To express surface area in terms of one variable
One variable before differentiating.
6Checking maxima and minima
To decide whether a stationary point is a maximum or minimum:
- Sign of $f'(x)$ either side: positive then negative means a maximum; negative then positive means a minimum.
- Second derivative: $f''(x) < 0$ means a maximum; $f''(x) > 0$ means a minimum.
- Graph: sketch with a GDC.
Profit $P = -2x^2 + 80x - 300$
- $P'(x) = -4x + 80 = 0$, so $x = 20$.
- $P''(x) = -4 < 0$, so a maximum.
- Maximum profit: $P = -800 + 1600 - 300 = 500$.
Check yourself
If $f''(x) > 0$ at a stationary point, what is it?
Show the answer
A minimum
Concave up.
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