How is the Lagrange dual function defined for a constrained optimisation problem, why is always concave even when the primal problem is non-convex, and how do you prove weak duality ()?
Linear algebra and optimisation, Duality
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can define the dual function cleanly, explain its universal concavity, and give the two-line proof of weak duality.
Key idea
For each fixed , the Lagrangian is an affine function of . Taking the pointwise infimum over yields a concave function that always lower-bounds the primal optimal value .
Steps
- Write the primal problem subject to () and (), with optimal value . Define the Lagrangian , where and are the inequality and equality Lagrange multipliers.
- Define the Lagrange dual function: .
- Show is always concave: for each fixed , is linear (affine) in , and therefore concave in . The pointwise infimum of any family of concave functions is concave—regardless of whether are convex.
- Prove weak duality: let be any primal-feasible point (, ) and let (entrywise). Then and , so .
- Take the infimum over on the left: . Since this holds for every feasible and every , taking the infimum over and supremum over gives .
Common mistakes
- Forgetting the dual constraint . Without , the term can be positive and weak duality fails.
- Thinking weak duality requires convexity of the primal problem. Weak duality holds for every optimisation problem, convex or non-convex.
How long your answer should be
Half a page; 4–5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Linear algebra and optimisation: What is a subgradient of a convex function at a non-differentiable point, and what is the subdifferential of at ? Why can the subgradient method increase the objective on some steps, and why must its step size decay instead of staying constant?
Next in Linear algebra and optimisation: How do step decay, decay and cosine annealing learning-rate schedules differ, and why do the Robbins–Monro conditions (, ) require the step size to decay neither too fast nor too slow for SGD convergence?