Second Derivatives Test:
Suppose the second partial derivatives of [itex]f[/itex] are continuous on a disk with center [itex](a,b)[/itex], and suppose that [itex]f_x(a,b)=0[/itex] and [itex]f_y(a,b)=0[/itex] [that is, [itex](a,b)[/itex] is a critical point of [itex]f[/itex]]. Let
[tex]D=D(a,b)=f_{xx}(a,b)f_{yy}(a,b)-[f_{xy}(a,b)]^2[/tex]
(a) If D>0 and [itex]f_{xx}(a,b)>0[/itex], then f(a,b) is a local minimum.
(b) If D>0 and [itex]f_{xx}(a,b)<0[/itex], then f(a,b) is a local maximum.
(c) If D<0 and [itex]f_{xx}(a,b)>0[/itex], then f(a,b) is not a local maximum or minimum.
Proof of part (a):
We compute the second-order directional derivative of f in the direction of [itex]\vec u = \langle h, k \rangle[/itex]. The first-order derivative is given by:
[tex]D_uf=f_xh+f_yk \quad \mbox{(from a different theorem)}[/tex]
Applying this theorem a second time, we have:
[tex]
\begin{eqnarray}<br />
D^2_uf & = & D_u(D_uf)=\frac{\partial}{\partial x}(D_uf)h+\frac{\partial}{\partial y}(D_uf)k \nonumber \\<br />
& = & (f_{xx}h+f_{yx}k)h+(f_{xy}h+f_{yy}k)k \nonumber\\<br />
& = & f_{xx}h^2+2f_{xy}hk+f_{yy}k^2 \mbox{(by Clairaut's theorem)}\nonumber<br />
\end{eqnarray}[/tex]
If we complete the square in this expression, we obtain:
[tex]D_u^2f=f_{xx}\left(h+\frac{f_{xy}}{f_{xx}}k\right)^2+\frac{k^2}{f_{xx}}(f_{xx}f_{yy}-f^2_{xy}) \quad \mbox(<- Equation 1)[/tex]
We are given that [itex]f_{xx}(a,b)>0[/itex] and [itex]D(a,b)>0[/itex]. But [itex]f_{xx}[/itex] and [itex]D=f_{xx}f_{yy}-f^2_{xy}[/itex] are continuous functions, so there is a disk B with center (a,b) and radius [itex]\delta>0[/itex] such that [itex]f_{xx}>0[/itex] and [itex]D>0[/itex] whenever (x,y) is in B. Therefore, by looking at Equation 1, we see that [itex]D_u^2f(x,y)>0[/itex] whenever (x,y) is in B. This means that if C is the curve obtained by intersecting the graph of f with the vertical plane through P(a,b,f(a,b)) in the direction of [itex]\vec u[/itex], then C is concave upward on an interval of length [itex]2\delta[/itex]. This is true in the direction of every vector [itex]\vec u[/itex], so if we restrict (x,y) to lie in B, the graph lies above its horizontal tangent plane at P. Thus [itex]f(x,y)\geq f(a,b)[/itex] whenever (x,y) is in B. This shows that f(a,b) is a local minimum.
Parts (b) and (c) have similar proofs.