Model, differentiate, set to 0, classify, answer: Optimisation finds a maximum or minimum in a real context. The recipe: (1) write the quantity to optimise; (2) use a constraint to get it in one variable; (3) differentiate, set f'(x) = 0; (4) classify; (5) answer the question (often the actual max/min value).
One variable is the goal: You can only differentiate a function of one variable — use the constraint to eliminate the second variable first.
Use the constraint to substitute: Write the target quantity (area, cost, volume…), then use the given constraint (a fixed perimeter, total length, etc.) to express it with a single variable.
IB-style question — set up the area
A rectangular pen uses a wall as one side and 40 m of fencing for the other three sides. With width x, write the area A in terms of x.
Step by step
- Constraint: two widths + one length = 40, so length = 40 − 2x.
- Area = width × length.
Final answer
A = 40x − 2x².
Read the constraint carefully: A wall side means only three sides are fenced — getting the constraint right is half the problem.
Practice with real exam questions
Answer exam-style questions and get AI feedback that shows you exactly what examiners want to see in a full-marks response.
Differentiate, solve f'(x) = 0, classify: Differentiate the one-variable model, solve f'(x) = 0 for the optimal x, classify it (second-derivative test), then answer — usually the maximum/minimum value.
IB-style question — maximum area
Maximise the pen area A = 40x − 2x² (from the 40 m of fencing). Find the dimensions and the maximum area.
Step by step
- A'(x) = 40 − 4x = 0 ⇒ x = 10. A''(x) = −4 < 0 ⇒ maximum.
- Length = 40 − 20 = 20; area = 10 × 20.
Final answer
Width 10 m, length 20 m; maximum area 200 m².
Answer the actual question: After finding x, give what's asked — the dimensions, the maximum value, or both.
Models like T = ax + b/x: Many cost/material problems give a model like T = ax + b/x. Rewrite b/x as bx⁻¹, differentiate, set T'(x) = 0, and solve (a positive value of x).
IB-style question — reciprocal model
The cost of a container is T = x + 36/x (x > 0). Find the value of x that minimises T, and the minimum cost.
Step by step
- T = x + 36x⁻¹, so T' = 1 − 36x⁻² = 0 ⇒ x² = 36 ⇒ x = 6.
- T''(x) = 72x⁻³ > 0 ⇒ minimum; T(6) = 6 + 6.
Final answer
x = 6 gives the minimum cost T = 12.
Keep the positive root: x² = 36 gives x = ±6, but a length/quantity must be positive, so x = 6.