James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA HL › Topic 5: Calculus › Stationary points & optimisation

Stationary points & optimisation

The second derivative, maximum and minimum points, points of inflexion, the links between the graphs of f, f′ and f″, and optimisation problems.

SL 5.75.8SL + HL extensionPaper 1Paper 2≈ 65 min to work through
Before you start: differentiation. See Introduction to differentiation and Differentiation rules.

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 second derivative and use it to describe concavitySL 5.7
  • Find stationary points and classify them as maximum or minimumSL 5.8
  • Find points of inflexionSL 5.8
  • Relate the graphs of f, f′ and f″SL 5.7
  • Solve optimisation problemsSL 5.8

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 on a curve, the tangent is horizontal, so the gradient is 0. Setting f′(x)=0 finds these points, and that lets you solve real problems where something must be made as large or as small as possible.

2.1 Stationary points

A stationary point is where the gradient is zero: for a moment the curve is neither going up nor going down. There are three types. At a local maximum, the gradient changes from positive to negative (up, flat, down). At a local minimum, it changes from negative to positive (down, flat, up). At a stationary point of inflexion, the gradient is zero but has the same sign on both sides.

  • Stationary points are where f′(x)=0.
  • Second derivative test: f″(x)<0: local maximum. f″(x)>0: local minimum. (If f″(x)=0, use a sign table of f′.)
  • f″(x)>0: concave up. f″(x)<0: concave down.
  • A point of inflexion is where the concavity changes: f″(x)=0 and f″ changes sign.
Why does the second derivative test work?

f′′(x) is the rate of change of the gradient. At a maximum, the gradient goes from positive, through zero, to negative, so it is decreasing: f′′(x)<0. At a minimum, the gradient goes from negative to positive, so it is increasing: f′′(x)>0. If f′′(x)=0, the test gives no answer, so check the sign of f′(x) on either side instead.

The second derivative also describes the shape of the curve. Where f′′(x)>0 the curve is concave up (like a cup), and where f′′(x)<0 it is concave down (like a cap). A point of inflexion is where the concavity changes, so f′′(x)=0 there and changes sign.

Worked example 1Paper 1
f(x)=x3−3x2−9x+2. Find and classify the stationary points, and find the point of inflexion.
f′(x)=3x2−6x−9=3(x−3)(x+1)=0, so x=3 or x=−1.
f″(x)=6x−6. f″(3)=12>0: minimum (3,−25). f″(−1)=−12<0: maximum (−1,7).
f″(x)=0 at x=1, and f″ changes sign there: point of inflexion (1,−9).
Check the sign change: f″(0)<0 and f″(2)>0.
Worked example 2Paper 1
Find the stationary points of f(x)=x4−4x3 and describe them.
f′(x)=4x3−12x2=4x2(x−3)=0: x=0 or x=3.
f″(x)=12x2−24x. f″(3)=36>0: minimum (3,−27).
f″(0)=0, so test signs: f′(−1)<0 and f′(1)<0. No change of sign: (0,0) is a stationary point of inflexion.
When the second derivative test fails, use the sign of f′ either side.

2.2 Optimisation

Businesses want the largest profit; engineers want the least material; a farmer wants the largest field for a fixed amount of fencing. When the quantity can be written as a function, its maximum or minimum is at a stationary point, so differentiation finds the best possible value.

Write the quantity to be maximised or minimised as a function of one variable (use the constraint to eliminate the other), differentiate, set equal to 0, and check it is a maximum or minimum. Answer the question in context.

Most optimisation questions follow the same plan. Draw a diagram and label the unknowns. Write an equation for the constraint (the fixed amount, such as the fencing) and an expression for the quantity to optimise. Use the constraint to write that quantity in terms of a single variable. Then differentiate, solve dydx=0, and check that you have a maximum or minimum, as required. Finally, answer the question that was asked, with units.

Worked example 3Paper 1
An open box is made from a 12 cm by 12 cm sheet by cutting squares of side x cm from each corner. Find the maximum volume.
V=x(12−2x)2, 0<x<6.
V′=(12−2x)2−4x(12−2x)=(12−2x)(12−6x)=0, so x=2 (x=6 gives no box).
V=2(8)2=128 cm³. A sign check (or a sketch) confirms this is a maximum.
Worked example 4Paper 1
A farmer has 100 m of fencing to make a rectangular pen against a wall (so only three sides need fencing). Find the maximum area.
Let the sides perpendicular to the wall be x: area A=x(100−2x).
A′=100−4x=0, so x=25. A″=−4<0: a maximum.
A=25×50=1250 m²
Worked example 5 (faded)Paper 1
Find the x-coordinate of the point of inflexion of y=2x3+3x2−12x+1.
y″=12x+6=0, so x= −1/2  ← you work this out
On your TI-Nspire Calculator tricks →

Check stationary points on a Graphs page with menu → 6: Analyze Graph → Maximum / Minimum. For a point of inflexion, graph f″ (use nDeriv twice, or your own f″) and find its zero, or use Analyze Graph → Inflection.

3Explore it

Change the cubic f(x)=ax3+bx2+cx. Compare f, f′ and f″: stationary points of f are zeros of f′, and the point of inflexion is the zero of f″.

★HL extension

Extra depth for HL: harder worked examples and HL-standard exam questions.

At HL, optimisation problems often have an angle as the variable, and you must be careful with points of inflection: f′′(x)=0 is necessary but not sufficient.

When f″(x) = 0 is not enough

A point of inflection is where the concavity changes, so f′′ must change sign. For f(x)=x4, f′′(0)=0 but f′′(x)=12x2≥0 on both sides: (0,0) is a minimum, not an inflection. If f′=0 and f′′=0 at the same point, test the sign of f′ on each side instead.

Worked example H1Paper 1
Find and classify the points of inflection of f(x)=x4−4x3.
f′′(x)=12x2−24x=12x(x−2)
Sign of f′′: +, −, + across x=0 and x=2, so both are points of inflection.
f′(0)=0: (0,0) is a stationary point of inflection; (2,−16) is a non-stationary one.
f′(x)=4x2(x−3).

Optimisation with an angle

Worked example H2Paper 1
A trough has a cross-section that is an isosceles trapezium: the base and two sloping sides are each 10 cm, and each sloping side makes an angle θ with the horizontal, so the area is A=100sinθ(1+cosθ), 0<θ<π2. Find the maximum area.
dAdθ=100(cosθ+cos2θ−sin2θ)=100(cosθ+cos2θ)
2cos2θ+cosθ−1=0⇒(2cosθ−1)(cosθ+1)=0
cosθ=12⇒θ=π3; A=100·32·32=753 cm²

HL exam-style questions

Question 1Paper 1[6 marks]

Let f(x)=x4−4x3.

  • (a)Find the x-coordinates of the points where f′′(x)=0.[2]
  • (b)Show that both are points of inflection, and identify which is a stationary point.[4]
(a)
f′′(x)=12x2−24xA1
x=0, x=2A1
(b)
sign of f′′ changes at eachM1R1
f′(0)=0A1
(0,0) is a stationary point of inflectionA1
Question 2Paper 1[6 marks]

The area of the cross-section of a trough is A=100sinθ(1+cosθ), 0<θ<π2.

  • (a)Show that dAdθ=100(cosθ+cos2θ).[2]
  • (b)Hence find the exact maximum area.[4]
(a)
100(cosθ+cos2θ−sin2θ)M1
using cos2θAG A1
(b)
2cos2θ+cosθ−1=0M1
cosθ=12A1
θ=π3A1
753A1

4Common mistakes & exam tips

Common mistakes

  • Stopping at x-values when the question asks for coordinates.
  • Saying f″(x)=0 proves a point of inflexion: you must show a change of sign.
  • Forgetting to check the answer is a maximum (not a minimum) in an optimisation question.
  • Not using the constraint to write the quantity in one variable.
  • Ignoring the domain (e.g. 0<x<6 for the box).

Exam tips

  • Classify with f″, or with a sign table of f′ if f″=0.
  • On the graph of f′, f is increasing where f′ is above the axis, and f has a stationary point where f′ crosses the axis.
  • In optimisation, the last line should answer the question with units.

5Practice

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

FluencyP1
Find the stationary point of y=x2−6x+1 and state its nature.
y′=2x−6=0: (3,−8), minimum since y″=2>0.
FluencyP2
Find f″(x) for f(x)=x4−2x2.
12x2−4
FluencyP3
f(x)=2x3+3x2−12x+1. Find the stationary points.
f′(x)=6(x+2)(x−1): (−2,21) maximum, (1,−6) minimum.
FluencyP4
Where is y=x3 concave up?
y″=6x>0, so x>0.
Problem solvingP5
A closed cylindrical can has volume 500 cm³. Find the radius that minimises its surface area.
h=500πr2, S=2πr2+1000r. S′=4πr−1000r2=0⇒r=4.30 cm (minimum area 349 cm²).
Problem solvingP6
Two positive numbers add to 20. Find the maximum possible value of their product.
P=x(20−x), P′=20−2x=0, x=10: maximum 100.

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[7 marks]

f(x)=2x3+3x2−12x+1.

  • (a)Find the coordinates of the stationary points.[4]
  • (b)Classify each stationary point.[2]
  • (c)Find the x-coordinate of the point of inflexion.[1]
(a)
f′(x)=6x2+6x−12A1
f′(x)=0⇒6(x+2)(x−1)=0M1
(−2,21)A1
(1,−6)A1
(b)
f″(x)=12x+6; f″(−2)<0: maximumA1
f″(1)>0: minimumA1
(c)
x=−12A1
Question 2Paper 1[6 marks]

A rectangular sheet 12 cm by 12 cm has a square of side x cm cut from each corner and is folded into an open box.

  • (a)Show that the volume is V=x(12−2x)2.[1]
  • (b)Find the value of x that gives the maximum volume.[4]
  • (c)Find the maximum volume.[1]
(a)
Base (12−2x) by (12−2x), height xR1 AG
(b)
V′=(12−2x)2−4x(12−2x)M1 A1
(12−2x)(12−6x)=0M1
x=2 (x=6 rejected)A1
(c)
128 cm³A1
Question 3Paper 2[5 marks]

A closed cylinder has volume 500 cm³.

  • (a)Show that its surface area is S=2πr2+1000r.[2]
  • (b)Find the radius that minimises S, and the minimum surface area.[3]
(a)
πr2h=500⇒h=500πr2M1
S=2πr2+2πr×500πr2A1 AG
(b)
S′=0 or GDC minimumM1
r=4.30 cmA1
S=349 cm²A1

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 real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
May 2025 · TZ1 · Paper 1Q1Find coordinates of the local minimum of a cubic function★☆☆
May 2025 · TZ2 · Paper 1Q6Find point on a curve closest to the origin via distance minimisation★★☆
Nov 2023 · TZ1 · Paper 2Q8Find cross product, minimise its magnitude and triangle area★★☆
Nov 2025 · TZ1 · Paper 1Q9Analyse derivative for extrema and inflexion; recover the function★★★
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