WhatsApp us
IB DP Maths29 Nov 2026

IB Maths Optimisation Problems: A Five-Step Method and Four Worked Examples (AA SL and HL)

Optimisation questions in IB Maths AA turn a story into a function and ask for its largest or smallest value. A five-step method, four original worked examples (box, cylinder, closest point, endpoint maximum), how to justify the answer, and a self-check.

IB Maths Optimisation Problems: A Five-Step Method and Four Worked Examples (AA SL and HL)

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

  1. Draw and label. Name every length that changes. One sketch prevents most set-up errors.
  2. Write the target quantity (area, volume, cost, distance) using your labels.
  3. 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.
  4. State the domain. Lengths are positive, and the constraint usually gives an upper limit too.
  5. 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:

MethodWhat you writeUse 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

  1. Two variables left in the function. If A still contains h and r, you have not used the constraint.
  2. No domain. Without 0 < x < 12, students accept x = 12 or negative lengths.
  3. No justification of the maximum or minimum.
  4. Answering the wrong question: giving x = 4 when the question asked for the volume.
  5. Ignoring endpoints on a closed interval.
  6. 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

  1. A rectangle has perimeter 40 cm. Find its maximum area.
  2. 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.
  3. Two positive numbers add to 12. Find the largest possible value of x²y, where x and y are the numbers.
  4. 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.
IB maths optimisationIB maths AA SL calculusmaximum and minimum problemsIB math optimization questionsIB tutor Gurgaon

Related guides

Keep exploring this maths topic

IB DP Maths29 Nov 2026

IB Maths Tangents, Normals and Stationary Points: Equations, Classification and Inflection (AA SL)

How to write the equation of a tangent or normal in IB Maths AA, find and classify stationary points, and tell a stationary point of inflection from a maximum or minimum. Four original worked examples, the usual slips and a self-check with answers.

IB maths tangent and normalstationary pointspoints of inflectionIB maths AA SL calculus

By Maths Bodhi Team

Read guide

IB DP Maths10 Nov 2026

IB Maths Kinematics: Displacement, Velocity, Acceleration and Distance with Calculus (AA SL, AA HL and AI HL)

Kinematics questions in IB maths link displacement, velocity and acceleration through differentiation and integration. How to tell distance from displacement, when a particle is speeding up, how to use the GDC on Paper 2, and how AA and AI HL questions differ, with four worked examples.

IB maths kinematicsIB maths calculusdistance and displacementIB maths AA and AI HL

By Maths Bodhi Team

Read guide

IB DP Maths29 Nov 2026

IB Maths Composite and Inverse Functions: Order, Domains and Finding f⁻¹(x) (AA SL and HL)

How to build composite functions in the right order, find an inverse function algebraically, restrict a domain so an inverse exists, and work out the domain of a composite. Four original worked examples, the y = x shortcut, common slips and a self-check.

IB maths composite functionsIB maths inverse functionsdomain and rangeIB maths AA SL functions

By Maths Bodhi Team

Read guide

IB DP Maths17 Nov 2026

IB Maths AA SL Topics and Syllabus: The Five Topics, Teaching Hours, What Each Paper Tests and a Tick-Off Checklist

Every IB Maths Analysis and Approaches SL topic for exams in 2027 and 2028, with the IB's suggested teaching hours, what Paper 1 and Paper 2 expect, a sub-topic checklist to tick, and what changes for students who start DP in August 2027.

IB maths AA SL topicsIB maths AA SL syllabusIB maths AA SL papersAA SL checklist

By Maths Bodhi Team

Read guide

IB DP Maths10 Nov 2026

How to Improve Your IB Maths AA SL Grade from a 4 to a 6: A 12-Week Plan Built on the Syllabus Hours and Paper Weights

A practical plan for IB Maths Analysis and Approaches SL students stuck at a 4. Where the marks are, which topics to fix first using the IB's own teaching hours, how to treat Paper 1 (no calculator) and Paper 2 differently, and a week-by-week 12-week plan.

IB maths AA SLimprove IB maths gradeIB maths study planIB maths Paper 1 and Paper 2

By Maths Bodhi Team

Read guide

IB DP Maths17 Nov 2026

IB Maths SL Geometry and Trigonometry: 3D Solids, Bearings, and the Sine and Cosine Rules (AA SL and AI SL)

The geometry and trigonometry that AA SL and AI SL share: 3D distance and solids, angles in pyramids, the sine and cosine rules, bearings and angles of elevation. Which parts belong to which course, four worked examples, the ambiguous case for AA, and a self-check set.

IB maths SL bearingssine rule and cosine rule IB3D geometry IB mathsIB maths AA SL and AI SL

By Maths Bodhi Team

Read guide