In one variable, local extremes happen where $f'(x) = 0$, and the second derivative test tells a valley from a peak. Surfaces have one new kind of flat spot: a saddle point, like the middle of a horse's saddle or a mountain pass, which is a low point in one direction and a high point in another.
Key idea
Why it works
Why $D$: near a critical point, the second-order approximation is $f \approx f(a, b) + \frac{1}{2}(Ah^2 + 2Bhk + Ck^2)$ with $A = f_{xx}$, $B = f_{xy}$, $C = f_{yy}$ and steps $h$, $k$. Completing the square (for $A \ne 0$): $$Ah^2 + 2Bhk + Ck^2 = A\left(h + \frac{B}{A}k\right)^2 + \frac{AC - B^2}{A}k^2.$$ If $AC - B^2 > 0$, both terms have the sign of $A$ for every nonzero step: a bowl ($A > 0$) or a dome ($A < 0$). If $AC - B^2 < 0$, the two terms have opposite signs, so some steps go up and others go down: a saddle.
Critical points also include points where a partial derivative does not exist, such as the tip of the cone $f(x, y) = \sqrt{x^2 + y^2}$, which is a minimum even though $\nabla f$ is undefined there. And not every critical point is an extreme value: at a saddle the tangent plane is horizontal, but the surface rises above it in some directions and falls below it in others. In applications, critical points mark equilibria, such as the lowest energy state of a physical system, and the test decides whether such an equilibrium is stable (a minimum of the energy) or not.
Worked examples
Worked example: A quadratic
- $f_x = 2x + y - 3 = 0$ and $f_y = x + 2y = 0$. From the second, $x = -2y$; then $-4y + y = 3$, so $y = -1$, $x = 2$.
- $f_{xx} = 2$, $f_{yy} = 2$, $f_{xy} = 1$, so $D = 4 - 1 = 3 > 0$ with $f_{xx} > 0$.
- Local minimum at $(2, -1)$, with value ${}4 - 2 + 1 - 6 = -3$.
Answer: local minimum $-3$ at $(2, -1)$
Worked example: A minimum and a saddle
- $f_x = 3x^2 - 3 = 0$ gives $x = \pm 1$; $f_y = 2y = 0$ gives $y = 0$.
- $f_{xx} = 6x$, $f_{yy} = 2$, $f_{xy} = 0$, so $D = 12x$.
- At $(1, 0)$: $D = 12 > 0$, $f_{xx} = 6 > 0$: local minimum. At $(-1, 0)$: $D = -12 < 0$: saddle point.
Answer: minimum at $(1, 0)$, saddle at $(-1, 0)$
Worked example: Two critical points
- $f_x = 3x^2 - 3y = 0$ and $f_y = 3y^2 - 3x = 0$, so $y = x^2$ and $x = y^2 = x^4$: $x = 0$ or $x = 1$.
- $f_{xx} = 6x$, $f_{yy} = 6y$, $f_{xy} = -3$.
- $(0, 0)$: $D = 0 - 9 < 0$, a saddle. $(1, 1)$: $D = 36 - 9 = 27 > 0$ and $f_{xx} = 6 > 0$, a local minimum.
Answer: saddle at $(0, 0)$, minimum at $(1, 1)$
Common mistake