Optimization problems
IB Mathematics Applications and Interpretation HLΒ· 40 min read
1. Formulating the Optimization Problemβ β βββHL onlyβ± 15 min
β Calculator OK
The first and most critical step in any optimization problem is translating the verbal description into a mathematical function. You need to clearly identify what quantity you need to maximize or minimize, and what constraints are given in the problem.
Objective Function
The function whose maximum or minimum value we need to find in an optimization problem
Example:
For a problem asking for maximum area of a rectangle, the area function is the objective function.
Most problems will have a constraint that relates two or more variables. Use the constraint to rewrite the objective function as a function of a single variable, then define its domain based on the physical constraints of the problem (e.g., side lengths cannot be negative).
An open-top box is made from a 20 cm by 20 cm sheet of cardboard by cutting out squares of equal side length from each corner. Formulate the objective function for the volume of the box, and state its domain.
- 1
After cutting out squares of side from each corner, the base of the folded box has side length:
- 2
- 3
The height of the box equals , so volume (the objective function we want to maximize) is:
- 4
- 5
Since side lengths cannot be negative, and , so the domain is:
- 6
2. Finding and Classifying Extremaβ β β ββHL onlyβ± 20 min
β Calculator OK
Once you have a single-variable objective function, the next step is to find its critical points and test which gives the required maximum or minimum. The standard process is:
Differentiate the objective function to get
Set and solve for to find critical points
Discard any critical points that lie outside the domain of
Test each remaining critical point and endpoints to find the global extremum
Find the value of that maximizes the volume of the open box from the previous example, and find the maximum volume.
- 1
We have , domain . Expand for differentiation:
- 2
- 3
Differentiate :
- 4
- 5
Set and simplify the quadratic:
- 6
- 7
Solving gives and . is an endpoint with , so we discard it.
- 8
Use the second derivative test to confirm is a maximum:
- 9
- 10
Calculate the maximum volume:
- 11
3. Constrained Optimization with Multiple Variablesβ β β ββHL onlyβ± 15 min
β Calculator OK
Many common optimization problems involve geometric or cost constraints, where you need to eliminate one variable from the objective function. The core process remains the same after elimination, regardless of the context.
A rectangular garden is fenced along three sides, with a house forming the fourth side. Total fencing available is 100 m. Find the dimensions that maximize the area of the garden.
- 1
Let the side parallel to the house be , and the sides perpendicular be . We need to maximize area .
- 2
The constraint from total fencing is: . Rearrange to get .
- 3
Substitute into the area objective function to get it in terms of only:
- 4
- 5
Domain is . Differentiate and set to zero:
- 6
- 7
Find . Maximum area is:
- 8
Check your understanding of key terms
What is the objective function in the garden problem above?
Reveal answer
1 βCorrect! The area is the quantity we want to maximize, so it is the objective function. is the constraint, and is the optimal solution.
4. Common Pitfalls
Wrong move:
Forgetting to check endpoints of the domain for the global extremum
Why:
Many students only check critical points, but the maximum/minimum can be at the endpoint even if it is not a critical point
Correct move:
Always evaluate the objective function at all critical points inside the domain and at the endpoints to find the global extremum
Wrong move:
Making an algebra error when substituting the constraint into the objective function
Why:
An incorrect objective function leads to wrong results, even if your differentiation and extrema steps are correct
Correct move:
Double-check your substitution by confirming your final solution satisfies the original constraint
Wrong move:
Keeping critical points that lie outside the domain of the problem
Why:
Negative lengths or other impossible values are not valid solutions, even if they are mathematically critical points
Correct move:
Always state the domain of your objective function first, and remove any critical points that do not lie in the domain
Wrong move:
Giving the optimal as the answer when the question asks for the maximum/minimum quantity
Why:
After finding the optimal input value, many students stop before calculating the requested output value
Correct move:
Always re-read the question at the end to confirm what value you are asked to give, and calculate that final value
5. Quick Reference Cheatsheet
Step | Action | Key Note |
|---|---|---|
1 | Identify quantity to optimize | This is your objective function |
2 | Identify the problem constraint | Use it to eliminate one variable |
3 | State the domain of your variable | Remove impossible (negative) values |
4 | Find all critical points | Set , discard out of domain |
5 | Find the global extremum | Test all critical points + endpoints |
6 | Answer the original question | Calculate the value the question asks for |
6. Frequently Asked
Do I always need to check endpoints for optimization problems?
Yes, for closed bounded intervals, the global maximum or minimum can occur at endpoints even if the derivative is non-zero there, so you must always test these values.
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.
- 2021 Β· 1
Maximize volume of open cardboard box
- 2023 Β· 2
Minimize construction cost of fence
Going deeper
What's Next
Optimization problems are a core applied calculus topic that appears regularly on both Paper 1 and Paper 2 of IB AI HL exams. The skills you build here translating real-world context into solvable mathematical models are transferable to almost all other applied topics in your course, and for future university study in STEM, economics and data science. After mastering the single-variable optimization covered here, you can extend your knowledge to more advanced topics in calculus and quantitative modeling.
