James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AI SL › Calculus › Stationary points & optimisation

Stationary points & optimisation

Where the gradient is zero, a curve has a local maximum or minimum. Find these points by solving f′(x)=0 (or straight from the graph on the GDC), decide which is which, and remember that the greatest value on a domain may be at an endpoint. Then use them to optimise: the biggest profit, the smallest amount of material.

SL 5.2SL 5.6SL 5.7Paper 1Paper 2GDC allowed≈ 55 min to work through
Before you start: differentiating powers and increasing/decreasing functions (Introduction to differentiation).

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Find the values of x where f′(x)=0, using technology where neededSL 5.6
  • Find local maximum and minimum points and decide which is whichSL 5.6
  • Find the greatest and least values of a function on a domain, including endpointsSL 5.6
  • Set up a function from a context, with a sensible domainSL 5.7
  • Solve optimisation problems: maximise profit or volume, minimise cost or surface areaSL 5.7

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

At the top of a hill or the bottom of a valley the curve is momentarily flat: f\′(x)=0. These are the stationary points. An optimisation question is a stationary-point question in disguise: build a function for the thing you want to make as large or small as possible, then find where its derivative is zero. On AI SL the GDC can find the maximum or minimum directly, but questions usually ask you to show the derivative too.

2.1 Finding stationary points

Worked example 1Paper 1
Find the coordinates of the stationary points of f(x)=x3−6x2+9x+1 and determine their nature.
f\′(x)=3x2−12x+9=0
x=1 or x=3
Polynomial root finder, or the zeros of y = f′(x) on the GDC.
f(1)=5, f(3)=1: points (1,5) and (3,1)
f\′ changes from + to − at x=1: local maximum (1,5). From − to + at x=3: local minimum (3,1).
Or read the shape from the GDC graph of f.
Maximum or minimum? Not in booklet: learn it

If f\′(x) changes from positive to negative, the point is a local maximum. From negative to positive: a local minimum. On the GDC: graph f and use Analyze Graph → Maximum or Minimum.

2.2 Greatest and least values on a domain

A local maximum is not always the greatest value. On a restricted domain, also check the endpoints.

Worked example 2Paper 1
Find the greatest and least values of f(x)=x3−6x2+9x+1 for 0≤x≤5.
Stationary values: f(1)=5, f(3)=1
Endpoints: f(0)=1, f(5)=21
Greatest value 21 (at x=5); least value 1 (at x=0 and x=3)
The greatest value is at an endpoint, not at the local maximum.

2.3 Optimisation

  1. Draw a diagram and choose variables.
  2. Write the quantity to optimise, and a constraint (such as a fixed volume).
  3. Use the constraint to write the quantity in terms of one variable.
  4. Differentiate, solve the derivative =0 (or use the GDC maximum/minimum).
  5. Check it is a maximum or minimum and inside the domain; answer the question asked.
Worked example 3Paper 2
An open-top box has a square base of side x cm and height h cm. Its volume is 500 cm³. (a) Show that its surface area is S=x2+2000x. (b) Find the dimensions that minimise the surface area.
(a) x2h=500⇒h=500x2. S=x2+4xh=x2+4x·500x2=x2+2000x
(b) dSdx=2x−2000x2=0⇒x3=1000⇒x=10
Base 10 cm by 10 cm, height h=5 cm; S=300 cm2
GDC minimum of S confirms (10, 300).
Worked example 4Paper 2
A drinks can is a cylinder holding 330 cm³. Find the radius that minimises its total surface area.
πr2h=330⇒h=330πr2; A=2πr2+2πrh=2πr2+660r
Two circular ends plus the curved surface.
GDC minimum: r=3.74 cm, A=264 cm2; then h=7.49 cm
The height is twice the radius: the optimal can is as tall as it is wide.
Real cans are taller, for reasons the model leaves out (ease of holding, stacking).
Worked example 5 (faded)Paper 1
Profit P(x)=−2x2+80x−500. Find the value of x that maximises P.
P\′(x)= −4x + 80  ← you work this out
P\′(x)=0⇒x= 20  ← you work this out
On your TI-Nspire Calculator tricks →

Solve f\′(x)=0: for a polynomial derivative, use the polynomial root finder; otherwise graph f\′ and use Analyze Graph → Zero. Maximum/minimum directly: graph f with the domain restricted (| 0<x<20) and use Analyze Graph → Maximum or Minimum. Write the derivative and the equation you solved as your working.

3Explore it

Change the cubic f(x)=ax3+bx2+cx+d (navy) and see its derivative f\′(x) (green, dashed). Stationary points of f sit exactly above or below the zeros of f\′.

4Common mistakes & exam tips

Common mistakes

  • Giving only the x-coordinate when the question asks for the stationary point.
  • Assuming a local maximum is the greatest value on a domain, without checking the endpoints.
  • Differentiating before writing the quantity in terms of one variable.
  • Giving a value outside the domain set by the context (a negative length).
  • Answering with x when the question asks for the maximum volume, or the other way round.

Exam tips

  • For "show that S=…", write every step: the constraint, the substitution, the simplification.
  • "Hence find" after a derivative: set the derivative equal to zero and solve, then use the GDC to check.
  • State the nature of each point (maximum or minimum) with a reason: the sign change of f\′ or the graph.
  • Interpret the optimum in context, with units.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Find the stationary points of y=x2−6x+11.
y\′=2x−6=0: (3,2), a minimum
FluencyP2
Find the stationary points of f(x)=x3−3x2−9x+4 and their nature.
(−1,9) maximum; (3,−23) minimum
FluencyP3
Find the greatest value of f(x)=x3−3x2−9x+4 for −2≤x≤6.
f(6)=58 (endpoint), greater than the local maximum 9
FluencyP4
C(x)=x+100x, x>0. Find the minimum value of C.
C\′=1−100x−2=0⇒x=10; C=20
Problem solvingP5
A closed box has length 2x, width x and height h, and volume 288 cm³. Find the minimum surface area.
S=4x2+864x; x=4.76, S=272 cm2
Problem solvingP6
A farmer has 120 m of fencing to make a rectangular pen against a wall (fence on three sides). Find the largest possible area.
A=x(120−2x): x=30, area 1800 m2

6Exam-style questions

Original questions in the style of the IB Maths AI SL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.

Question 1Paper 1[6 marks]

Let f(x)=x3−3x2−9x+4.

  • (a)Find f\′(x).[2]
  • (b)Find the coordinates of the local maximum and the local minimum.[3]
  • (c)Write down the range of values of k for which f(x)=k has three solutions.[1]
(a)
3x2−6x−9A2
(b)
f\′(x)=0⇒x=−1, 3(M1)
maximum (−1,9)A1
minimum (3,−23)A1
(c)
−23<k<9A1
Question 2Paper 2[8 marks]

A closed box has a rectangular base of length 2x cm and width x cm, and height h cm. Its volume is 288 cm³.

  • (a)Show that h=144x2.[1]
  • (b)Show that the surface area is S=4x2+864x.[2]
  • (c)Find dSdx.[2]
  • (d)Find the value of x that minimises S, and the minimum surface area.[3]
(a)
2x·x·h=288⇒h=144x2AG A1
(b)
S=2(2x2+2xh+xh)=4x2+6xhM1
=4x2+6x·144x2=4x2+864xAG A1
(c)
8x−864x−2A1A1
(d)
8x−864x2=0(M1)
x=4.76A1
S=272 cm2A1
Question 3Paper 2[5 marks]

A company’s weekly profit, in dollars, from selling x items is P(x)=−0.02x3+3x2+10x−200, for 0≤x≤120.

  • (a)Find the number of items that maximises the profit, and the maximum profit.[3]
  • (b)Explain why the greatest profit on this domain is at the stationary point and not at x=120.[2]
(a)
P\′(x)=−0.06x2+6x+10=0 or GDC maximum(M1)
x=101.6, so 102 items (accept 101.6)A1
about $10 800A1
(b)
P(120)=9640M1
which is less than the stationary value, so the maximum is at the stationary pointR1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try these real IB Maths AI SL questions. Your school or teacher will have the papers.

PaperQuestionFocusDifficulty
May 2025 · TZ1 · Paper 1Q12Airline bag size limit: maximise volume with the GDC★★★
May 2025 · TZ2 · Paper 2Q5Cylinder with a hemisphere cover: minimise the material★★★
May 2022 · TZ2 · Paper 2Q5Café coffee profit: derivative, maximum, sketch★★★
Nov 2021 · Paper 1Q12Open box S(x) = x² + 128/x: solve S′(x) = 0, interpret the minimum★★☆
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake