Free and Constrained Optimization
Interior extrema need . Classify with : with is a MIN, with a MAX, and a SADDLE — the genuinely new 2-variable phenomenon, downhill one way and uphill another.
To optimize subject to , solve : at the best point the level curve of is TANGENT to the constraint, so the gradients are parallel. Maximizing on gives — AM–GM, rediscovered by calculus.
Maximize on : Lagrange forces , giving and the maximum . In general on a radius- circle peaks at — Cauchy–Schwarz with a geometric proof.
Prices in economics, shapes of soap films, maximum-likelihood estimates in statistics, minimum-energy configurations in chemistry — all sit where a gradient vanishes, usually subject to constraints. Lagrange multipliers even carry meaning: is the "shadow price," how much the optimum improves per unit of loosened constraint.
Maximize the area of a rectangle with (a river covers one side). Work: Lagrange or substitute: , , , , area . Note the pattern: the constrained side gets half its "budget" — Lagrange conditions encode it automatically.
Proofs & Why It Matters
Near a critical point, Taylor gives — a quadratic form . Complete the square: with .
If both terms share the sign of (a definite bowl: min or max); if the two terms disagree, so takes both signs — a saddle.
Let be any curve inside the constraint surface through the extremum at . Then has an extremum at , so .
Thus is orthogonal to EVERY tangent direction of the constraint — but the vectors orthogonal to that whole tangent plane are exactly the multiples of . Hence .
Going Deeper: Explanations & Worked Problems
At an interior maximum or minimum, every slice through the point is a one-variable function with an extremum there, so every directional derivative vanishes — hence .
But the converse fails in a way one variable never shows: at a SADDLE, the surface rises along one line and falls along another, with all the same ( at the origin is the model: uphill along the -axis, downhill along the -axis). That is why the -test exists: near a critical point, is governed by its quadratic part , and decides whether that quadratic keeps one sign (a genuine bowl or dome) or changes sign (a saddle). And remember the boundary: on a closed region, extrema can sit on the edge with — that is precisely the situation Lagrange multipliers handle.
Step 1 — set the gradient to zero: gives ; gives . Critical points: and .
Step 2 — second partials: , , , so .
Step 3 — test : and — both slice curvatures upward: a LOCAL MIN, value .
Step 4 — test : — a SADDLE, no extremum, even though the gradient vanishes.
Step 5 — global view: as , drags , so the local min at is NOT global — a reminder that the -test speaks only about a neighborhood.
Step 1 — set up : , , so , giving and .
Step 2 — eliminate : divide the equations: , so .
Step 3 — enforce the constraint: gives , , hence the candidates and .
Step 4 — evaluate at each: and . The constraint circle is closed and bounded, so these are the global max and min: maximum .
Step 5 — see it geometrically: the level lines are parallel lines sliding outward as grows; the largest still touching the circle touches it TANGENTLY, at the point where the radius is parallel to — which is exactly what Step 1 said.