Local extrema
Review of functions of one variable
You remember how to find local extrema (maxima or minima) of a single variable function . Let’s assume is differentiable. Then the first step is to find the critical points , where . Just because , it does not mean that has a local maximum or minimum at . But, at all extrema, the derivative will be zero, so we know that the extrema must occur at critical points.
For example, in the graph below, is plotted by a green line. The three critical points are marked by colored circles. The red circle marks a local maximum and the blue circle marks a local minimum. The yellow circle marks a critical point that is neither a maximum or a minimum. Even though at the yellow circle, the yellow circle does not mark a local extremum.

At each of these critical points, the linear approximation (i.e., tangent line) to is a horizontal line since . We can determine if has a local extremum at by looking at the secord-order Taylor polynomial, which for a function of one variable is
since . As long as , the Taylor polynomial says that looks like the top or bottom of a parabola for near . If , then is approximately a parabola pointing upward and has a local minimum at , as illustrated by the blue circle, above. If , then is approximately a parabola pointing downward and has a local maximum at , as illustrated by the red circle, above. On the other hand, if , then the second-order Taylor polynomial doesn’t gives us any more information. At the point , could have a local maximum, or it could have a local minimum, or it might not even have a local extremum, as illustrated by the yellow point, above.
Functions of multiple variables
If is a function of multiple variables, categorizing local extrema proceeds in an analogous way. So that we can visualize , we look only at the case of two variables, , where we can graph as a surface. Assuming is differentiable, local extrema can occur only at critical points , where the derivative of is zero, i.e., those points where .
If , then the linear approximation (i.e, tangent plane) of at is a horizontal plane. As in the one-variable case, we can determine if has a local extremum at by looking at the secord-order Taylor polynomial. If we let (remember that ), then the second-order Taylor polynomial is
All this equation says is that, around , the graph of looks like a quadric surface (unless is zero). In fact, will look like a paraboloid.
Depending on the second derivative matrix , the graph of might look like an elliptic paraboloid pointing upward, centered at the point (shown by the blue dot, below). In this case, we say that is positive definite, and has a local minimum at .
Alternatively, the graph of might look like an elliptic paraboloid pointing downward, centered at the point (shown by the red dot, below). In this case, we say that is negative definite, and has a local maximum at .
There is a third possibility that couldn’t happen in the one-variable case. The graph of might look like a hyperbolic paraboloid centered at the point (shown by the green dot, below). In this case, the graph looks like a local maximum if you move in one direction (the direction where one’s legs would go if one sat on the saddle) and the graph looks like a local minimum if you move in another direction (the direction corresponding to the front and back if one sat on the saddle). In this case, we say that is indefinite, and has neither a local maximum nor a local minimum at the critical point. Such a critical point is called a saddle point.
There are other cases, which correspond to the yellow point in the one-variable case, above. These are cases where one cannot tell from the second-order Taylor polynomial if has a local maximum, a local minimum, or neither at the critical point. One would have to look at higher-order terms of the Taylor polynomial to determine the local behavior of the function.
Here are some examples (which assume knowledge of determining the definiteness of that is not discussed in this reading.)