Study Guide

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.

πŸ“˜ Definition

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.

πŸ“ Worked Example

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. 1
    1. Define variables: Let = length of sides perpendicular to the house, = length of the side parallel to the house.
  2. 2
    1. Write the fencing constraint:
  3. 3
    2x+y=1002x + y = 100
  4. 4
    1. Rearrange the constraint to isolate :
  5. 5
    y=100βˆ’2xy = 100 - 2x
  6. 6
    1. Write the objective function for area (the value we want to maximise):
  7. 7
    A=xy=x(100βˆ’2x)=100xβˆ’2x2A = xy = x(100 - 2x) = 100x - 2x^2
  8. 8
    1. 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.

πŸ“˜ Definition

Second Derivative Test

For a critical point at : if , the point is a local maximum; if , it is a local minimum.

πŸ“ Worked Example

For the garden area function , find the critical point and classify it.

  1. 1
    1. Differentiate to get the first derivative:
  2. 2
    dAdx=100βˆ’4x\frac{dA}{dx} = 100 - 4x
  3. 3
    1. Set the first derivative equal to zero to find critical points:
  4. 4
    100βˆ’4x=0β€…β€ŠβŸΉβ€…β€Šx=25100 - 4x = 0 \implies x = 25
  5. 5
    1. Calculate the second derivative:
  6. 6
    d2Adx2=βˆ’4\frac{d^2A}{dx^2} = -4
  7. 7
    1. 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.

πŸ“ Worked Example

For the garden problem, find the maximum area and the dimensions that produce it.

  1. 1
    1. We already confirmed a local maximum at m.
  2. 2
    1. Check endpoints of the domain : at and , area , which is a minimum.
  3. 3
    1. Calculate from the constraint:
  4. 4
    y=100βˆ’2(25)=50 my = 100 - 2(25) = 50 \text{ m}
  5. 5
    1. Calculate the maximum area:
  6. 6
    A=25Γ—50=1250 m2A = 25 \times 50 = 1250 \text{ m}^2
  7. 7
    1. 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

πŸ“ Worked Example

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. 1
    1. Define variables: = radius of base, = height of can
  2. 2
    1. Volume constraint:
  3. 3
    V=Ο€r2h=1000β€…β€ŠβŸΉβ€…β€Šh=1000Ο€r2V = \pi r^2 h = 1000 \implies h = \frac{1000}{\pi r^2}
  4. 4
    1. Write total cost function :
  5. 5
    C=2(Ο€r2)(2)+(2Ο€rh)(1)=4Ο€r2+2Ο€rhC = 2(\pi r^2)(2) + (2\pi r h)(1) = 4\pi r^2 + 2\pi r h
  6. 6
    1. Substitute to get as a function of :
  7. 7
    C(r)=4Ο€r2+2000rC(r) = 4\pi r^2 + \frac{2000}{r}
  8. 8
    1. Differentiate and set to zero:
  9. 9
    Cβ€²(r)=8Ο€rβˆ’2000r2=0β€…β€ŠβŸΉβ€…β€Šr3=250Ο€β€…β€ŠβŸΉβ€…β€Šrβ‰ˆ4.31 cmC'(r) = 8\pi r - \frac{2000}{r^2} = 0 \implies r^3 = \frac{250}{\pi} \implies r \approx 4.31 \text{ cm}
  10. 10
    1. Second derivative test: for all , so this is a minimum
  11. 11
    1. 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.