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 .
  1. 1
    Partials.
  2. 2
    Critical points: solve simultaneously.
  3. 3
    Case 1: . Point .
  4. 4
    Case 2: and . Point .
  5. 5
    Case 3: and . Point .
  6. 6
    Case 4: and . Solve: . Point .
  7. 7
    Second partials.
  8. 8
    Classify : → 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 .
  1. 1
    Interior: . Subtract: , then . Critical point with .
  2. 2
    Boundary: parameterize .
  3. 3
    Express as .
  4. 4
    Range: .
  5. 5
    Combine 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.
  1. 1
    Minimize subject to via Lagrange multipliers.
  2. 2
    Set .
  3. 3
    Three equations + constraint, four unknowns. Manipulate to find ratios.
  4. 4
    From the equations: (after careful manipulation), giving , .
  5. 5
    Substitute into constraint.
  6. 6
    Solve 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.

Related topics