IB Mathematics: Analysis and Approaches · Topic 5 · Calculus
5.8 Maxima, minima and optimization
Find and classify local maxima and minima using the first and second derivative tests, and solve optimisation problems with calculus.
1/5Local maxima and minima occur where the gradient is zero
- Local maxima and minima occur where the gradient is zero
- The first derivative test checks the sign of the gradient
- The second derivative test is quicker when it applies
- An optimisation problem asks for the best feasible value
- A complete solution classifies the result and states units
- Check your recall
- Practice: 10 questions
Part 1 of 5: Local maxima and minima occur where the gradient is zero
A ball thrown upwards stops rising at the top of its path. At that instant its height is greater than nearby heights. This is a local maximum.
Likewise, the lowest point of a valley is a local minimum. At both, the curve is momentarily flat, so . We call such a point a stationary point. A function may have several of each. The word local matters, because a larger value may exist elsewhere on the graph.
Worked example
Finding stationary points
- .
- Set : , so and .
- Find heights: and .
Answer: The stationary points are and .
Key terms · tap one for its definition
local maximum
A local maximum is a function value at least as large as nearby function values.
local minimum
A local minimum is a function value at least as small as nearby function values.
stationary point
A stationary point is a point on a graph where .
Part 2 of 5: The first derivative test checks the sign of the gradient
Knowing a point is stationary does not tell you its type. Look at the gradient on each side instead. Use one value just left and one just right of the point.
This is the first derivative test. The table shows how the sign change of as increases gives the type of point. If the gradient keeps the same sign, the point is neither a maximum nor a minimum.
Classifying a stationary point
- Sign of $f'$ before
- positive
- Sign of after
- negative
- Type
- local maximum
- Sign of $f'$ before
- negative
- Sign of after
- positive
- Type
- local minimum
- Sign of $f'$ before
- same sign
- Sign of after
- same sign
- Type
- neither
Worked example
Using the first derivative test
- , with zeros at and .
- , and .
- At the sign goes positive to negative. At it goes negative to positive.
Answer: is a local maximum and is a local minimum.
Key term
first derivative test
The first derivative test classifies a stationary point as a maximum, a minimum or neither using the sign of on either side.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: B · Worked explanation
Part 3 of 5: The second derivative test is quicker when it applies
Sometimes there is a faster check. A bowl shape near a stationary point means a minimum. An upside-down bowl means a maximum.
This gives the second derivative test. Find at a stationary point and read its sign. A positive value gives a minimum, and a negative value gives a maximum. It needs only one evaluation instead of two sign checks.
Worked example
Using the second derivative test
- , so or .
- .
- At : , so a local minimum, with .
- At : , so the test fails.
- Check : and are both negative, so there is no sign change.
Answer: There is a local minimum at . The point at is neither a maximum nor a minimum.
Key term
second derivative test
At , a positive gives a local minimum, while a negative gives a local maximum.
Part 4 of 5: An optimisation problem asks for the best feasible value
Calculus can also find the greatest area or the least cost. An optimisation problem needs a quantity to maximise or minimise. That quantity usually depends on two variables. Only values that the problem allows are feasible, so the domain matters.
A constraint links those variables, such as a fixed length of fencing. Use it to write the quantity in one variable. Then differentiate as before.
- Define the variables and draw a sketch.
- Write the quantity to optimise.
- Use the constraint to eliminate one variable.
- Differentiate and solve for zero gradient.
- Classify the result and check the domain.
- State the answer in context, with units.
Key terms · tap one for its definition
optimisation problem
An optimisation problem seeks the greatest or least feasible value of a quantity.
constraint
A constraint is a condition that links the variables of an optimisation problem and limits their values.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: D · Worked explanation
Part 5 of 5: A complete solution classifies the result and states units
Here is the method applied to a typical problem. Notice the final check that the answer lies inside the allowed values.
Worked example
Maximising an area
- Let the two equal sides have length metres. The third side is metres.
- Area: , for .
- Differentiate: . Set it to zero: .
- Classify: , so this is a maximum.
- The third side is m, so .
Answer: The greatest area is , with sides , and .
A stationary value is not always the best feasible one. If the domain has limits, compare it with the values at the ends. Here both ends give an area of zero, so the stationary value wins. Always ask whether the answer makes sense for the situation.
Check your recall[16 marks]
6 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.State[1 mark]
State the condition on at a stationary point of .
Show mark schemeHide mark scheme
Model answer
.
- 1 mark for stating that
- 2.Describe[2 marks]
Describe how the first derivative test shows that a stationary point is a local minimum.
Show mark schemeHide mark scheme
Model answer
Find the sign of just before and just after the point. If is negative before and positive after, the point is a local minimum.
- 1 mark for checking the sign of on either side of the point
- 1 mark for stating negative before and positive after
- 3.Determine[4 marks]
Determine the stationary points of and classify each one.
Show mark schemeHide mark scheme
Model answer
gives . , so is a local maximum and is a local minimum. Heights: and , so the points are and .
- 1 mark for solving to obtain
- 1 mark for finding and using its sign to classify
- 1 mark for stating is a local maximum and a local minimum
- 1 mark for finding the -coordinates 16 and -16
- 4.Explain[2 marks]
Explain why the second derivative test cannot classify the stationary point of at .
Show mark schemeHide mark scheme
Model answer
Here , so , and the test gives no result. The sign of either side must be checked instead.
- 1 mark for stating that , so the test is inconclusive
- 1 mark for stating that the first derivative test, using the sign of either side, is needed
- 5.Calculate[4 marks]
Two positive numbers have a sum of 12. Calculate the greatest possible value of their product.
Show mark schemeHide mark scheme
Model answer
Let the numbers be and . Then and gives . Since , this is a maximum, and .
- 1 mark for writing in one variable
- 1 mark for solving to obtain
- 1 mark for justifying a maximum, for example with
- 1 mark for obtaining
- 6.Outline[3 marks]
Outline the steps for solving an optimisation problem using calculus.
Show mark schemeHide mark scheme
Model answer
Write the quantity to optimise in terms of one variable, using the constraint. Differentiate and solve for zero gradient. Classify the result and check it lies within the domain, then state the answer with units.
- 1 mark for writing the quantity in one variable using the constraint
- 1 mark for differentiating and setting the derivative equal to zero
- 1 mark for classifying the result, checking the domain and stating the answer in context

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the 2 quick checks in the note above.
EasyDetermine[1 mark]
Show answer and explanation
Answer: A · Worked explanation
MediumDetermine[2 marks]
Show answer and explanation
Answer: C · Worked explanation
MediumDetermine[2 marks]
Show answer and explanation
Answer: C · Worked explanation
MediumDetermine[2 marks]
Show answer and explanation
Answer: A · Worked explanation
MediumCalculate[2 marks]
Show answer and explanation
Answer: D · Worked explanation
HardDeduce[2 marks]
Show answer and explanation
Answer: B · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: C · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: A · Worked explanation