Stationary points and the second derivative

AS · P1 · 17 min

At the top of a hill or the bottom of a valley a curve is momentarily flat: its gradient is zero. These points are called stationary points, and finding them and deciding whether each is a maximum or a minimum is one of the most frequent tasks on Paper 1. It appears as a standalone question, inside curve sketching, and as the engine of every practical maximum and minimum problem. The syllabus asks you to locate stationary points, determine their nature (including by the second derivative test) and use them in sketching graphs.

What a stationary point is

Picture walking left to right along the curve y=2x3−3x2−12x+5y = 2x^3 - 3x^2 - 12x + 5. You climb, reach a peak, descend into a dip, then climb again. At the peak and the bottom of the dip the tangent is horizontal, so the gradient is 00.

y = 2x^3 - 3x^2 - 12x + 5 y = 12 y = -15 (-1, 12) (2, -15)

The horizontal tangents touch the curve at (−1,12)(-1, 12) and (2,−15)(2, -15). These are the stationary points of this curve.

Definition

A stationary point of the curve y=f(x)y = f(x) is a point where dydx=0\dfrac{dy}{dx} = 0. The tangent there is horizontal.

A maximum point (local maximum) is a stationary point where the curve changes from increasing to decreasing. A minimum point (local minimum) is a stationary point where the curve changes from decreasing to increasing. Maximum and minimum points are together called turning points.

The word "local" matters. A maximum point is the highest point in its neighbourhood, not necessarily the highest point on the whole curve. The cubic above goes off to +∞+\infty on the right, so (−1,12)(-1, 12) is not the greatest value of yy overall; it is just the top of a hill. Example 2 below has a maximum point that is lower than its minimum point.

Finding stationary points

The condition is a single equation, so finding stationary points is mostly algebra.

Finding stationary points
  1. Rewrite the equation as powers of xx if needed, then find dydx\dfrac{dy}{dx} (using the chain rule for brackets raised to a power).
  2. Set dydx=0\dfrac{dy}{dx} = 0 and solve for xx. Factorise wherever you can.
  3. Reject any solutions outside the domain given in the question.
  4. Substitute each xx into the equation of the curve to find the yy-coordinate.
  5. Write each stationary point as a coordinate pair.

For y=2x3−3x2−12x+5y = 2x^3 - 3x^2 - 12x + 5:

dydx=6x2−6x−12=6(x2−x−2)=6(x−2)(x+1)\frac{dy}{dx} = 6x^2 - 6x - 12 = 6(x^2 - x - 2) = 6(x - 2)(x + 1)

so dydx=0\dfrac{dy}{dx} = 0 at x=2x = 2 and x=−1x = -1, giving y=−15y = -15 and y=12y = 12.

Deciding the nature: the second derivative test

The second derivative d2ydx2\dfrac{d^2y}{dx^2} is the rate of change of the gradient. It tells you which way the gradient is moving as you pass through the stationary point.

  • At a minimum, the gradient goes from negative, through zero, to positive. The gradient is increasing, so d2ydx2>0\dfrac{d^2y}{dx^2} > 0. The curve is shaped like a cup, ∪\cup.
  • At a maximum, the gradient goes from positive, through zero, to negative. The gradient is decreasing, so d2ydx2<0\dfrac{d^2y}{dx^2} < 0. The curve is shaped like a cap, ∩\cap.

A memory aid: a positive second derivative is a smile (minimum); a negative one is a frown (maximum).

Second derivative test

At a stationary point, where dydx=0\dfrac{dy}{dx} = 0:

d2ydx2\dfrac{d^2y}{dx^2}Nature
>0> 0minimum point
<0< 0maximum point
=0= 0test fails: use the first derivative test

For the cubic, d2ydx2=12x−6\dfrac{d^2y}{dx^2} = 12x - 6. At x=2x = 2 it is 18>018 > 0, so (2,−15)(2, -15) is a minimum. At x=−1x = -1 it is −18<0-18 < 0, so (−1,12)(-1, 12) is a maximum. This agrees with the graph.

The first derivative test

When the second derivative is zero, or is awkward to find, look at the sign of dydx\dfrac{dy}{dx} just either side of the stationary point. A sign change from ++ to −- means the curve rises then falls: a maximum. From −- to ++ it falls then rises: a minimum. This uses the same idea as increasing and decreasing functions.

First derivative test

Evaluate dydx\dfrac{dy}{dx} at a value of xx slightly less than and slightly greater than the stationary value (with no other stationary point in between).

Sign of dydx\dfrac{dy}{dx}: left, then rightShapeNature
++ then −-↗ ↘\nearrow\ \searrowmaximum point
−- then ++↘ ↗\searrow\ \nearrowminimum point
same sign both sides↗ ↗\nearrow\ \nearrow or ↘ ↘\searrow\ \searrowneither

The third row is the case y=x3y = x^3 at the origin: the gradient is zero there, but positive on both sides, so the curve flattens for an instant and carries on rising. Such a point is neither a maximum nor a minimum.

Beyond the syllabus

A stationary point that is neither a maximum nor a minimum is called a stationary point of inflexion. The syllabus states that knowledge of points of inflexion is not included in Paper 1, so you will not be asked to find them. You must still not misclassify one: if the second derivative is zero, you cannot conclude anything until you check the signs either side.

A second derivative of zero does not mean "neither". The curve y=(x−2)4+3y = (x - 2)^4 + 3 has d2ydx2=12(x−2)2=0\dfrac{d^2y}{dx^2} = 12(x - 2)^2 = 0 at its stationary point x=2x = 2, yet the point (2,3)(2, 3) is clearly a minimum, since (x−2)4≥0(x - 2)^4 \ge 0. Only the first derivative test settles it.

Using stationary points to sketch a curve

Stationary points, intercepts and end behaviour together pin down the shape of a graph. For a cubic or a quartic, the stationary points tell you exactly where the hills and dips are, and the discriminant of a quadratic dydx\dfrac{dy}{dx} tells you how many there are.

Sketching from stationary points
  1. Find and classify the stationary points.
  2. Find the yy-intercept (put x=0x = 0) and, if they factorise easily, the xx-intercepts.
  3. Decide the behaviour for large positive and large negative xx from the leading term.
  4. Plot the stationary points, join them smoothly with the correct turning shapes, and label every key point with its coordinates.

A cubic y=ax3+bx2+cx+dy = ax^3 + bx^2 + cx + d has dydx=3ax2+2bx+c\dfrac{dy}{dx} = 3ax^2 + 2bx + c, a quadratic. It has two stationary points when this quadratic has discriminant >0> 0, one stationary point (neither max nor min) when the discriminant is 00, and none when it is <0< 0. Example 5 uses this.

Worked examples

Locating and classifying

Find the coordinates of the stationary points on the curve y=x3−12x+1y = x^3 - 12x + 1 and determine their nature.

Solutiondydx=3x2−12=3(x−2)(x+2)\frac{dy}{dx} = 3x^2 - 12 = 3(x - 2)(x + 2)

Setting dydx=0\dfrac{dy}{dx} = 0 gives x=2x = 2 or x=−2x = -2.

x=2: y=8−24+1=−15,x=−2: y=−8+24+1=17x = 2:\ y = 8 - 24 + 1 = -15, \qquad x = -2:\ y = -8 + 24 + 1 = 17

Second derivative: d2ydx2=6x\dfrac{d^2y}{dx^2} = 6x.

At x=2x = 2: d2ydx2=12>0\dfrac{d^2y}{dx^2} = 12 > 0, so (2,−15)(2, -15) is a minimum point.

At x=−2x = -2: d2ydx2=−12<0\dfrac{d^2y}{dx^2} = -12 < 0, so (−2,17)(-2, 17) is a maximum point.

A chain rule curve

A curve has equation y=x+9x+2y = x + \dfrac{9}{x + 2} for x≠−2x \neq -2. Find the coordinates of the stationary points and determine their nature.

Solution

Write y=x+9(x+2)−1y = x + 9(x + 2)^{-1}. By the chain rule,

dydx=1−9(x+2)−2=1−9(x+2)2\frac{dy}{dx} = 1 - 9(x + 2)^{-2} = 1 - \frac{9}{(x + 2)^2}

Set this equal to zero:

9(x+2)2=1⇒(x+2)2=9⇒x+2=±3\frac{9}{(x + 2)^2} = 1 \quad\Rightarrow\quad (x + 2)^2 = 9 \quad\Rightarrow\quad x + 2 = \pm 3

so x=1x = 1 or x=−5x = -5.

x=1: y=1+93=4,x=−5: y=−5+9−3=−8x = 1:\ y = 1 + \frac{9}{3} = 4, \qquad x = -5:\ y = -5 + \frac{9}{-3} = -8

Differentiate again: d2ydx2=18(x+2)−3=18(x+2)3\dfrac{d^2y}{dx^2} = 18(x + 2)^{-3} = \dfrac{18}{(x + 2)^3}.

At x=1x = 1: 1827=23>0\dfrac{18}{27} = \dfrac{2}{3} > 0, so (1,4)(1, 4) is a minimum point.

At x=−5x = -5: 18−27=−23<0\dfrac{18}{-27} = -\dfrac{2}{3} < 0, so (−5,−8)(-5, -8) is a maximum point.

The maximum point has a smaller yy-coordinate than the minimum point. That is no contradiction: they are on different branches of the curve, separated by the asymptote x=−2x = -2, and each is only a local maximum or minimum.

y = x + 9/(x + 2) x = -2 (1, 4) (-5, -8)
When the second derivative is zero

Find the stationary points of y=x4−4x3y = x^4 - 4x^3 and determine their nature.

Solutiondydx=4x3−12x2=4x2(x−3)\frac{dy}{dx} = 4x^3 - 12x^2 = 4x^2(x - 3)

So x=0x = 0 or x=3x = 3, with y=0y = 0 and y=81−108=−27y = 81 - 108 = -27.

d2ydx2=12x2−24x\dfrac{d^2y}{dx^2} = 12x^2 - 24x.

At x=3x = 3: 108−72=36>0108 - 72 = 36 > 0, so (3,−27)(3, -27) is a minimum point.

At x=0x = 0: d2ydx2=0\dfrac{d^2y}{dx^2} = 0, so the test fails. Use the first derivative either side:

xx−0.5-0.5000.50.5
dydx=4x2(x−3)\dfrac{dy}{dx} = 4x^2(x - 3)−3.5-3.500−2.5-2.5
sign−-00−-

The gradient is negative on both sides, so (0,0)(0, 0) is neither a maximum nor a minimum. (The factor 4x24x^2 is never negative, so the sign of dydx\dfrac{dy}{dx} near 00 is the sign of x−3x - 3, which is negative.)

y = x^4 - 4x^3 (0, 0) (3, -27)
Finding constants from a stationary point

The curve y=x3+ax2+bx+4y = x^3 + ax^2 + bx + 4 has a stationary point at (2,−8)(2, -8).

(a) Find the values of aa and bb.

(b) Find the coordinates of the other stationary point and determine the nature of both.

Solution

(a) Two facts give two equations. The point is on the curve:

8+4a+2b+4=−8⇒2a+b=−10(1)8 + 4a + 2b + 4 = -8 \quad\Rightarrow\quad 2a + b = -10 \qquad (1)

The gradient is zero at x=2x = 2. Since dydx=3x2+2ax+b\dfrac{dy}{dx} = 3x^2 + 2ax + b,

12+4a+b=0⇒4a+b=−12(2)12 + 4a + b = 0 \quad\Rightarrow\quad 4a + b = -12 \qquad (2)

Subtract (1) from (2): 2a=−22a = -2, so a=−1a = -1 and b=−8b = -8.

(b) Now y=x3−x2−8x+4y = x^3 - x^2 - 8x + 4 and

dydx=3x2−2x−8=(x−2)(3x+4)\frac{dy}{dx} = 3x^2 - 2x - 8 = (x - 2)(3x + 4)

The factor x−2x - 2 must be there, which is a useful check. The other root is x=−43x = -\tfrac{4}{3}:

y=−6427−169+323+4=−64−48+288+10827=28427y = -\frac{64}{27} - \frac{16}{9} + \frac{32}{3} + 4 = \frac{-64 - 48 + 288 + 108}{27} = \frac{284}{27}

d2ydx2=6x−2\dfrac{d^2y}{dx^2} = 6x - 2. At x=2x = 2 it is 10>010 > 0, so (2,−8)(2, -8) is a minimum. At x=−43x = -\tfrac{4}{3} it is −10<0-10 < 0, so (−43,28427)\left(-\tfrac{4}{3}, \tfrac{284}{27}\right) is a maximum.

How many stationary points

Find the set of values of the constant kk for which the curve y=x3−3kx2+12xy = x^3 - 3kx^2 + 12x has two stationary points.

Solutiondydx=3x2−6kx+12\frac{dy}{dx} = 3x^2 - 6kx + 12

Two stationary points means 3x2−6kx+12=03x^2 - 6kx + 12 = 0 has two distinct real roots, so its discriminant is positive:

(−6k)2−4(3)(12)>0⇒36k2>144⇒k2>4(-6k)^2 - 4(3)(12) > 0 \quad\Rightarrow\quad 36k^2 > 144 \quad\Rightarrow\quad k^2 > 4

So k<−2k < -2 or k>2k > 2.

At k=±2k = \pm 2 the derivative is 3(x∓2)23(x \mp 2)^2, which has a repeated root: one stationary point, which is neither a maximum nor a minimum. For −2<k<2-2 < k < 2 there are none.

Watch out

Using dydx\dfrac{dy}{dx} to find the yy-coordinate. Once you have xx, substitute into the equation of the curve. Substituting into dydx\dfrac{dy}{dx} just gives 00.

Reading d2ydx2=0\dfrac{d^2y}{dx^2} = 0 as "neither". It means only that the test has failed. Use the signs of dydx\dfrac{dy}{dx} either side, as with y=(x−2)4+3y = (x - 2)^4 + 3, which has a minimum.

Swapping the signs. Positive second derivative means minimum. Students who think "positive means top" lose the classification mark.

Losing a root when dividing. In 4x3−12x2=04x^3 - 12x^2 = 0, dividing by x2x^2 throws away x=0x = 0. Factorise instead: 4x2(x−3)=04x^2(x - 3) = 0.

Forgetting the negative root. (x+2)2=9(x + 2)^2 = 9 gives x+2=±3x + 2 = \pm 3, two stationary points, not one.

Ignoring the domain. If the question says x>0x > 0, discard any stationary value with x≤0x \le 0 and say so.

Exam tip
  • "Find the coordinates" needs both xx and yy. Leaving only xx costs the final accuracy mark.
  • "Determine the nature" needs a reason. Write the value of d2ydx2\dfrac{d^2y}{dx^2} (or its sign) and the conclusion: "d2ydx2=18>0\dfrac{d^2y}{dx^2} = 18 > 0, so minimum." A bare "minimum" with no evidence usually scores nothing.
  • Use the first derivative test if the question allows "any method" and the second derivative is messy. Show the actual values of dydx\dfrac{dy}{dx} at your chosen points, not just signs.
  • Exact values: give 28427\tfrac{284}{27}, not 10.510.5, unless decimals are asked for.
  • Check by factor: if you know one stationary value (as in Example 4), the derivative must have that factor. If it does not factorise with it, recheck your constants.
  • "Hence sketch" expects the stationary points, intercepts and correct end behaviour, each labelled. You do not need to plot to scale.
Summary
  • A stationary point is where dydx=0\dfrac{dy}{dx} = 0; the tangent there is horizontal.
  • Solve dydx=0\dfrac{dy}{dx} = 0 for xx by factorising, then use the curve for yy.
  • Second derivative test: d2ydx2>0\dfrac{d^2y}{dx^2} > 0 gives a minimum, <0< 0 a maximum, =0= 0 is inconclusive.
  • First derivative test: ++ to −- is a maximum, −- to ++ a minimum, no change is neither.
  • Maximum and minimum points are local: a maximum can be lower than a minimum on another branch.
  • A cubic's derivative is a quadratic, so its discriminant decides whether there are two, one or no stationary points.
  • Unknown constants: "stationary point at (p,q)(p, q)" gives two equations, y(p)=qy(p) = q and y′(p)=0y'(p) = 0.
  • Knowledge of points of inflexion is not required, but never classify from d2ydx2=0\dfrac{d^2y}{dx^2} = 0 alone.

Practice questions

Question
  1. Find the stationary points of y=2x3−3x2−12x−7y = 2x^3 - 3x^2 - 12x - 7 and determine their nature.
  2. Find the coordinates of the stationary point on the curve y=2x+8x2y = 2x + \dfrac{8}{x^2} and determine its nature.
  3. The curve y=4x−xy = 4\sqrt{x} - x is defined for x>0x > 0. Find the stationary point and show that it is a maximum.
  4. Find the stationary point of y=(x−2)4+3y = (x - 2)^4 + 3 and determine its nature. Explain why the second derivative test does not help.
  5. Find the stationary points of y=(2x−1)3−24xy = (2x - 1)^3 - 24x and determine their nature.
  6. The curve y=x2+axy = x^2 + \dfrac{a}{x} has a stationary point where x=3x = 3. Find aa, the yy-coordinate of the stationary point and its nature.
  7. The curve y=2x3+ax2+bx−7y = 2x^3 + ax^2 + bx - 7 has stationary points where x=−1x = -1 and x=2x = 2. Find aa and bb, the coordinates of both stationary points, and their nature.
  8. (a) Find the stationary points of y=(x2−3)2y = (x^2 - 3)^2 and determine their nature. (b) Sketch the curve. (c) Hence find the set of values of kk for which the line y=ky = k meets the curve at exactly four points.
  9. The curve y=kx−xy = k\sqrt{x} - x, where kk is a positive constant, has a stationary point with yy-coordinate 99. Find kk, and show that the stationary point is a maximum.
Answers
  1. dydx=6x2−6x−12=6(x−2)(x+1)\dfrac{dy}{dx} = 6x^2 - 6x - 12 = 6(x - 2)(x + 1), so x=2x = 2 or x=−1x = -1. At x=2x = 2: y=16−12−24−7=−27y = 16 - 12 - 24 - 7 = -27; at x=−1x = -1: y=−2−3+12−7=0y = -2 - 3 + 12 - 7 = 0. d2ydx2=12x−6\dfrac{d^2y}{dx^2} = 12x - 6: at x=2x = 2 it is 18>018 > 0, so (2,−27)(2, -27) is a minimum; at x=−1x = -1 it is −18<0-18 < 0, so (−1,0)(-1, 0) is a maximum.

  2. y=2x+8x−2y = 2x + 8x^{-2}, dydx=2−16x−3=0\dfrac{dy}{dx} = 2 - 16x^{-3} = 0 gives x3=8x^3 = 8, x=2x = 2, y=4+2=6y = 4 + 2 = 6. d2ydx2=48x−4=3>0\dfrac{d^2y}{dx^2} = 48x^{-4} = 3 > 0 at x=2x = 2, so (2,6)(2, 6) is a minimum.

  3. y=4x12−xy = 4x^{\frac{1}{2}} - x, dydx=2x−12−1=0\dfrac{dy}{dx} = 2x^{-\frac{1}{2}} - 1 = 0 gives x=2\sqrt{x} = 2, x=4x = 4, y=8−4=4y = 8 - 4 = 4. d2ydx2=−x−32=−18<0\dfrac{d^2y}{dx^2} = -x^{-\frac{3}{2}} = -\tfrac{1}{8} < 0, so (4,4)(4, 4) is a maximum.

  4. dydx=4(x−2)3=0\dfrac{dy}{dx} = 4(x - 2)^3 = 0 only at x=2x = 2, giving (2,3)(2, 3). d2ydx2=12(x−2)2=0\dfrac{d^2y}{dx^2} = 12(x - 2)^2 = 0 at x=2x = 2, so the test is inconclusive. At x=1.9x = 1.9, dydx=4(−0.1)3<0\dfrac{dy}{dx} = 4(-0.1)^3 < 0; at x=2.1x = 2.1, dydx=4(0.1)3>0\dfrac{dy}{dx} = 4(0.1)^3 > 0. The sign goes −- to ++, so (2,3)(2, 3) is a minimum.

  5. dydx=3(2x−1)2×2−24=6(2x−1)2−24=0\dfrac{dy}{dx} = 3(2x - 1)^2 \times 2 - 24 = 6(2x - 1)^2 - 24 = 0, so (2x−1)2=4(2x - 1)^2 = 4, 2x−1=±22x - 1 = \pm 2, x=32x = \tfrac{3}{2} or x=−12x = -\tfrac{1}{2}. At x=32x = \tfrac{3}{2}: y=8−36=−28y = 8 - 36 = -28. At x=−12x = -\tfrac{1}{2}: y=−8+12=4y = -8 + 12 = 4. d2ydx2=24(2x−1)\dfrac{d^2y}{dx^2} = 24(2x - 1): at x=32x = \tfrac{3}{2} it is 48>048 > 0, minimum (32,−28)\left(\tfrac{3}{2}, -28\right); at x=−12x = -\tfrac{1}{2} it is −48<0-48 < 0, maximum (−12,4)\left(-\tfrac{1}{2}, 4\right).

  6. dydx=2x−ax−2\dfrac{dy}{dx} = 2x - ax^{-2}. At x=3x = 3: 6−a9=06 - \dfrac{a}{9} = 0, so a=54a = 54. Then y=9+543=27y = 9 + \dfrac{54}{3} = 27. d2ydx2=2+2ax−3=2+10827=6>0\dfrac{d^2y}{dx^2} = 2 + 2ax^{-3} = 2 + \dfrac{108}{27} = 6 > 0, so (3,27)(3, 27) is a minimum.

  7. dydx=6x2+2ax+b\dfrac{dy}{dx} = 6x^2 + 2ax + b has roots −1-1 and 22, so it equals 6(x+1)(x−2)=6x2−6x−126(x + 1)(x - 2) = 6x^2 - 6x - 12. Comparing, 2a=−62a = -6 and b=−12b = -12, so a=−3a = -3, b=−12b = -12. The curve is y=2x3−3x2−12x−7y = 2x^3 - 3x^2 - 12x - 7, so (as in question 1) (−1,0)(-1, 0) is a maximum and (2,−27)(2, -27) is a minimum.

  8. (a) By the chain rule dydx=2(x2−3)(2x)=4x(x2−3)\dfrac{dy}{dx} = 2(x^2 - 3)(2x) = 4x(x^2 - 3), which is zero at x=0x = 0 and x=±3x = \pm\sqrt{3}. Points: (0,9)(0, 9), (3,0)(\sqrt{3}, 0), (−3,0)(-\sqrt{3}, 0). Expanding, y=x4−6x2+9y = x^4 - 6x^2 + 9, so d2ydx2=12x2−12\dfrac{d^2y}{dx^2} = 12x^2 - 12. At x=0x = 0: −12<0-12 < 0, maximum. At x=±3x = \pm\sqrt{3}: 36−12=24>036 - 12 = 24 > 0, minima. (b) A "W" shape, symmetrical about the yy-axis, touching the xx-axis at (±3,0)(\pm\sqrt{3}, 0) with a maximum at (0,9)(0, 9), rising steeply for large ∣x∣|x|. (c) A horizontal line cuts the W four times when it lies strictly between the minimum value and the maximum value: 0<k<90 < k < 9.

  9. dydx=k2x−1=0\dfrac{dy}{dx} = \dfrac{k}{2\sqrt{x}} - 1 = 0 gives x=k2\sqrt{x} = \dfrac{k}{2}, so x=k24x = \dfrac{k^2}{4}. Then y=k⋅k2−k24=k24=9y = k \cdot \dfrac{k}{2} - \dfrac{k^2}{4} = \dfrac{k^2}{4} = 9, so k2=36k^2 = 36 and k=6k = 6 (as k>0k > 0). The point is (9,9)(9, 9). d2ydx2=−k4x−32=−64×27=−118<0\dfrac{d^2y}{dx^2} = -\dfrac{k}{4}x^{-\frac{3}{2}} = -\dfrac{6}{4 \times 27} = -\dfrac{1}{18} < 0, so it is a maximum.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action