The problem to find the minimum or maximum value of a function is encountered very frequently in geometry, mechanics, physics, and other fields. It was one of the principal incentives for the development of the calculus in the seventeenth century. Our object for this page is to give a means of locating the extrema of two variable functions.
Recall the same problem in the case of single veriable function. We locate
all critical points by solving f'(x) = 0. It is the same as to find all
points with horizontal tangent line since at the points where a differentiable
function attains relative maximum or minimum the tangent line is
horizontal.
Similarly, for the case of a two variable differentiable
function f(x, y), we look for those points (also called critical or
stationary points) whose tangent planes are
horizontal.
Since the normal vector of tangent plane at (a,
b) for the surface z = f(x,
y)
is
we want to solve
and
for critical points
because horizontal planes have normal vector parallel to z-axis, i.e. (0,
0, 1) or (0, 0, -1).
Set both partial derivatives zero, we have x = 1, or -1 and y = 0. Therefore (1, 0) and (-1, 0) are the critical points of f.
In the single variable problem, we have the rules
to categorize the nature of critical points. There is an analogous theory, second-derivative test for extrema, for functions of two variables:
and let
Then we have:
With this theorem we can summarize the procedure to find the extrema of a twice diffenentiable function f(x, y) of two variables as follows:
we have x = 0 or 2 and y = 1 or -1. Thus (0, 1), (0, -1), (2, 1) and (2, -1) are the critical points of f.
After some computations, we have
Note that f is an exponential function, always positive.
Along y = 0, x-axis, it is easy to see that
It shows that f can grow as big as possible when x tends to infinity and as close to zero as well when x tends negative infinity (note f is positive for all (x, y)), so we conclude that f has no absolute maximum nor absolute minimum over xy-plane.
Suppose the problem was further restricted to the region R bounded by y =
-x +
4 and
, then we have more (step 4) to search for the possible extrema
along boundaries. In this case, only (2, 1) and (2, -1) are inside R, they
are still saddle point and relative minimum respectively.
respectively. Both are reduced to single variable problems. Readers should be able to find the maximums and minimums on each restriction. To determine the absolute extrema on the region R, you need to compare the function values of all critical points obtained in step 3 and 4 and corner points, such as the intersection points of two boundary curves.