Optimization in IB Maths: The Ultimate Guide to Max & Min Problems (With Worked Examples)

22nd October, 2026 | Abhishek Malani | 23 Min Read
Introduction
If you’ve ever stared at a question asking you to find “the dimensions of the box that use the least cardboard” and quietly wondered who, exactly, is out there designing boxes with calculus, welcome to optimization in IB Maths. The short answer is: everyone from packaging engineers to logistics companies to the person who decided your cereal box should be precisely that annoying shape. The slightly longer answer is that optimization is one of the most reliable, most predictable, and (once you’ve got the method down) most satisfying question types in the entire IB calculus topic.
Optimization (or IB maths optimisation, if you’re spelling it the British way and the examiner is grateful either way) is the art of using differentiation to find the biggest or smallest value of something: maximum area, minimum cost, shortest distance, greatest profit. It shows up on both papers, it’s often worth a chunky 10 to 15 marks, and it quietly doubles as one of the best starting points for a Maths IA.

At Quest for Success, we’ve built this guide to be the one page you bookmark before your calculus unit test, your mocks, and your final exams. We’ll walk through what IB maths optimization questions actually ask, the exact step-by-step method, four fully worked exam-style examples, the common errors that quietly cost students marks, and how to turn an optimization idea into a genuinely strong IA. No fluff, no filler, and no pretending you’ll remember the second derivative test at 7:55 a.m. on exam day just because you underlined it twice.

IB Maths optimization guide showing step-by-step methods for finding maximum and minimum values with worked examples.

What Is Optimization in IB Maths?

Optimization in IB Maths is the process of using differentiation to find the maximum or minimum value of a quantity that depends on one or more changing variables. You’ll hear it called max min problems IB maths style, IB calculus optimization, or just “that question with the box in it,” and they all mean the same thing.
Every optimization question has the same three-part skeleton:
  • An objective: the quantity you want to make as big or as small as possible (area, volume, cost, surface area, distance, profit)
  • A constraint: a fixed condition that links your variables together (a fixed perimeter, a fixed volume, a fixed amount of material) 
  • A domain: the sensible values your variable is actually allowed to take (lengths can’t be negative, and a box can’t have a side of zero)
The whole skill is turning a wordy real-life scenario into a single-variable function, differentiating it, and then proving that the stationary point you found is the maximum or minimum you wanted. The calculus itself is usually the easy part. Setting up the function is where marks are won and lost, and where students most often write “let x = something” and then watch their working slowly unravel like a badly knitted scarf.

Where Optimization Appears in IB AA (and AI)

Optimization lives inside Topic 5: Calculus, and it is a fixture of the IB maths AA optimization toolkit at both levels. It also appears in Applications & Interpretation, usually with a more modelled, data-flavoured context.
Course / Level How Optimization Appears
AA SL
Standard single-variable max/min problems built on polynomial, rational, and simple exponential models, plus interpretation in context.
AA HL
Everything in SL, plus more demanding functions, trigonometric models, and links to other HL calculus ideas such as implicit differentiation and related rates.
AI SL / HL
Optimization in applied contexts (profit, cost, design), often using a GDC and a given or fitted model.
Paper 1 vs Paper 2:
● Paper 1 (no calculator): expect cleaner numbers, polynomial functions, and a strong emphasis on algebra, differentiation, and justification.
● Paper 2 (GDC allowed): expect messier numbers, more complex functions, and an invitation to use your calculator to graph, solve, or find a maximum or minimum directly.
Either way, you’re expected to show a clear, logical chain of working. A correct answer with no setup is the mathematical equivalent of turning up to a party with no snacks: technically present, but nobody’s impressed.
Register With Quest For Success
Categories

The Big Idea: Why Derivatives Find Maxima and Minima

The derivative f′(x) tells you the gradient of a function at every point. At the very top of a smooth hill (a maximum) or the very bottom of a valley (a minimum), the curve flattens out momentarily, which means the gradient is zero. That’s why every optimization problem starts the same way: find where f′(x) = 0. Those x-values are called stationary points.
But a stationary point isn’t automatically the maximum or minimum you want. It could be a maximum, a minimum, or a point of inflection where the curve just pauses before carrying on. So you need a way to classify it. There are two standard options:
1. The second derivative test

● If f″(x) < 0 at the stationary point, it’s a local maximum (the curve is concave down, like a frown).

● If f″(x) > 0, it’s a local minimum (concave up, like a smile).

● If f″(x) = 0, the test is inconclusive, so you’ll need the sign-change method below.

2. The first derivative sign test

● If f′(x) changes from positive to negative as x increases through the point, it’s a maximum.

● If f′(x) changes from negative to positive, it’s a minimum.

Finally, remember that a local maximum isn’t necessarily the global one. If your domain has endpoints (say, 0 ≤ x ≤ 5), you must also check the function’s value at those endpoints. We’ll see exactly how that bites students in the common errors section.

The 6-Step Method for Max/Min Problems

Here’s the method we teach for every optimization question, from a friendly Paper 1 warm-up to the final-question-on-Paper-2 boss fight. Learn it, practise it, and it’ll carry you through almost anything the exam throws at you.
Step What You Do Why It Matters
1. Sketch and define
Draw a quick diagram and define your variables with units.
Prevents the classic “what did I let x mean?” crisis halfway through.
2. Write the objective
Write an equation for the quantity to be maximised or minimised.
This is the function you’ll eventually differentiate.
3. Use the constraint
Use the given condition to eliminate variables until you have one variable only.
You can only differentiate a single-variable function with the tools in the syllabus.
4. State the domain
Write down the sensible range of values for your variable.
Lets you reject impossible solutions and check endpoints.
5. Differentiate and solve
Find f′(x), set it equal to zero, and solve.
Locates the stationary points.
6. Justify and answer
Prove it’s a max or min (second derivative or sign test), then answer the actual question in context with units.
Earns the justification and final-answer marks.
A small but mighty habit: re-read the question at the end. If it asks for the maximum area and you’ve proudly found the value of x, you’ve answered a question the examiner didn’t ask. It happens to the best of us, usually at 11 a.m. on a Tuesday in May.

Worked Example 1: The Fenced Field (Paper 1 Style)

Question: A farmer has 120 m of fencing and wants to enclose a rectangular field, using a straight wall as one side (so only three sides need fencing). Find the dimensions that maximise the area, and state the maximum area.

Step 1 : Define variables, Let x metres be the length of each of the two sides perpendicular to the wall, and let y metres be the side parallel to the wall.

Step 2: Objective, Area A = xy.

Step 3: Constraint, Fencing covers two sides of length x and one of length y, so 2x + y = 120, which gives y = 120 − 2x.

Substituting: A = x(120 − 2x) = 120x − 2x²

Step 4: Domain, Both lengths must be positive, so 0 < x < 60.

Step 5: Differentiate and solve, dA/dx = 120 − 4x Setting dA/dx = 0 gives 120 − 4x = 0, so x = 30.

Step 6: Justify, d²A/dx² = −4, which is less than 0 for all x, so x = 30 gives a maximum. When x = 30, y = 120 − 2(30) = 60.

Answer: The field should be 30 m by 60 m (30 m perpendicular to the wall, 60 m parallel to it), giving a maximum area of 30 × 60 = 1800 m².
Exam tip: this question is the “hello world” of optimization. If you can do it cleanly and quickly, you’ve got the full skeleton of every harder question.

Worked Example 2: The Open-Top Box

Question: A square sheet of card with side 24 cm has a small square of side x cm cut from each corner. The sides are folded up to make an open-top box. Find the value of x that maximises the volume of the box, and find that maximum volume.

Step 1: Define variables. After cutting, the base of the box is a square of side (24 − 2x) cm and the height is x cm.

Step 2 and 3: Objective (the constraint is already built in). V = x(24 − 2x)²

Step 4: Domain, The height must be positive and the base side must be positive, so 0 < x < 12.

Step 5: Differentiate, Using the product rule (or expanding first): V = x(24 − 2x)² = 4x³ − 96x² + 576x dV/dx = 12x² − 192x + 576 = 12(x² − 16x + 48) = 12(x − 4)(x − 12) Setting dV/dx = 0 gives x = 4 or x = 12. Since x = 12 is outside the domain (it would leave a base of zero width, and a volume of zero), we reject it. So x = 4.

Step 6: Justify, d²V/dx² = 24x − 192. At x = 4, this equals 24(4) − 192 = −96, which is less than 0, so x = 4 gives a maximum.

Maximum volume: V = 4(24 − 8)² = 4 × 16² = 4 × 256 = 1024 cm³.

Answer: Cut squares of side 4 cm, giving a maximum volume of 1024 cm³.
Exam tip: notice how the domain did real work here. Rejecting x = 12 with a one-line reason (“outside the domain”) is exactly the kind of statement that earns a mark.

Worked Example 3: The Closest Point on a Curve

Question: Find the point on the curve y = √x that is closest to the point (4, 0), and find the shortest distance.

This is a favourite because it hides a clever trick. A point on the curve is P(x, √x) for x ≥ 0.The distance from P to (4, 0) is

D = √[(x − 4)² + (√x)²]

Differentiating a square root is a recipe for unnecessary pain, so we use a classic shortcut: Minimising D is the same as minimising D², because distance is never negative and the square function is increasing for positive values.

Let g(x) = D² = (x − 4)² + x

Then g′(x) = 2(x − 4) + 1 = 2x − 7.

Setting g′(x) = 0 gives x = 3.5.

Justify: g″(x) = 2 > 0, so this is a minimum.

When x = 3.5, y = √3.5 ≈ 1.87, and

g(3.5) = (3.5 − 4)² + 3.5 = 0.25 + 3.5 = 3.75

so the shortest distance is D = √3.75 = √15 / 2 ≈ 1.94 units.

Answer: The closest point is (3.5, √3.5), which is approximately (3.5, 1.87), at a distance of about 1.94 units from (4, 0).
Exam tip: “minimise the squared distance” is one of the most useful tricks in all of IB calculus. Use it whenever a square root is making your life harder than it needs to be, and say clearly that you’re doing it.

Worked Example 4: The Cylinder Can (Paper 2 / GDC Style)

Question: A closed cylindrical can must hold exactly 500 cm³. Find the radius that minimises the total surface area of the can, and find the minimum surface area.

Step 1: Define variables, Let r cm be the radius and h cm the height.

Step 2: Objective, Total surface area S = 2πr² + 2πrh (two circular ends plus the curved side).

Step 3: Constraint, Volume is fixed: πr²h = 500, so h = 500 / (πr²).

Substituting: S = 2πr² + 2πr · (500 / (πr²)) = 2πr² + 1000/r

Step 4: Domain, r > 0.

Step 5: Differentiate and solve, Write S = 2πr² + 1000r⁻¹. Then dS/dr = 4πr − 1000/r²

Setting dS/dr = 0 gives 4πr = 1000/r², so r³ = 250/π, and

r = (250/π)^(1/3) ≈ 4.30 cm

Step 6: Justify. d²S/dr² = 4π + 2000/r³, which is positive for all r > 0, so this is a minimum.

Then h = 500 / (π × 4.30²) ≈ 8.61 cm, and

S ≈ 2π(4.30)² + 1000/4.30 ≈ 116.2 + 232.5 ≈ 349 cm² (3 s.f.)

Answer: The radius should be about 4.30 cm (with height about 8.61 cm), giving a minimum surface area of about 349 cm².
Exam tip: look at the result: h is almost exactly 2r, so the ideal can is as tall as it is wide. Real cans usually aren’t, which is a delightful observation to tuck away for the IA section below.

Using Your GDC to Check and Solve

On Paper 2, your GDC can do the heavy lifting, but only after you have built the function. A good workflow:

● Enter the function (for example, S = 2πx² + 1000/x) and graph it with a sensible window based on your domain.

● Use the built-in minimum/maximum tool to find the turning point, or solve f′(x) = 0 numerically if the question asks you to show differentiation.

● Sketch what you see and note any key coordinates, since examiners can award marks for a clear graph with the relevant point labelled.

● Check your answer against the graph, If your hand-derived minimum is at x = 4.30 and the calculator shows a valley at x = 4.30, you can relax. If not, hunt the error before the clock hunts you.

One warning: if a question says “show that” or “find using calculus”, a calculator-only answer won’t earn full marks. Read the command term carefully, because the IB certainly does.

What Examiners Look For: Where the Marks Live

Exact mark schemes vary by question, but optimization questions typically reward the same handful of things:
What You Show Why It Gains Marks
A correct function in one variable
This is the hardest and most heavily weighted part; setup errors cost the most.
Correct differentiation
Algebra slips here quietly wreck everything after.
Setting the derivative equal to zero and solving
A “method” mark you can earn even if the algebra goes slightly wrong.
Justification that it’s a max or min
Often a separate mark that students forget entirely.
The final answer in context, with units
Answering the actual question asked, to the required accuracy.
If you take one thing from this table, take this: write down the justification, every single time. It’s a mark that’s very easy to earn and very easy to forget.

Common Errors and How to Avoid Them

These are the mistakes we see again and again, and every one of them is avoidable:

1. Differentiating with two variables still in the function. If your expression for area still has both x and y, you aren’t ready to differentiate. Use the constraint to eliminate one variable first.

2. Forgetting the domain, Solutions like x = −3 or x = 12 in the box example may be mathematically valid but physically impossible. State the domain early and reject anything outside it.

3. Skipping the justification, Finding f′(x) = 0 only locates a stationary point. You must show it’s a maximum or minimum, using f″(x) or a sign change in f′(x).

4. Trusting a zero second derivative. If f″(x) = 0, the test tells you nothing. Switch to checking the sign of f′(x) either side of the point.

5. Ignoring endpoints, Consider f(x) = x³ − 6x² + 9x + 2 on the interval 0 ≤ x ≤ 5. Then f′(x) = 3x² − 12x + 9 = 3(x − 1)(x − 3), so the stationary points are at x = 1 and x = 3. Evaluating: f(0) = 2, f(1) = 6, f(3) = 2, f(5) = 22. The global maximum is 22, at the endpoint x = 5, not at the local maximum x = 1. A student who only checks the stationary points would confidently give 6 and lose the mark.

6. Answering the wrong thing. You found the optimal x, but the question wanted the maximum volume. Substitute back and answer what was asked.

7. Dropping units or rounding too early. Carry full calculator values through your working and round only at the end, to the accuracy the question requests (usually 3 significant figures).

8. Differentiation slips, Rewriting 1000/r as 1000r⁻¹ before differentiating is a small habit that prevents a huge number of sign and power errors.

Optimization and the Maths IA

Here’s some good news: optimization is one of the most naturally IA-friendly topics in the course. The Mathematics Exploration (the internal assessment worth 20% of your final grade) is marked on five criteria: Presentation, Mathematical Communication, Personal Engagement, Reflection, and Use of Mathematics. A well-chosen optimization investigation can speak to all five.
But there’s an important catch. A textbook question like “find the box with the biggest volume” is a classroom exercise, not an IA. To earn high marks, your exploration needs a personal angle, real-world context, and a depth of reflection that goes well beyond “I differentiated and got 1024.”
IA ideas built around optimization
Idea The Optimization Question How to Add Depth
Packaging design
What dimensions minimize material for a fixed-volume container (a can, a carton, a takeaway box)?
Measure real products, compare them to your optimal model, and explain why real designs differ (stacking, manufacturing, cost, comfort).
Fastest path (Fermat’s principle)
What route minimises travel time when speeds differ (running on sand vs swimming in water, or light entering glass)?
Derive the optimal crossing point, connect it to Snell’s law, and test it against real data.
Sports performance
What launch angle gives the longest throw, kick, or best basketball shot?
Collect real data (video analysis works well), compare a model with and without air resistance, and discuss limitations.
Pricing and profit
What price maximises profit, given a demand function built from real or survey data?
Fit a model to your data, compare model types, and test how sensitive the optimum is to changes in your assumptions.
Route and layout design
What is the shortest network linking several points, or the best layout for a garden or sports field?
Compare your solution to practical constraints and alternative designs.
What turns an optimization topic into a high-scoring IA

●Personal engagement: choose something you genuinely care about (your sport, your family’s café, your school’s canteen), and say why in your own voice.

● Real data or measurements: an IA built on collected data and compared to a mathematical model is far stronger than one built on made-up numbers.

● Beyond the syllabus, sensibly: extend the mathematics (for example, with a model fitted to data, or a comparison of two approaches) without drowning in methods you don’t understand.

● Use technology meaningfully: graphing software, spreadsheets, or Python can check your results and explore sensitivity, but they should support your reasoning rather than replace it.

● Honest reflection: discuss limitations (“my model assumes no waste material”), what happens if assumptions change, and what you would do next. This is where many students leave marks on the table.

A useful self-test: if your IA could be fully answered by a single page of a textbook chapter, it needs more depth. If it needs a lot of your own data, decisions, and interpretation, you’re on the right track.

How to Practise: A Simple Weekly Plan

Optimization improves fast with deliberate practice, because the question types repeat. Here’s a simple four-week framework:
Timeframe Focus
Week 1
Master the skills underneath: differentiating polynomials and powers (including negative powers), solving f′(x) = 0, and the second derivative test.
Week 2
Practise the setup: 10 to 15 problems where you only write the function in one variable (no differentiating yet). This is the skill that matters most.
Week 3
Full problems, no calculator: box, fencing, cylinder, and distance questions, written out with domain and justification every time.
Week 4
Past-paper style questions on Paper 2 with your GDC, timed, followed by checking your working against official mark schemes.
A few principles that consistently pay off:

● Keep a “setup bank” of the standard constraints (perimeter, fixed volume, fixed surface area, cost) so you recognise them instantly.

● Always draw the diagram, even when you think you don’t need to.

● Use official IB past papers and mark schemes as your gold standard for practice, and check your working against them.

● After every problem, ask: “Does this answer make sense in the real world?” A box with a negative side is a very strong hint that something’s gone wrong.

How Quest for Success Can Help

Optimization in IB Maths rewards students who understand the method, not just the formulas. At Quest for Success, our mission is to be your trusted companion through your entire IB maths journey, from the first differentiation lesson through to the final exam and the IA.
Whether you’re building confidence with IB maths AA optimization setup, drilling timed IB maths optimization questions for your mocks, or shaping an optimization IB maths IA idea into something that genuinely stands out, our tutors give you structured teaching, guided feedback on real exam-style questions, and a personalised plan built around your strengths and gaps, not a generic worksheet.

Summary

Optimization in IB Maths uses differentiation to find maximum and minimum values of real-world quantities. The reliable method is to define your variables, write the objective function, use the constraint to reduce it to one variable, state the domain, differentiate and set the derivative to zero, and then justify that you have a maximum or minimum before answering in context with units. The most common errors are skipping the setup or justification, forgetting the domain and endpoints, and answering the wrong quantity. Optimization also makes a strong foundation for a Maths IA, provided it goes beyond a textbook exercise with real data, personal engagement, and honest reflection.
Explore More IB Resources
Want to Prepare Smarter for the IB Diploma Programme? Explore These Resources
  • IB Maths IA Ideas: Topics and Examples Description: Explore IB Maths IA topics and examples to choose a mathematical exploration that matches your interests and helps you apply mathematical concepts effectively.
  • IB Maths AI IA Ideas: Discover IB Maths AI IA ideas involving statistics, mathematical modelling, and real-world applications to develop a strong Internal Assessment project.
  • IB Physics IA Ideas: Topics and Examples Description: Find IB Physics IA topics and experiment ideas to develop a focused research question, analyse results, and strengthen your scientific investigation skills.
  • IB Study Plan: A Guide to Effective Revision Description: Create an effective IB study plan with practical revision strategies, subject-wise scheduling, and time-management tips to prepare confidently for your exams.

FAQs

It varies by paper and question, but optimization questions are usually multi-part and can account for a significant chunk of a paper’s marks. They often appear as a longer-response question, where setup, differentiation, and justification each earn marks.

No, You can justify a maximum or minimum using either the second derivative or the sign change of the first derivative. Choose whichever is quicker and cleaner for the question in front of you, and use the sign test whenever the second derivative is zero or awkward.

You can use it to graph the function and find the turning point, and that can earn full marks when the question allows technology. However, if the question says “show that” or asks you to use differentiation, you need to show the calculus working. Always check the command term.

A local maximum is the highest point in its immediate neighbourhood. A global maximum is the highest value over the entire domain. On a restricted interval, always compare the stationary points with the endpoint values to find the global result.

Yes, provided you go beyond a standard textbook problem. The strongest optimization IAs use real measurements or data, connect to something you personally care about, compare a model against reality, and reflect honestly on limitations and assumptions.

Have questions about Optimization in IB Maths, or want help shaping an IA idea? Reach out to Quest for Success; we’re here to help you make the most of your IB maths journey, from your first derivative to your final exam.
Categories

While You're Here