01

boundary of f(x, y)

We are searching for global extrema in f(x, y), over the bounded region.

02

g(x, y) = k

The inputs (x, y) are limited to this region. Thus, this indicates the domain over which we are finding the global extrema.

03

next step...

How do we check for global extrema over this domain?

01

to find global extrema in R2

You need to check points where:

  • the derivative of f is zero (interior points)
  • the endpoints of f (boundary points)
02

generalization

If you’re looking for the local extrema, you can exclude the boundary. However, since you’re looking for global extrema, you must include the boundary.

03

to find global extrema in R3

Thus, you need to check points where:

  • the gradient of f is zero (interior points)
  • boundary curve
We could parameterize the boundary curve (f(x(t), y(t)) to produce the above graph), then solve for the global extrema of this new function in R2.
However, it may be difficult to find a closed form of the boundary curve, and it may also be difficult to parameterize it.
01

@ extrema

Notice that, in the projected boundary in R2, a horizontal tangent vector is synonymous with a vertical normal vector.

02

@ non-extrema

Notice that, at non-extrema in R2, the normal vector is not vertical.

03

transfer to R3

We could find t and then find the critical point
(x(t), y(t), f(x(t), y(t))), as in Method 1. However, to avoid parameterizing the boundary, let's use a trick.

01

@ extrema

Notice that, from the top view in R3, the gradient vector at a global minimum is parallel to the normal vector of g(x,y) = k.

02

@ non-extrema

Conversely, the gradient vector at non-extrema is not parallel (from the top view) to the normal vector of g(x,y) = k at that same (x, y).

03

generalization

Thus, we are looking to find points (x, y) where the gradient vector of f and the normal of g = k are parallel.

We can see that this is true using the example of the critical and non-critical point above:

  • At the minimum, moving along the boundary in any direction will increase f. Thus, moving perpendicular to the boundary is the direction of steepest descent (the gradient).
  • At the non-critical point, moving leftward along the boundary will decrease f. Thus, the direction of steepest descent (the gradient) is not perpendicular to the boundary.