Fiveable

Calculus IV Unit 7 Review

QR code for Calculus IV practice questions

7.1 Critical points and the second derivative test

7.1 Critical points and the second derivative test

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
Calculus IV
Unit & Topic Study Guides

Critical Points and Partial Derivatives

Identifying Critical Points

A critical point of a multivariable function is a point where all partial derivatives are simultaneously zero or where at least one partial derivative is undefined. These are the only locations where a function can achieve a local maximum or minimum, so finding them is the first step in any optimization problem.

To find critical points of a function f(x,y)f(x, y):

  1. Compute fx(x,y)f_x(x, y) and fy(x,y)f_y(x, y).
  2. Set both partial derivatives equal to zero: fx=0f_x = 0 and fy=0f_y = 0.
  3. Solve the resulting system of equations simultaneously for xx and yy.

Not every critical point is a max or min. Some turn out to be saddle points, where the function increases in certain directions and decreases in others. That's why classification (covered below) matters.

Gradient Vector and Its Role

The gradient vector f=fx,fy\nabla f = \langle f_x, f_y \rangle packages the partial derivatives into a single vector. It points in the direction of steepest ascent of the function at any given point.

  • At a critical point, f=0\nabla f = \mathbf{0}. The function has no single "steepest" direction there, which is exactly why these points are candidates for extrema.
  • The gradient is always perpendicular to the level curves (or level surfaces) of ff. This geometric fact becomes important in constrained optimization later.
  • The magnitude f\|\nabla f\| tells you how steeply the function is changing. A larger magnitude means a steeper slope.
Identifying Critical Points, Maxima/Minima Problems · Calculus

Classifying Critical Points

The Hessian Matrix

Once you've found a critical point, you need to determine what kind it is. The tool for this is the Hessian matrix, a square matrix of all second-order partial derivatives.

For f(x,y)f(x, y), the Hessian is:

H(x,y)=[fxx(x,y)fxy(x,y)fyx(x,y)fyy(x,y)]H(x, y) = \begin{bmatrix} f_{xx}(x, y) & f_{xy}(x, y) \\ f_{yx}(x, y) & f_{yy}(x, y) \end{bmatrix}

The quantity that drives classification is the determinant of the Hessian, often written DD or det(H)\det(H):

D=fxxfyy(fxy)2D = f_{xx} \cdot f_{yy} - (f_{xy})^2

Note that by Clairaut's theorem, fxy=fyxf_{xy} = f_{yx} whenever the second partials are continuous, so you only need to compute fxyf_{xy} once.

Identifying Critical Points, multivariable calculus - Classifying critical points - Mathematics Stack Exchange

Second Derivative Test

With the determinant DD evaluated at a critical point (a,b)(a, b), classification works as follows:

  1. Compute fxx(a,b)f_{xx}(a,b), fyy(a,b)f_{yy}(a,b), and fxy(a,b)f_{xy}(a,b).

  2. Calculate D=fxx(a,b)fyy(a,b)[fxy(a,b)]2D = f_{xx}(a,b) \cdot f_{yy}(a,b) - [f_{xy}(a,b)]^2.

  3. Classify the critical point:

    • D>0D > 0 and fxx(a,b)>0f_{xx}(a,b) > 0local minimum (the surface curves upward in every direction, like a valley)
    • D>0D > 0 and fxx(a,b)<0f_{xx}(a,b) < 0local maximum (the surface curves downward in every direction, like a hilltop)
    • D<0D < 0saddle point (the surface curves up in some directions and down in others, like a mountain pass)
    • D=0D = 0test is inconclusive; you'll need other methods (such as analyzing the function's behavior directly)

A common mistake is forgetting the D=0D = 0 case. The test genuinely tells you nothing here. Don't assume it's a saddle point just because it isn't clearly a max or min.

Why the Test Works (Intuition)

The sign of DD captures whether the second-order behavior is consistent across directions. When D>0D > 0, the surface bends the same way (both up or both down) along every direction through the critical point, so fxxf_{xx} alone tells you which. When D<0D < 0, the surface bends up along one direction and down along another, producing the characteristic saddle shape. This connects directly to the eigenvalues of the Hessian: D>0D > 0 means both eigenvalues share the same sign, while D<0D < 0 means they have opposite signs.