UNIHIVE

Study Hub UNIPORT MTH 320

MTH 320 · Real Analysis II

Maxima, minima and Lagrange multipliers

Necessary conditions, the second derivative test, absolute extrema on compact sets, and constrained extrema by Lagrange multipliers.

Our notes

2 min read

Necessary condition

If f has a local maximum or minimum at an interior point a and is differentiable there, then ∇f(a) = 0. Points where ∇f = 0 are critical (stationary) points.

The second derivative test (two variables)

At a critical point, let D = f_xx f_yy − (f_xy)².

  • D > 0 and f_xx > 0: local minimum.
  • D > 0 and f_xx < 0: local maximum.
  • D < 0: saddle point.
  • D = 0: the test gives no answer.

In n variables: positive definite Hessian (all leading principal minors positive) gives a minimum; negative definite gives a maximum; indefinite gives a saddle.

Worked example

f(x, y) = x³ − 3x + y².

  • f_x = 3x² − 3 = 0 gives x = ±1; f_y = 2y = 0 gives y = 0. Critical points (1, 0) and (−1, 0).
  • f_xx = 6x, f_yy = 2, f_xy = 0.
  • At (1, 0): D = 6 · 2 − 0 = 12 > 0 and f_xx = 6 > 0: local minimum, f = 1 − 3 = −2.
  • At (−1, 0): D = −12 < 0: saddle point.

Absolute extrema on a compact set

A continuous f on a closed, bounded set attains a maximum and minimum. Find them by comparing f at interior critical points and at the extreme points on the boundary (often found with a parametrisation or Lagrange multipliers).

Constrained extrema: Lagrange multipliers

To find extrema of f(x, y) subject to g(x, y) = c: if ∇g ≠ 0 at an extremum, there is λ with
∇f = λ ∇g, together with g = c.
Reason: at an extremum on the curve g = c, the gradient of f has no component along the curve, so it is parallel to ∇g (which is normal to the curve). The implicit function theorem justifies this.
With several constraints g₁ = c₁, ..., gₖ = cₖ: ∇f = λ₁∇g₁ + ... + λₖ∇gₖ.

Worked examples

  1. Maximise f = xy subject to x + y = 10: ∇f = (y, x), ∇g = (1, 1). So y = λ and x = λ, giving x = y = 5 and f = 25.
  2. Extrema of f = x + 2y on the circle x² + y² = 5: 1 = 2λx and 2 = 2λy, so y = 2x. Then x² + 4x² = 5 gives x = ±1, y = ±2. f(1, 2) = 5 (maximum), f(−1, −2) = −5 (minimum). The circle is compact, so both exist.

Meaning of λ

λ measures how fast the optimal value changes as the constraint level c changes (in example 1, d(max)/dc = c/2 = 5 = λ at c = 10). In economics it is a shadow price.

Exams usually ask

  • Find and classify the critical points of a function of two variables.
  • Use Lagrange multipliers to find extrema subject to a constraint.

Common mistake

Forgetting the boundary when looking for absolute extrema on a closed region, or forgetting to check where ∇g = 0, where the multiplier method can miss points.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

No reading links here yet

Our team adds free books, videos and practice for each topic, and opens every link before it goes up.

All MTH 320 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.