Skip to content

Local maxima, minima and saddle points

Find the critical points of f(x, y) by solving fx = 0 and fy = 0 together, and classify each as a local maximum, a local minimum or a saddle point with the second derivative test D = fxx fyy − (fxy)², including what to do when D = 0.

It opens on

Place a marble on the landscape f(x, y) = x³ − 3x + y². Where could it sit perfectly still: on a slope, or only where the ground is level in every direction?

Why it matters

Peaks, pits and passes are where a landscape stops rising or falling; finding and classifying them is how a two-variable model is optimised, and it prepares the search for absolute extrema.

Good to know first

  • Higher-order partial derivatives: fxx and fyy are the bends of the east and north traces, and fxy says how the east slope changes going north
  • The gradient vector: ∇f = ⟨fx, fy⟩ packs both slopes into one vector that points steepest uphill
  • The candidates test for absolute extrema: in one variable the highest and lowest values come from the critical points and the endpoints

Step by step

  1. Where the ground is flat

    Define critical points as the solutions of fx = 0 and fy = 0 together, name local maxima, minima and saddle points, and find the hill's critical point.

    For the hill, set fx = −2x + y = 0 and fy = x − 4y = 0 together.

    A common mix-up

    A point is critical when fx = 0 alone.

    In fact: fx = 0 gives the line y = 2x on the hill, where fy is not 0, so the ground still slopes north.

  2. The second derivative test

    State the second derivative test with D = fxx fyy − (fxy)² and its four outcomes, and classify the critical points of the hill and of x³ − 3x + y².

    Hill at (0, 0): fxx = −2, fyy = −4, fxy = 1, so D = (−2)(−4) − 1² = 7 > 0 and fxx < 0: a local maximum.

    A common mix-up

    One number settles the type.

    In fact: At (−1, 0) fxx = −6 < 0 but D = −12 < 0, a saddle; on the hill D = 7 > 0 but it is a maximum, so read D first, then fxx.

  3. When the test is silent

    Decide the type of a critical point with D = 0 by looking at the function itself, and complete a full classification with several critical points.

    For f = x⁴ + y⁴, fx = 4x³ and fy = 4y³ vanish at (0, 0), and every second partial is 0 there, so D = 0.

    A common mix-up

    D = 0 means no extremum.

    In fact: x⁴ + y⁴ has D = 0 and a minimum at the origin; only the function itself decides.

Try it

Find the critical point of f = x² + xy + y² − 3x.Answer

(2, −1)

Hint: fx = 2x + y − 3 = 0 and fy = x + 2y = 0

Classify the critical point of f = x² + xy + y² − 3x.Answer

(2, −1): D = 2 · 2 − 1² = 3 > 0 and fxx = 2 > 0, a local minimum with f = −3

Hint: fxx = 2, fyy = 2, fxy = 1

Classify the critical points of f = x³ − 12x + y² − 4y.Answer

(2, 2) is a local minimum (D = 24, f = −20) and (−2, 2) a saddle (D = −24)

Hint: fx = 3x² − 12 = 0 and fy = 2y − 4 = 0

If only fx = 0 were solved, what would the answer look like?Answer

The whole line y = 2x, not a point; the north slope must vanish too.

At (−1, 0) fxx = −6 is negative. Is it a peak?Answer

No: D = 12(−1) = −12 < 0, so it is a saddle point, the pass; read D first.

Local maxima, minima and saddle points

30 minutes every month. No card.