Skip to content

C.6 · Multivariable extrema and constrained optimisation

GRE MathematicsTopic 17

Video lesson for this topic Open the video page
5:21

C.6 · Multivariable extrema and constrained optimisation

In 1613 Johannes Kepler bought wine for his wedding and watched the merchant measure each barrel's volume with a single rod pushed diagonally through the bung…

English narration · English and 中文 subtitles you can switch

17.1

Multivariable extrema and constrained optimisation

In 1613 Johannes Kepler bought wine for his wedding and watched the merchant measure each barrel's volume with a single rod pushed diagonally through the bung hole. Suspicious, Kepler worked out the mathematics and published it in 1615. He found that the Austrian barrel's proportions came very close to giving the largest volume for a given diagonal. Near a maximum the volume hardly changes with the shape, so the rough rule worked well. A flat top is the sign of a critical point.

GRE Mathematics optimisation questions ask you to:

  • Find critical points of functions of several variables.
  • Classify them with the Hessian 海森矩阵 and know when the test fails.
  • Find global extrema on closed bounded regions.
  • Use a Lagrange multiplier 拉格朗日乘子 for constrained problems.
Vocabulary Train
English
Hessian
Lagrange multiplier/ˈlæɡreɪndʒ ˌmʌltɪˈplaɪə/
17.2

Critical points

A critical point of $f(x, y)$ is where $\nabla f = 0$, or where it does not exist.

  • Local extrema of a differentiable function can occur only at critical points.
  • Not every critical point is an extremum: $x^2 - y^2$ has a saddle at the origin.
17.3

The second-derivative test

With $D = f_{xx}f_{yy} - f_{xy}^2$, the determinant of the Hessian, at a critical point:

  • $D > 0$ and $f_{xx} > 0$: local minimum. $D > 0$ and $f_{xx} < 0$: local maximum.
  • $D < 0$: saddle point.
  • $D = 0$: the test says nothing. $x^4 + y^4$ (a minimum) and $x^4 - y^4$ (a saddle) both have $D = 0$ at the origin.
Decision tree: D > 0 with f_xx > 0 is a local minimum, with f_xx < 0 a local maximum; D < 0 is a saddle; D = 0 is inconclusive, as x^4 + y^4 and x^4 - y^4 show
The second-derivative test, including its blind spot.
17.4

Global extrema

A continuous function on a closed bounded region attains a global maximum and minimum.

  • Check the critical points inside the region.
  • Check the boundary, by parametrising it or with Lagrange multipliers.
  • Compare all the candidate values.
17.5

Lagrange multipliers

To find extrema of $f$ subject to $g = c$, solve

$$\nabla f = \lambda\nabla g, \qquad g = c$$
  • This works where $\nabla g \ne 0$; points where $\nabla g = 0$ must be checked separately.
  • The method gives candidates; compare their values to decide which is the maximum or minimum.
  • With two constraints, use $\nabla f = \lambda\nabla g + \mu\nabla h$.
17.6

Worked example: classifying

  • $f = x^2 - y^2$: the Hessian is $\operatorname{diag}(2, -2)$, $D = -4 < 0$, so the origin is a saddle.
  • $g = x^4 + y^4$: the Hessian at 0 is zero, so the test is inconclusive. But $g \ge 0$ with equality only at the origin, so it is a strict global minimum.
  • $h = x^2 + xy + y^2$: $D = 2 \times 2 - 1 = 3 > 0$ and $h_{xx} = 2 > 0$, a minimum.
17.7

Worked example: constraints

  • Minimise $x^2 + y^2$ on $x + y = 6$: $(2x, 2y) = \lambda(1, 1)$ gives $x = y = 3$, value 18. Substituting $y = 6 - x$ gives the same result.
  • Maximise $xy$ on $x^2 + y^2 = 8$: $(y, x) = \lambda(2x, 2y)$ gives $y^2 = x^2$. With $x = y = 2$, $xy = 4$; with $x = -y$, $xy = -4$. So the maximum is 4 and the minimum −4.
  • A box with no lid and volume 32 has least surface area when it is $4 \times 4 \times 2$.
Graph of x² + y² along the line y = 6 − x, with its minimum 18 at x = 3
Substitute the constraint first: the minimum is at x = y = 3, where x² + y² = 18
17.8

Common errors

  • Treating $D = 0$ as a saddle or a minimum.
  • Forgetting the boundary when finding global extrema.
  • Reading every Lagrange candidate as a maximum.
  • Ignoring points where $\nabla g = 0$.
  • Using $f_{xx}$ alone to classify a point.
17.9

Key terms

Hessian: The matrix of second partial derivatives, used to study the shape of a function near a point.

Lagrange multiplier: The scalar $\lambda$ in $\nabla f = \lambda\nabla g$ at a constrained extremum.

17.10

Check yourself

  • Classify the origin for $f = xy$.
  • What is the maximum of $x + y$ on the unit circle?
  • At a critical point, $f_{xx} = 1$, $f_{yy} = 4$, $f_{xy} = 2$. What does the test say?

Answers: a saddle ($D = -1$). $\sqrt2$, at $x = y = 1/\sqrt2$. Nothing: $D = 0$.

Was this helpful?

Interactive lessons on this topic

Work through it step by step, with instant-check exercises.

More topics in GRE Mathematics

Log in or create account

IGCSE, A-Level & AP