Topic 12 / 17advanced
Optimization
Find local maxima, minima, and saddle points of $f(x, y)$ using critical points and the second derivative test. Find absolute extrema on closed bounded regions.
To optimize a function of two variables, find **critical points** where , then classify them with the second derivative test. For absolute extrema on a closed, bounded region, also check the boundary.
Critical points
Set and simultaneously. Solutions are critical points. Local extrema can only occur at critical points or where partials don't exist.
Second derivative test
At a critical point , compute the discriminant
- : local minimum.
- : local maximum.
- : saddle point.
- : test inconclusive.
Key takeaways
- First check the sign of .
- If , then tells max vs. min.
- ⇒ saddle, regardless of .
Absolute extrema on closed bounded regions
Continuous function on closed bounded absolute max and min exist (Extreme Value Theorem). Method:
1. Find interior critical points (set ).
2. Find extrema on each piece of the boundary (parametrize, reduce to 1D problem).
3. Compare all candidate values; pick the largest and smallest.
Strategy tips
- Don't forget to check **corners** of the boundary as candidates.
- Lagrange multipliers are useful for constrained optimization on smooth boundaries.
Lagrange multipliers (for advanced constraint problems)
To extremize subject to , set and solve together with the constraint. Each solution is a candidate; compare values.
Worked examples
Example 1
Find and classify the critical points of .
- 1Partials.
- 2Critical points: solve simultaneously.
- 3Case 1: . Point .
- 4Case 2: and . Point .
- 5Case 3: and . Point .
- 6Case 4: and . Solve: . Point .
- 7Second partials.
- 8Classify : → saddle. : → saddle. : similar saddle. : , and → local **max**.
Answer
Saddle points at . Local max at with .Example 2
Find absolute max and min of on the disk .
- 1Interior: . Subtract: , then . Critical point with .
- 2Boundary: parameterize .
- 3Express as .
- 4Range: .
- 5Combine with interior value 0. Min = 0, max = .
Answer
Absolute min: 0 at . Absolute max: on the boundary.Example 3
Find the points on the surface closest to the origin.
- 1Minimize subject to via Lagrange multipliers.
- 2Set .
- 3Three equations + constraint, four unknowns. Manipulate to find ratios.
- 4From the equations: (after careful manipulation), giving , .
- 5Substitute into constraint.
- 6Solve and verify minimum (full algebra omitted; symmetric multiple solutions exist).
Answer
Closest points have , , (with appropriate signs). Compute numerically as needed.Interactive visualizations
Loading visualization…
Surface . Look for the local max near and saddles at .
Formulas in this topic
Critical points
Solve simultaneously.
Discriminant
Used in second derivative test.
Lagrange multiplier condition
For constraint g(x, y, z) = c.