KS Maths
Topic 5.7 · AI SL and HL

Optimisation in context

Bigger corners, taller box, smaller base

Building the function before you differentiate it, and why the answer is never just a number.

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

context
The real situation a problem is about.Give your answer in the context of money.
base
The number that is multiplied in a power. Also, the bottom side of a shape.In 2 to the power 5, the base is 2.
maximum
The largest value.The maximum of 4, 9 and 2 is 9.
function
A rule that gives exactly one output for each input.f(x) = x plus 2 is a function.
volume
The amount of space inside a solid. We measure it in cubic units.A cube of side 2 has volume 8.
variable
A letter that stands for a number that can change.In y = 2x, x and y are variables.
height
How tall something is, measured straight up.The height of the box is 5 cm.
write down
Give the answer with little or no working.Write down the median.
positive
Greater than zero.7 is a positive number.
negative
Less than zero. A negative number has a minus sign.Minus 4 is a negative number.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Four quick ones from earlier work. Try each on paper before you open the answer; a slip here shows you what to watch for later in the lesson.

  1. Expand and simplify (10 − 2x)².
    Answer

    100 − 40x + 4x². The middle term is 2 × 10 × (−2x) = −40x. Leaving it out gives 100 + 4x², which is the usual slip.

  2. A box has height x and a square base of side 10 − 2x. Write its volume V in terms of x.
    Answer

    V = x(10 − 2x)²: height times base side times base side. Writing the quantity as a function of one variable is the first step of every optimisation question.

  3. Solve 30 − 4x = 0.
    Answer

    4x = 30, so x = 7.5. Setting a derivative to zero ends in an equation like this one, and then the answer still needs checking against the context.

  4. A curve has its maximum point at (3, 27). What is the largest value of y, and at which x does it occur?
    Answer

    The largest value is 27, and it occurs at x = 3. They are different questions, and answering with the wrong one loses the final mark.

Words used in this lesson
optimise
find the best value, such as the largest or the smallest. For example: optimise the area of a pen.
maximum / minimum
the largest / smallest value of a function. For example: the maximum height of a ball.
constraint
a limit the problem puts on the variables. For example: the fencing has a fixed length of 120 m.
domain (range of x)
the values of x that make sense in the problem. For example: the length of a side must be greater than 0.
reject
decide a solution is not allowed, and say why. For example: reject x = −3 because a length cannot be negative.
stationary point
a point where the gradient is zero. For example: the top of a hill on a graph.
in terms of
using only the named letter. For example: write the area in terms of x.
function of one variable
an expression with only one letter in it. For example: A = 60x − 1.5x² depends only on x.
valid
allowed and sensible in the situation. For example: a valid width must be positive.
hence
use the result you have just found. For example: “find x, and hence the area” means use your x.

A square sheet of card, 12 cm by 12 cm. Cut a square of side x from each corner, fold the flaps up, and you have an open box. Make x bigger and two things happen at once: the box gets taller, and its base gets smaller.

the sheet, seen from above12 cm by 12 cmx = 1.010.0 cmred squares are cut away, dashed lines fold upvolume of the finished boxV = x(12 − 2x)²4080120123456x(2, 128)
10.0base side, 12 − 2x
1.0height, x
100.0volume, cm³

Somewhere in the middle the volume is as big as it gets. Calculus finds exactly where.

The method

  1. Write the quantity you want as a function of one variable. This is the hard part and it carries the marks.
  2. State the sensible range of that variable.
  3. Differentiate, set it to zero, solve.
  4. Reject any solution that makes no sense in context.
  5. Find the quantity asked for, and answer in a sentence with units.

Worked example: the box

V= x(12 − 2x)² height times base times base with 0 < x < 6, because the base cannot have negative width dVdx= (12 − 2x)(12 − 6x) factorised, which makes solving easy = 0 when x = 6 or x = 2 x = 6→ rejected: the base would be 12 − 12 = 0 and there is no box V′(1), V′(3)= 10 × 6 = 60 and 6 × (−6) = −36 positive then negative, so x = 2 is a maximum V(2)= 2 × 8² = 128 cm³ an 8 by 8 base, 2 cm deep

So the largest box has a volume of 128 cm³, made by cutting 2 cm squares from the corners. Check it on the slider: x = 1 gives 100 and x = 3 gives 108, both smaller.

Rejecting a solution is worth a mark, and you have to say why. Writing "x = 6 is not valid" is weaker than "x = 6 is rejected because the base would have zero width". The reason is the mark.

Worked example: fencing against a wall

A farmer has 40 m of fencing for three sides of a rectangular pen; the fourth side is an existing wall. What is the largest area possible?

A= x(40 − 2x) x is each side perpendicular to the wall with 0 < x < 20, because the side along the wall, 40 − 2x, must be positive dAdx= 40 − 4x = 0 when x = 10 inside the range; 40 − 4x goes from positive to negative there, so a maximum A(10)= 10 × 20 = 200 m²

The pen is 10 m out from the wall and 20 m along it. Notice that the side along the wall is twice the other, which is a pattern worth recognising but never worth assuming.

On the GDC: the maximum of a model

Once you have the volume as a function of x the graph confirms it, which is the one job a calculator does well: checking a number you already have.

When you may use it. Applications. A calculator is allowed in every paper.

TI-Nspire CX II

  1. Graph x(12-2x)² with x from 0 to 6 AND y from 0 to 150, or the curve sits off the top of the screen
  2. menu → Analyze Graph → Maximum, then click a lower and an upper bound either side of the peak
  3. Read x = 2, V = 128, which is the number you already checked on the slider

The mark people lose. The invalid root is a minimum, so the machine will never flag it. At x = 6 the volume is 0, not a maximum, which is exactly why it survives into a written answer unrejected. Only the domain line forces you to name it and reject it, and the reason is the mark.

The rest of this lesson is in the full course

Still to come in this lesson:

  • A second example, finished by you
  • Check before you go on
  • Where an optimisation decides something
  • Your turn
  • and 3 more

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

IB Diploma plan: AI SL$99Every Diploma lesson in both courses and both levels, so a change of course never locks you out, and every lesson from Year 7 for the refreshers. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

AI SL Mock Exam Pack, $19BuyPlan $99