Optimisation problems with differentiation
IB Mathematics: Applications and Interpretation SLΒ· 45 min read
1. Modelling Real-World Problemsβ β ββββ± 15 min
The first and most critical step in any optimisation problem is translating the word problem into a single-variable function you can differentiate. You will almost always get a fixed constraint (e.g. fixed perimeter, fixed volume) that lets you eliminate one variable, leaving an objective function of one independent variable.
Constraint
A fixed condition given in the problem that relates two variables, allowing you to write your objective function in terms of a single variable.
Example:
A box with a fixed total surface area has surface area as its constraint.
A rectangular garden is to be fenced with 100 m of fencing. One side runs along a house, so no fence is needed there. Model the area of the garden as a function of a single variable.
- 1
- Define variables: Let = length of sides perpendicular to the house, = length of the side parallel to the house.
- 2
- Write the fencing constraint:
- 3
- 4
- Rearrange the constraint to isolate :
- 5
- 6
- Write the objective function for area (the value we want to maximise):
- 7
- 8
- Define the valid domain: , since lengths cannot be negative.
Exam tip:
Always confirm the domain of your function after modelling. Invalid (negative) values can lead to nonsensical solutions if you ignore domain bounds.
2. Finding and Classifying Critical Pointsβ β β βββ± 20 min
Once you have a single-variable objective function, the next step is to find critical points (stationary points where the gradient is zero). These are the only locations where a local maximum or minimum can occur.
For AI SL, the simplest method to classify a critical point is the second derivative test, which tells you if the point is a maximum or minimum.
Second Derivative Test
For a critical point at : if , the point is a local maximum; if , it is a local minimum.
For the garden area function , find the critical point and classify it.
- 1
- Differentiate to get the first derivative:
- 2
- 3
- Set the first derivative equal to zero to find critical points:
- 4
- 5
- Calculate the second derivative:
- 6
- 7
- Classify the point: since , is a local maximum.
Exam tip:
If the second derivative is zero, use a first derivative sign test to classify the point, but this is very rare for polynomial optimisation problems on AI SL exams.
3. Interpreting Solutions in Contextβ β β βββ± 15 min
After classifying the local extremum, you need to confirm it is the global extremum (the absolute maximum or minimum over the entire domain) and report your answer in terms of the original problem.
For the closed domains common in AI SL optimisation problems, the global extremum will always be either at a critical point or at an endpoint of the domain. Always check that your answer makes physical sense.
For the garden problem, find the maximum area and the dimensions that produce it.
- 1
- We already confirmed a local maximum at m.
- 2
- Check endpoints of the domain : at and , area , which is a minimum.
- 3
- Calculate from the constraint:
- 4
- 5
- Calculate the maximum area:
- 6
- 7
- State the final answer in context: The maximum area of the garden is , with dimensions 25 m (perpendicular to the house) and 50 m (parallel to the house).
4. Common Exam Problem Typesβ β β βββ± 20 min
Maximising area/volume given a fixed perimeter/surface area
Minimising perimeter/surface area given a fixed area/volume
Minimising construction cost with different costs for different materials
Maximising profit/revenue for price-demand functions
A closed cylindrical can has a fixed volume of . Material for the top and bottom costs 2 cents per , and material for the curved side costs 1 cent per . Find the minimum total cost of the can.
- 1
- Define variables: = radius of base, = height of can
- 2
- Volume constraint:
- 3
- 4
- Write total cost function :
- 5
- 6
- Substitute to get as a function of :
- 7
- 8
- Differentiate and set to zero:
- 9
- 10
- Second derivative test: for all , so this is a minimum
- 11
- Calculate minimum cost: cents = $6.96
5. Common Pitfalls
Wrong move:
Leaving the objective function in two variables before differentiating
Why:
Single-variable differentiation methods taught in AI SL only work for functions of one variable
Correct move:
Always use the given constraint to rearrange and substitute, resulting in a single-variable objective function
Wrong move:
Forgetting to check endpoints of the domain
Why:
The global maximum/minimum can sometimes occur at an endpoint, not a critical point
Correct move:
Always define your domain and check function values at all endpoints to confirm the global extremum
Wrong move:
Missing units in the final answer
Why:
Optimisation problems are real-world, so IB allocates marks for correct units
Correct move:
Always state units for all dimensions, areas, volumes, and costs in your final answer
Wrong move:
Not justifying that the critical point is a maximum/minimum
Why:
IB requires explicit justification to award full marks for optimisation questions
Correct move:
Always use the second derivative test or first derivative sign test to classify your critical point
Wrong move:
Making algebraic errors when rearranging the constraint
Why:
A wrong model will lead to a wrong answer even if differentiation is done correctly
Correct move:
Double-check your substitution step before differentiating, and verify the constraint matches the problem description
6. Quick Reference Cheatsheet
Step | Action | Check |
|---|---|---|
1 | Define variables, write constraint | Variables match problem description |
2 | Eliminate one variable, write objective function | Confirm valid domain of x |
3 | Differentiate, find critical points | Check differentiation calculation |
4 | Classify critical point with second derivative test | Confirm it is the required extremum |
5 | Check endpoints, calculate final value | Add units, answer the question asked |
7. Frequently Asked
Do I need to justify my maximum/minimum in IB exams?
Yes, IB examiners require explicit justification that your critical point is the required extremum. You can satisfy this with the second derivative test, a first derivative sign test, or by checking endpoints of the domain.
When this came up on past exams
AI-estimated based on syllabus patterns β cross-check with official past papers for accuracy. Use only as revision-focus signals.
- 2025 Β· 1
Box volume optimisation (6 marks)
- 2023 Β· 2
Area optimisation (7 marks)
- 2021 Β· 1
Cost minimisation (5 marks)
Going deeper
What's Next
Optimisation with differentiation is a core applied calculus topic that appears frequently on both Paper 1 and Paper 2 of IB AI SL. This sub-topic builds on your understanding of basic differentiation and extrema, and prepares you for more advanced applied calculus topics like related rates, as well as integration applications. The problem-solving skills you learn here (modelling real scenarios with math) are also directly applicable to economics, environmental science, and physics courses you may take at university.
