Stationary Points

Where the curve levels off into a peak or trough.

Where the tangent is level

The derivative of y = x² is 2x. To the left of the origin, at x = −1, the gradient is −2, so the curve is falling. To the right, at x = 1, the gradient is 2, so the curve is rising. At the very bottom, x = 0, the gradient is 2 × 0 = 0, and the tangent there is horizontal: it is the x-axis itself.

A point where the gradient is zero is a stationary point. For an instant the curve is neither rising nor falling.

xy

The curve y = x² with its tangents at (−1, 1), falling with gradient −2, and at (1, 1), rising with gradient 2. Between them, at the origin, the tangent is the x-axis, with gradient 0.

Set the derivative to zero

So to find a stationary point, set the derivative equal to zero and solve. For y = x² that is 2x = 0, so x = 0. Put x = 0 back into the equation of the curve for the y-coordinate: y = 0, so the stationary point is (0, 0).

Take y = x² − 6x. Its derivative is dy/dx = 2x − 6. Set 2x − 6 = 0, so 2x = 6 and x = 3. The height there is 3² − 6 × 3 = 9 − 18 = −9, so the stationary point is (3, −9).

Check it with a chord that straddles x = 3. At x = 2.99 the height is 8.9401 − 17.94 = −8.9999, and at x = 3.01 it is 9.0601 − 18.06 = −8.9999. The two ends are level, so the chord gradient is 0.

The curve crosses the x-axis where x² − 6x = x(x − 6) = 0, at x = 0 and x = 6. Those are the points where the height is zero, not the gradient. The stationary point sits halfway between them, at x = 3, because the curve is symmetric about that line.

xy

The curve y = x² − 6x crosses the x-axis at x = 0 and x = 6. Its level tangent, y = −9, touches it halfway between, at the stationary point (3, −9).

A peak or a trough

The tangent is horizontal at the top of a peak as well. On y = −x² the derivative is −2x, which is 0 at x = 0. At x = −1 the gradient is 2 and at x = 1 it is −2, so the curve rises up to the origin and falls away after it.

So the sign of the gradient on each side tells the two kinds apart. Rising then falling is a peak, a local maximum. Falling then rising is a trough, a local minimum. Both are called turning points.

The cubic y = x³ − 3x has both. Its derivative is 3x² − 3 = 3(x − 1)(x + 1), which is zero at x = −1 and x = 1. The heights are (−1)³ − 3(−1) = −1 + 3 = 2 and 1³ − 3 × 1 = −2. Test the gradient on each side: at x = −2 it is 3 × 4 − 3 = 9, at x = 0 it is −3, and at x = 2 it is 9 again. The curve rises, falls, then rises, so (−1, 2) is a local maximum and (1, −2) is a local minimum.

xy

The curve y = x³ − 3x, with the level tangent y = 2 on top of its peak at (−1, 2) and the level tangent y = −2 under its trough at (1, −2).

The second derivative

Differentiating the derivative gives the second derivative, written d²y/dx². It is the rate at which the gradient changes. At a maximum the gradient goes from positive, through 0, to negative, so it is decreasing and d²y/dx² is negative. At a minimum the gradient is increasing and d²y/dx² is positive.

For y = x³ − 3x the second derivative is 6x. At x = −1 it is −6, which is negative, so (−1, 2) is a maximum. At x = 1 it is 6, which is positive, so (1, −2) is a minimum. Both answers agree with the gradient on each side.

f′(x₀) = −0.75f″(x₀) = 1x₀ = 0.5−2−112

f″ > 0: the curve bends upward and the circle of curvature sits above it — the bowl holds water, so a stationary point here would be a minimum

Drag x₀ to the maximum and read the sign of f″

The curve y = x³/3 − x, whose derivative is x² − 1 and second derivative 2x. Drag the point to x = −1, the peak at (−1, 2/3): the circle that fits the curve there hangs below it, and the second derivative is −2. At x = 1, the trough at (1, −2/3), the circle sits above and the second derivative is 2.

Neither a peak nor a trough

A zero gradient does not always mean a turn. On y = x³ + 2 the derivative is 3x², which is 0 at x = 0, so (0, 2) is a stationary point. But at x = −1 and at x = 1 the gradient is 3, positive on both sides. The curve rises, levels off for an instant, and keeps rising. This is a stationary point of inflection.

The second derivative cannot always decide. On y = x³ + 2 it is 6x, which is 0 at x = 0. On y = x⁴ the second derivative 12x² is also 0 at x = 0, yet the gradient 4x³ is −4 at x = −1 and 4 at x = 1, so the origin is a minimum. When the second derivative is 0, test the gradient on each side.

xy

The curve y = x³ + 2 and its level tangent y = 2 at (0, 2). The curve rises on both sides of the point and crosses the tangent there.

The largest area

Stationary points answer questions about the largest or smallest value. A rectangle with a perimeter of 40 m has width x and length 20 − x, so its area is A = x(20 − x) = 20x − x². Then dA/dx = 20 − 2x, which is 0 when x = 10. The second derivative is −2, which is negative, so x = 10 gives the maximum area, 10 × 10 = 100 square meters. Either side is smaller: x = 9 and x = 11 both give 99 square meters.

x = 420 − x = 16A = 64 m²xA510152050100

A = 20x − x² and A′ = 20 − 2x = 12: the area is still 12 m² per meter of extra width away from its peak

Slide x to the width that gives the biggest area

A rectangle of width x and length 20 − x, and its area A = 20x − x² plotted against x. Drag the width to 10: the area reaches 100 square meters at the top of the curve, where dA/dx = 0.

The usual mistakes

Solving y = 0 instead of dy/dx = 0. On y = x² − 6x, x = 6 is where the curve crosses the x-axis. The gradient there is 2 × 6 − 6 = 6, not 0.

Dropping a term of the derivative. On y = x² − 6x the gradient at x = 0 is −6, because the −6x term contributes −6. The stationary point is at x = 3.

Stopping at x. A stationary point is a point: put x = 3 back into the curve to get y = −9, and give (3, −9).

Calling every stationary point a maximum. On y = x³ − 3x the point (1, −2) is a minimum, and on y = x³ + 2 the point (0, 2) is neither. Check the gradient on each side, or the sign of the second derivative.

A sheep pen against a wall

In the application below, 40 m of fence makes three sides of a pen, and a wall makes the fourth. The area is a quadratic in the width, and its stationary point gives the greatest area.

Worked example: A Sheep Pen Against a Wall with 40 m of Fencing: The Width That Encloses the Greatest Area

Question A farmer has 40 m of fencing to make a rectangular sheep pen against a long straight wall. The wall forms one side of the pen, and the fence forms the other three. Each of the two sides at right angles to the wall is x m long. (a) Write the area A of the pen in terms of x. (b) Find the value of x that gives the greatest area, the length of the side along the wall, and the greatest area.

  1. 1.The side along the wall is 40 − 2x m, so A = x(40 − 2x) = 40x − 2x2. (a) The area is A = 40x − 2x2 m2, for 0 < x < 20.

    wallxx40 − 2x010020005101520width out from the wall (m), xarea in square m, Aalong the wall: 40 − 2xA = x(40 − 2x) = 40x − 2x2
    wallxx40 − 2x010020005101520width out from the wall (m), xarea in square m, Aalong the wall: 40 − 2xA = x(40 − 2x) = 40x − 2x2
    (a) The side along the wall is 40 − 2x m, so A = x(40 − 2x) = 40x − 2x2 m2.
  2. 2.Differentiate: dAdx = 40 − 4x. It is zero when 4x = 40, so x = 10.

    wallxx40 − 2x010020005101520width out from the wall (m), xarea in square m, AdA/dx = 40 − 4x = 0so x = 10
    wallxx40 − 2x010020005101520width out from the wall (m), xarea in square m, AdA/dx = 40 − 4x = 0so x = 10
    Differentiate: dAdx = 40 − 4x, which is zero at x = 10. The curve is flat there.
  3. 3.Differentiate again: d2Adx2 = −4. It is negative, so x = 10 gives a maximum.

    wallxx40 − 2x010020005101520width out from the wall (m), xarea in square m, Ad2A/dx2= −4, less than 0x = 10 gives a maximum
    wallxx40 − 2x010020005101520width out from the wall (m), xarea in square m, Ad2A/dx2= −4, less than 0x = 10 gives a maximum
    The second derivative is d2Adx2 = −4, which is negative, so x = 10 gives a maximum.
  4. 4.(b) The pen is 10 m out from the wall and 40 − 20 = 20 m along it, and the greatest area is 10 × 20 = 200 m2. Check: x = 9 gives 9 × 22 = 198 and x = 11 gives 11 × 18 = 198, both less than 200.

    wall10 m10 m20 m010020005101520width out from the wall (m), xarea in square m, A(10, 200)10 m out, 20 m along: A = 200 m2check: x = 9 or x = 11 gives 198
    wall10 m10 m20 m010020005101520width out from the wall (m), xarea in square m, A(10, 200)10 m out, 20 m along: A = 200 m2check: x = 9 or x = 11 gives 198
    (b) The pen is 10 m out and 20 m along the wall, with the greatest area, 200 m2.

Answer: (a) A = 40x − 2x2 m2; (b) x = 10 m, with 20 m along the wall, for the greatest area of 200 m2

Common mistakes

  • Fencing all four sides, 2x + 2y = 40, as for a pen in an open field. The wall is one side, so only three sides need fence: 2x + y = 40.
  • Expecting a square pen to give the greatest area. Three equal sides of 403 ≈ 13.3 m enclose only about 177.8 m2. With a wall along one side, the best pen is twice as long as it is wide.

More introduction to calculus problems, worked step by step →

Practice Stationary Points in the app