Multivariable CalculusOptimization2 of 6
Optimization · 2

The Second Derivative Test

At a critical point where a surface is flat (fx=0\rate{f_x} = 0 and fy=0\rate{f_y} = 0), we need a way to tell whether we are standing at a local minimum, a local maximum, or a saddle point.

1

Why Checking Only the xx and yy Slices Fails

In single-variable calculus, once we find a flat spot on a curve where f′(x)=0\rate{f'(x)} = 0, the sign of the second derivative f′′(x)\bend{f''(x)} tells us which way the curve bends: f′′(x)>0\bend{f''(x)} > 0 bends upward for a local minimum, and f′′(x)<0\bend{f''(x)} < 0 bends downward for a local maximum.

f(x) ⁣: f′(x)=0\htmlClass{lc-blue}{f(x)}\colon\ \htmlClass{lc-pink}{f'(x)} = 0
f′′(x)>0\htmlClass{lc-orange}{f''(x)} > 0
local minimum\text{local minimum}
f′′(x)<0\htmlClass{lc-orange}{f''(x)} < 0
local maximum\text{local maximum}
f(x,y) ⁣: fx=0, fy=0\htmlClass{lc-blue}{f(x, y)}\colon\ \htmlClass{lc-pink}{f_x} = 0,\ \htmlClass{lc-pink}{f_y} = 0
local minimum\text{local minimum}
local maximum\text{local maximum}
saddle point\text{saddle point}

On a surface f(x,y)\hill{f(x, y)}, slicing along the xx- and yy-axes gives two second partial derivatives, fxx\bend{f_{xx}} and fyy\bend{f_{yy}}. Are those two axis curvatures enough to tell what kind of flat spot we have?

Why Checking Only the x and y Slices Fails
xx
yy
zz
f(x,y)\htmlClass{lc-blue}{f(x, y)}
fx=0\htmlClass{lc-pink}{f_x} = 0
fy=0\htmlClass{lc-pink}{f_y} = 0

Multiplying the two axis curvatures together compares their signs:

fxx⏟x-slice curvature⋅fyy⏟y-slice curvature\displaystyle \underbrace{\bend{f_{xx}}}_{\text{$x$-slice curvature}} \cdot \underbrace{\bend{f_{yy}}}_{\text{$y$-slice curvature}}

When fxx⋅fyy<0\bend{f_{xx}} \cdot \bend{f_{yy}} < 0, one axis slice curves up and the other curves down, so we definitely have a saddle point. When fxx⋅fyy>0\bend{f_{xx}} \cdot \bend{f_{yy}} > 0, both axis slices curve the same way (up if fxx>0\bend{f_{xx}} > 0, down if fxx<0\bend{f_{xx}} < 0), but the surface can still do something different in between the axes.

2

Diagonal Slices and the Mixed Derivative fxy\bend{f_{xy}}

To see how a surface can curve upward along both axes and still not have a local minimum, let's check what happens along the diagonal of f(x,y)=x2+y2−4xy\hill{f(x, y) = x^2 + y^2 - 4xy} at (0,0)(0, 0).

Diagonal Slices and the Mixed Derivative fₓᵧ
xx
yy
zz
(0,0)(0, 0)
f(x,y)=x2+y2−4xy\htmlClass{lc-blue}{f(x, y) = x^2 + y^2 - 4xy}

Along the axes (y=0y = 0 and x=0x = 0), the −4xy-4xy term becomes zero, leaving upward parabolas f(x,0)=x2\hill{f(x, 0)} = x^2 and f(0,y)=y2\hill{f(0, y)} = y^2 with fxx=2\bend{f_{xx}} = 2 and fyy=2\bend{f_{yy}} = 2. Along the diagonal y=xy = x, however, xx and yy change together and the −4xy-4xy term outweighs x2+y2x^2 + y^2:

f(x,x)=x2+x2−4(x)(x)=2x2−4x2=−2x2\displaystyle \begin{aligned} \hill{f(x, x)} &= x^2 + x^2 - 4(x)(x) \\ &= 2x^2 - 4x^2 \\ &= -2x^2 \end{aligned}

Because the slice along y=xy = x bends downward as −2x2-2x^2, the origin (0,0)(0, 0) is a saddle point, not a local minimum.

The mixed partial derivative fxy\bend{f_{xy}} measures this diagonal twist. Because changing the sign of xyxy only swaps which diagonal curves up and which curves down, any nonzero fxy\bend{f_{xy}} pulls the surface toward a saddle.

On f(x,y)=x2+y2−4xy\hill{f(x, y) = x^2 + y^2 - 4xy}, a vertical slice through the origin curves upward along both the xx-axis and the yy-axis, but flattens and bends downward as the slice turns toward the diagonal y=xy = x.

This surface curves upward along both the xx-axis and the yy-axis, yet a slice turned halfway between them bends downward along the diagonal.
3

The Tug-of-War and the Hessian Determinant

To classify any critical point, we need a single number that weighs the axis agreement fxx⋅fyy\bend{f_{xx}} \cdot \bend{f_{yy}} against the diagonal twist fxy\bend{f_{xy}}.

In algebra, a perfect square factors as

x2+2xy+y2\displaystyle x^2 + 2xy + y^2 =(x+y)2\displaystyle = (x + y)^2

Because a square is never negative, z=(x+y)2\hill{z = (x + y)^2} sits at the exact tipping point between an upward bowl and a saddle: it curves up everywhere except along the diagonal y=−xy = -x, where (x−x)2=0(x - x)^2 = 0 stays flat at height 00.

The Tug-of-War and the Hessian Determinant
xx
yy
zz
Axis Agreement\text{Axis Agreement}
fxx⋅fyy\htmlClass{lc-orange}{f_{xx} \cdot f_{yy}}
Diagonal Twist\text{Diagonal Twist}
fxy\htmlClass{lc-orange}{f_{xy}}

On this tipping-point surface f(x,y)=x2+2xy+y2\hill{f(x, y) = x^2 + 2xy + y^2}, the power rule brings down a 22 on fxx=2\bend{f_{xx}} = 2 and fyy=2\bend{f_{yy}} = 2, so their product matches the square of the mixed derivative fxy=2\bend{f_{xy}} = 2:

fxx⋅fyy=2⋅2=4,(fxy)2=22=4\displaystyle \begin{aligned} \bend{f_{xx}} \cdot \bend{f_{yy}} &= 2 \cdot 2 = 4, \\ \bend{(f_{xy})^2} &= 2^2 = 4 \end{aligned}

We put all four second partial derivatives into a 2×22 \times 2 matrix and take its determinant (det⁡[abcd]=ad−bc\det \begin{bmatrix} a & b \\ c & d \end{bmatrix} = ad - bc):

H=[fxxfxyfyxfyy]⏟Hessian matrix,D=det⁡H=fxxfyy⏟Axis Agreement−(fxy)2⏟Diagonal Twist\displaystyle \begin{aligned} \bend{H} &= \underbrace{\begin{bmatrix} \bend{f_{xx}} & \bend{f_{xy}} \\ \bend{f_{yx}} & \bend{f_{yy}} \end{bmatrix}}_{\text{Hessian matrix}}, \\[4pt] \bend{D} &= \det \bend{H} = \underbrace{\bend{f_{xx}} \bend{f_{yy}}}_{\text{Axis Agreement}} - \underbrace{\bend{(f_{xy})^2}}_{\text{Diagonal Twist}} \end{aligned}

For the smooth functions we work with, the order of differentiation does not matter (fxy=fyx\bend{f_{xy}} = \bend{f_{yx}}), so the product of the other diagonal is always (fxy)2\bend{(f_{xy})^2}. Plugging a critical point (a,b)(a, b) where fx=0\rate{f_x} = 0 and fy=0\rate{f_y} = 0 into D\bend{D} gives the Second Derivative Test:

D>0 and fxx>0  ⟹  Local minimum (curves upward in every direction)D>0 and fxx<0  ⟹  Local maximum (curves downward in every direction)D<0  ⟹  Saddle point (curves upward in some directions and downward in others)D=0  ⟹  Inconclusive (flattens in at least one direction; check f(x,y) directly)\displaystyle \begin{aligned} &\bend{D} > 0 \text{ and } \bend{f_{xx}} > 0 \\ &\quad \implies \text{Local minimum } \\ &\quad \text{(curves upward in every direction)} \\[10pt] &\bend{D} > 0 \text{ and } \bend{f_{xx}} < 0 \\ &\quad \implies \text{Local maximum } \\ &\quad \text{(curves downward in every direction)} \\[10pt] &\bend{D} < 0 \\ &\quad \implies \text{Saddle point } \\ &\quad \text{(curves upward in some directions } \\ &\quad \text{and downward in others)} \\[10pt] &\bend{D} = 0 \\ &\quad \implies \text{Inconclusive } \\ &\quad \text{(flattens in at least one direction; } \\ &\quad \text{check } \hill{f(x, y)} \text{ directly)} \end{aligned}

Notice that when D>0\bend{D} > 0, we only need to check the sign of fxx\bend{f_{xx}}. Since (fxy)2\bend{(f_{xy})^2} is never negative, fxxfyy−(fxy)2>0\bend{f_{xx}}\bend{f_{yy}} - \bend{(f_{xy})^2} > 0 means fxxfyy>0\bend{f_{xx}}\bend{f_{yy}} > 0, so fxx\bend{f_{xx}} and fyy\bend{f_{yy}} automatically have the same sign.

If we keep the same upward-curving parabola fixed along the xx-axis and the yy-axis, as in x2+y2x^2 + y^2, the origin stays a local minimum as long as the diagonal slice curves upward (D>0\bend{D} > 0), reaches the flat-bottomed tipping point D=0\bend{D} = 0 when the diagonal flattens into a line, and turns into a saddle point (D<0\bend{D} < 0) as soon as the diagonal bends downward.

Even when the xx and yy slices curve up, a strong enough diagonal twist can flatten the diagonal and bend the bowl into a saddle.
4

Worked Example: Finding and Classifying Critical Points

Let's use the Second Derivative Test to find and classify all critical points of f(x,y)=x3+y3−3xy\hill{f(x, y) = x^3 + y^3 - 3xy}.

Worked Example: Finding and Classifying Critical Points
f(x,y)=x3+y3−3xy\displaystyle \htmlClass{lc-blue}{f(x, y) = x^3 + y^3 - 3xy}
critical points\displaystyle \text{critical points} =  ?\displaystyle = \;?
local minimum,\displaystyle \text{local minimum,}
local maximum\displaystyle \text{local maximum}
or saddle point?\displaystyle \text{or saddle point?}
Text solution
1. Set fx\rate{f_x} and fy\rate{f_y} to zero and substitute to find the critical pointsSetting both first partial derivatives to zero gives the relationship between xx and yy at every flat spot:
fx=3x2−3y=0  ⟹  y=x2fy=3y2−3x=0  ⟹  x=y2\displaystyle \begin{aligned} \rate{f_x} &= 3x^2 - 3y = 0 \implies y = x^2 \\ \rate{f_y} &= 3y^2 - 3x = 0 \implies x = y^2 \end{aligned}
Substituting y=x2y = x^2 into x=y2x = y^2 gives x=(x2)2=x4x = (x^2)^2 = x^4, so x=0x = 0 or x=1x = 1. Plugging these back into y=x2y = x^2 gives the critical points (0,0)(0, 0) and (1,1)(1, 1).
2. Build the Hessian matrix from the second partial derivativesTaking the derivatives of fx=3x2−3y\rate{f_x} = 3x^2 - 3y and fy=3y2−3x\rate{f_y} = 3y^2 - 3x a second time gives the entries of the Hessian matrix:
fxx=6x,fyy=6y,fxy=fyx=−3  ⟹  H(x,y)=[6x−3−36y]\displaystyle \begin{gathered} \bend{f_{xx}} = 6x, \quad \bend{f_{yy}} = 6y, \\ \bend{f_{xy}} = \bend{f_{yx}} = -3 \\ \implies \bend{H(x, y)} = \begin{bmatrix} 6x & -3 \\ -3 & 6y \end{bmatrix} \end{gathered}
3. Evaluate D\bend{D} at (0,0)(0, 0)Plugging x=0x = 0 and y=0y = 0 into the Hessian gives zero axis curvature and a nonzero diagonal twist:
H(0,0)=[0−3−30]  ⟹  D=(0)(0)−(−3)2=−9<0\displaystyle \begin{aligned} \bend{H(0, 0)} &= \begin{bmatrix} 0 & -3 \\ -3 & 0 \end{bmatrix} \\ \implies \bend{D} &= (0)(0) - (-3)^2 \\ &= -9 < 0 \end{aligned}
4. Evaluate D\bend{D} and fxx\bend{f_{xx}} at (1,1)(1, 1)Plugging x=1x = 1 and y=1y = 1 into the Hessian shows that the upward curvature along the axes is stronger than the diagonal twist:
H(1,1)=[6−3−36]  ⟹  D=(6)(6)−(−3)2=36−9=27>0,fxx(1,1)=6>0\displaystyle \begin{aligned} \bend{H(1, 1)} &= \begin{bmatrix} 6 & -3 \\ -3 & 6 \end{bmatrix} \\ \implies \bend{D} &= (6)(6) - (-3)^2 \\ &= 36 - 9 = 27 > 0, \\ \bend{f_{xx}(1, 1)} &= 6 > 0 \end{aligned}

So (0,0)(0, 0) is a saddle point, and (1,1)(1, 1) is a local minimum.

5

When D=0\bend{D} = 0: Checking the Function Directly

When D=0\bend{D} = 0, the surface is so flat in at least one direction at the critical point that second derivatives cannot pick up the bend. To classify the critical point of f(x,y)=x4+y4\hill{f(x, y) = x^4 + y^4} or g(x,y)=x4−y4\hill{g(x, y) = x^4 - y^4}, we look directly at how the height of the function behaves around (0,0)(0, 0).

When D = 0: Inspecting the Function Directly
f(x,y)=x4+y4\displaystyle \htmlClass{lc-blue}{f(x, y) = x^4 + y^4}
D\displaystyle \htmlClass{lc-orange}{D} =0 at (0,0)\displaystyle = 0 \text{ at } (0, 0)
local minimum,\displaystyle \text{local minimum,}
local maximum\displaystyle \text{local maximum}
or saddle point?\displaystyle \text{or saddle point?}
f(x,y)=x4+y4\htmlClass{lc-blue}{f(x, y) = x^4 + y^4}
Local minimum at (0,0)\text{Local minimum at } (0, 0)
g(x,y)=x4−y4\htmlClass{lc-blue}{g(x, y) = x^4 - y^4}
Saddle point at (0,0)\text{Saddle point at } (0, 0)
Text solution
1. Find the critical point and evaluate D\bend{D} for both functionsSetting the first derivatives to zero (4x3=04x^3 = 0 and ±4y3=0\pm 4y^3 = 0) gives the critical point (0,0)(0, 0), where all the second partial derivatives (fxx=12x2\bend{f_{xx}} = 12x^2, fyy=±12y2\bend{f_{yy}} = \pm 12y^2, fxy=0\bend{f_{xy}} = 0) are zero for both functions:
H(0,0)=[0000]  ⟹  D=(0)(0)−02=0\displaystyle \begin{aligned} \bend{H(0, 0)} &= \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} \\ \implies \bend{D} &= (0)(0) - 0^2 = 0 \end{aligned}
2. Check the height around (0,0)(0, 0) for f(x,y)=x4+y4\hill{f(x, y) = x^4 + y^4}At the origin f(0,0)=0\hill{f(0, 0)} = 0, and because even powers are never negative, moving to any nearby point (x,y)≠(0,0)(x, y) \ne (0, 0) makes at least one term positive:
f(x,y)=x4⏟≥0+y4⏟≥0>0for all (x,y)≠(0,0)\displaystyle \begin{aligned} \hill{f(x, y)} &= \underbrace{x^4}_{\ge 0} + \underbrace{y^4}_{\ge 0} > 0 \\ &\quad \text{for all } (x, y) \ne (0, 0) \end{aligned}
3. Check the axis slices through (0,0)(0, 0) for g(x,y)=x4−y4\hill{g(x, y) = x^4 - y^4}At the origin g(0,0)=0\hill{g(0, 0)} = 0, but moving out along the xx-axis (y=0y = 0) and the yy-axis (x=0x = 0) changes the height in opposite directions:
g(x,0)=x4>0(x≠0),g(0,y)=−y4<0(y≠0)\displaystyle \begin{aligned} \hill{g(x, 0)} &= x^4 > 0 \quad (x \ne 0), \\ \hill{g(0, y)} &= -y^4 < 0 \quad (y \ne 0) \end{aligned}

So (0,0)(0, 0) is a local minimum for f(x,y)=x4+y4\hill{f(x, y) = x^4 + y^4}, and a saddle point for g(x,y)=x4−y4\hill{g(x, y) = x^4 - y^4}.

Local minimums and maximums only describe the surface right around an interior flat spot; to find the overall highest and lowest points on a closed region, we also have to check its boundary.

Summary

At any critical point (a,b)(a, b) where fx=0\rate{f_x} = 0 and fy=0\rate{f_y} = 0, classifying the flat spot comes down to the tug-of-war in the Hessian determinant:

D=det⁡[fxxfxyfyxfyy]=fxxfyy−(fxy)2\displaystyle \bend{D} = \det \begin{bmatrix} \bend{f_{xx}} & \bend{f_{xy}} \\ \bend{f_{yx}} & \bend{f_{yy}} \end{bmatrix} = \bend{f_{xx}}\bend{f_{yy}} - \bend{(f_{xy})^2}
Axis agreement wins (D>0\bend{D} > 0)

The surface bends the same way in every direction, so the sign of fxx\bend{f_{xx}} decides whether it is a local minimum (fxx>0\bend{f_{xx}} > 0, as at (1,1)(1, 1) for x3+y3−3xy\hill{x^3 + y^3 - 3xy} where D=6⋅6−(−3)2=27>0\bend{D} = 6 \cdot 6 - (-3)^2 = 27 > 0 and fxx=6>0\bend{f_{xx}} = 6 > 0) or a local maximum (fxx<0\bend{f_{xx}} < 0).

Saddle wins (D<0\bend{D} < 0)

Either the axes already curve in opposite directions (fxxfyy<0\bend{f_{xx}}\bend{f_{yy}} < 0), or the diagonal twist (fxy)2\bend{(f_{xy})^2} is stronger than the axis curvatures (as at (0,0)(0, 0) for x2+y2−4xy\hill{x^2 + y^2 - 4xy}, where fxx=2\bend{f_{xx}} = 2 and fyy=2\bend{f_{yy}} = 2 curve up but D=2⋅2−(−4)2=−12<0\bend{D} = 2 \cdot 2 - (-4)^2 = -12 < 0 makes it a saddle point). In particular, if fxx=0\bend{f_{xx}} = 0 or fyy=0\bend{f_{yy}} = 0 while fxy≠0\bend{f_{xy}} \ne 0, you don't need any further work: D=−(fxy)2<0\bend{D} = -\bend{(f_{xy})^2} < 0 is immediately a saddle point.

When the test gives no conclusion (D=0\bend{D} = 0), or when you can see the signs directly

Do not rely on second derivatives when D=0\bend{D} = 0 (such as (x+y)2\hill{(x + y)^2}, x4+y4\hill{x^4 + y^4}, or x4−y4\hill{x^4 - y^4} at (0,0)(0, 0)). Instead, compare f(x,y)\hill{f(x, y)} directly with f(a,b)\hill{f(a, b)} around the critical point: if f(x,y)>f(a,b)\hill{f(x, y)} > \hill{f(a, b)} for all nearby points (like x4+y4>0\hill{x^4 + y^4} > 0), it is a local minimum; if one slice through (a,b)(a, b) goes up and another goes down (like g(x,0)=x4>0\hill{g(x, 0)} = x^4 > 0 and g(0,y)=−y4<0\hill{g(0, y)} = -y^4 < 0 on x4−y4\hill{x^4 - y^4}), it is a saddle point.

6

Practice

1

Find and classify the critical point of f(x,y)=4x+2y−x2−xy−y2\hill{f(x, y)} = \hill{4x + 2y - x^2 - xy - y^2}.

Set fx=0\rate{f_x} = 0 and fy=0\rate{f_y} = 0 to solve the system of two linear equations for (x,y)(x, y), then check both D\bend{D} and the sign of fxx\bend{f_{xx}}.

Setting the first partial derivatives to zero gives
fx=4−2x−y=0  ⟹  y=4−2xfy=2−x−2y=0\displaystyle \begin{aligned} \rate{f_x} &= 4 - 2x - y = 0 \implies y = 4 - 2x \\ \rate{f_y} &= 2 - x - 2y = 0 \end{aligned}
Substituting y=4−2xy = 4 - 2x into fy=0\rate{f_y} = 0 gives 2−x−2(4−2x)=3x−6=02 - x - 2(4 - 2x) = 3x - 6 = 0, so x=2x = 2 and y=0y = 0, giving the critical point (2,0)(2, 0). The second partial derivatives are fxx=−2\bend{f_{xx}} = -2, fyy=−2\bend{f_{yy}} = -2, and fxy=−1\bend{f_{xy}} = -1, so
D=(−2)(−2)−(−1)2=4−1=3>0\displaystyle \begin{aligned} \bend{D} &= (-2)(-2) - (-1)^2 \\ &= 4 - 1 = 3 > 0 \end{aligned}
(Watch the signs here: (−1)2=1(-1)^2 = 1 is subtracted from 44 to give D=3\bend{D} = 3, not added to give D=5\bend{D} = 5.) Because D>0\bend{D} > 0, the surface curves the same way in all directions; checking fxx=−2<0\bend{f_{xx}} = -2 < 0 (stopping at D=3>0\bend{D} = 3 > 0 without checking fxx<0\bend{f_{xx}} < 0 is a common mistake that misclassifies this point as a local minimum) shows that (2,0)(2, 0) is a local maximum.
2

Find and classify all critical points of f(x,y)=x3+3y2−6xy\hill{f(x, y) = x^3 + 3y^2 - 6xy}.

Solve fy=0\rate{f_y} = 0 for yy first, substitute into fx=0\rate{f_x} = 0, and factor the resulting equation rather than dividing by xx.

Setting the first partial derivatives to zero gives
fx=3x2−6y=0  ⟹  y=x22,fy=6y−6x=0  ⟹  y=x\displaystyle \begin{aligned} \rate{f_x} &= 3x^2 - 6y = 0 \implies y = \frac{x^2}{2}, \\ \rate{f_y} &= 6y - 6x = 0 \implies y = x \end{aligned}
Setting the two expressions for yy equal gives x22=x\frac{x^2}{2} = x, or x(x−2)=0x(x - 2) = 0 (dividing both sides of x22=x\frac{x^2}{2} = x by xx loses the x=0x = 0 solution and misses the critical point (0,0)(0, 0)), giving critical points (0,0)(0, 0) and (2,2)(2, 2).
With fxx=6x\bend{f_{xx}} = 6x, fyy=6\bend{f_{yy}} = 6, and fxy=−6\bend{f_{xy}} = -6:
At (0,0)(0, 0), D=(0)(6)−(−6)2=−36<0\bend{D} = (0)(6) - (-6)^2 = -36 < 0 (remember that (−6)2=36(-6)^2 = 36 is subtracted, so D=−36\bend{D} = -36, not +36+36), so (0,0)(0, 0) is a saddle point.
At (2,2)(2, 2), D=(12)(6)−(−6)2\bend{D} = (12)(6) - (-6)^2 =72−36=36>0= 72 - 36 = 36 > 0 and fxx=12>0\bend{f_{xx}} = 12 > 0, so (2,2)(2, 2) is a local minimum.
3

For f(x,y)=x2+kxy+4y2\hill{f(x, y) = x^2 + kxy + 4y^2}, (0,0)(0, 0) is a critical point with fxx>0\bend{f_{xx}} > 0 and fyy>0\bend{f_{yy}} > 0 for every constant kk. For which values of kk does the Second Derivative Test classify (0,0)(0, 0) as a local minimum, a saddle point, or give no conclusion?

Differentiate twice to find fxx\bend{f_{xx}}, fyy\bend{f_{yy}}, and fxy\bend{f_{xy}} in terms of kk, then find where D=fxxfyy−(fxy)2\bend{D} = \bend{f_{xx}}\bend{f_{yy}} - \bend{(f_{xy})^2} is positive, negative, or zero.

Differentiating twice gives fxx=2\bend{f_{xx}} = 2, fyy=8\bend{f_{yy}} = 8, and fxy=k\bend{f_{xy}} = k (reading the coefficients 11 and 44 directly off x2x^2 and 4y24y^2 without differentiating twice forgets the 22 from the power rule and gives D=4−k2\bend{D} = 4 - k^2 with the wrong cutoffs k=±2k = \pm 2), so the determinant is
D\displaystyle \bend{D} =(2)(8)−k2\displaystyle = (2)(8) - k^2 =16−k2\displaystyle = 16 - k^2
Because fxx=2>0\bend{f_{xx}} = 2 > 0 and 16−k2=(4−k)(4+k)16 - k^2 = (4 - k)(4 + k) (don't forget the negative root −4-4 when solving k2<16k^2 < 16):
(0,0)(0, 0) is a local minimum when −4<k<4-4 < k < 4 (D>0\bend{D} > 0),
a saddle point when k<−4k < -4 or k>4k > 4 (D<0\bend{D} < 0),
and the test is inconclusive when k=−4k = -4 or k=4k = 4 (D=0\bend{D} = 0).
4

Show that the Second Derivative Test is inconclusive at the critical point of f(x,y)=x2−y4\hill{f(x, y) = x^2 - y^4}, then classify the critical point by checking f(x,y)\hill{f(x, y)} directly.

After checking that D=0\bend{D} = 0 at the critical point, compare the height along the xx-axis (y=0y = 0) with the height along the yy-axis (x=0x = 0).

Setting fx=2x=0\rate{f_x} = 2x = 0 and fy=−4y3=0\rate{f_y} = -4y^3 = 0 gives the critical point (0,0)(0, 0). At (0,0)(0, 0), the second partials are fxx=2\bend{f_{xx}} = 2, fyy=−12(0)2=0\bend{f_{yy}} = -12(0)^2 = 0, and fxy=0\bend{f_{xy}} = 0, so
D\displaystyle \bend{D} =(2)(0)−02\displaystyle = (2)(0) - 0^2 =0\displaystyle = 0
and the test is inconclusive (do not conclude (0,0)(0, 0) is a local minimum just because fxx(0,0)=2>0\bend{f_{xx}(0, 0)} = 2 > 0 or because both exponents are even; fxx>0\bend{f_{xx}} > 0 only guarantees a local minimum when D>0\bend{D} > 0).
Checking f(x,y)=x2−y4\hill{f(x, y) = x^2 - y^4} around (0,0)(0, 0), where f(0,0)=0\hill{f(0, 0)} = 0: moving along the xx-axis (y=0y = 0) gives f(x,0)=x2>0\hill{f(x, 0)} = x^2 > 0 for x≠0x \ne 0, while moving along the yy-axis (x=0x = 0) gives f(0,y)=−y4<0\hill{f(0, y)} = -y^4 < 0 for y≠0y \ne 0. Since the surface goes up in one direction and down in another, (0,0)(0, 0) is a saddle point.