Constrained Contour Tangency & Gradient Alignment Inspector
Scrub along constraint path g(x,y) = c and observe where ∇f × ∇g = 0.
Walk along a constraint curve g(x,y) = c until its normal ∇g aligns parallel with the objective gradient ∇f = λ∇g.
Minimum-weight structural design under stress constraints, portfolio optimization, and maximum entropy.
When motion is restricted to a constraint curve , why must the objective gradient and constraint gradient line up parallel at an extremum?
Picture walking along the constraint curve . If still has any nonzero push tangent to the curve, stepping slightly forward or backward changes ; therefore, at a constrained extremum, must be perpendicular to the constraint, aligning collinearly with the constraint normal: .
Always check the regularity hypothesis (any constraint cusp or boundary endpoint where must be tested separately). In practice, equals the sensitivity rate showing how fast the optimal value shifts when constraint budget relaxes.
When our movement is restricted to a constraint path g(x,y) = c, why must the objective contour f(x,y) = k be tangent to the constraint curve at an extremum?
Scrub parameter t along the constraint curve or click Snap to Max / Snap to Min to observe ∇f aligning collinearly with the constraint normal ∇g while df/ds = ∇f · T vanishes.
Watch for constraint cusps where ∇g = 0 (regularity fails and must be checked separately alongside endpoints). Next, Chapter 3.1.5 examines multivariable limits and exact differentiability criteria before we classify unconstrained extrema in Chapter 3.1.8.
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
Any smooth curve on the constraint satisfies . At a constrained extremum , is also orthogonal to every constraint tangent, forcing .
Because gives , the multiplier measures the exact marginal rate of change of the optimal objective when relaxing constraint .
On , minimizing hits where so no solves ! Always check points and boundary endpoints.
Scrub along constraint path g(x,y) = c and observe where ∇f × ∇g = 0.
Walking along the circular constraint x² + y² = 1.2², f(x,y) reaches its constrained maximum (1.20) and minimum (-1.20) at the exact points where the straight contour line f = k is tangent to the circle (∇f ∥ ∇g).