Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 5.8 · SL and HL
Maxima, minima, inflexion and optimisation
Where does a function reach its highest and lowest values, how do you prove which is which, and how do you turn that into the best possible answer to a real problem?
What you will learn
Know that stationary points are where f'(x) = 0 and how to classify them
Understand why f'' = 0 at a stationary point decides nothing
Understand that a point of inflexion needs f'' = 0 and a change of sign, with zero or non-zero gradient
Know how to set up and solve an optimisation problem, checking the ends of the domain
You must be able to
Find and classify stationary points using f' or f''
Solve an optimisation problem from a context, justifying the maximum or minimum
Find points of inflexion and justify them by the sign change of f''
Find the greatest or least value of a function on a given domain
Determine the stationary points and inflexions of f from the graph of f' or f''
Show that a quantity in context is given by a stated formula
In the exam. Paper 1: find and classify the stationary points of a function (5 to 8 marks), often with its points of inflexion. Paper 2: optimisation in context, setting up a function from a diagram and maximising or minimising it, by hand or with the GDC (6 to 10 marks). Section B questions on both papers often end here. On HL Paper 3 it turns up as a step inside a longer investigation.
1Stationary points
A stationary point is a point on a graph where the gradient is zero, f′(x)=0, so the tangent is horizontal. There are three kinds, drawn in Figure 1.
A local maximum: the graph climbs to it and drops away afterwards. It beats every point nearby, though not necessarily every point of the graph.
A local minimum: the graph falls to it and climbs afterwards.
A stationary point of inflexion: the graph pauses for an instant and then carries on in the direction it was already going.
The first two are turning points.
Figure 1 · Three kinds of stationary point
Three steps find them.
Differentiate, and factorise f′(x) if you can.
Solve f′(x)=0 for the x-coordinates.
Put each x into f(x), never into f′(x), for the y-coordinate.
Take p(x)=x4−8x2+3.
p′(x)=4x3−16x=4x(x2−4)=4x(x−2)(x+2)p′(x)=0⇔x=−2,0or2p(0)=3,p(±2)=16−32+3=−13into p, not p′
The stationary points are (−2,−13), (0,3) and (2,−13). Now decide what each one is.
2The first derivative test: watch the sign of f′
Figure 1 puts the rule under each picture. Look at the sign of f′ just left of the point, at the point and just right of it.
+,0,− is a local maximum. −,0,+ is a local minimum. +,0,+ or −,0,− is a stationary point of inflexion.
For p′(x)=4x(x−2)(x+2), take a test value in each of the four intervals.
The signs run +,0,− through x=−1 and −,0,+ through x=2. So (−1,12) is a local maximum and (2,−15) a local minimum. Figure 2 draws the graph with the sign diagram underneath.
On an exam paper the sign diagram, or the test values, is your reason. It earns the R mark.
Figure 2 · Classifying the stationary points of f(x) = 2x³ − 3x² − 12x + 5
When you are given the graph of f′. Exams often show f′ and ask about f. Read the graph as a ready-made sign diagram.
It crosses the x-axis from below to above: f′ goes −,0,+, so f has a local minimum.
It crosses from above to below: f has a local maximum.
It only touches the axis and stays on one side: f′ keeps its sign, so f has a stationary point of inflexion.
Suppose the graph of f′ is the cubic f′(x)=(3−x)(x+1)2.
x=3:f′crosses from+to−local maximum of fx=−1:f′touches the axis, stays+stationary point of inflexion of f
Write "f′" in the reason, not just "the gradient". An answer that does not say whether it means the gradient of f or of f′ can lose the mark.
3The second derivative test: which way does it bend?
From 5.7, f′′ gives the concavity. A stationary point on a concave-down stretch is the top of a cap, a maximum. On a concave-up stretch it is the bottom of a cup, a minimum.
At a stationary point: f′′(x)<0 means a local maximum. f′′(x)>0 means a local minimum. If f′′(x)=0, the test says nothing.
Back to the cubic: f′′(x)=12x−6.
f′′(−1)=−18<0concave down: local maximum at (−1,12)f′′(2)=18>0concave up: local minimum at (2,−15)
Same verdicts in two lines. Which test:
Use the second derivative when f′′ is easy to find.
Use the sign of f′ when f′′ is messy.
The sign of f′ is the only test that works when f′′=0.
If the question names a test, use that one.
Why f′′=0 settles nothing
In Figure 3, y=x4, y=−x4 and y=x3 all have f′(0)=0 and f′′(0)=0. Yet the origin is a minimum, a maximum and a stationary inflexion respectively.
So when f′′=0 at a stationary point, go back to the sign of f′. For y=x4, f′(x)=4x3 is negative for x<0 and positive for x>0, so the origin is a minimum.
Figure 3 · f′(0) = 0 and f″(0) = 0 in all three
4Concavity and points of inflexion
A point of inflexion = a point where the graph switches concavity, from concave up to concave down or the other way round.
Concave up means f′′(x)>0. Concave down means f′′(x)<0. Since f′′ is positive on one side and negative on the other, it is zero at the point itself.
The guide is careful about the converse. So must you be.
At a point of inflexion, f′′(x)=0 and f′′ changes sign. f′′(x)=0 on its own is not enough.
The standard warning is y=x4 at the origin. Here f′′(x)=12x2 is zero at 0 but positive on both sides. So the graph is concave up all the way through and the origin is a minimum.
Anyone who solves f′′=0 and stops calls it an inflexion.
Points of inflexion come in two kinds.
A stationary point of inflexion has f′=0 as well: a horizontal tangent, like y=x3 at the origin.
A non-stationary point of inflexion has f′=0: the graph switches its bend while still rising or falling. These are the common ones. A cubic has exactly one inflexion, and it is non-stationary unless f′ happens to be zero there too.
At either kind the tangent crosses the curve from one side to the other. That is why the tangents in Figure 4 cut through the graph.
A function with both kinds.f(x)=x4−4x3 is drawn in Figure 4.
Stationary points.f′(x)=0 at x=0 and x=3, with f(0)=0 and f(3)=81−108=−27.
At x=3, f′′(3)=108−72=36>0, so (3,−27) is a local minimum.
At x=0, f′′(0)=0, so the second derivative test fails. Use the sign of f′: f′(−1)=4(1)(−4)=−16<0 and f′(1)=4(1)(−2)=−8<0. The signs run −,0,−, so (0,0) is a stationary point of inflexion.
Points of inflexion.f′′(x)=0 at x=0 and x=2. Check the sign change at each.
f′′(−1)=36>0,f′′(1)=−12<0changes sign at x=0f′′(1)=−12<0,f′′(3)=36>0changes sign at x=2f(2)=16−32=−16,f′(2)=4(4)(−1)=−16
So (0,0) is an inflexion with zero gradient and (2,−16) an inflexion with gradient −16.
The graph is concave up for x<0, concave down for 0<x<2 and concave up for x>2.
f′(x)=4x2(x−3) is negative except at x=0 and x=3. So f is decreasing for x<3, merely pausing at the origin, and increasing for x>3.
When a question says "sketch", mark the stationary points and inflexions with coordinates, as Figure 4 does.
Figure 4 · Two kinds of point of inflexion on y = x⁴ − 4x³
An exact-value example for Paper 1. Let g(x)=x2(3−2lnx), for x>0.
g′(x)=2x(3−2lnx)+x2(−x2)=4x−4xlnx=4x(1−lnx)product ruleg′(x)=0⇔lnx=1⇔x=ex=0 is outside the domaing(e)=e2(3−2)=e2g′′(x)=4(1−lnx)+4x(−x1)=−4lnxg′′(e)=−4<0local maximum (e,e2)g′′(x)=0⇔lnx=0⇔x=1g(1)=3,g′(1)=4
−4lnx is positive for 0<x<1 and negative for x>1, so g′′ changes sign at x=1: the graph is concave up, then concave down.
The maximum is (e,e2) and the inflexion is (1,3), non-stationary since its gradient is 4. Keep exact values on Paper 1: e2, not 7.39.
Inflexions from the graph of f′
f′′ is the gradient of f′. So an inflexion of f is a turning point of f′, where it stops rising and starts falling, or the reverse. Where f′ rises, f is concave up. Where f′ falls, f is concave down.
Take the graph f′(x)=(3−x)(x+1)2 from section 3. By the product rule, f′′(x)=(x+1)(5−3x). So f′ has a turning point at:
x=−1, where f′=0: the stationary inflexion of f.
x=35, where f′=27256: a non-stationary inflexion of f.
f is concave down for x<−1 and x>35, and concave up between. The reason to write is "f′ has a turning point here", or "f′′=0 and changes sign".
Inflexions from the graph of f′′
When the graph you are given is f′′ itself, read the inflexions of f straight off it. They are at the x-intercepts where the graph crosses the x-axis.
Where it only touches the axis and turns back, f′′ keeps its sign and there is no inflexion. Example: f′′(x)=12x2 at x=0 for y=x4.
Where the graph of f′′ is above the axis, f is concave up. Below it, f is concave down.
Write "the graph of f′′ crosses the x-axis at x=a, so f′′ changes sign" as the reason.
5Local or greatest? Check the ends
A local maximum is only the top of its own hill. The greatest value of a function on a domain (the global or absolute maximum) may be elsewhere. On a closed interval it is often at an end point, where the graph just stops.
Take f(x)=2x3−3x2−12x+5 again, now on −2≤x≤4. The candidates are the stationary points and the two ends.
x
−2 (end)
−1 (local max)
2 (local min)
4 (end)
f(x)
1
12
−15
37
The greatest value is 37, at the end x=4; the local maximum 12 is not it.
The least value is −15, at the local minimum. So the range on this domain is −15≤f(x)≤37. Figure 5 shows why.
Figure 5 · Local is not the same as greatest
A second case, where the ends win both ways. The depth of water in a reservoir, in cm, is D(t)=t3−9t2+15t+30 for 0≤t≤8 hours.
The depth is greatest at the end, 86cm when t=8, and least at the interior minimum, 5cm when t=5. The local maximum 37 at t=1 is neither.
When a question gives a domain and asks for the "maximum value", "minimum value" or "range", also evaluate f at the ends.
With a GDC (Paper 2). Graph y=f(x) over the domain given and use the maximum or minimum tool for a turning point. Give both coordinates to 3 significant figures.
Point of inflexion: graph y=f′(x) and find its turning point, or graph y=f′′(x) and find where it crosses the x-axis (a crossing, not a touch).
Window: show the whole domain, so the ends are not missed.
Write down which function you graphed.
6Optimisation
Optimisation = finding the value of a variable that makes a quantity as large or as small as possible. Examples: the most volume, the least material, the greatest profit.
The calculus is the easy part. The marks go to the set-up and the justification. Use the same steps every time.
Draw and label a diagram. Name the variables.
Write the quantity to optimise, Q, in terms of the variables.
If Q has two variables, use the constraint (the fixed fact in the question) to remove one. Q must be a function of one variable before you differentiate.
State the domain: the values that make physical sense.
Differentiate, set Q′=0 and solve.
Justify that it is a maximum or a minimum: second derivative, sign of Q′, or end points.
Answer the question asked, with units. If it asked for the greatest volume, a value of x is not the answer.
Example A, area, with end points (Paper 1). A 40cm length of wire is cut into two pieces. One piece is bent into a square and the other into a circle. Find where to cut so that the total area enclosed is least.
Let the square use xcm of wire, so the circle uses (40−x)cm, and 0≤x≤40. Figure 6(a) shows the two shapes.
The square has side 4x. The circle has circumference 40−x=2πr, so r=2π40−x and its area is πr2=4π(40−x)2.
A=16x2+4π(40−x)2square plus circle, one variabledomain: 0≤x≤40all circle at one end, all square at the otherdxdA=8x−2π40−xdxdA=0⇒πx=4(40−x)⇒x=π+4160=22.4…dx2d2A=81+2π1>0for allxminimumA=(π+4)21600+(π+4)2400π=π+4400=56.0…40−x=π+440π
Cut so that π+4160≈22.4cm forms the square, leaving about 17.6cm for the circle. The least total area is π+4400≈56.0cm2.
Check the end points: A(0)=π400≈127 (all circle) and A(40)=100 (all square), both larger. Figure 6(b): the least area is interior, but the greatest is at an end, x=0.
Figure 6 · A 40 cm wire cut into a square and a circle
Example B, surface area from a volume constraint (Paper 2). A water tank is an open cylinder (no lid) that must hold 8m3. Find the radius that uses the least sheet metal, and that least area.
Two variables, r and h, and one constraint: the volume.
πr2h=8⇒h=πr28constraintA=πr2+2πrh=πr2+2πr×πr28=πr2+r16base plus curved side, no lidone variable, r>0drdA=2πr−r216drdA=0⇒r3=π8⇒r=1.365…≈1.37mdr2d2A=2π+r332>0for allr>0minimumh=π×(1.365…)28=1.37mA=17.6m23 s.f.
The least metal is about 17.6m2, with r≈1.37m and h≈1.37m. The height equals the radius, since πr3=8 gives h=πr28=r.
Figure 7 shows A(r): the curved side dominates for small r, the base for large r.
On Paper 2 you may graph A(r) on the GDC and use the minimum tool. Still write down the function you graphed: "from GDC, r=1.37" with no function earns little.
Figure 7 · Sheet metal for an open 8 m³ tank against its radius
Example C, a constraint from geometry (Paper 1). A small greenhouse is a square-based pyramid. Its four sloping edges are glazing bars, each 3m long, meeting at the apex directly above the centre of the base. Find the greatest volume it can enclose, in exact form.
Let the height be h and the base side s.
The apex, the centre of the base and one corner make a right-angled triangle. Its sides are:
hypotenuse 3 (a bar)
one leg h
the other leg, half a diagonal of the base.
Pythagoras is the constraint. h is the better variable because the base area then comes out with no square root.
(half-diagonal)2=9−h2s2=2×(half-diagonal)2=18−2h2the diagonal of a square is s2V=31s2h=31(18−2h2)h=6h−32h3one variabledomain: 0<h<3a bar is longer than the heightdhdV=6−2h2=0⇒h2=3⇒h=3reject −3dh2d2V=−4h<0forh>0maximums2=18−6=12,V=31×12×3=43
The greatest volume is 43m3 (about 6.93m3), with height 3m and base side 23m.
The root h=−3 solves V′=0 but is not a height. Say so in words when you reject it.
The volume is 0 at both ends of the domain (a flat pyramid at h=0, no base at h=3). So the one stationary point is the greatest value.
When the diagram holds a right-angled triangle, use Pythagoras. Other shapes call for similar triangles or trigonometry. For a rectangle under a curve, the curve's equation is the constraint.
Example D, profit, with end points. A small workshop makes x hundred chairs a week, where 0≤x≤10, and its weekly profit is P(x)=−2x3+27x2−84x+100 hundred dollars.
P′(x)=−6x2+54x−84=−6(x−2)(x−7)P′(x)=0⇔x=2orx=7P′′(x)=−12x+54;P′′(7)=−30<0(max),P′′(2)=30>0(min)P(7)=149,P(0)=100,P(10)=−40compare with the ends
The largest profit is 149 hundred dollars, $14 900 a week, from 700 chairs.
The check of P(0) and P(10) is part of the answer. Had either been larger than 149, the best plan would have been at an end of the domain.
Practice questions
51 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.
Practice · 5.8 Maxima, minima, inflexion and optimisation