A.9 Topics from Calculus 917
Three-Variable Extrema Problems
Lagrange multipliers can also be applied to the problem of finding the extrema of
functions in three variables, subject to one or two constraints.
Single Constraint
In the case of a single constraint, we wish to maximize or minimize f(x, y, z) subject
to a constraint g(x, y, z) = 0. The graph of a three-variable function of the form
g(x, y, z) = 0 is a surface S in 3-space. The geometric intuition here is that we are
looking for the maximum or minimum of f(x, y, z) as (x, y, z) varies over the
surface S. The function f(x, y, z) has a constrained relative maximum at some point
(x
0
, y
0
, z
0
) if that point is the center of a sphere, with
f(x
0
, y
0
, z
0
) ≥ f(x, y, z)
for all points on S that are within this sphere. If the maximum value of f is f(x
0
, y
0
,
z
0
) = c, then the level surface f(x, y, z) = c is tangent to the level surface g, and so
their gradient vectors at that point are parallel:
∇f(x
0
, y
0
, z
0
) = λ∇g(x
0
, y
0
, z
0
)
To solve a problem of this type, we must do the following:
1. Find all values of x, y, z that satisfy
∇f(x
0
, y
0
, z
0
) = λ∇g(x
0
, y
0
, z
0
)
and
g(x
0
, y
0
, z
0
) = k
This is done by solving, as before, a set of simultaneous equations.
2. Evaluate the function f at all the points from step 1 to determine which is (are)
the maximum value and which is (are) the minimum value.
An example should help illustrate this.
Find the point on the sphere x
2
+y
2
+z
2
=36 that is closest to the point (1, 2, 2).
That is, we wish to find the point (x
0
, y
0
, z
0
) that minimizes the distance (squared)
function f(x, y, z) = (x − 1)
2
+ (y − 2)
2
+ (z − 2)
2
, subject to the constraint that
the point lies on the sphere g(x, y, z) = x
2
+ y
2
+ z
2
= 36. Equating ∇f(x, y, z) =
λ∇g(x, y, z) for this problem we have
2(x −1)i + 2(y − 2)j + 2(z − 2)k =λ(2xi + 2yj +2zk)