Skip to content
IB Diploma ProgrammeSL & HL

Maxima, minima and optimization

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Maxima, minima and optimization notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Maxima, minima and optimization notes as text: skim, search, and jump between subtopics.

~16 min read

1. Local maximum and minimum points

A local maximum or local minimum point of y = f(x) is a point where the gradient is zero. Differentiate, then set the derivative equal to zero and solve for x.

The y-coordinate comes from substituting the x-value into f(x), not into f'(x). To test the point, use the change of sign of the first derivative. If f'(x) is positive to the left and negative to the right, the point is a maximum. If it is negative to the left and positive to the right, the point is a minimum.

In IB, "find" asks for the values with working. The markscheme gives a method mark for setting the derivative equal to zero and another for substituting back into f(x).

f'(x) = 0 at a local maximum or local minimum

maximum: f'(x) goes + then - minimum: f'(x) goes - then +

Worked example 15 marks

Consider the function f(x) = 4x³/3 - 16x, where x ∈ R. The graph of y = f(x) has a local minimum point at (p,q) where p > 0. Find the value of p and the value of q.

  1. 1

    f'(x) = 4x² - 16 (A1) [1]

  2. 2

    sets their derivative equal to zero: 4x² - 16 = 0, so x = ± 2 (M1) [1]

  3. 3

    p = 2 (A1) [1]

  4. 4

    substitutes their positive p into f(x): q = (4(2³))/3 - 16(2) (M1) [1]

  5. 5

    q = 32/3 - 32 = -64/3 (A1) [1]

2. The second derivative test and concavity

The sign of the second derivative tests a stationary point. If f'(x) = 0 and f''(x) > 0, the point is a local minimum. If f'(x) = 0 and f''(x) < 0, it is a local maximum.

The same sign describes the shape of the graph. Where f''(x) > 0 the graph is concave-up. Where f''(x) < 0 it is concave-down.

A justification needs evidence. The markscheme credits any one of these: the value of f'' at the point with its sign, the sign change of f'(x) (negative to the left and positive to the right for a minimum), or a sketch of the graph with the x-values of the stationary points. Then a separate mark is given for the conclusion. A conclusion with no evidence earns nothing.

f'(x) = 0 and f''(x) > 0 ⇒ local minimum

f'(x) = 0 and f''(x) < 0 ⇒ local maximum

Worked example 15 marks

Consider the function f(x) = ax³ + bx² + cx + d, where x ∈ R. It is given that a = 3/2, b = 9 and c = 27/2. The tangents to the graph of f at x = -3 and x = k are horizontal.(ii) Find the value of k.(iii) State whether f has a local maximum or a local minimum at x = k, justifying your answer.

  1. 1

    horizontal tangent, so f'(k) = 0: 9/2k² + 18k + 27/2 = 0, which gives k² + 4k + 3 = 0 (A1) [1]

  2. 2

    valid attempt to solve their quadratic: (k+1)(k+3) = 0 (M1) [1]

  3. 3

    k = -1, since x = -3 is the other horizontal tangent (A1) [1]

  4. 4

    f''(x) = 9x + 18, so f''(-1) = 9 > 0 (A1) [1]

  5. 5

    (local) minimum at x = -1 (A1) [1]

3. Points of inflexion

At a point of inflexion, f''(x) = 0 and f''(x) changes sign. The graph changes from concave-down to concave-up, or the reverse. The gradient at the point can be zero or non-zero.

f''(x) = 0 alone is not sufficient. For y = x⁴, f''(x) = 12x² is zero at (0, 0) but positive on both sides, so there is no change of concavity.

When a question gives a point of inflexion, use two facts. The markscheme credits recognising that f'' is zero at that x-value and equating f to the given y-coordinate, each as its own step.

point of inflexion at x = a: f''(a) = 0 and f''(x) changes sign at x = a

Worked example 16 marks

Consider the function f(x) = ax³ + bx² + cx + d, where x ∈ R and where a, b, c and d are real constants. The graph of f has a point of inflexion at (-2, -2c + d + 24).(a) Show that a = 3/2 and b = 9.

  1. 1

    f'(x) = 3ax² + 2bx + c and f''(x) = 6ax + 2b (A1) [1]

  2. 2

    recognises that f''(-2) = 0 (M1) [1]

  3. 3

    -12a + 2b = 0 (A1) [1]

  4. 4

    equates f(-2) to the y-coordinate: -8a + 4b - 2c + d = -2c + d + 24, so -2a + b = 6 (A1) [1]

  5. 5

    valid attempt to solve the two equations in a and b only: b = 6a gives -2a + 6a = 6 (M1) [1]

  6. 6

    a = 3/2, then b = 6a = 9 (A1) (AG) [1]

4. Setting up an optimization problem

Optimization finds the largest or smallest value of a quantity, such as profit, area or volume. First write the quantity as a function of one variable. When the question gives a constraint, such as a fixed volume, rearrange and substitute to remove the second variable. The markscheme credits this as its own step.

Then find the maximum or minimum value: differentiate, set the derivative equal to zero, solve, and substitute back. Finish by justifying the type of point with the second derivative.

Answer the quantity the question asks for. The value of x at the optimum is not the optimum value.

dA/dx = 0 gives the optimum x; substitute into A for the optimum value

Worked example 16 marks

A farmer has 60 m of fencing. She uses all of it for three sides of a rectangular field. The fourth side is a wall. The two sides at right angles to the wall each have length x metres.(a) Show that the area of the field is A = 60x - 2x².(b) Find the value of x for which A is a maximum, justify that it is a maximum, and find the maximum area.

  1. 1

    side parallel to the wall: 60 - 2x (M1) [1]

  2. 2

    A = x(60 - 2x) = 60x - 2x² (A1) (AG) [1]

  3. 3

    dA/dx = 60 - 4x (A1) [1]

  4. 4

    sets the derivative equal to zero: 60 - 4x = 0, so x = 15 (M1) [1]

  5. 5

    d²A/dx² = -4 < 0, so A is a maximum (R1) [1]

  6. 6

    A = 60(15) - 2(15)² = 900 - 450 = 450 m² (A1) [1]

5. Optimizing with a graphic display calculator

On a calculator paper, the attempt to find the minimum value can be made on the GDC. Either solve dA/dx = 0, or sketch the graph of A and mark the minimum. Both earn the method mark. Use the unrounded value, k = 4.67105…, in later parts.

For the justification, attempt to find the second derivative at x = k. The markscheme gives a reasoning mark for stating that it is greater than zero, and the conclusion follows.

Give the value to three significant figures unless the question states otherwise.

d²A/dx² > 0 at x = k ⇒ A is a minimum

Worked example 15 marks

All lengths in this question are in metres. A cuboid has a rectangular base of length x, width x² and height y. The cuboid has a volume of 1000 cubic metres and surface area A, where A = 2(x³ + 1000/x + 1000/x²). The surface area has a minimum value when x = k.(d)(i) Find the minimum value of A.(ii) Find the value of (d² A)/dx² when x = k.(iii) Use your answer to part (d)(ii) to justify that A is a minimum when x = k.

  1. 1

    attempt to find the minimum value of A: solve dA/dx = 2(3x² - 1000x⁻² - 2000x⁻³) = 0 on the GDC, x = k = 4.67105…, or sketch the graph of A and mark its minimum (M1) [1]

  2. 2

    minimum A = 724 m² (723.666…) (A1) [1]

  3. 3

    attempt to find the second derivative at x = k (M1) [1]

  4. 4

    d²A/dx² = 121 (120.507…) (A1) [1]

  5. 5

    d²A/dx² = 121 > 0 (R1), therefore A is a minimum (AG) [1]

6. Optimizing when the derivative is given

Some questions give dF/dθ and ask you to show where the optimum is. Start with the recognition that the derivative equals zero at the optimum, here θ = α.

A fraction is zero only when its numerator is zero, so set the numerator equal to zero. Then make an attempt to obtain an equation in tanα, sinα or cosα. Keep the angle in radians and the answer exact.

In a "show that" question every step is written. The markscheme says the last two marks can be awarded independently of the first four, so substitute the given α even when you cannot show it.

dF/dθ = 0 at the optimum angle α

Worked example 16 marks

The magnitude, F newtons, of the minimum force that Eleanor needs to apply to make the suitcase move horizontally when the handle makes an angle of θ radians with the horizontal is given by F(θ) = 300/(cosθ + √3sinθ), where 0 ≤ θ < π/2. It is given that dF/dθ = (300(sinθ - √3cosθ))/((cosθ + √3sinθ)²). Eleanor wishes to minimize the magnitude of the force she needs to apply. In order to achieve this, she needs to hold the handle at the angle α, where 0 < α < π/2.(ii) Hence, show that α = π/3 and find the corresponding value of F(α).

  1. 1

    recognition that dF/dθ = 0 when θ = α (M1) [1]

  2. 2

    sinα - √3cosα = 0 (A1) [1]

  3. 3

    attempt to obtain an equation in tanα: sinα = √3cosα (M1) [1]

  4. 4

    tanα = √3, so α = π/3 (A1) (AG) [1]

  5. 5

    F(π/3) = 300/(cosπ/3 + √3sinπ/3) = 300/(1/2 + √3 × (√3)/2) (A1) [1]

  6. 6

    = 300/(1/2 + 3/2) = 300/2 = 150 (A1) [1]

Recap

  • A local maximum or minimum has f'(x) = 0. Solve it, then substitute into f(x) for the y-coordinate.
  • Test with the change of sign of f'(x), or with f''(x) > 0 for a minimum and f''(x) < 0 for a maximum.
  • Concave-up means f''(x) > 0. Concave-down means f''(x) < 0.
  • At a point of inflexion, f''(x) = 0 and f''(x) changes sign. f''(x) = 0 alone is not enough, as y = x⁴ shows.
  • In optimization, write the quantity in one variable, set its derivative equal to zero, then justify the type of point.
  • Give the quantity asked for, with its unit. Show the method: a bare answer may earn no marks.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State the value of f'(x) at a local maximum point of the graph of y = f(x).1 mark
    Answer
    1. f'(x) = 0 (A1)

    Trap: Setting f(x) = 0 finds where the graph meets the x-axis, not its turning points.

  2. The function f satisfies f'(3) = 0 and f''(3) = -5. Which statement is correct? A. The graph has a local minimum at x = 3. B. The graph has a local maximum at x = 3. C. The graph has a point of inflexion at x = 3. D. The graph is concave-up at x = 3.1 mark
    Answer
    1. B (A1)
    2. A and D need f''(3) > 0. C needs f'' to change sign, and one value of -5 does not show that.

    Trap: Swapping the signs: a negative second derivative means concave-down and a maximum.

  3. Do not use a calculator. Find the coordinates of the stationary point of f(x) = x² - 6x + 4.3 marks
    Answer
    1. f'(x) = 2x - 6 (A1)
    2. 2x - 6 = 0, so x = 3 (M1)
    3. f(3) = 9 - 18 + 4 = -5, so the point is (3, -5) (A1)

    Trap: The y-coordinate comes from f(3). Using f'(3) gives 0.

  4. Do not use a calculator. Let f(x) = x³ - 12x. Determine the x-coordinate of each stationary point and, using f''(x), state whether it is a local maximum or a local minimum.4 marks
    Answer
    1. f'(x) = 3x² - 12 = 0 (A1)
    2. x = 2 or x = -2 (A1)
    3. f''(x) = 6x (A1)
    4. f''(2) = 12 > 0, so a local minimum at x = 2. f''(-2) = -12 < 0, so a local maximum at x = -2 (A1)

    Trap: Losing the root x = -2 when solving x² = 4 leaves one of the two points untested.

  5. Do not use a calculator. Let f(x) = x³ - 6x² + 5x. Determine the x-coordinate of the point of inflexion of the graph of f. Justify your answer and state whether the gradient at that point is zero.4 marks
    Answer
    1. f'(x) = 3x² - 12x + 5 and f''(x) = 6x - 12 (A1)
    2. f''(x) = 0 gives x = 2 (M1)
    3. f''(1) = -6 < 0 and f''(3) = 6 > 0, so f'' changes sign and x = 2 is a point of inflexion (R1)
    4. f'(2) = 12 - 24 + 5 = -7, so the gradient is not zero (A1)

    Trap: f''(x) = 0 alone does not justify an inflexion: the sign change must be shown.

  6. Do not use a calculator. Determine whether the graph of y = x⁴ has a point of inflexion at (0, 0), and state what kind of point (0, 0) is.4 marks
    Answer
    1. f''(x) = 12x², so f''(0) = 0 (A1)
    2. f''(x) > 0 on both sides of x = 0, so f'' does not change sign and there is no point of inflexion (R1)
    3. f'(x) = 4x³, which is negative to the left of 0 and positive to the right (A1)
    4. so (0, 0) is a local minimum (A1)

    Trap: f''(0) = 0 makes the second derivative test inconclusive. It does not make the point an inflexion.

  7. Do not use a calculator. A rectangle has perimeter 40 cm. One side has length x cm. Find the maximum area of the rectangle, and justify that it is a maximum.5 marks
    Answer
    1. other side = 20 - x, so A = x(20 - x) = 20x - x² (A1)
    2. dA/dx = 20 - 2x (A1)
    3. 20 - 2x = 0, so x = 10 (M1)
    4. d²A/dx² = -2 < 0, so a maximum (R1)
    5. A = 10 × 10 = 100 cm² (A1)

    Trap: The question asks for the area. Stopping at x = 10 gives the side, not the area.

  8. A company's profit is P(x) = -x³ + 9x² - 15x - 10, where P is in thousands of dollars and x is the number of units sold in hundreds. Determine the number of units sold that gives a local maximum profit. Justify your answer and find the value of that profit.6 marks
    Answer
    1. P'(x) = -3x² + 18x - 15 (A1)
    2. P'(x) = 0 gives x² - 6x + 5 = 0, so x = 1 or x = 5 (M1)(A1)
    3. P''(x) = -6x + 18 (A1)
    4. P''(5) = -12 < 0, so a local maximum at x = 5. (P''(1) = 12 > 0 is a minimum.) (R1)
    5. x = 5 is 500 units. P(5) = -125 + 225 - 75 - 10 = 15, so the profit is 15 000 dollars (A1)

    Trap: x is in hundreds and P in thousands. Giving 5 units and 15 dollars misses the scaling.

  9. A GDC may be used. A closed cylindrical water tank has radius r m and height h m. Its volume is 2 m³. Material for the top and the base costs 30 dollars per m². Material for the curved surface costs 20 dollars per m². The total cost of the material is C dollars. (a) Show that C = 60π r² + 80/r. (b) Find the value of r for which C is a minimum, and use the second derivative to justify that it is a minimum. (c) Find the height of the tank and the minimum cost.9 marks
    Answer
    1. (a)
    2. top and base = 2π r², curved surface = 2π rh (A1)
    3. π r² h = 2, so h = 2/(π r²), substituted into the cost (M1)
    4. C = 30(2π r²) + 20 × 2π r × 2/(π r²) = 60π r² + 80/r (A1) (AG)
    5. (b)
    6. dC/dr = 120π r - 80/r² (A1)
    7. attempt to find the minimum: solve dC/dr = 0 on the GDC, or r³ = 2/3π (M1)
    8. r = 0.596 m (0.596466…) (A1)
    9. d²C/dr² = 120π + 160/r³ = 1130 > 0, so C is a minimum (R1)
    10. (c)
    11. h = 2/(π(0.596466…)²) = 1.79 m (A1)
    12. C = 60π(0.596466…)² + 80/(0.596466…) = 201 dollars (A1)

    Trap: Rounding r to 0.6 before finding h gives 1.77 m: keep the unrounded r until the last step.

  10. Do not use a calculator. The graph of f(x) = x³ + bx² + cx + d has a point of inflexion at (1, -2) and a stationary point at x = 3. (a) Find the values of b, c and d. (b) Find the coordinates of the other stationary point. Determine whether each stationary point is a local maximum or a local minimum, justifying your answer. (c) State whether the gradient of the graph at the point of inflexion is zero.12 marks
    Answer
    1. (a)
    2. f'(x) = 3x² + 2bx + c and f''(x) = 6x + 2b (A1)
    3. inflexion at x = 1: f''(1) = 6 + 2b = 0 (M1), so b = -3 (A1)
    4. stationary point at x = 3: f'(3) = 27 + 6b + c = 0 (M1), so 27 - 18 + c = 0 and c = -9 (A1)
    5. f(1) = -2: 1 - 3 - 9 + d = -2 (M1), so d = 9 (A1)
    6. (b)
    7. f'(x) = 3x² - 6x - 9 = 3(x + 1)(x - 3) = 0, so the other stationary point is at x = -1 (A1)
    8. f(-1) = -1 - 3 + 9 + 9 = 14 and f(3) = 27 - 27 - 27 + 9 = -18 (A1)
    9. f''(x) = 6x - 6: f''(-1) = -12 < 0, so a local maximum at (-1, 14) (R1)
    10. f''(3) = 12 > 0, so a local minimum at (3, -18) (R1)
    11. (c)
    12. f'(1) = 3 - 6 - 9 = -12, so the gradient is not zero (A1)

    Trap: The inflexion gives f''(1) = 0 and the stationary point f'(3) = 0; a nature stated without the sign of f'' earns nothing.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
(Local) minimum at x = -1, with no evidence.f''(-1) = 9 > 0, so (local) minimum at x = -1. The markscheme says do not award A0A1: the conclusion needs its evidence.
f''(0) = 0 for y = x⁴, so (0, 0) is a point of inflexion.f''(x) = 0 is not sufficient. f''(x) must change sign, and 12x² does not.
q = f'(2).Substitute p into f(x) to find the y-coordinate of the point.
The graph is concave-down, so the point is a minimum.Concave-up (f''(x) > 0) gives a minimum. Concave-down (f''(x) < 0) gives a maximum.

Frequently asked questions

How do I find the local maximum or minimum point of a curve?
A local maximum or local minimum point is a point where the gradient is zero. Differentiate, set the derivative equal to zero and solve for x. Then substitute the x-value into f(x), not into f'(x), to find the y-coordinate.
How can I tell whether a stationary point is a maximum or a minimum?
Test with the change of sign of the first derivative. If f'(x) is positive to the left and negative to the right, the point is a maximum. If it is negative to the left and positive to the right, the point is a minimum. The second derivative also works: f''(x) > 0 gives a minimum and f''(x) < 0 gives a maximum.
What is the difference between concave-up and concave-down?
Where f''(x) > 0 the graph is concave-up. Where f''(x) < 0 it is concave-down. The same sign that tests a stationary point also describes the shape of the graph, so a concave-down point is a maximum.
How do I set up an optimization problem?
First write the quantity as a function of one variable. When the question gives a constraint, such as a fixed volume, rearrange and substitute to remove the second variable. Then differentiate, set the derivative equal to zero and substitute back. Finish by justifying the type of point with the second derivative. The value of x at the optimum is not the optimum value.
Can I use my GDC to find the minimum value in an optimization question?
On a calculator paper, yes. Either solve dA/dx = 0, or sketch the graph of A and mark the minimum. Both earn the method mark. Use the unrounded value, k = 4.67105…, in later parts, and give the value to three significant figures unless the question states otherwise.
Why do I lose the justification mark when I say a point is a minimum?
A conclusion with no evidence earns nothing. The markscheme says do not award the type without its evidence. Give the value of the second derivative with its sign first: f''(-1) = 9 > 0, so there is a (local) minimum at x = -1.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters