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.A graph for horizontal tangent line.                   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.A graph for tangent plane.        Since the normal vector of tangent plane at (a, b) for the surface z = f(x, y) is

displaymath129

we want to solve tex2html_wrap_inline131 and tex2html_wrap_inline133 for critical points because horizontal planes have normal vector parallel to z-axis, i.e. (0, 0, 1) or (0, 0, -1).

In the single variable problem, we have the rules

eqnarray37

to categorize the nature of critical points. There is an analogous theory, second-derivative test for extrema, for functions of two variables:

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:

Along y = 0, x-axis, it is easy to see that

eqnarray111

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 tex2html_wrap_inline157 , 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.