Limiting case: constraint budget → moves the answer smoothly
Ex 7
H
Word problem (real units) with an active budget
Ex 8
I
Exam twist: non-convex, KKT catches a maximum too
Ex 9
The rows cover: every activity combination (inactive / one active / two active), both multiplier signs, the failure of the qualification, a limit, a real-world model, and a non-convex trap.
Lagrangian.L=x2+y2+μ(x+y−2)+λ(0.5−x).
Why this step? Equality gets a free-sign μ; inequality gets λ≥0.
Guess g inactive ⇒ λ=0.
Why this step? The wire alone might already hold the ball where x>0.5.
Stationarity.2x+μ=0,2y+μ=0⇒x=y. With x+y=2: x=y=1.
Why this step? On the wire, both partials give the same μ, forcing symmetry.
Multiplier & checks.μ=−2x=−2. Check g=0.5−1=−0.5≤0 ✓ (fence untouched). Slackness λg=0 ✓.
Why this step? We assumed g inactive in step 2; that assumption is only legitimate if the solved point actually satisfies g<0 — so we must plug back and confirm, and confirm slackness λg=0 holds automatically since λ=0.
Wrong guess: g1 active ⇒ x=5, λ2=0.
Why this step? To demonstrate the self-correcting flag the parent note warns about.
Stationarity.L=(x−3)2+λ1(x−5)+λ2(−x), so 2(x−3)+λ1−λ2=0. At x=5,λ2=0: 2(2)+λ1=0⇒λ1=−4.
Why this step? Solving the assumed system gives the multiplier.
Read the flag.λ1=−4<0violates dual feasibility — this active-set is impossible. Discard it.
Why this step? A negative inequality multiplier is the mathematical scream "this fence would have to pull, but fences only push."
Correct guess: both inactive.λ1=λ2=0⇒2(x−3)=0⇒x=3. Feasibility 0≤3≤5 ✓, slackness ✓.
Why this step? Having ruled out g1 active, the only remaining candidate active-set that respects λ≥0 is "no fence active"; we test it and it passes all four KKT conditions, so it is the genuine optimum.
Lagrangian.L=(x+2)2+(y+3)2+λ1(−x)+λ2(−y).
Why this step? Two inequalities, both in ≤0 form.
Guess both active ⇒ x=0,y=0.
Why this step? Both fences point toward the origin from the target; a corner is the natural rest.
Stationarity.∂x:2(x+2)−λ1=0⇒λ1=2(0+2)=4; ∂y:2(y+3)−λ2=0⇒λ2=6.
Why this step? Each active fence supplies its own push λi to cancel that component of ∇f.
Checks.λ1=4≥0, λ2=6≥0 ✓. Both gi=0 so slackness ✓.
Why this step? The "both active" guess is only valid if both multipliers come out non-negative (dual feasibility); we must confirm each λi≥0, otherwise a negative one would flag the corner as the wrong active-set.
Active gradients at (0,0). Both constraints are active there (g1=g2=0). ∇g1=(−3x2,1)=(0,1) and ∇g2=(−3x2,−1)=(0,−1).
Why this step? KKT stationarity needs ∇f to be a non-negative combination of these.
Stationarity attempt.∇f=(1,0). We need (1,0)+λ1(0,1)+λ2(0,−1)=0.
Why this step? Write out the required cancellation componentwise.
Contradiction. The x-component reads 1+0=0 — impossible. No λ1,λ2 exist.
Why this step? Both active gradients are vertical (0,±1); they are linearly dependent and span no horizontal direction, so they can never cancel ∇f's horizontal 1.
Diagnosis. LICQ fails: ∇g1=−∇g2 are not linearly independent (each is a scalar multiple of the other). Hence KKT are not necessary here even though (0,0) is the true optimum.
General solve (active). As in Example B: x=y=c/2, λ=c.
Why this step? The geometry is identical; only the boundary line moved.
Multiplier meaning.λ=dcdf∗: here f∗=2(c/2)2=c2/2, so dcdf∗=c=λ.
Why this step? The multiplier is the sensitivity — the marginal cost of tightening the budget by one unit (the bridge to Duality and the Dual Problem).
Limit c→0+.x=y→0, λ→0: the fence becomes tangent to the free minimum and its push vanishes smoothly — a graceful hand-off from active to inactive.
Why this step? This is exactly complementary slackness in a limit: λg→0 from both factors shrinking.
Case c<0. Now the origin already satisfies x+y≥c; the constraint is inactive, λ=0, answer (0,0), f=0.
Why this step? Negative budget is a fence behind the ball — irrelevant.
Model. Minimize f=x2+2y2 s.t. g:6−x−y≤0. (Ignore x,y≥0 for now; we'll check.)
Why this step? Translate "at least 6 tonnes" into ≤0 form.
Lagrangian & stationarity.L=x2+2y2+λ(6−x−y). ∂x:2x−λ=0, ∂y:4y−λ=0.
Why this step? Balance marginal cost of each product against the same contract push λ.
Guess active (6−x−y=0). From 2x=λ=4y⇒x=2y. Then 2y+y=6⇒y=2,x=4.
Why this step? The contract is demanding; the cheapest feasible plan sits on the boundary.
Multiplier & checks.λ=2x=8≥0 ✓. x=4≥0,y=2≥0 ✓. Slackness ✓.
Why this step? The whole "active" guess only stands if the multiplier is non-negative and the produced amounts are physically valid (no negative tonnage); we plug the solved values back to confirm feasibility, dual feasibility, and slackness before trusting the plan.
Interior stationary point.L=−x2+λ1(x−1)+λ2(−x−1). Guessing both inactive (λ1=λ2=0): f′(x)=−2x=0⇒x=0. Feasibility −1≤0≤1 ✓, slackness ✓ — so x=0passes all four KKT conditions.
Why this step? To show that KKT can hold at a point that is not a minimum.
Identify x=0.f(0)=0, but nearby f(±0.1)=−0.01<0: so x=0 is a local maximum of f, yet it passed KKT.
Why this step? Because the problem is non-convex, KKT are only necessary, not sufficient — they cannot tell min from max (the parent-note mistake made concrete).
Boundary case x=1 (fence g1 active). Set g1=0⇒x=1, λ2=0. Stationarity −2x+λ1−λ2=0⇒−2(1)+λ1=0⇒λ1=2≥0 ✓. Slackness λ1g1=0 ✓ (since g1=0).
Why this step? Test the right-hand corner as its own active-set; it must satisfy dual feasibility to count as a KKT point.
Boundary case x=−1 (fence g2 active). Set g2=0⇒x=−1, λ1=0. Stationarity −2(−1)+0−λ2=0⇒2−λ2=0⇒λ2=2≥0 ✓. Slackness ✓.
Why this step? By symmetry the left corner is the mirror case; confirm it too is a valid KKT point.
Decide by comparing values. KKT-satisfying points are x∈{−1,0,1} with f={−1,0,−1}. Pick the smallest: x=±1, f=−1.
Why this step? When KKT are not sufficient, they only list candidates — you must evaluate f at every KKT point and choose the smallest to find the true minimum.
A interior-inactive · B one-active (λ>0) · C equality with μ<0 · D wrong-guess flag · E two-active corner · F LICQ failure · G limiting budget · H word problem · I non-convex catches a max. Every combination of activity, both signs, degeneracy, a limit, real units, and the convex-vs-non-convex distinction.
Recall Where does the multiplier "sensitivity" idea lead next?
λ=df∗/dc is the seed of Duality and the Dual Problem and underlies why Support Vector Machines read their support vectors off active KKT constraints. Optimization method: Gradient Descent and Projected Gradient.