Study Guide

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.

πŸ“˜ Definition

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).

πŸ“ Worked Example

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. 1

    After cutting out squares of side from each corner, the base of the folded box has side length:

  2. 2
    20βˆ’2x20 - 2x
  3. 3

    The height of the box equals , so volume (the objective function we want to maximize) is:

  4. 4
    V(x)=x(20βˆ’2x)2V(x) = x(20 - 2x)^2
  5. 5

    Since side lengths cannot be negative, and , so the domain is:

  6. 6
    0<x<100 < x < 10

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:

  1. Differentiate the objective function to get

  2. Set and solve for to find critical points

  3. Discard any critical points that lie outside the domain of

  4. Test each remaining critical point and endpoints to find the global extremum

πŸ“ Worked Example

Find the value of that maximizes the volume of the open box from the previous example, and find the maximum volume.

  1. 1

    We have , domain . Expand for differentiation:

  2. 2
    V(x)=4x3βˆ’80x2+400xV(x) = 4x^3 - 80x^2 + 400x
  3. 3

    Differentiate :

  4. 4
    Vβ€²(x)=12x2βˆ’160x+400V'(x) = 12x^2 - 160x + 400
  5. 5

    Set and simplify the quadratic:

  6. 6
    12x2βˆ’160x+400=0β€…β€ŠβŸΉβ€…β€Š3x2βˆ’40x+100=012x^2 - 160x + 400 = 0 \implies 3x^2 - 40x + 100 = 0
  7. 7

    Solving gives and . is an endpoint with , so we discard it.

  8. 8

    Use the second derivative test to confirm is a maximum:

  9. 9
    Vβ€²β€²(x)=24xβˆ’160,Vβ€²β€²(103)=βˆ’80<0V''(x) = 24x - 160, \quad V''\left(\frac{10}{3}\right) = -80 < 0
  10. 10

    Calculate the maximum volume:

  11. 11
    V(103)=1600027β‰ˆ592.6 cm3V\left(\frac{10}{3}\right) = \frac{16000}{27} \approx 592.6 \text{ cm}^3

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.

πŸ“ Worked Example

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. 1

    Let the side parallel to the house be , and the sides perpendicular be . We need to maximize area .

  2. 2

    The constraint from total fencing is: . Rearrange to get .

  3. 3

    Substitute into the area objective function to get it in terms of only:

  4. 4
    A(x)=x(100βˆ’2x)=100xβˆ’2x2A(x) = x(100 - 2x) = 100x - 2x^2
  5. 5

    Domain is . Differentiate and set to zero:

  6. 6
    Aβ€²(x)=100βˆ’4x=0β€…β€ŠβŸΉβ€…β€Šx=25A'(x) = 100 - 4x = 0 \implies x = 25
  7. 7

    Find . Maximum area is:

  8. 8
    A=25Γ—50=1250 m2A = 25 \times 50 = 1250 \text{ m}^2
βœ“ Quick check

Check your understanding of key terms

  1. 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.