01 / 20

Finding Critical Points

Learn how to locate and classify critical points of functions \( f(x, y) \) using partial derivatives and the second derivative test.

Multivariable Calculus

What Is a Critical Point?

In single-variable calculus, a critical point is where \( f'(x) = 0 \) or \( f'(x) \) is undefined. For functions of two variables, we extend this idea: a critical point of \( f(x, y) \) is a point \( (a, b) \) where both partial derivatives vanish simultaneously.

Critical points are the candidates for local maxima, local minima, and saddle points on a surface.

Why Critical Points Matter

Optimization
Finding the maximum profit, minimum cost, or best-fit parameters all require locating critical points.
Surface Geometry
Critical points reveal where a surface levels off: peaks, valleys, and saddle-shaped passes.
Foundation
Mastering this skill prepares you for Lagrange multipliers, gradient descent, and constrained optimization.

Visualizing the Three Types

Local Minimum
Bowl shape
Local Maximum
Dome shape
Saddle Point
Horse saddle
Up in one dir, down in another

The Gradient Condition

The gradient of \( f(x,y) \) is the vector of partial derivatives:

A critical point occurs where the gradient equals the zero vector:

Geometrically, \( \nabla f = \mathbf{0} \) means the surface has no preferred direction of steepest ascent: it is momentarily flat.

The Second Derivative Test

Once you find a critical point \( (a,b) \), classify it using the discriminant \( D \):

1
If \( D > 0 \) and \( f_{xx} > 0 \): local minimum
2
If \( D > 0 \) and \( f_{xx} < 0 \): local maximum
3
If \( D < 0 \): saddle point
4
If \( D = 0 \): test is inconclusive

Classifying with \( D \): A Flowchart

Compute \(D\) at \((a, b)\)
\(D > 0\), \(= 0\), or \(< 0\)?
\(D > 0\)
Check sign of \(f_{xx}\)
\(f_{xx} > 0\)
Local Min
\(f_{xx} < 0\)
Local Max
\(D < 0\)
Saddle Point
\(D = 0\)
Inconclusive

Single-Variable vs. Multivariable

Single Variable \( f(x) \) Two Variables \( f(x,y) \)
Critical condition \( f'(x) = 0 \) \( f_x = 0 \) and \( f_y = 0 \)
Second derivative test \( f''(x) > 0 \): min
\( f''(x) < 0 \): max
Compute \( D = f_{xx}f_{yy} - f_{xy}^2 \)
New phenomenon None Saddle points (\(D < 0\))
Inflection analog \( f''(x) = 0 \) \( D = 0 \) (inconclusive)

How to Find and Classify Critical Points

1
Compute partial derivatives: Find \( f_x(x,y) \) and \( f_y(x,y) \).
2
Set both equal to zero: Solve the system \( f_x = 0 \) and \( f_y = 0 \) simultaneously.
3
Find second partials: Compute \( f_{xx} \), \( f_{yy} \), and \( f_{xy} \).
4
Compute \( D \): Evaluate \( D = f_{xx} f_{yy} - (f_{xy})^2 \) at each critical point.
5
Classify: Use the sign of \( D \) and \( f_{xx} \) to determine the type.

Example 1: \( f(x,y) = x^2 + y^2 \)

\((0, 0)\): Local Min
Cross-section along any direction
1
\( f_x = 2x \), \( f_y = 2y \). Set both to zero: \( x = 0,\; y = 0 \).
2
\( f_{xx} = 2 \), \( f_{yy} = 2 \), \( f_{xy} = 0 \).
3
\( D = (2)(2) - 0^2 = 4 > 0 \) and \( f_{xx} = 2 > 0 \) → Local minimum at \( (0,0) \).

Example 2: \( f(x,y) = x^2 - y^2 \)

\((0, 0)\): Saddle
Along x: curves up
Along y: curves down
1
\( f_x = 2x \), \( f_y = -2y \). Critical point: \( (0, 0) \).
2
\( f_{xx} = 2 \), \( f_{yy} = -2 \), \( f_{xy} = 0 \).
3
\( D = (2)(-2) - 0^2 = -4 < 0 \) → Saddle point at \( (0,0) \).

Example 3: \( f(x,y) = x^3 - 3xy + y^3 \)

Step 1: Compute partials:
\( f_x = 3x^2 - 3y \) and \( f_y = -3x + 3y^2 \).

Step 2: Set \( f_x = 0 \): \( y = x^2 \). Substitute into \( f_y = 0 \):
\( -3x + 3x^4 = 0 \;\Rightarrow\; 3x(x^3 - 1) = 0 \).
Solutions: \( x = 0 \) (giving \( y = 0 \)) and \( x = 1 \) (giving \( y = 1 \)).

Example 4: \( f(x,y) = (x^2 + y^2)e^{-x^2 - y^2} \)

Symmetry insight: This function is radially symmetric. Let \( r^2 = x^2 + y^2 \). Then \( g(r) = r^2 e^{-r^2} \).

Finding critical points: By symmetry, set \( f_x = 0 \) and \( f_y = 0 \). After computation:

The origin \( (0,0) \) is a local minimum (\( f = 0 \)). Every point on \( x^2 + y^2 = 1 \) gives \( f = e^{-1} \), forming a ring of maxima.

Common Mistakes

✕ Setting only one partial to zero
You must solve \( f_x = 0 \) and \( f_y = 0 \) simultaneously. Solving them separately gives wrong points.
✕ Forgetting \( f_{xy} \) in \( D \)
The discriminant is \( f_{xx}f_{yy} - (f_{xy})^2 \). Omitting \( f_{xy}^2 \) misclassifies saddle points as extrema.
✕ Using \( f_{yy} \) instead of \( f_{xx} \)
When \( D > 0 \), you check the sign of \( f_{xx} \) to distinguish a minimum from a maximum. While \( f_{yy} \) will have the same sign, using \( f_{xx} \) is the standard convention.

Summary: Classification Table

Condition Sign of \( f_{xx} \) Classification
\( D > 0 \) \( f_{xx} > 0 \) Local Minimum
\( D > 0 \) \( f_{xx} < 0 \) Local Maximum
\( D < 0 \) Any Saddle Point
\( D = 0 \) Any Inconclusive

Question 1 of 5

Find the critical point(s) of \( f(x,y) = x^2 + 4y^2 - 4x + 8y + 1 \).

Question 2 of 5

For \( f(x,y) = xy \), what is the nature of the critical point at the origin?

Question 3 of 5

Compute the discriminant \( D \) at the critical point \( (1, 1) \) for \( f(x,y) = x^3 + y^3 - 3xy \).

Question 4 of 5

If \( D > 0 \) and \( f_{xx} < 0 \) at a critical point, what type of critical point is it?

Question 5 of 5

How many critical points does \( f(x,y) = x^2 + y^2 - 2x - 6y + 14 \) have?