5.8 · SLPaper 1Paper 2

Extrema, inflexion and optimisation

In a minute

A or sits where f′(x)=0f'(x) = 0; the sign of f′f' or f′′f'' says which. The same idea finds the largest area or volume in a real problem. The sign of f′′f'' also shows which way a graph bends, and it switches at a .

You'll be able to

  • Find the coordinates of and points by solving f′(x)=0f'(x) = 0.
  • Tell a maximum from a minimum by the sign change of f′(x)f'(x) or the sign of f′′(x)f''(x).
  • Solve optimisation problems about area, volume and profit.
  • Say where a graph is or from the sign of f′′(x)f''(x).
  • Find , with zero or non-zero gradient, and know why f′′(x)=0f''(x) = 0 alone is not enough.
Before you start2 quick questions on what this builds on
Check yourself
A function has derivative f′(x)=3x2−12f'(x) = 3x^{2} - 12. For which values of xx is ff decreasing?
Check yourself
Let f(x)=x4−2x3+5xf(x) = x^{4} - 2x^{3} + 5x. Find f′′(x)f''(x).

Revise first: 5.2 Increasing and decreasing functions and 5.7 Second derivative and concavity

Local maximum and minimum points

Follow the graph of f(x)=x3−6x2+9x+1f(x) = x^{3} - 6x^{2} + 9x + 1 from left to right. It climbs to a hilltop at (1,5)(1, 5), drops into a valley at (3,1)(3, 1), then climbs again.

Graph of f of x equals x cubed minus 6x squared plus 9x plus 1, with its local maximum, point of inflexion and local minimum marked x y O max (1, 5) inflexion (2, 3) min (3, 1) concave-down concave-up
The hilltop is a and the valley a . You'll meet the point at (2,3)(2, 3) in the last section.

At a hilltop or a valley of a smooth curve the tangent is horizontal, so f′(x)=0f'(x) = 0. So local maxima and minima are , and you find them by solving f′(x)=0f'(x) = 0.

Move the slider to slide the point along f(x)=x3−3xf(x) = x^{3} - 3x. The sign of f′(x)f'(x) flips from ++ to −- at the maximum, x=−1x = -1, and from −- to ++ at the minimum, x=1x = 1.

The sign of the derivativeDrag the slider
−2−112−4−3−2−11234increasingdecreasing○ stationary: x = ±1

f(x) = x³ − 3x, so f′(x) = 3x² − 3

−1.4

f′(−1.4) = 2.88 (increasing)

Where f′(x) > 0 the tangent slopes up and f is increasing; where f′(x) < 0 it is decreasing. The sign changes at the stationary points, where f′(x) = 0.

1. Find f′(x)f'(x) and solve f′(x)=0f'(x) = 0. The solutions are the xx-coordinates of the stationary points.

2. Substitute each solution into f(x)f(x), not f′(x)f'(x), to get its yy-coordinate.

3. Test one value of f′(x)f'(x) on each side of every stationary point. ++ to −- is a local maximum, −- to ++ a local minimum.

Worked exampleLet f(x)=2x3−3x2−12x+5f(x) = 2x^{3} - 3x^{2} - 12x + 5. Find the coordinates of the stationary points of the graph of ff. Use the sign of f′(x)f'(x) to decide whether each one is a local maximum or a local minimum.

Try it first, then reveal one step at a time.

  1. Differentiate: f′(x)=6x2−6x−12f'(x) = 6x^{2} - 6x - 12.
Check yourself
Let f(x)=x3−12x+7f(x) = x^{3} - 12x + 7. There is a local minimum on its graph at x=2x = 2. What is the yy-coordinate there?

A factor that is always positive, such as ex\mathrm{e}^{x}, never changes the sign of f′(x)f'(x).

Worked exampleLet f(x)=(x2−3)exf(x) = (x^{2} - 3)\mathrm{e}^{x}, for x∈Rx \in \mathbb{R}. Find the exact coordinates of the local maximum point and the local minimum point of the graph of ff.

Try it first, then reveal one step at a time.

  1. Use the product rule from 5.6: f′(x)=2xex+(x2−3)exf'(x) = 2x\mathrm{e}^{x} + (x^{2} - 3)\mathrm{e}^{x}.
Check yourself
A function has derivative f′(x)=(x+2)(x−4)2f'(x) = (x + 2)(x - 4)^{2}. What does the graph of ff have at x=4x = 4?

The second derivative test

Near a local minimum the curve bends like a cup. Its gradient rises from negative to positive, so the is positive: f′′(x)>0f''(x) > 0 (see 5.7).

Near a local maximum it bends like an upside-down cup, so the gradient falls and f′′(x)<0f''(x) < 0. Checking one sign is often quicker than a sign table.

Worked exampleLet f(x)=2x+8xf(x) = 2x + \dfrac{8}{x}, for x>0x > 0. Find the coordinates of the stationary point of the graph of ff. Use the second derivative to show that it is a local minimum.

Try it first, then reveal one step at a time.

  1. Write 8x\dfrac{8}{x} as 8x−18x^{-1}, then differentiate: f′(x)=2−8x−2=2−8x2f'(x) = 2 - 8x^{-2} = 2 - \dfrac{8}{x^{2}}.
Worked exampleLet f(x)=x+2cos⁡xf(x) = x + 2\cos x, for 0≤x≤π0 \le x \le \pi. Find the exact coordinates of the local maximum point of the graph of ff, and justify that it is a maximum.

Try it first, then reveal one step at a time.

  1. Differentiate: f′(x)=1−2sin⁡xf'(x) = 1 - 2\sin x.
Check yourself
The graph of f(x)=x3−6x2+5f(x) = x^{3} - 6x^{2} + 5 has stationary points at x=0x = 0 and x=4x = 4. Use f′′(x)f''(x) to find the nature of the point where x=0x = 0.

The test fails when f′′(a)=0f''(a) = 0. Both y=x4y = x^{4} and y=x3y = x^{3} have f′(0)=f′′(0)=0f'(0) = f''(0) = 0.

Yet the gradient of x4x^{4}, 4x34x^{3}, goes from −- to ++, so the origin is a minimum. The gradient of x3x^{3}, 3x23x^{2}, stays positive, so there it is neither. So go back to the sign of f′f'.

Check yourself
Let g(x)=(x−1)4+2g(x) = (x - 1)^{4} + 2. Then g′(1)=0g'(1) = 0 and g′′(1)=0g''(1) = 0. What does the graph of gg have at (1,2)(1, 2)?

Optimisation

Optimisation means finding the largest or smallest value of something, such as an area, a volume or a profit. That value is usually a local maximum or minimum.

A problem often has two unknowns linked by a fact, called a constraint. Use the constraint to write the quantity in one variable, then differentiate.

1. Name the variables and write the quantity, say AA, in terms of them. Use the constraint to leave one variable, and note the values it can take.

2. Solve dAdx=0\dfrac{\mathrm{d}A}{\mathrm{d}x} = 0, rejecting impossible values such as a negative length. Justify the maximum or minimum.

3. Answer the question asked. If it asks for the largest area, give AA, not just xx.

Check yourself
A rectangle has perimeter 2424 cm and width xx cm. Which expression gives its area, AA cm2^{2}, in terms of xx?
Worked exampleAn open box (with no lid) has a square base of side xx cm and height hh cm. Its outer surface area is 300 cm2300\text{ cm}^{2}. (a) Show that its volume is V=75x−14x3V = 75x - \tfrac{1}{4}x^{3}. (b) Find the maximum volume of the box.

Try it first, then reveal one step at a time.

  1. (a) The surface is the base plus four sides: x2+4xh=300x^{2} + 4xh = 300, so h=300−x24xh = \dfrac{300 - x^{2}}{4x}.
Check yourself
A company makes xx hundred phone cases a week, where 0≤x≤150 \le x \le 15. Its weekly profit, in thousands of dollars, is P(x)=−x3+6x2+135x−200P(x) = -x^{3} + 6x^{2} + 135x - 200. Find the maximum weekly profit.

On Paper 2, f′(x)=0f'(x) = 0 may be too hard to solve by hand. Graph the function and use your GDC's maximum or minimum tool.

Worked exampleThe temperature of a chemical mixture, in degrees Celsius, is modelled by T(t)=20+15e−0.1tsin⁡(0.5t)T(t) = 20 + 15\mathrm{e}^{-0.1t}\sin(0.5t), where tt is the time in minutes and 0≤t≤100 \le t \le 10. Use your calculator to find the maximum temperature. Give your answer to 3 s.f.

Try it first, then reveal one step at a time.

  1. The model uses radians, so set your GDC to radian mode first.

Concavity and points of inflexion

In the figure in the first section, the curve bends like an upside-down cup left of x=2x = 2 and like a cup right of it. Where the bend switches is a .

The gradient at a point of inflexion may be zero, as for y=x3y = x^{3} at the origin, where the tangent is horizontal. Or it may not: on the cubic in the figure, f′(2)=−3f'(2) = -3.

1. Solve f′′(x)=0f''(x) = 0, then check that f′′(x)f''(x) changes sign there with a value on each side.

2. Find the yy-coordinate from f(x)f(x). For the gradient there, work out f′(x)f'(x).

Worked exampleLet f(x)=x3−6x2+9x+1f(x) = x^{3} - 6x^{2} + 9x + 1, the curve in the figure. Find the coordinates of the point of inflexion of its graph.

Try it first, then reveal one step at a time.

  1. Differentiate twice: f′(x)=3x2−12x+9f'(x) = 3x^{2} - 12x + 9 and f′′(x)=6x−12f''(x) = 6x - 12.
Worked exampleLet f(x)=x4−4x3+10f(x) = x^{4} - 4x^{3} + 10. Find the coordinates of the points of inflexion of its graph.

Try it first, then reveal one step at a time.

  1. Differentiate twice: f′(x)=4x3−12x2f'(x) = 4x^{3} - 12x^{2} and f′′(x)=12x2−24x=12x(x−2)f''(x) = 12x^{2} - 24x = 12x(x - 2).
Check yourself
Let f(x)=x3+3x2−5x+2f(x) = x^{3} + 3x^{2} - 5x + 2. For which values of xx is the graph of ff concave-down?
Check yourself
Let g(x)=x4+4xg(x) = x^{4} + 4x, so g′′(0)=0g''(0) = 0. Does the graph of gg have a point of inflexion where x=0x = 0?

Common mistakes

  • Putting the xx-value into f′(x)f'(x) for the yy-coordinate. That gives 00; use f(x)f(x).
  • Calling a point an inflexion just because f′′(x)=0f''(x) = 0. Check that f′′f'' changes sign: y=x4y = x^{4} has a minimum at the origin.
  • Using f′f' for concavity. Concave-up means f′′(x)>0f''(x) > 0; solving f′(x)>0f'(x) > 0 finds where ff is increasing instead.
  • Keeping a value the problem rules out, such as a negative length. Reject it and say why.
  • Giving where the maximum happens when the question asks for the maximum value. Substitute back and give the value.

Exam tips

  • "Justify" a maximum or minimum: give f′′(a)f''(a) with its sign, such as f′′(2)=2>0f''(2) = 2 > 0, or the sign of f′(x)f'(x) on each side. A bare "minimum" is not a justification.
  • On Paper 2, write down the function you graph, then give the GDC's maximum or minimum to 3 s.f. Check the ends of the domain too.
  • For where a graph is concave-up, give strict inequalities from f′′(x)>0f''(x) > 0, such as x>2x > 2.
  • In an optimisation "show that", work forwards from the constraint to the given formula. Use that formula in later parts even if you couldn't show it.

Key takeaways

Learn thisLocal maxima and minima are stationary points: solve f′(x)=0f'(x) = 0, then find each yy-coordinate from f(x)f(x).
Learn thisSign of f′(x)f'(x) as xx passes aa: ++ to −- is a local maximum, −- to ++ is a local minimum, no change is neither.
Learn thisIf f′(a)=0f'(a) = 0: f′′(a)>0f''(a) > 0 gives a local minimum and f′′(a)<0f''(a) < 0 a local maximum. If f′′(a)=0f''(a) = 0, check the sign of f′(x)f'(x).
Learn thisOptimisation: use the constraint to get one variable, set the derivative to 00, justify, then answer the question asked.
Learn thisConcave-up where f′′(x)>0f''(x) > 0, concave-down where f′′(x)<0f''(x) < 0.
Learn thisPoint of inflexion: f′′(x)=0f''(x) = 0 and f′′(x)f''(x) changes sign; its gradient may be zero or not. y=x4y = x^{4} has f′′(0)=0f''(0) = 0 but no inflexion.

Practise this

17 past-paper questions on 5.8 in the AA HL bank, each with a mark scheme and a worked explanation.

Practise 5.8 →