What is strong duality, what does Slater's condition state, and how do you derive the Lagrange dual of min⁡x∈R2x12+x22 subject to x1+x2≥2 and verify that the duality gap is zero?

Linear algebra and optimisation, Duality
Level L3 Intermediate. Length Long. Nature Mat Mathematical.

What's being asked

Whether you know when weak duality becomes an equality and can derive an explicit dual problem and check strong duality.

Key idea

Strong duality means the dual optimal value equals the primal optimal value (d∗=p∗). For convex problems, Slater's condition guarantees strong duality whenever there exists at least one strictly feasible point satisfying every inequality constraint strictly (fi(x)<0).

Steps

  1. Define strong duality (d∗=p∗, i.e. zero duality gap p∗−d∗=0) and state Slater's condition: for a convex problem min⁡f0(x) subject to fi(x)≤0 and Ax=b, if there exists a strictly feasible x in the relative interior of the domain (all of Rd when unconstrained by domain) with Ax=b and fi(x)<0 for all non-affine fi (and plain feasibility suffices when all constraints are affine), then strong duality holds.
  2. Rewrite the primal constraint in standard ≤0 form: 2−x1−x2≤0. Slater's condition holds trivially because the constraint is affine (and (2,2) is strictly feasible with 2−4=−2<0).
  3. Form the Lagrangian for λ≥0: L(x1,x2,λ)=x12+x22+λ(2−x1−x2).
  4. Compute the dual function g(λ)=inf⁡x1,x2L(x1,x2,λ): set ∂L∂x1=2x1−λ=0 and ∂L∂x2=2x2−λ=0, giving x1=x2=λ/2. Substituting back yields g(λ)=λ24+λ24+λ(2−λ)=2λ−λ22.
  5. Solve the dual problem max⁡λ≥0(2λ−λ22): setting g′(λ)=2−λ=0 gives λ∗=2≥0, with d∗=g(2)=4−2=2.
  6. Verify zero duality gap: at λ∗=2, x∗=(λ∗/2,λ∗/2)=(1,1) is primal feasible (1+1=2) with f0(1,1)=12+12=2. By weak duality, 2=d∗≤p∗≤f0(1,1)=2, so p∗=d∗=2 and the duality gap is zero.

Common mistakes

How long your answer should be

Half to one page; 6 minutes.

Last checked on 4 December 2026.

Read this

Previous in Linear algebra and optimisation: How do step decay, 1/t decay and cosine annealing learning-rate schedules differ, and why do the Robbins–Monro conditions (∑t=1∞ηt=∞, ∑t=1∞ηt2<∞) require the step size to decay neither too fast nor too slow for SGD convergence?
Next in Linear algebra and optimisation: Solve min⁡x,y(x−3)2+(y−2)2 subject to x+y≤2 and y≥0 using the KKT conditions. Which constraint is active at the optimum, and why does the unconstrained minimum fail?