An optimisation question describes a real situation, such as a box, a tank or a fence, and asks for the largest or smallest possible value of something. The calculus is usually one derivative set equal to zero. The marks are mostly in the set-up: writing the quantity as a function of one variable, stating its domain, and proving that your answer really is a maximum or minimum.
Optimisation is part of the SL calculus content of IB Maths Analysis and Approaches, so AA SL and AA HL students both need it, and HL papers tend to place it inside longer multi-part problems. Questions appear without a calculator on Paper 1 and with a GDC on Paper 2. If a student keeps freezing at the "write a function" stage, a few sessions with our IB Maths AA SL tutors usually fix the habit faster than more solo practice.
The five-step method
- Draw and label. Name every length that changes. One sketch prevents most set-up errors.
- Write the target quantity (area, volume, cost, distance) using your labels.
- Use the constraint to remove a variable. The question always gives a fixed amount: a perimeter, a volume, a sheet size. Rearrange it and substitute, so the target depends on one variable only.
- State the domain. Lengths are positive, and the constraint usually gives an upper limit too.
- Differentiate, solve, justify and answer the question asked. Find where the derivative is zero, show it is a maximum or minimum, check endpoints if the domain is closed, and give the quantity the question wants, with units.
Step 5 has a trap. Many questions ask for the maximum volume, not the value of x that gives it. Reread the last line before you write the answer.
Worked example 1: the open box (no calculator)
A square sheet of card 24 cm by 24 cm has a square of side x cm cut from each corner. The sides are folded up to make an open box. Find the maximum volume.
Set-up. The base is (24 − 2x) by (24 − 2x) and the height is x, so
V(x) = x(24 − 2x)², with domain 0 < x < 12.
Differentiate (product rule, with the chain rule on the bracket):
V′(x) = (24 − 2x)² + x × 2(24 − 2x)(−2) = (24 − 2x)[(24 − 2x) − 4x] = (24 − 2x)(24 − 6x).
Solve V′(x) = 0: x = 12 or x = 4. Only x = 4 is inside the domain (x = 12 gives no box at all).
Justify. V″(x) = 24x − 192, the derivative of 12(x − 4)(x − 12) = 12x² − 192x + 576. So V″(4) = 96 − 192 = −96 < 0, which confirms a maximum.
Answer. V(4) = 4 × 16² = 1024 cm³.
Notice how factorising V′(x) before expanding made the solving one line long. The same habit is drilled in our guide to the chain, product and quotient rules.
Worked example 2: the closed cylinder (exact answer, then decimals)
A closed cylindrical tin must hold 500 cm³. Find the radius that uses the least metal, and the minimum surface area.
Constraint: πr²h = 500, so h = 500/(πr²).
Target: A = 2πr² + 2πrh. Substitute for h:
A(r) = 2πr² + 2πr × 500/(πr²) = 2πr² + 1000/r, with r > 0.
Differentiate: A′(r) = 4πr − 1000/r².
Solve: 4πr = 1000/r², so r³ = 250/π and r = (250/π)^(1/3) ≈ 4.30 cm.
Justify: A″(r) = 4π + 2000/r³, which is positive for every r > 0, so this is a minimum.
Answer: h = 500/(πr²) ≈ 8.60 cm, and A ≈ 349 cm² (3 s.f.).
The height comes out as exactly twice the radius, because r³ = 250/π gives h = 500/(πr²) = 2r. Spotting a neat relationship like this is a good check that the algebra is right.
Worked example 3: the closest point on a curve
Find the point on the curve y = √x that is closest to A(3, 0), and the shortest distance.
A general point on the curve is P(x, √x). The distance AP satisfies
D² = (x − 3)² + (√x)² = x² − 6x + 9 + x = x² − 5x + 9.
The trick: D is smallest exactly when D² is smallest, because D is positive. Minimising D² avoids differentiating a square root.
d(D²)/dx = 2x − 5 = 0, so x = 2.5. The second derivative is 2 > 0, so it is a minimum.
The closest point is (2.5, √2.5) ≈ (2.5, 1.58), and D = √(6.25 − 12.5 + 9) = √2.75 = √11/2 ≈ 1.66.
Worked example 4: when the maximum is at an endpoint
The cost of a production run is modelled by C(x) = x + 16/x, where x is the number of hundreds of items, and the factory can only run 1 ≤ x ≤ 3. Find the minimum and maximum cost in this range.
C′(x) = 1 − 16/x². Setting this to zero gives x = 4, which is outside the domain. For 1 ≤ x ≤ 3, x² ≤ 9 < 16, so C′(x) < 0: the cost is decreasing throughout.
So the minimum is at the right-hand end, C(3) = 3 + 16/3 = 25/3 ≈ 8.33, and the maximum at the left-hand end, C(1) = 17.
A student who only solves C′(x) = 0 finds x = 4 and has nothing valid to say. When the domain is closed, always compare the endpoints.
Proving it is a maximum or minimum
The IB guide says marks are awarded for method, accuracy, answers and reasoning. "f′(x) = 0, so it is a maximum" is not reasoning: it is equally true of a minimum. Three ways to justify properly:
| Method | What you write | Use it when |
|---|---|---|
| Second derivative | "V″(4) = −96 < 0, so maximum" | The second derivative is easy to find |
| Sign of the first derivative | "V′ > 0 just before x = 4 and V′ < 0 just after, so maximum" | f″ is messy, or f″ = 0 at the point |
| Shape argument | "A″(r) > 0 for all r > 0, so the only stationary point is a minimum" | The second derivative has one sign everywhere |
On Paper 2 you may also be asked to find a maximum with the GDC. Show the function you graphed and give the coordinates to 3 significant figures; our GDC skills guide walks through the maximum and minimum commands.
Paper 1 versus Paper 2 optimisation
- Paper 1 (no calculator): expect polynomial or simple rational functions with neat stationary points, and exact answers such as 1024 or 25/3.
- Paper 2 (GDC required): expect exponentials, trig or awkward numbers. You may differentiate by hand and then solve on the GDC, or read the maximum from a graph. For a wider plan of how to use that paper, see our strategy for the Paper 2 GDC paper.
Kinematics questions, such as finding the maximum speed of a particle, are optimisation in disguise; the kinematics guide has examples.
Mistakes our tutors see
- Two variables left in the function. If A still contains h and r, you have not used the constraint.
- No domain. Without 0 < x < 12, students accept x = 12 or negative lengths.
- No justification of the maximum or minimum.
- Answering the wrong question: giving x = 4 when the question asked for the volume.
- Ignoring endpoints on a closed interval.
- Rounding r early, then using 4.3 to find h and A. Keep the exact value or the full calculator value until the end.
Self-check
- A rectangle has perimeter 40 cm. Find its maximum area.
- A drug concentration is modelled by C(t) = 20t e^(−0.5t) for t ≥ 0 hours. Find when it is greatest and the maximum value.
- Two positive numbers add to 12. Find the largest possible value of x²y, where x and y are the numbers.
- A farmer has 60 m of fencing to make a rectangular pen against a long wall, fencing three sides only. Find the largest area.
Answers.
1: A = x(20 − x), A′ = 20 − 2x = 0 at x = 10, so 100 cm² (a square).
2: C′(t) = 20e^(−0.5t)(1 − 0.5t) = 0 at t = 2 hours, and C(2) = 40/e ≈ 14.7. C″(2) < 0 confirms a maximum.
3: P = x²(12 − x), P′ = 24x − 3x² = 0 at x = 8, so the largest value is 64 × 4 = 256.
4: With x for each side touching the wall, A = x(60 − 2x), A′ = 60 − 4x = 0 at x = 15, so 450 m².
Where optimisation leads next
The same skills feed straight into the sibling post on classifying stationary points and writing tangents, where you classify every turning point of a curve rather than just one. For how optimisation fits alongside the rest of SL and HL calculus, see our AA calculus guide.
How Maths Bodhi helps
Our tutors start optimisation with the sketch and the constraint, not the derivative, and ask the student to say the domain aloud before any calculus. Students learning from outside Gurgaon can join our online IB maths lessons. For the senior option, there are AA SL lessons taught by Ajay Vatsyayan.
Home tuition is available in Gurgaon (Gurugram). Students elsewhere in India and abroad learn with us online. You can book a free demo class.
Written and checked by the Maths Bodhi team. Facts checked against official IB sources, November 2026.
Frequently asked questions
- How do you solve optimisation problems in IB maths?
- Draw and label a diagram, write the quantity to optimise, use the constraint to reduce it to one variable, state the domain, then differentiate, solve, justify the maximum or minimum and answer the question asked.
- Is optimisation in IB Maths AA SL?
- Yes. Optimisation in context is part of the SL calculus content, so it is examined in both AA SL and AA HL, with and without a calculator.
- How do I show that my answer is a maximum?
- Show that the second derivative is negative at the point, or that the first derivative changes from positive to negative there. Simply finding where the derivative is zero is not enough.
- Do I need to check the endpoints in an optimisation question?
- Yes, whenever the domain is a closed interval. The largest or smallest value can occur at an endpoint, especially if the stationary point lies outside the domain.
- Why minimise the distance squared instead of the distance?
- Distance is positive, so it is smallest exactly when its square is smallest. Working with the square avoids differentiating a square root and gives the same point.
