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.
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.
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.
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.
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.
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
Write the quantity you want as a function of one variable.
This is the hard part and it carries the marks.
State the sensible range of that variable.
Differentiate, set it to zero, solve.
Reject any solution that makes no sense in context.
Find the quantity asked for, and answer in a sentence with units.
Worked example: the box
V=x(12 − 2x)²
height times base times basewith 0 < x < 6, because the base cannot have negative widthdVdx=(12 − 2x)(12 − 6x)
factorised, which makes solving easy=0 when x = 6 or x = 2x = 6→rejected: the base would be 12 − 12 = 0 and there is no boxV′(1), V′(3)=10 × 6 = 60 and 6 × (−6) = −36
positive then negative, so x = 2 is a maximumV(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 wallwith 0 < x < 20, because the side along the wall, 40 − 2x, must be positivedAdx=40 − 4x=0 when x = 10inside the range; 40 − 4x goes from positive to negative there, so a maximumA(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
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
menu → Analyze Graph → Maximum, then click a lower and an upper bound either side of the peak
Read x = 2, V = 128, which is the number you already checked on the slider
Casio fx-CG50
MENU → Graph, enter the function, set V-Window x 0 to 6 and y 0 to 150
F6 to draw, then SHIFTF5G-SOLVE → F2MAX
A blank grid and Not Found means the y window is too small, not that there is no maximum
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 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.