impera Open Impera

IB Diploma Mathematics AI · Calculus

Optimisation

1Stationary points

At a stationary point, the gradient is zero: $f'(x) = 0$.

  • At a local maximum, the gradient changes from positive to negative.
  • At a local minimum, the gradient changes from negative to positive.

To find and classify them:

  1. Differentiate and solve $f'(x) = 0$.
  2. Find the $y$-coordinates.
  3. Check the sign of $f'(x)$ just either side, or look at the graph on your calculator.

Stationary points of a cubic: the gradient is zero at each

Worked example

Finding and classifying

  1. $f(x) = x^3 - 6x^2 + 9x + 1$, so $f'(x) = 3x^2 - 12x + 9 = 3(x - 1)(x - 3)$.
  2. $f'(x) = 0$ at $x = 1$ and $x = 3$.
  3. $f(1) = 5$ and $f(3) = 1$.
  4. $f'(0) = 9 > 0$, $f'(2) = -3 < 0$, $f'(4) = 9 > 0$.
  5. So $(1, 5)$ is a local maximum and $(3, 1)$ is a local minimum.
Check yourself

At a local minimum, how does the gradient change?

  • From positive to negative

  • It stays negative

  • From negative to positive

  • It stays positive

Show the answer

From negative to positive

The graph goes down, flattens, then goes up.

2Solving optimisation problems

Optimisation means finding the largest or smallest value of a quantity, such as the greatest profit or the least material.

  1. Write the quantity to optimise as a function of one variable. Use the other information to remove any second variable.
  2. Differentiate and set the derivative equal to zero.
  3. Solve to find the value of the variable.
  4. Check it is a maximum or minimum, and that it fits the context.
  5. Answer the question asked, with units.
Worked example

A box with the least material

  1. An open box has a square base of side $x$ cm and height $h$ cm. Its volume is 32 cm³. Find the least surface area.
  2. Volume: $x^2h = 32$, so $h = \frac{32}{x^2}$.
  3. Area (base plus four sides): $A = x^2 + 4xh = x^2 + \frac{128}{x}$.
  4. $\frac{dA}{dx} = 2x - \frac{128}{x^2} = 0$, so $x^3 = 64$ and $x = 4$.
  5. $h = 2$ and $A = 16 + 32 = 48$ cm². The graph shows this is a minimum.
Check yourself

In an optimisation problem with two variables, what must you do first?

  • Guess an answer, then check it works using the calculator

  • Set both variables equal to zero and solve the equations

  • Use the given facts to write the quantity in terms of one variable

  • Differentiate with respect to both variables separately at once

Show the answer

Use the given facts to write the quantity in terms of one variable

You can only differentiate a function of one variable here.

3Maximum profit and minimum cost

Business questions often give a profit, cost or revenue function.

Worked example

Best production level

  1. A company's daily profit is $P(x) = -0.5x^2 + 40x - 300$ euros, for $x$ items.
  2. $P'(x) = -x + 40 = 0$, so $x = 40$ items.
  3. $P(40) = -800 + 1600 - 300 = 500$ euros.
  4. $P'(x)$ changes from positive to negative at $x = 40$, so this is the maximum profit.

Check the endpoints too. If the domain is limited (for example, the factory can make at most 30 items), the greatest value may be at an end of the domain, not at a stationary point.

Check yourself

A profit function has its stationary point at x = 50, but at most 30 items can be made. Where is the maximum profit likely to be?

  • At x = 30, the end of the domain

  • At x = 50, the stationary point

  • At x = 0, the start of the domain

  • It cannot be found from this

Show the answer

At x = 30, the end of the domain

The stationary point lies outside the allowed values.

4Using technology

In Maths AI papers, the calculator can find maximum and minimum points directly from a graph. A good method is:

  • Write the function you are optimising.
  • Find the derivative, to show understanding, where the question asks for it.
  • Use the graph to find the maximum or minimum and to check the answer.

Read the question: "show that" or "use calculus" means you must show the derivative and set it to zero. "Find" means a calculator answer is acceptable.

Check yourself

A question says "use calculus to find the maximum". What must you show?

  • Only the answer read off from a GDC graph

  • A table of values around the maximum

  • The derivative set equal to zero and solved

  • A sketch of the curve with no working

Show the answer

The derivative set equal to zero and solved

Calculus means differentiating.

5Minimising surface area

Worked example

An open box with a square base and volume 32 m³

  1. Let the base side be $x$ and the height $h$. Volume: $x^2h = 32$, so $h = \frac{32}{x^2}$.
  2. Surface area (open top): $A = x^2 + 4xh = x^2 + \frac{128}{x}$.
  3. $\frac{dA}{dx} = 2x - \frac{128}{x^2}$.
  4. Set to zero: $2x^3 = 128$, so $x^3 = 64$ and $x = 4$.
  5. $h = \frac{32}{16} = 2$ m.
  6. Minimum area: $16 + 32 = 48$ m².

Always express the quantity to optimise in terms of one variable before differentiating.

Check yourself

Why is $h$ written as $\frac{32}{x^2}$ in the box problem?

  • Because $x$ is unknown, so it must be removed

  • To make the volume of the box equal to zero

  • Because the height of the box must always be 32

  • To express surface area in terms of one variable

Show the answer

To express surface area in terms of one variable

One variable before differentiating.

6Checking maxima and minima

To decide whether a stationary point is a maximum or minimum:

  • Sign of $f'(x)$ either side: positive then negative means a maximum; negative then positive means a minimum.
  • Second derivative: $f''(x) < 0$ means a maximum; $f''(x) > 0$ means a minimum.
  • Graph: sketch with a GDC.
Worked example

Profit $P = -2x^2 + 80x - 300$

  1. $P'(x) = -4x + 80 = 0$, so $x = 20$.
  2. $P''(x) = -4 < 0$, so a maximum.
  3. Maximum profit: $P = -800 + 1600 - 300 = 500$.
Check yourself

If $f''(x) > 0$ at a stationary point, what is it?

  • A point of inflection

  • A minimum

  • Undefined

  • A maximum

Show the answer

A minimum

Concave up.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera