For differentiable functions that are convex functions on an open convex set and affine functions , the KKT conditions certify a global minimum. Once Lagrange multipliers satisfy them, no extra Slater condition is needed.[ref]
The certificate is a short chain of inequalities. Nonnegative Lagrange multipliers and affine equalities make a convex function. Its zero gradient gives a global minimum at by the first-order optimality condition. For every feasible point ,
The first equality uses feasibility and complementary slackness; the last inequality uses and . Equivalently, the Lagrange dual function attains the same value as the primal objective function, proving strong duality. A strictly convex function makes the primal optimum unique, although the Lagrange multipliers need not be unique.
Affine equality optimization constraints matter: an arbitrary signed multiple of a nonlinear equality can destroy convexity of the optimization Lagrangian. For example, minimizing subject to the affine equality gives and for . This equality Lagrange multiplier is positive for , zero at , and negative for . Completing the square gives the certificate for every real number .
Outside convex optimization, KKT stationarity alone does not certify an optimum: minimizing with no optimization constraints gives the stationary candidate , which is a global maximum. The Lagrangian sufficiency theorem remains applicable whenever a global minimum of the optimization Lagrangian can be proved directly.
Convex optimization Created 2026-09-24 Updated 2026-10-13
Convex optimization is a minimization problem with a convex function as its objective function and a convex set of feasible points. For a finite-valued , the problem is to find with for every . The displayed infimum describes its value even when no minimizing point exists. The two convexity requirements concern different objects: the allowed decisions and the scores assigned to them.
A convex set contains the whole line segment between any two of its points:
A convex function lies below the interpolation of its endpoint values:
Thus mixing two allowed decisions preserves feasibility, and the mixed score is no worse than the same mixture of endpoint scores. The objective function may have flat regions or corners. For a strictly convex function, the second inequality is strict when and .
A useful constraint representation is
where are convex functions on a common convex set , and the equalities are affine functions. Each inequality defines a convex sublevel set; their intersection with and the equality set is a convex set. An equality involving a general convex function need not preserve this geometry: allows and but excludes their midpoint . See Boyd and Vandenberghe, Convex Optimization (2004), §4.2.1 for the standard problem form.
Why local information can certify a global answer. Every local minimum of a convex optimization problem is a global minimum, including minima on the boundary. If a feasible point had , points would remain feasible and have value strictly below for every . Taking arbitrarily small contradicts a local minimum at . This argument explains the special power of convexity: a better distant decision would reveal an improving direction immediately nearby.
If a minimizer exists and the objective function is strictly convex on , it is unique. Two distinct minimizers of value would have a feasible midpoint with value strictly below . Existence is a separate question: the exponential function is strictly convex on , but its infimum is approached only as . Even a bounded convex set need not suffice: on also has unattained infimum . A continuous function on a nonempty compact set attains its minimum by the extreme value theorem.
Nor does strict convexity imply differentiability. For , the squared term gives the strict inequality while the triangle inequality gives the weak inequality for the absolute value. At zero the left and right derivatives are and , so no derivative exists there, although zero is the unique minimizer. Such objectives require subgradients or proximal operators rather than an ordinary gradient at every point.
For a differentiable convex function on an open convex set containing , the constrained first-order condition is
Indeed, the subgradient inequality makes this sufficient; taking the one-sided derivative along feasible line segments makes it necessary. At an interior minimizer, both directions are feasible and the gradient must vanish. At a boundary minimizer it can be nonzero: it only needs to make every feasible direction nondecreasing. See Boyd and Vandenberghe, §§3.1.3 and 4.2.3.
A fully computed nearest-point problem. Project onto the half-space by minimizing half the squared Euclidean distance:
The Hessian matrix is the identity matrix, so the objective function is strictly convex. The unconstrained minimizer violates the inequality. With the convention , the optimization Lagrangian is , where the Lagrange multiplier satisfies . Its Karush-Kuhn-Tucker conditions are
The last two equations give , . The choice is infeasible, so complementary slackness forces . Consequently , giving , and . The Euclidean distance is , rather than the objective function value . The gradient at the answer balances ; the displacement from to is a normal vector to the boundary.
Figure 1.
The nearest feasible point is where an objective contour first touches the half-space boundary
. Details.
There is an exact certificate independent of numerical search. Completing squares gives
For every feasible point, implies . Thus every feasible objective is at least , and attains this bound. More generally the Lagrangian dual problem has objective for . Its maximum is also , illustrating strong duality through matching computed bounds. This makes the example a model for Euclidean projection onto a convex set and the projection step in projected gradient descent.
What the multiplier conditions require. For differentiable convex functions on an open convex set and equalities defined by affine functions, the KKT conditions combine feasibility, , complementary slackness , and stationarity
with unrestricted equality Lagrange multipliers . They suffice to certify a global minimum without an additional regularity assumption: the optimization Lagrangian is convex, stationarity minimizes it, and feasibility with complementary slackness gives the same certificate as above. To guarantee their necessity at an attained finite optimum, a regularity hypothesis suffices: Slater's condition requires some with and . The projection example has the strictly feasible point . See Boyd and Vandenberghe, §§5.2.3 and 5.5.3. This hypothesis guarantees suitable multipliers, not existence of a primal minimizer.
Without regularity, necessity can fail even for convex functions: minimize subject to . The sole feasible point is optimal, but stationarity would require . No Lagrange multiplier works. There is no strictly feasible point, and the gradient of the constraint vanishes at the answer.
The nonconvex contrast. The polynomial has derivative and second derivative . Numerically solving the cubic gives stationary points , , and . Their objective values are respectively , , and , with second derivatives , , and . Hence both outer points are local minima, and the middle point is a local maximum. Since at both ends, its global minimum exists and must be one of the stationary minima: it is the left one. A method stopping at the right local minimum misses a better value by approximately .
Figure 2.
A strictly convex quadratic has one minimum; a tilted quartic has two local minima with different values
. Details.
The practical appeal of convex optimization is the ability to check an answer globally using geometry and matching Lagrangian duality bounds. The projection certificate certifies every feasible alternative at once; the tilted quartic shows why a zero gradient alone cannot do that for general nonlinear optimization.
Historically, an early landmark is Kuhn and Tucker's [ref]. Its §3 explicitly states a regularity hypothesis for inequality-constrained Lagrange multipliers; its discussion of saddle points explains how concave functions support global conclusions for maximization. This documents an early formulation of the multiplier approach; it does not establish sole discovery of today's KKT conditions or of convex optimization as a whole.
Dual of a maximum of affine functions Created 2026-10-07 Updated 2026-10-14
Minimizing over unrestricted is a linear program after introducing an epigraph variable and inequalities . Its optimization Lagrangian has finite infimum over exactly when the nonnegative multipliers sum to one and their weighted slopes sum to zero. The displayed Lagrangian dual problem maximizes the resulting constant lower bound. It identifies the role of a zero-slope convex combination of the affine functions.
Keep the feasible triangle with a squared-distance objective, but add the equation . An equality requires an exact relation, whereas an inequality allows a range. Here the equality selects a line, and intersecting that line with the original feasible region leaves just the line segment from to :
The lower bound comes from ; the upper bound comes from . This is a nonempty closed set even though it has empty interior in the plane. An equality can reduce the dimension of the allowed decisions without making the feasible region empty.
The old optimum violates the added equality. On the surviving line segment, the objective function is
The derivative shows that the unique global minimum is at , giving and value . The nearest point on the entire equality line would be , at with value , but it violates . Both the equality and the original inequalities must hold simultaneously.
Figure 1.
Equality slice of a feasible triangle: the allowed line segment ends at the optimum (2,1), while the nearest point on the entire line is infeasible
. Details.
Use and to fix the multiplier sign convention in the optimization Lagrangian ; the Lagrange multipliers of and are again zero. At , Karush-Kuhn-Tucker conditions hold with and :
The Lagrange multiplier of an equality has no nonnegativity restriction. For an independent global certificate, completing the square gives . On the feasible set, and , so , with equality exactly at .
Karush-Kuhn-Tucker conditions Created 2026-09-24 Updated 2026-10-14
The Karush-Kuhn-Tucker conditions combine membership of the feasible set with a balance of gradients and complementary slackness. For a minimization problem with differentiable functions on an open subset of , write
and use the optimization Lagrangian
A candidate satisfies the KKT conditions exactly when all four requirements hold:
The sign of each inequality Lagrange multiplier follows the chosen convention : on the feasible set, makes the optimization Lagrangian a lower bound on the objective function. An equality contributes zero on the feasible set for either sign of its Lagrange multiplier. Complementary slackness says an inequality with must have , while implies an active constraint. An active constraint can still have zero Lagrange multiplier; the quadratic minimization with a moving upper bound below gives an explicit example.
The name records William Karush's 1939 master's thesis and the 1951 work of Harold W. Kuhn and Albert W. Tucker.[ref]
Lagrange multiplier Created 2026-09-24 Updated 2026-10-13
For continuously differentiable functions on an open subset of , suppose is a local extremum of subject to , with . Then a real number , the Lagrange multiplier, satisfies
The nonzero gradient assumption excludes singular points of the optimization constraint. With several equality optimization constraints, require their gradients to be linearly independent; the gradient of is then a linear combination of them. These are necessary conditions, not automatic certificates of a global maximum or global minimum.
Why can the gradient be nonzero at an optimum? In unconstrained optimization, every direction is available at an interior local extremum, so all directional derivatives vanish and . On a regular equality feasible set, only directions in its tangent space are available to first order. The gradient of must be perpendicular to those directions, so it is parallel to the gradient of . In two dimensions this explains the tangency of their level sets. See MIT, Lagrange multipliers and contour geometry.
For the product example, set and use the optimization Lagrangian
Its partial derivatives give , , and . Hence . At , : increasing both inputs would help, but is infeasible. Along the allowed direction , the directional derivative is zero. The endpoints must still be checked because of the nonnegativity optimization constraints; completing the square establishes the unique global maximum.
The sign convention matters: writing instead gives . Neither equality Lagrange multiplier has a universal nonnegativity requirement. Also, the displayed is unbounded above along , so stationarity here does not meet the global hypothesis of the Lagrangian sufficiency theorem.
The Lagrange multiplier also measures the value of extra resources. For a positive budget , the optimizer is , the optimum value is , and . At , an extra units predicts a gain of ; the exact gain is . This is the envelope theorem in a computed sensitivity analysis: the multiplier translates a binding budget constraint into a marginal benefit.
The chosen quadratic objective function above gives more than an optimal allocation: its Lagrange multiplier predicts how much the best cost changes when the required total changes. For this example,
This is an explicit derivative of a constrained value function and an instance of the envelope theorem. At , one extra small unit of required output costs approximately units per unit of output, in the chosen normalized model. Increasing makes this equality-constrained minimization problem more expensive; it is not a gain from relaxing an upper resource limit. The sign and meaning depend on how the optimization constraint and optimization Lagrangian are written.[ref]
For an actual finite change , the cost difference is exactly
At , the linear approximation predicts , while the exact increase is . The extra comes from the squared term in this polynomial, rather than numerical error. A Lagrange multiplier gives a local sensitivity analysis; treating it as a constant price over a large change generally loses the change in the optimum itself.
Figure 1.
The multiplier is the slope of the optimal cost, with a computable finite-change correction
. Original calculations for . Left: the value function and its tangent at . Right: exact and first-order cost increases for nonnegative changes ; their gap is . The marked is a chosen example, not an observed price or a measured response. Details.
For a smooth optimizer of an equality problem , the short chain rule calculation explains the result: and imply . The differentiability and stationarity assumptions matter: an optimizer can fail to be unique or vary smoothly. The envelope theorem records when this interpretation is justified.
Suppose two adjustable inputs must deliver a prescribed total , and their combined cost is the quadratic form . These are chosen, dimensionless quantities; the coefficient makes concentrating an input in more expensive. Initially allow all real numbers , with the equality optimization constraint . The optimization Lagrangian with our chosen sign is
The stationary point equations give , , and . Consequently
For , the unique global minimum is at , with cost and Lagrange multiplier . Equal allocation would cost ; assigning everything to would cost . At the optimum, the two marginal costs agree: . Moving a little input from one component to the other therefore has zero first-order effect on cost. When , this solution also meets the extra nonnegativity optimization constraints , so it remains optimal with those added.
Figure 1.
The first attainable cost ellipse touches at
. Original chosen quadratic form . Left: level sets, the equality feasible set, and the parallel gradients at the optimum. The blue arrow is so both arrows fit; it is not the full gradient of . Right: substituting makes the unique global minimum visible on the entire feasible line, not just near its stationary point. Details.
Here the Lagrange multiplier equations locate a candidate, and a short independent check certifies it. On the entire feasible set, substitute and use completing the square:
The squared term is nonnegative and vanishes only at . Thus the candidate is the unique global minimum; there is no global maximum on this unbounded feasible set, a line. This separates finding a stationary point from proving optimality. The geometric beauty is that equal marginal costs, parallel gradients, tangency of level sets, and completing the square identify the same allocation.
Lagrangian duality Created 2026-10-06 Updated 2026-10-18
A feasible point gives an upper bound on a minimization problem's best value; a suitable Lagrange multiplier gives a lower bound. Lagrangian duality searches for the strongest bound obtainable this way. Matching bounds certify a global minimum.
Let be a nonempty decision domain on which the objective function and the constraint functions are finite. Write the primal problem and its optimization Lagrangian as
The inequality Lagrange multipliers obey ; the equality Lagrange multipliers are unrestricted real numbers. Define the Lagrange dual function and dual optimal value by
The inner infimum keeps , but releases the displayed optimization constraints. It can be , giving an uninformative lower bound. A different domain changes the bound.[ref]
Here is the entire weak duality argument. For any feasible point and allowable Lagrange multipliers,
The first inequality is the definition of an infimum; the second uses and . Taking the infimum over feasible , then the supremum over allowable Lagrange multipliers, gives . No convexity is used.
The Lagrange dual function is a concave function, since each fixed decision makes an affine function of the Lagrange multipliers.[ref] Explicitly, write and choose two points where is finite. For and every ,
Taking the infimum over proves the defining concavity inequality. Thus even a difficult primal problem supplies a dual with useful geometry, although evaluating can itself be difficult.
For finite optimal values, strong duality means , or zero duality gap. It need not imply dual attainment. For convex optimization, Slater's condition is a sufficient constraint qualification for both when is finite.[ref] The Strong Lagrangian property requires an actual finite Lagrange multiplier achieving equality. Convex perturbation duality interprets such a bound as a supporting slope of the perturbed value function.
Choose the one-variable quadratic program
Without the optimization constraint, the global minimum is at . On the feasible set , write with : then . Hence is the unique primal optimizer and .
For any , completing the square in the optimization Lagrangian gives
The inner minimization problem is over all real numbers, so its unique optimizer is . Therefore
The best lower bound is , attained at . At , the inner optimizer is , which is infeasible for the primal problem; nevertheless is a valid lower bound. At , the inner optimizer is , which is feasible, but is weaker than . Feasibility of an inner optimizer alone does not make the bound exact.
Figure 1.
Lagrangian duality finds the quadratic's exact lower bound at multiplier 6
. Left: the objective function, three optimization Lagrangians, and the shaded feasible set . Dots mark the global minima of the optimization Lagrangians over all real numbers; each yields a horizontal lower bound. Right: the concave Lagrange dual function reaches the primal value . All parameters are chosen for this worked example. Details.
At , the Karush-Kuhn-Tucker conditions reduce to
The last equality is complementary slackness. The strongest certificate is visible without solving another optimization problem: , so every feasible point satisfies
The same Lagrange multiplier simultaneously makes the inner optimizer feasible and removes the slack between and . This is a convex KKT optimality certificate; also verifies Slater's condition.
The domain in the inner infimum is essential. If one mistakenly keeps when computing , the restricted minimum becomes , whereas the actual Lagrange dual function has value . Constraints deliberately retained in are allowed in a Lagrangian relaxation, but that is a different choice of which restrictions to dualize.
Maximization problem 2026-10-06
A maximization problem seeks a feasible point with largest objective value. Its supremum can fail to be attained or be infinite. Negating the objective gives a minimization problem. A global extremum of an optimization Lagrangian can certify a feasible optimum by the Lagrangian sufficiency theorem.
For real not all equal, let , and . The unique minimizer of under , is , with minimum . To prove sufficiency, the optimization Lagrangian with multipliers , is a sum of squares in plus a constant. Equivalently every feasible satisfies .
Suppose the variance is and the sampling cost is , with positive costs, variance coefficients and budget. The Cauchy-Schwarz inequality gives . Equality forces proportional to and a tight budget, proving the displayed unique optimum. The minimal variance is . For the optimization Lagrangian , the multiplier and budget derivative both equal . Therefore a small resource change changes the optimum by . This is a continuous allocation; integer sample-size restrictions define a separate optimization problem.
Taking the natural logarithm of the positive product constraint gives . Its gradient has entries , so the equality constraint qualification holds everywhere on the feasible set. Use the optimization Lagrangian
Stationarity requires , so every . Substitution into the constraint, using , gives . Thus the only candidate for a local minimum is .
To prove global minimality without assuming the inequality to be established, set . The constraint becomes the affine hyperplane , and the objective function becomes . Its Hessian matrix is positive-definite, so is strictly convex. The elementary tangent inequality , with equality only at zero, gives
Equality forces every . Therefore
This point is the unique global minimizer and the only local minimizer. The logarithm change of variables also explains why a multiplicative constraint leads to a convex optimization argument.
With inequalities written as , use the optimization Lagrangian . The Karush-Kuhn-Tucker conditions at are
For any feasible point , the first-order inequalities for a convex function and a concave function give
The last equality uses complementary slackness. Thus is a global minimizer. Slater's condition is useful for necessity and existence of Lagrange multipliers, but is not required for this sufficiency argument once a KKT point is supplied.
The equality-constrained Lagrangian sufficiency theorem says: if is feasible and, for some fixed multipliers, it globally minimizes the optimization Lagrangian over all , then it globally minimizes the objective over feasible . On the feasible set the constraint terms vanish, so the two minimizations agree. No convexity assumption is needed for this version once global minimization of the optimization Lagrangian has been established.
Let , , and . Since
the two constraints are independent. For the squared Euclidean norm objective in the original PDF, take
Completing the square shows that its unique global minimizer has . The constraints become , , giving , . The Lagrangian sufficiency theorem therefore gives
For the value, use . Uniqueness also follows directly: for every feasible , the cross term in vanishes, so the difference of objectives equals that strictly positive sum unless . This is the minimum squared norm under two affine constraints.
Choose the sign convention
This is the optimization Lagrangian; equality-constraint Lagrange multipliers are unrestricted in sign. The Lagrangian sufficiency theorem for minimization says: if satisfies and globally minimizes on for some , then it globally minimizes the constrained objective function. Indeed, for every feasible ,
This is a full global certificate, not merely stationarity. No convexity is needed for the implication, although convexity commonly supplies the required global optimization Lagrangian minimum.
Let , setting , and assume is finite. The Strong Lagrangian property at means that a finite multiplier attains the constrained value as an unconstrained lower bound:
This includes dual attainment, but need not include primal attainment. A non-vertical supporting hyperplane of a value function at has a finite slope and supports the epigraph from below:
If this inequality holds, then for every ,
so . Conversely restricting the infimum to gives , even if the primal infimum is approached only by a sequence. Thus equality holds. In the reverse direction, the Strong optimization Lagrangian identity implies for every . Taking the infimum over yields the supporting inequality, with empty fibres causing no problem. This proves both implications without a convexity or attainment assumption beyond finite .
For the advertising calculation, measure the budget in thousands of pounds by . Requiring the full budget to be spent gives , with . Substitute to reduce the maximization problem to
Its second derivative is , so the unique constrained maximum is obtained by clipping the stationary point:
The upper constraint never clips the interior formula because for . The maximal revenue in thousands of pounds is
Equivalently the revenue Hessian is , negative definite since its leading minor is negative and its determinant is seven. Thus the full-budget affine feasible set has a unique global maximum.
At the two requested budgets,
The units in the middle columns are minutes; the last column is thousands of pounds. Revenue measured in pounds is , so
An additional advertising pound therefore increases optimized revenue locally by £2.50 at the smaller budget and £0.25 at the larger budget. These are marginal rates, not exact finite-difference increments: on the interior branch .
The maximization multiplier in equals on the interior branch. The sign is consistent with the minimization convention above applied to , whose supporting slope is . If spending is only capped by the budget, rather than required to equal it, these same answers apply at the two budgets. Beyond £11,000 the unconstrained maximum is affordable, so further allowed spending is unused and the capped-budget value is constant; forced full spending would instead lower revenue.
First take , the hypothesis required for the printed ratios and their optimization formula to be well-defined. Since ,
The maximizing and minimizing problems therefore have exactly the same solutions.
Let and minimize the separable optimization Lagrangian
Each summand is convex, and its derivative is . Its minimizer is . The sum of these coordinates is continuous in , decreases from infinity to zero, and is strictly decreasing wherever positive. Thus there is a unique for which the sum is . For every feasible , coordinatewise minimization gives ; both constraint terms vanish. The Lagrangian sufficiency theorem proves global optimality, not just a necessary stationary condition.
Put in decreasing order. A positive bet occurs exactly when . Hence the positive bets form an initial block. To interpret the maximal index in the question, one may include any subsequent indices tied at : their bets are zero but their marginal-return equality still holds. Take . Then
For this block, , with the threshold inequalities determining . Zero-probability horses receive zero bets.
Let be the set attaining , and write , . For sufficiently small , the solution uses only , with there and . If the next ratio is , this remains valid when ; if all outside ratios are zero there is no finite threshold. Put . The fixed pool is , so the expected gross payout and net gain are
Tied best horses receive bets proportional to their existing stakes; betting all on one tied horse is not generally optimal for finite . This is pari-mutuel expected-return allocation.
The literal allowance needs qualification. At the printed objective contains and the ordered ratios are undefined. Even defining an unbacked horse's payout to be zero does not always yield an attained optimum. For example, take , , , . For , the normalized expected payout is , tending to as but never attaining it; at that zero-payout convention gives . Thus the proved allocation formula requires positive existing stakes, or an explicitly modified market model. The zero-stake case cannot be justified by silently dividing by zero.
For maximization of subject to and , the Lagrangian sufficiency theorem says: if a feasible globally maximizes , where , and , then globally maximizes over the feasible set. Indeed, at every feasible ,
This requires a global maximum of the optimization Lagrangian; a stationary point alone is not sufficient without additional concavity or another justification.
Put and . If every , the maximum is zero and every feasible vector is optimal. Otherwise set
Since , . For , the optimization Lagrangian is . Its gradient vanishes at because
The function is a strictly convex function for , so is a strictly concave function. Its supporting-hyperplane inequality proves that this stationary point is its global maximum. Complementary slackness and feasibility hold, so the sufficiency theorem applies. Substitution gives
The maximizing vector is unique when . It is the norming vector for Holder inequality, and the value is the corresponding dual norm.
Take to be the ex-dividend stock price: the date- output has already been paid when trading occurs. Receiving units of fruit and selling shares gives the discrete dividend budget equation
The entering holding is chosen with date- information, while and the next holding may use date- information. The output is the consumption good and price numéraire; its stochastic law is exogenous to the individual's price-taking choice.
For the interior differentiable case, attach an adapted Lagrange multiplier to each budget constraint. On a finite horizon, with the terminal holding fixed or its continuation value included, the optimization Lagrangian is
An adapted variation in gives . An arbitrary date- measurable variation in affects two adjacent terms. Its coefficient must have zero conditional mean, so
These are the Euler equations of marginal utility pricing in a dividend economy. If the utility function is merely concave, a supporting slope replaces ; binding consumption or trading restrictions give the corresponding inequalities rather than unconstrained equalities.
With known initial information and , normalize . This is a state-price density for the traded asset. In particular,
The ratio is the stochastic discount factor: payment in a state with greater marginal utility has a higher marginal value. For a priced contingent payoff at , its price is ; pricing arbitrary claims uniquely also requires market completeness. The deflated cumulative gains form a martingale whenever the displayed terms are integrable.
Iterating the Euler equation gives
Under the dividend-price transversality condition and the needed integrability, this becomes the fundamental price
Thus an infinite-horizon price is not automatically just a dividend sum: its terminal term must vanish. Telescoping the individual budget constraints similarly gives
A no-Ponzi lower restriction on this final term gives the consumption budget inequality; its vanishing gives equality. Together with the supporting-line inequality for a concave utility function, the Euler equations and these terminal conditions supply the usual sufficiency argument for an admissible candidate. In an incomplete market, each optimal agent's marginal utility can supply a different state-price density pricing the same traded tree.