
Matthew S. answered 08/25/19
University of Pittsburgh Graduate for Math Tutoring
One thing we know about the local minima and maxima of a function of two variables is that they occur at critical points of our function. These critical points are where the gradient of our function, ∇f(x,y), satisfies, ∇f(x,y) = (fx(x,y), fy(x,y)) = (0,0). So every pair of points (x,y) that satisfy this equation is a critical point. It's important to note that not every critical point is a local min/max. We'll need some additional information to determine that.
A hint to make sure your heading in the right direction: In this case, you should have two values of x that satisfy fx(x,y) = 0 and two values of y that satisfy fy(x,y) = 0, meaning you have four critical points in total.
Second, to determine whether each point is a local max/min or saddle point, we need to implement the second derivative test. The test tells us precisely that if we let
D(x0,y0) = fxx(x0,y0)fyy(x0,y0) - (fxy(x0,y0))2
for a critical point (x0,y0)
if D(x0,y0) > 0 and fxx(x0,y0) >0, f(x0,y0) is a local min
if D(x0,y0) > 0 and fxx(x0,y0) < 0, f(x0,y0) is a local max
if D(x0,y0) < 0, f(x0,y0) is a saddle point
and if D(x0,y0) = 0, the test is inconclusive.
For some intuition behind the second derivative test, we can think of fxx(x0,y0) as the concavity of the graph in the x direction and fyy(x0,y0) as the concavity in the y direction. If the second partial derivatives are both positive, then the graph must be concave up, giving us a local min. If the second partial derivatives are both negative, our first term in D is positive and the graph must be concave down in both directions, giving us a local max. However, if the partial derivatives disagree in sign, one is positive and one is negative making D <0, the graph is concave up in one direction and concave down in the other direction, not making it either a local min/max but a saddle point.
Once you determine which critical points are local maxes and mins, then you simply plug those critical points back into your function f(x,y) to get the values of the local maxes and mins.