Mathematics · Article
Convex optimisation and optimality conditions
Use convex geometry, subgradients, duality and exact certificates to distinguish attained optima from plausible candidates, then derive basic projected and proximal convergence bounds.
Back to MathematicsAfter reading, you can
- Define convexity with its effective domain and distinguish convexity, strict convexity, strong convexity and attainment.
- Derive first-order, Hessian, epigraph, composition and perspective tests with their actual domain assumptions.
- Use subgradients, qualified sum rules, outward normals, projections, proximal maps and conjugate gaps to build global supporting certificates.
- Derive weak duality and convex KKT sufficiency, then explain the qualification and attainment assumptions needed for necessity and matching multipliers.
- Check exact second-order-cone, semidefinite, entropy and sparse least-squares certificates, including rank and scaling conventions.
- Prove basic projected and proximal gradient value bounds and quantify an approximate KKT point using a known strong-convexity constant.
From convex geometry to a global certificate
A convex optimisation model can turn local geometry into global information. A supporting plane gives a lower bound, and a feasible point gives an upper bound. The central questions remain separate: does a minimum exist, can there be more than one minimiser, and does a proposed certificate actually prove the value? Domains, constraint signs and qualifications decide which conclusion is justified.
This lesson develops the chain from convex functions and epigraphs through subgradients, normal cones, projections and proximal maps. It then derives conjugate and Lagrangian bounds, Slater and KKT results, cone certificates, entropy allocations and sparse least-squares pairs. Counterexamples show why convexity alone need not give attainment, zero duality gap or a finite multiplier.
Engineering models use quadratic effort and norm constraints; resource allocation uses affine balances and entropy; computing uses sparse penalties and matrix cones. The same certificate language helps in each setting, while the meaning and units of the model must still be checked. The final projected and proximal algorithms use exact updates, a stated gradient bound and an attained optimum to obtain their value estimates.
Convex feasible sets and global decisions
Suppose the common decision domain D is convex, each inequality function g_i is convex on D, and the equality constraints are affine Ax=b. If x, z are feasible, then g_i((1-theta)x+theta z)<=(1-theta)g_i(x)+theta g_i(z)<=0 for 0<=theta<=1. Affinity preserves the equality as well. Thus the feasible set is convex. Nonlinear equalities do not have this general property: the equation x^2=1 already gives a disconnected feasible set.
Let f also be convex on the feasible set and suppose xstar is a local minimum in its relative feasible topology. If some feasible z had f(z)<f(xstar), the feasible points x_theta=(1-theta)xstar+theta z would approach xstar as theta decreases to zero. Convexity gives f(x_theta)<f(xstar) for every 0<theta<=1, contradicting the local minimum for sufficiently small theta. Therefore every local minimum is global.
The proof does not require an interior feasible point, differentiability or a Hessian. It does require the segment between the two candidate decisions to remain feasible and the objective inequality to hold along it. On the discrete set {-1, 1}, each isolated point is a local minimum in the relative topology for every function, so the local-to-global conclusion can fail even for a linear objective.
Globality is conditional on the stated convex model, not a claim that every physical design or fitted cost is convex. Feasibility, attainment and numerical accuracy remain separate questions. A convex objective can have no minimizer, and a highly accurate stationary computation can still be infeasible. The rest of the lesson develops explicit conditions and checkable bounds rather than treating the word convex as a complete certificate by itself. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81). Convexity applies to the feasible segments and the objective on its declared domain. The local-to-global argument is proved above.
Convex functions, epigraphs and Jensen
For an extended-real function f, its effective domain consists of points with finite value. A proper function is never -infinity and has at least one finite value. Convexity means a convex domain and f((1-theta)x+theta z)<=(1-theta)f(x)+theta f(z) for finite-domain points and 0<=theta<=1. Its epigraph is epi f={(x, t): f(x)<=t}; the vertical coordinate records an upper bound on the function, not a second decision with unspecified meaning.
If f is convex, two epigraph points (x, a), (z, b) satisfy f((1-theta)x+theta z)<=(1-theta)a+theta b, so their convex combination remains in the epigraph. Conversely, take the epigraph points (x, f(x)), (z, f(z)) for finite values. Epigraph convexity gives exactly the two-point function inequality. No closedness of the epigraph was needed for this equivalence; convex and closed are distinct properties.
Repeatedly combine two points to obtain the finite Jensen inequality f(sum_i alpha_i x_i)<=sum_i alpha_i f(x_i) for alpha_i>=0 and sum alpha_i=1. An induction groups the first k-1 positive weights into their normalized mean, then applies the two-point inequality with the last weight. Zero-weight points may be omitted, avoiding an undefined 0 times infinity expression. If a positive-weight value is infinite, the extended inequality supplies no finite upper estimate.
A finite convex combination is a mathematical average; interpreting its weights as probabilities requires that separate model. Strict convexity makes the two-point inequality strict for distinct points and interior weights, while strong convexity subtracts a quantitative quadratic term. Neither epigraph convexity nor Jensen alone guarantees that an infimum on an unbounded or nonclosed feasible domain is attained. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81). Keep the effective domain and the extended-value convention explicit when passing between Jensen inequalities and epigraph geometry.
Strict convexity and its limitation
Let C be convex and suppose f is strictly convex on C. If distinct feasible x, z were both minimizers with value pstar, their midpoint would satisfy f((x+z)/2)<(f(x)+f(z))/2=pstar. This contradicts minimality. Hence there is at most one minimizer. The argument proves uniqueness conditional on existence; it does not construct a feasible minimizing point.
For example, f(x)=exp(x) is strictly convex on R because its second derivative is positive. Its infimum is 0 as x tends to -infinity, but exp(x)>0 for every finite x. Thus there is no minimizer. A strictly convex objective can also be posed on an open feasible interval whose infimum occurs only at an excluded endpoint. A statement that strict convexity always gives a unique solution omits the existence premise.
Existence can be obtained from a separate appropriate condition, for example a nonempty compact feasible set and a lower-semicontinuous objective finite somewhere there. A proper closed coercive convex objective also has an attained minimum under its usual finite-dimensional domain assumptions. These are the attainment principles established earlier, not consequences of the strict midpoint inequality alone.
Strict convexity of an objective can be lost after an affine representation with null directions: two auxiliary vectors may describe the same original decision. Conversely, a quadratic need only be strictly convex along feasible equality directions to produce a unique constrained decision. Keep the domain and the representation with a uniqueness claim. Multiple multipliers are still possible at one unique optimum because multiplier identifiability is a different property. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Local minima and existence of solutions](https://ocw.mit.edu/courses/6-253-convex-analysis-and-optimization-spring-2012/69136e797daa75d9481c21d1f6b84a31_MIT6_253S12_lec05.pdf#page=11). Strict convexity gives at most one minimiser. The existence conditions are separate assumptions and must be checked for the actual problem.
Strong convexity and a quantitative certificate
Use the convention that f is mu-strongly convex for mu>0 when f(x)-(mu/2)||x||^2 is convex on its domain. Equivalently, its two-point inequality subtracts (mu/2)theta(1-theta)||x-z||^2 from the weighted endpoint values. This identity follows by expanding the squared norm of a convex combination. It states both convexity and a uniform amount of curvature in the chosen Euclidean units.
Suppose xstar is an attained minimizer over a convex feasible set C. Apply strong convexity between xstar and a feasible x, and use f(xstar)<=f((1-theta)xstar+theta x). Cancel the common terms and divide by theta>0 to obtain f(x)-f(xstar)>=(mu/2)(1-theta)||x-xstar||^2. Let theta decrease to zero. Thus a certified objective gap epsilon gives ||x-xstar||<=sqrt(2epsilon/mu), and the minimizer is unique.
If f is differentiable on the whole relevant space, the strong first-order bound is f(z)>=f(x)+grad f(x) dot(z-x)+(mu/2)||z-x||^2. Minimizing its right side over all z gives a valid lower bound f(x)-||grad f(x)||^2/(2mu) on the unconstrained minimum. For constrained problems the raw gradient need not vanish at the optimum; the later normal-cone or KKT residual is the appropriate quantity. Do not replace it by an unconstrained stationary test.
The positive diagonal Hessian has strong-convexity modulus m equal to its least eigenvalue. Minimize the global quadratic lower support f(x)+g·d+(m/2)||d||² in d to obtain f(x)−f*≤||g||²/(2m). Equality holds here when the displacement uses only directions with eigenvalue m, including every direction for the isotropic case.
| Quantity | Exact result |
|---|---|
| Exact minimizer | (0, 0) |
| Eigenvalues / modulus | (1, 3) / 1 |
| Signed displacement | (2, 1) |
| Distance squared | 5 |
| Gradient | (2, 3) |
| Gradient norm squared | 13 |
| Actual objective gap | 7/2 |
| Lower distance-based bound m||x−x*||²/2 | 5/2 |
| Upper gradient-based bound | 13/2 |
| Upper inequality attained | No |
| Exact Euclidean distance | √5 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 1 |
| b | 3 |
| u | 0 |
| v | 0 |
| x | 2 |
| y | 1 |
Strong curvature also needs a proper domain for existence. A strongly convex formula restricted to an open set may still have an excluded minimizer. For a proper closed strongly convex function, the affine-minorant and quadratic growth argument gives coercive sublevels and finite-dimensional attainment. The parameter mu changes under a coordinate rescaling, so a distance estimate must use the same norm and units as the asserted strong-convexity inequality. Related reading: [Strong convexity and smooth quadratic bounds](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=473); [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81). The factor mu/2 fixes the curvature convention. Quantitative conclusions use that known bound on every required feasible segment.
The first-order global inequality
Let f be differentiable on an open convex domain D. If f is convex, then for x, z in D and 0<t<=1, f(x+t(z-x))<=f(x)+t(f(z)-f(x)). Divide by t and let t decrease to zero. Differentiability gives grad f(x) dot(z-x)<=f(z)-f(x). Thus every tangent affine function lies below f throughout D, not merely in an infinitesimal neighborhood.
Conversely, assume that global first-order inequality for all x, z in D. Put w=(1-theta)x+theta z. Apply the assumed inequality at w to x and to z, then multiply by 1-theta and theta and add. The gradient terms cancel because (1-theta)(x-w)+theta(z-w)=0. The remaining inequality is f(w)<=(1-theta)f(x)+theta f(z), so f is convex.
For a differentiable convex objective on a convex feasible set, C, the point xstar is optimal if grad f(xstar) dot(z-xstar)>=0 for every z in C. The tangent lower bound proves sufficiency. Necessity follows by taking the one-sided derivative along each feasible segment from an optimum. This condition allows a nonzero gradient at a boundary optimum and leads directly to the outward normal-cone convention used later.
Openness in this statement ensures the ordinary ambient gradient is defined. On a lower-dimensional affine domain, a relative gradient and its tangent space must be specified instead. On a nonconvex domain, segments may leave D and neither the proof nor the conclusion applies as written. A first-order inequality is a global assertion about every admissible comparison point, not an automatic consequence of a small computed gradient at one point. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81). The supporting inequality is global on the stated convex domain. At a constrained boundary, an outward normal can balance a nonzero gradient.
The Hessian criterion and domain
For f in C2 on an open convex domain, fix a line segment x+t d. Its second derivative is d^T Hess f(x+t d)d. If the Hessian is positive semidefinite everywhere, this scalar derivative is nonnegative. The one-dimensional derivative is therefore nondecreasing, and its tangent-line inequality integrates to the convexity inequality on each segment. This proves sufficiency without sampling finitely many Hessians.
For necessity, convexity gives f(x+h d)+f(x-h d)-2f(x)>=0 for sufficiently small h. Divide by h^2 and use the second-order expansion as h tends to zero. The limit is d^T Hess f(x)d>=0 for every direction d, which is precisely positive semidefiniteness. Openness ensures both nearby points exist in the domain; convexity ensures the segment argument is legitimate.
A positive-definite Hessian everywhere is sufficient for strict convexity along nonconstant segments, but is not necessary: the strictly convex scalar function x^4 has second derivative 0 at the origin. A uniform bound Hess f>=mu I gives mu-strong convexity in the stated norm; pointwise positivity alone need not provide any positive uniform mu. The exponential has positive curvature everywhere while that curvature tends to zero at one end of R.
Checking f(x)=1/x^2 on R without 0 illustrates the domain restriction. Its second derivative is positive at every point in that set, but the domain is not convex, so it is not a convex function on that whole domain under the standard definition. Its restrictions to either positive or negative half-line are convex. A numerical Hessian test at a few interior points also cannot prove the required everywhere condition or restore a missing convex-domain premise. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81). The domain condition is independent of the Hessian sign. Strict convexity need not give positive-definite curvature at every point.
Composition and affine changes
If f is convex and x=Tz+a is affine, then f(T((1-theta)z+theta w)+a)=f((1-theta)(Tz+a)+theta(Tw+a)) obeys the convexity inequality whenever the two images lie in dom f. The preimage domain is convex. T need not be square or invertible for convexity preservation, but a null direction of T can destroy strict convexity or uniqueness in the auxiliary z coordinates.
If phi is convex and nondecreasing on an interval containing the relevant values, and f is convex with the required range, then phi(f((1-theta)x+theta z))<=phi((1-theta)f(x)+theta f(z))<=(1-theta)phi(f(x))+theta phi(f(z)). The first inequality uses monotonicity and the second uses scalar convexity. Both are needed; the words convex composition alone omit a real hypothesis.
For a counterexample, take f(x)=x^2 and phi(t)=(t-1)^2. Both are convex, but phi is not nondecreasing over the whole nonnegative range of f. Their composition (x^2-1)^2 has second derivative -4 at 0 and is not convex. Domain restrictions to a range on which phi has the right monotonicity can change the conclusion, and should be stated explicitly rather than inferred from the function names.
Nonnegative sums of convex functions are convex by adding their defining inequalities. Negative coefficients generally reverse curvature. An invertible affine coordinate map preserves feasible optimization values after the original objective and domain are transformed consistently, but norm-based curvature and numerical conditioning may change. These algebraic composition rules help establish a convex model; they are not a claim that an arbitrary nonlinear physical relation becomes convex under an undocumented substitution. Related reading: [Composition, partial minimisation and perspectives](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=97). Monotonicity and the range/domain conditions justify the two composition inequalities. Convex outer and inner functions alone are insufficient.
Perspectives and scale
Define g(x, t)=t*f(x/t) for t>0 and x/t in dom f. For two such points (x, t), (z, s), let r=(1-theta)t+theta s>0. The normalized argument of their combination is ((1-theta)x+theta z)/r=((1-theta)t/r)(x/t)+(theta s/r)(z/s). These nonnegative weights sum to 1, so the domain condition is preserved by convexity of dom f.
Apply convexity of f to that weighted argument and multiply by r. This gives g((1-theta)x+theta z, r)<=(1-theta)t f(x/t)+theta s f(z/s), which proves joint convexity. The scale is part of the variable: the proof is not simply separate convexity in x at a fixed t. The positive-scale domain and exact weights are essential to the argument.
For f(u)=u^2, the perspective is x^2/t. Its Hessian quadratic form on a direction (h, k) is (2/t)(h-(x/t)k)^2>=0. The null direction along a positive scaling ray explains why a strictly convex f does not make its perspective jointly strictly convex on the whole cone. Indeed g(alpha x, alpha t)=alpha g(x, t), so equality holds between proportional points.
At t=0 the displayed formula is undefined. A closed convex extension must be derived, not assigned an arbitrary value. For the quadratic perspective, the closed extension is 0 at (0, 0) and +infinity at (x, 0) with x!=0. Other functions have their own recession-dependent extensions. The open-domain constraint x^2/t<=0 with t>0 forces x=0 but has no strictly feasible point, an important later example of how perspective convexity and constraint qualification differ. Related reading: [Composition, partial minimisation and perspectives](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=97); [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81). The perspective formula uses t>0 and x/t in the original domain. A closed boundary extension is a separate statement.
Suprema and partial minimization
For a family of convex functions f_i, define F(x)=sup_i f_i(x) on its effective domain. Applying the individual inequalities gives f_i((1-theta)x+theta z)<=(1-theta)F(x)+theta F(z) for every i. Taking the supremum preserves that bound, so F is convex. This includes a finite maximum and need not produce a differentiable function. An infinite supremum can take value +infinity and may have an empty finite domain, so properness is a separate check.
For a jointly convex function H(x, y), let h(x)=inf_y H(x, y). If the two relevant infima are finite, choose y_x and y_z within epsilon of their respective values. Joint convexity bounds H at the convex combination of the pairs, and the infimum over its second coordinate can only be smaller. Let epsilon decrease to zero to obtain convexity of h. The same epigraph argument handles extended values when the resulting function is proper and never takes -infinity.
No attained inner minimizer was used: approximate minimizers are enough for the inequality. For the concrete H(x, y)=(x-y)^2+y^2, completing the square gives H=2(y-x/2)^2+x^2/2. Here the infimum is attained uniquely at y=x/2 and h=x^2/2. That special attainment does not justify assuming it for every partial minimization or for a limiting open-domain problem.
Projection of a convex epigraph preserves convexity but need not preserve closedness. Consequently a partial infimum can be convex without being lower semicontinuous or having closed level sets. The result is a rule for proving curvature, not an automatic existence or numerical-stability theorem. If an infimum can become -infinity, qualify its proper domain before applying subgradient or dual-attainment results to it. Related reading: [Composition, partial minimisation and perspectives](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=97). The infimum proof uses arbitrarily close choices. An actual inner minimiser and a closed projected epigraph require additional justification.
Subgradients and supporting planes
For a proper convex f and x in its domain, a vector v is a subgradient when f(z)>=f(x)+v dot(z-x) for every z. The set of all such v is partial f(x), the subdifferential. It is an intersection of closed affine half-spaces in v, hence closed and convex, possibly empty. Its definition is a global lower-bound property; an arbitrary directional slope or approximate finite difference need not satisfy it.
At a differentiable interior point, take small positive and negative steps in any direction in the subgradient inequality. Their derivative limits give v dot d=grad f(x) dot d for every d, so the only possible subgradient is the gradient. The first-order convex inequality proves that the gradient indeed belongs. At a nondifferentiable point there may be many supporting slopes, as the interval [-1, 1] for the absolute value at zero demonstrates.
A proper convex function has a supporting slope at a relative-interior point of its domain. In its affine hull, convexity bounds the function above on a small simplex surrounding that point and below by reflected-point inequalities. This gives local finiteness and continuity. Separating the convex epigraph from points strictly below it then supplies a support with nonzero vertical coefficient; local finiteness rules out a purely vertical separator. Normalize that coefficient and extend the resulting affine-hull slope to the ambient space.
Boundary points need not admit a finite slope. For f(x)=-sqrt(x) on x>=0, extended by +infinity for x<0, a subgradient v at zero would require -sqrt(z)>=v z for every z>0. Thus v<=-1/sqrt(z) for all such z, which no finite real v can satisfy. The function is proper, closed and convex, but partial f(0) is empty. Relative-interior and domain assumptions must therefore remain visible when a supporting multiplier is asserted to exist. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Composition, partial minimisation and perspectives](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=97); [Positive semidefinite and norm cones](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=65). The relative-interior support argument is supplied here in the affine hull. Finite supporting slopes can fail at a boundary point.
Convex Fermat optimality
A point xstar in dom f minimizes a proper convex f globally exactly when zero is a subgradient there. If it is a minimizer, f(z)>=f(xstar)=f(xstar)+0 dot(z-xstar) for every z, which is the definition. Conversely, that zero-slope inequality says directly that no point has a lower value. The proof applies to extended-real domain restrictions and does not require differentiability.
When f is differentiable on an open domain, this reduces to grad f(xstar)=0. At a boundary, constrained optimality is represented by the extended function f+I_C, not by demanding that the ambient smooth gradient vanish. For example, minimizing x on [0, infinity) has its optimum at zero while its ordinary derivative remains 1. The indicator contributes the necessary outward normal slope.
For nonconvex functions, zero derivative is generally only a stationarity condition, because the global supporting inequality need not hold. The derivative of -x^2 vanishes at zero, but that point is a maximum. Even for convex functions a missing minimizer cannot be created by a limiting sequence of nearly zero gradients without an attainment argument. The criterion concerns an actual point with a global subgradient inequality.
The value of the convex Fermat rule is that it turns an optimization claim into a checkable supporting certificate. Later sum, maximum and cone rules explain how that certificate can be assembled from individual model terms. Their own qualification hypotheses remain essential: writing zero in a formal sum of candidate slopes is not equivalent to zero in the subdifferential of the full model unless the splitting rule is justified. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Composition, partial minimisation and perspectives](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=97). The zero-subgradient test is the global supporting inequality itself. It must be distinguished from an ordinary stationary-point test.
A finite maximum and active gradients
Let F=max_{i=1, ..., m} f_i for differentiable convex f_i on a common open domain. Define the active set I(x)={i: f_i(x)=F(x)}. If alpha_i>=0 sum to 1 over the active indices, the vector v=sum_i alpha_i grad f_i(x) supports F: each active tangent inequality holds, and its weighted left-side function values are no larger than their maximum F(z). Thus the convex hull of active gradients is contained in partial F(x).
For the reverse inclusion, suppose a subgradient v lies outside that finite convex hull. A separating direction d satisfies v dot d>max_{i in I(x)} grad f_i(x) dot d. At small positive t, the initially inactive functions remain below the maximum by continuity and their strictly positive finite gaps. The active first-order expansions, with finitely many remainder terms, give F(x+t d)=F(x)+t max_{i in I(x)} grad f_i(x) dot d+o(t).
The subgradient inequality would require t v dot d<=F(x+t d)-F(x). Divide by t and let t decrease to zero to contradict the strict separation. Therefore partial F(x) is exactly the convex hull of active gradients. The finite-family and common-open-domain assumptions justify both the inactive-gap argument and these directional expansions.
At zero, the active affine maximum has subdifferential [a,b], so a convex combination can cancel the smooth derivative if it contains zero. On a strict branch, use only the slope of the larger affine value. Strong convexity from ρ>0 makes the certified minimizer unique.
| Quantity | Exact result |
|---|---|
| Global minimizing x | 0 |
| Optimal objective | 0 |
| Active affine slopes | a=−1 and b=+1 |
| Weights on a and b | (1/2, 1/2) |
| Weighted active slope | 0 |
| Smooth derivative ρx* | 0 |
| Stationarity sum | 0 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| rho | 1 |
| a | -1 |
| b | 1 |
At an unconstrained optimum, zero must therefore be an active convex combination of gradients. This does not mean that every active gradient is zero or that all active weights are positive. With a convex feasible set, the combination is balanced by an outward normal instead. An infinite supremum needs a separate closure and active-approximation analysis; the finite formula is not silently extended to an unbounded index family. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Composition, partial minimisation and perspectives](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=97); [Positive semidefinite and norm cones](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=65). The active-gradient formula is proved here for a finite family on a common open domain. An infinite supremum needs additional analysis.
A qualified subgradient sum rule
If a is a subgradient of f at x and b is one of g there, adding their supporting inequalities proves a+b in partial(f+g)(x). The converse requires a qualification. For proper convex functions with ri(dom f) intersect ri(dom g) nonempty, the exact sum rule holds at every common finite point. The relative interiors are taken in each function domain affine hull, not automatically in the whole ambient space.
Here is the separation mechanism for that converse. Given v in partial(f+g)(x), set h(u)=inf_z[f(z)+g(z-u)-v dot z]. Its value at zero is attained at x and is finite. The common-relative-interior condition puts zero in ri(dom f-dom g): small relative balls around a common point map to a relative ball under the finite-dimensional difference map. Convexity of h and finiteness at that relative-interior point rule out a -infinity value elsewhere on its effective difference domain. Hence h is proper and has a supporting slope p at zero.
For any finite-domain z, w, use u=z-w to obtain f(z)+g(w)-v dot z>=h(0)+p dot(z-w). Equality holds when z=w=x. Fix w=x to conclude v+p in partial f(x); fix z=x to conclude -p in partial g(x). Their sum is v, proving the reverse inclusion. This uses the supporting-slope result in the appropriate relative affine hull, with an ambient extension of p when necessary.
The qualification can fail sharply. Take f=-sqrt(x) on x>=0 and g=I_{0}. Their sum is the indicator of the singleton zero and has every real slope as a subgradient there. But partial f(0) is empty, so partial f(0)+partial g(0) is empty. The relative interiors (0, infinity) and {0} do not meet. Thus an unqualified splitting can erase a real minimizer or falsely suggest that no constrained certificate exists. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Composition, partial minimisation and perspectives](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=97); [Positive semidefinite and norm cones](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=65). The exact sum rule is proved here with its relative-interior qualification. The unqualified supporting-slope inclusion is weaker.
Norm subgradients and the dual ball
Let N be any norm and N_* its dual norm, defined by sup{v dot z: N(z)<=1}. At x=0, the subgradient inequality N(z)>=v dot z for all z is exactly N_*(v)<=1, using scaling and the symmetry of the unit ball. Therefore the subdifferential at zero is the full closed dual unit ball, not a single vector selected by an undefined gradient.
For x!=0, a subgradient v tested at z=0 gives v dot x>=N(x), and tested at z=2x gives the reverse inequality. Hence v dot x=N(x). The full supporting inequality then reduces to N(z)>=v dot z for all z, so N_*(v)<=1. Conversely, these two conditions and the dual-norm inequality give a valid global support. Necessarily N_*(v)=1 at a nonzero x.
For the l1 norm, the dual ball is ||v||_infinity<=1. Equality v dot x=||x||_1 forces v_i=sign(x_i) whenever x_i!=0, while a zero coordinate permits any v_i in [-1, 1]. This exact interval creates the threshold region in sparse optimization. The Euclidean norm instead has the unique slope x/||x|| at a nonzero x and the Euclidean unit ball at zero.
All these formulas refer to the declared norm and its dual. Rescaling coordinates changes the norming condition and the numerical threshold; it is not a harmless reuse of the same unweighted box. For a norm penalty, a zero coordinate is certified by an interval inequality rather than an arbitrary choice of sign. Those interval checks remain part of a full sparse KKT or Fenchel certificate. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Conjugates and the Fenchel inequality](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=104); [Positive semidefinite and norm cones](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=65). The norm and its actual dual must be paired consistently. A zero coordinate retains a subgradient interval rather than a chosen derivative.
Normal cones and constrained optimality
For x in a nonempty closed convex set C, use the outward cone N_C(x)={n: n dot(z-x)<=0 for all z in C}. If f is differentiable and convex on a neighborhood containing C, the constrained first-order condition is grad f(x) dot(z-x)>=0 for every feasible z. Equivalently, -grad f(x) belongs to N_C(x), or zero belongs to grad f(x)+N_C(x). The tangent supporting inequality proves global sufficiency.
Necessity follows from the one-sided derivative along every feasible segment from a minimizing point. The normal may be nonzero at a boundary and is zero at an interior point of a full-dimensional C. For C=[0, infinity), N_C(0)=(-infinity, 0], so minimizing f(x)=x is certified by the normal -1 at zero. The ordinary gradient 1 is fully compatible with constrained optimality.
For a general proper convex nonsmooth f, the always-valid formulation is zero in partial(f+I_C)(x). Writing that as zero in partial f(x)+N_C(x) uses the qualified sum rule. A relative-interior intersection, or a finite continuous objective on a neighborhood of C, supplies a suitable condition. The earlier negative-square-root/singleton example shows why a boundary-domain split cannot be imposed without checking it.
For affine equalities, the normal cone is the range of A^T at a feasible point, with a sign convention absorbed into the free multiplier. For inequalities, multiplier combinations describe the normal under their own constraint qualification; they are not its definition. This separates exact geometric optimality from the additional question of whether a chosen list of model gradients can represent the supporting normal. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Composition, partial minimisation and perspectives](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=97); [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255). The geometric normal condition is proved above. Splitting a nonsmooth objective and an indicator retains the stated domain qualification.
Projection as a normal-cone equation
Let C be nonempty, closed and convex, and fix z. Minimize (1/2)||x-z||^2 over C. A minimizing sequence can be restricted to a ball by comparison with one fixed feasible point. In finite dimensions a convergent subsequence exists, and closedness plus continuity gives a minimizer. Strict convexity of the squared distance on C makes that minimizer unique; denote it P_C(z). Unboundedness of C is not an obstacle to this coercive distance problem.
At x=P_C(z), differentiation along a feasible segment gives (x-z) dot(w-x)>=0 for every w in C, or z-x in N_C(x). Conversely, if this inequality holds, expand ||w-z||^2=||x-z||^2+||w-x||^2-2(z-x) dot(w-x). The last term is nonnegative, proving x minimizes the distance and giving a stronger comparison inequality. Thus the normal condition is an exact projection certificate.
Let x=P_C(z), y=P_C(w). The two normal inequalities imply ((z-x)-(w-y)) dot(x-y)>=0. Rearranging gives ||x-y||^2<=(z-w) dot(x-y). This is firm nonexpansiveness. Cauchy-Schwarz then gives ||x-y||<=||z-w||, including the zero-distance case. Projection cannot enlarge a Euclidean perturbation under these assumptions.
Minimize half the squared distance. The projection subtracts a nonnegative multiple of the normal (1,1), with factor max(0,(q₁+q₂−L)/2). When it is positive, use z₁+z₂≤L at a binding projection to get the variational inequality. At a boundary input the constraint can be active with multiplier zero.
| Quantity | Exact result |
|---|---|
| Input constraint residual | 4 |
| Projection | (1, 0) |
| Multiplier | 2 |
| Projected constraint residual | 0 |
| Half squared distance | 4 |
| Stationarity | q−x*=λ(1,1) |
| Complementarity | λ(x₁*+x₂*−L)=0 |
| Variation against feasible z | (q−x*)·(z−x*)≤0 |
| Exact outward residual q−x* | (2,2) |
| Boundary constraint active | Yes |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| q | [3,2] |
| L | 1 |
Closedness and convexity have different roles. The nonclosed interval (0, 1) has no projection of zero, while the closed nonconvex set {-1, 1} has two projections of zero. Neither counterexample contradicts the theorem. Projection is a normal-cone operation on a specified set, not an instruction to round a point arbitrarily and assume the resulting feasibility or distance bound. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Quadratic and entropy optimisation examples](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=168); [Local minima and existence of solutions](https://ocw.mit.edu/courses/6-253-convex-analysis-and-optimization-spring-2012/69136e797daa75d9481c21d1f6b84a31_MIT6_253S12_lec05.pdf#page=11). The general closed-convex projection theorem and firm inequality are proved here. The cited quadratic example concerns distance between polyhedra.
A proximal point and its certificate
Let f be proper, closed and convex on a finite-dimensional Euclidean space, and gamma>0. The function f has an affine minorant: separate its closed convex epigraph from a point strictly below it at one finite-domain coordinate. A purely vertical separator cannot strictly separate those two points with the same coordinate, so its function-value coefficient is nonzero and can be normalized. Adding ||x-z||^2/(2gamma) to this affine lower bound gives coercive sublevels.
The proximal objective f(x)+||x-z||^2/(2gamma) is proper and lower semicontinuous, so a bounded minimizing sequence has a convergent subsequence with an attained minimum. The quadratic makes it strongly convex, giving a unique minimizer x=prox_(gamma f)(z). The qualified sum rule applies because the quadratic is finite and continuous everywhere. Convex Fermat therefore gives (z-x)/gamma in partial f(x), which is also a sufficient global certificate.
For two inputs z, w with proximal points x, y, add their two subgradient inequalities. Monotonicity gives ((z-x)-(w-y)) dot(x-y)>=0. Hence ||x-y||^2<=(z-w) dot(x-y), the same firm nonexpansiveness as projection. Taking f=I_C recovers the closed-convex projection problem. No finite-valued assumption on f everywhere was needed; its explicit proper closed domain is enough.
The minimized value E_gamma f(z) is the Moreau envelope. Comparing its value at z+h using the minimizer at z gives an upper affine expansion with remainder ||h||^2/(2gamma). The reverse comparison using the minimizer at z+h, together with the proximal Lipschitz bound, gives the matching derivative. Thus grad E_gamma f(z)=(z-prox_(gamma f)(z))/gamma. This differentiability concerns the envelope, not a claim that the original nonsmooth f suddenly has an ordinary gradient. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Composition, partial minimisation and perspectives](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=97); [Strong convexity and smooth quadratic bounds](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=473). Existence, the proximal equation and the envelope derivative are proved here from the closed convex and quadratic framework.
Conjugacy and Fenchel-Young
Define the convex conjugate f*(v)=sup_z[v dot z-f(z)]. Its definition immediately gives f(x)+f*(v)>=v dot x whenever the values are meaningful. Equality holds exactly when x attains that supremum, which is equivalent to f(z)>=f(x)+v dot(z-x) for every z. Thus the Fenchel-Young gap is zero exactly when v is a subgradient of f at x.
At equality, x is also a subgradient of f* at v: for any w, the defining supremum gives f*(w)>=w dot x-f(x)=f*(v)+(w-v) dot x. This supplies a dual supporting certificate without differentiability. Closed proper convexity is the usual setting in which the bidual recovers f; the equality test used here follows directly from the supremum and does not silently assume an optimizer for every v.
For f(x)=(a/2)||x||^2 with a>0, completing the square in v dot x-(a/2)||x||^2 gives f*(v)=||v||^2/(2a). Its gap is ||a x-v||^2/(2a). For f=lambda N with lambda>0, the conjugate is zero when N_*(v)<=lambda and +infinity otherwise, by the norm inequality and positive scaling along any violating direction. These formulas keep the primal norm and its actual dual together.
Maximize u z−f(z) over z. Its derivative vanishes at z=b+u/a and the objective is strictly concave. Substitution gives the conjugate expression. Completing the square in f(x)+f*(u)−u x gives [a(x−b)−u]²/(2a), so equality holds only at the corresponding slope.
| Quantity | Exact result |
|---|---|
| Conjugate f*(u) | u b + u²/(2a)−c |
| Selected coordinates x,u | (2, 2) |
| Contact x(u) | 2 |
| f(x) | 4 |
| f*(u) | 0 |
| u x | 4 |
| Fenchel–Young gap | 0 |
| Equality condition | u=a(x−b) at the selected pair: yes |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 2 |
| b | 1 |
| c | 3 |
| x | 2 |
| u | 2 |
Conjugates organize both lower bounds and optimality equations. A finite dual-norm constraint is a feasibility condition, not an approximate sign suggestion. A zero Fenchel gap for each model term can assemble a global certificate after the equality and domain transformations are checked. If the supremum is not attained or a conjugate value is infinite, that limitation must remain explicit instead of replacing the definition by a stationary calculation. Related reading: [Conjugates and the Fenchel inequality](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=104). A conjugate is defined by a supremum, which need not be attained. The equality certificate is a global subgradient relation.
Weak duality beyond linear objectives
Consider minimize f(x) over x in a declared domain D with g_i(x)<=0 and Ax=b. Define L(x, lambda, nu)=f(x)+sum_i lambda_i g_i(x)+nu dot(Ax-b), with lambda>=0 and nu free. At any feasible x, L(x, lambda, nu)<=f(x). Therefore d(lambda, nu)=inf_{x in D} L is a lower bound on every feasible objective and on the primal infimum. This weak-duality argument does not require convexity of the primal functions.
For fixed x, the Lagrangian is affine in its multipliers. Taking the infimum over x gives a concave dual function: at a convex combination of multiplier pairs, each Lagrangian value is the same combination of the two values, and its infimum is at least the corresponding combination of infima. Maximizing d over lambda>=0 is consequently a convex-optimization task in the maximization-of-concave convention, even when the original model is nonconvex.
The domain D remains part of that infimum. A hard positivity restriction, excluded boundary or nonnegative variable cannot be discarded while minimizing L. The dual value can be -infinity for a proposed multiplier, and finding a stationary point of L need not compute its global infimum. A numerical routine returning one local stationary value has not by itself produced a valid dual lower bound.
If a primal feasible point and an actually evaluated dual lower bound agree, weak duality certifies global optimality irrespective of how they were found. Convexity and a constraint qualification are useful because they can establish when such matching finite multipliers exist and when stationarity evaluates the infimum. Those are stronger conclusions than weak duality, and the following arguments keep their additional hypotheses separate. Related reading: [Duality and Slater conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=239); [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255). The global Lagrangian infimum gives the lower bound. A local stationary value cannot be substituted for that infimum.
KKT as a convex sufficient certificate
Suppose f and the g_i are convex on the common convex domain and the equalities are affine. Let xstar be primal feasible, lambda>=0, and suppose there are subgradients s in partial f(xstar), q_i in partial g_i(xstar) with s+sum_i lambda_i q_i+A^T nu=0 and lambda_i g_i(xstar)=0. Adding the supporting inequalities shows L(x, lambda, nu)>=L(xstar, lambda, nu) for every domain point. Thus xstar globally minimizes this Lagrangian.
Complementarity and equality feasibility give L(xstar, lambda, nu)=f(xstar). The dual value is therefore the same finite number, and weak duality proves both primal and dual optimality. No Slater premise is required to validate a supplied certificate satisfying these equations. If the functions are differentiable, their gradients supply the displayed subgradients. General nonsmooth necessity still depends on a qualified splitting rule.
Equivalently, a convex optimum certificate is a saddle point: for every allowed lambda, nu and every x, L(xstar, lambda, nu)<=L(xstar, lambda_star, nu_star)<=L(x, lambda_star, nu_star). The left inequality follows from primal feasibility and complementary zero products; the right is global Lagrangian minimization. Conversely, the left inequality over all nonnegative/free multipliers forces primal feasibility and complementarity, while the right supplies the dual infimum.
Convexity is what lets a zero subgradient certify that right-hand global minimum. Without it, a stationarity equation may identify a maximum or saddle of L and cannot evaluate its infimum. The KKT equations should therefore be reported together with primal feasibility, dual multiplier signs, convexity and domain evidence. A solver residual alone does not establish those mathematical premises. Related reading: [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255). This is a sufficiency result for an existing convex certificate. Qualification and attainment assumptions control the separate necessity question.
Slater gives an attained dual bound
For the following Slater argument, take finite continuous convex f, g_i on a nonempty open common convex domain D, full-row-rank A, a point xbar in D with Axbar=b and all g_i(xbar)<0, and a finite primal infimum pstar. Form the perturbation set S={(u, v, t): there is x in D with g_i(x)<u_i, Ax-b=v, f(x)<t}. It is convex by combining witnesses. It is open because small v changes can be realized using a right inverse of A, while continuity and the strict margins preserve the other inequalities.
The point (0, 0, pstar) is outside S. Finite-dimensional separation gives a nonzero supporting vector (lambda, nu, alpha) with lambda dot u+nu dot v+alpha t>=alpha pstar throughout S. Upward closure in u, t forces lambda>=0 and alpha>=0. Let the strict margins decrease to zero at any fixed domain point to obtain lambda dot g(x)+nu dot(Ax-b)+alpha f(x)>=alpha pstar for every x in D.
The objective coefficient alpha is positive. If alpha=0, evaluating at the strict feasible xbar forces lambda=0. Varying x in a small positive and negative neighborhood of xbar then gives A^T nu=0. Full row rank implies nu=0, contradicting a nonzero separator. Normalize alpha to 1. The resulting multipliers have L(x, lambda, nu)>=pstar for all x, so d(lambda, nu)>=pstar. Weak duality gives equality and dual attainment.
Primal attainment was not assumed or proved by this argument. If a primal optimizer is later known to exist, these multipliers can be combined with it to obtain KKT necessity. Redundant equalities can first be consistently reduced, while relative-interior and refined affine-constraint versions need their stated qualifications. Strict feasibility is a sufficient route to a nonvertical separator, not an automatic property of every convex feasible set. Related reading: [Duality and Slater conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=239); [Positive semidefinite and norm cones](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=65). The open-domain separation proof is supplied here with strict feasibility, equality rank and a finite primal value. It does not prove primal attainment.
When KKT is necessary
Under the preceding Slater and domain assumptions, suppose additionally that xstar attains the primal finite value pstar. Dual attainment supplies lambda>=0, nu with inf_D L=pstar. At the feasible xstar, L(xstar, lambda, nu)<=f(xstar)=pstar, while the infimum gives the reverse inequality. Hence equality holds and sum_i lambda_i g_i(xstar)=0.
Each product is nonpositive because lambda_i>=0 and g_i(xstar)<=0, so the zero sum forces every product to vanish. Also xstar attains the convex Lagrangian infimum. It lies in the open common domain, so its convex Fermat condition is zero in the subdifferential of L there. For differentiable functions this is the familiar gradient stationarity equation with the affine equality term A^T nu.
For finite convex nonsmooth terms on that common open domain, the qualified sum rule supplies subgradients of the individual terms whose multiplier-weighted sum plus A^T nu is zero. Thus the nonsmooth KKT certificate is obtained without pretending that a norm or finite maximum has an ordinary derivative at its corner. At extended-domain boundary points, the appropriate relative-interior or normal-domain formulation must be checked separately.
KKT necessity therefore combines several distinct facts: an attained primal optimizer, a valid multiplier-existence qualification, and correct domain-sensitive stationarity. KKT sufficiency for a supplied convex certificate needed no such necessity qualification. Neither fact says that strict feasibility is necessary for every possible optimal pair; the examples with affine faces and flat nonlinear constraints explain why failure of a sufficient condition must be interpreted precisely. Related reading: [Duality and Slater conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=239); [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255). The necessity argument also requires an attained primal optimum. A zero gap in value alone does not guarantee a finite matching multiplier.
A failed constraint qualification
Minimize f(x)=x subject to g(x)=x^2<=0 on R. Both functions are convex and differentiable, and the unique feasible point is xstar=0. Thus the finite primal optimum is attained with value 0. There is no strict feasible point because x^2 is never negative. The constraint forces a singleton through a flat nonlinear gradient rather than through an affine equality.
At zero, KKT stationarity would require 1+lambda*(2xstar)=1=0 for some finite lambda>=0, which is impossible. Complementarity is automatic because g(0)=0, but it cannot repair the stationarity equation. The actual normal cone of the singleton is all of R, while the nonnegative combinations of the single constraint gradient at zero give only {0}. This is exactly the missing normal representation.
The dual illustrates a further distinction. For lambda=0, inf_x[x+lambda x^2]=-infinity. For lambda>0, completing the square gives inf L=-1/(4lambda). Its supremum as lambda tends to infinity is 0, matching the primal value, but no finite multiplier attains that supremum. Therefore this example has zero duality gap and no dual-attained KKT pair. Zero gap alone does not supply the missing finite certificate.
For λ>0 minimize the Lagrangian x+λ(x²−r) at x=−1/(2λ). At r>0 stationarity and complementarity hold at −√r, and λ=1/(2√r) attains the equal dual value. At r=0 the only primal point is zero and stationarity is impossible for finite λ; the dual value approaches zero from below and the optimal values still match.
| Quantity | Exact result |
|---|---|
| Feasible interval | [-2, 2] |
| Primal argmin / value | -2 / -2 |
| Slater | Yes, x=0 is strictly feasible |
| Stationarity | 1+2λx=0 |
| Finite optimal multiplier | 1/4 |
| Dual function | g(λ)=−1/(4λ)−rλ for λ>0; g(0)=−∞ |
| Dual supremum / attainment | -2 / attained |
| Duality gap | 0 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| r | 4 |
A real optimum is not disproved by failure to solve an unqualified KKT system. Conversely, convexity alone does not establish dual attainment or multiplier existence. One may reformulate the known singleton with an exact affine equality x=0 and obtain a different multiplier representation, but that is a documented reformulation, not evidence that the original nonlinear constraint satisfied Slater or had a nonzero gradient. Related reading: [Duality and Slater conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=239); [A convex perspective problem with a duality gap](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=294); [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255). The complete example is solved above. Its zero duality gap and unattained dual supremum are distinct from the absence of a finite KKT multiplier.
A stationary point without convexity
For the unconstrained function f(x)=-x^2, the derivative vanishes at zero. Nevertheless f(x)<f(0)=0 for every nonzero x, and the function is unbounded below as |x| increases. Zero is a strict maximum. Its negative Hessian makes the missing convexity immediately visible, but the counterexample already follows from direct value comparisons.
With no constraints, its Lagrangian is just f and the true dual infimum is -infinity. Evaluating L at its stationary point gives 0, which is not a lower bound on the original minimum and is not the dual function. This pinpoints the failed inference: stationarity was substituted for global minimization of a nonconvex expression.
Adding constraint multipliers to a nonconvex problem does not automatically correct that failure. A feasible point satisfying differentiable KKT equations can still be a local maximum, saddle or nonglobal local minimum unless additional sufficient conditions establish a global Lagrangian bound. Convex objective/inequality structure and affine equalities were the conditions used in the earlier sufficiency proof.
Numerical stationarity tolerances must therefore be interpreted within the model assumptions. A small gradient or KKT residual can be useful diagnostic evidence for a nonconvex algorithm, but it is not the same claim as a convex primal-dual gap certificate. Preserve the distinction when a physical approximation, learned model or parameter substitution changes the curvature or domain. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255). The negative quadratic is nonconvex for minimisation. Its stationary maximum does not satisfy the convex global-lower-bound argument.
Affine constraints and tangent directions
Let f be differentiable on an open convex domain D, and suppose x is feasible for Ax=b. Every d in ker A admits both x+t d and x-t d in D for sufficiently small positive t. If x is a local constrained minimum, the two one-sided derivative tests force grad f(x) dot d=0. Thus the necessary first-order condition concerns all feasible tangent directions; it does not require the ambient gradient to vanish.
In a finite-dimensional Euclidean space, (ker A) perpendicular equals range A^T. The tangent condition is consequently equivalent to the existence of a free equality multiplier nu with grad f(x)+A^T nu=0. This equivalence holds even when A has redundant rows. Two such multipliers differ by an element of ker A^T, so row dependence can destroy multiplier uniqueness without altering either the feasible points or the directional test.
If f is convex on D, its supporting inequality gives f(z)>=f(x)+grad f(x) dot(z-x) for any other feasible z. Since A(z-x)=0, stationarity makes the last inner product zero and proves global constrained optimality. Conversely, differentiability and the open-domain tangent argument give necessity at an attained optimum. If the declared domain itself has an active boundary, its normal cone must also be retained; the equality-only equation is then incomplete.
An equivalent null-space calculation writes every feasible point as x0+Z w, where the columns of Z span ker A. The restricted derivative is Z^T grad f(x), and its vanishing is exactly the tangent condition above. Deleting a redundant equality row preserves this derivative, whereas deleting an independent row changes the feasible directions. Neither an arbitrary least-squares multiplier nor a small ambient gradient replaces the exact feasibility and restricted stationarity tests. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255). The tangent-space argument is proved here. Redundant equality rows change multiplier uniqueness while preserving the feasible directions.
A convex duality gap without strict feasibility
Consider minimize exp(-x) subject to x^2/y<=0 on the open convex domain y>0. The perspective g(x, y)=x^2/y is convex: its Hessian quadratic form at a direction (h, k) is (2/y)(h-x k/y)^2>=0. The objective is also convex. Feasibility forces x=0 and permits every positive y, so the primal value is 1 and is attained. The inequality is never strict, even though the stated ambient domain is open.
For lambda>=0, the Lagrangian is exp(-x)+lambda x^2/y. Both terms are nonnegative, so its infimum over x in R and y>0 is at least zero. For x tending to positive infinity with x>=1, choose y=(1+lambda)x^2 exp(2x). The two terms then become exp(-x) and [lambda/(1+lambda)]exp(-2x), and both tend to zero. The infimum is therefore exactly zero for every finite nonnegative lambda.
The entire dual problem has value zero, while the primal problem has value one: the duality gap is positive. For each finite multiplier, its Lagrangian infimum escapes to infinity and is not achieved, because exp(-x) remains strictly positive at every finite point. The dual supremum itself is nevertheless attained by every lambda>=0. Attainment of a dual multiplier and attainment of the inner Lagrangian infimum are separate questions.
At a feasible point (0, y), grad g=(0, 0), whereas grad exp(-x)=(-1, 0). No finite multiplier can satisfy stationarity. This example violates the strict-feasibility premise behind the earlier Slater theorem, and it does not contradict that theorem. Convexity of the objective, convexity of the inequality function, and attainment of the primal minimum do not alone imply zero gap or a KKT certificate. Related reading: [A convex perspective problem with a duality gap](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=294); [Duality and Slater conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=239); [Composition, partial minimisation and perspectives](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=97). The cited exercise states the original model. The escaping Lagrangian infimum and the positive gap are derived above.
Second-order cone certificates
Define the Euclidean second-order cone Q={(t, u): t>=||u||_2}. If (t, u) and (s, v) belong to Q, their inner product satisfies ts+u dot v>=ts-||u||_2||v||_2>=0. Thus every member of Q belongs to its dual cone. This argument uses the scalar coordinate together with the Euclidean norm; nonnegative vector coordinates are neither required nor generally present.
Conversely, if (s, v) is outside Q and s<0, its inner product with (1, 0) in Q is negative. If s>=0 but ||v||_2>s, use (1, -v/||v||_2) in Q to obtain s-||v||_2<0. Every outside point is thereby excluded from the dual cone. This proves Q*=Q, including the boundary and the zero vector, without substituting a componentwise order for the cone order.
For the conic problem minimize c dot x subject to Ax=b and x in Q, use L=c dot x+nu dot(Ax-b). Its infimum over Q is -b dot nu when s=c+A^T nu belongs to Q, since the conic linear term then has infimum zero at x=0. If s is outside Q, self-duality gives a cone direction with negative pairing, and positive scaling makes the infimum -infinity. Equality multipliers remain free.
For a feasible primal x and a dual-feasible nu, the exact primal-minus-dual gap is c dot x+b dot nu=s dot x>=0. Zero pairing certifies both optima immediately by weak duality, with no constraint qualification needed for this sufficiency statement. A theorem promising that such a matching dual point exists needs additional hypotheses. A residual norm or a violated scalar cone coordinate cannot be discarded when applying the certificate. Related reading: [Positive semidefinite and norm cones](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=65); [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255). The Euclidean cone is paired by the ordinary dot product. The scalar and norm signs, rather than entrywise positivity, determine cone feasibility.
Semidefinite certificates and matrix complementarity
Work in the real symmetric matrices with inner product <S, X>=trace(SX). If S and X are positive semidefinite, then trace(SX)=trace(S^(1/2) X S^(1/2))=||X^(1/2) S^(1/2)||_F^2>=0. Conversely, if a symmetric S pairs nonnegatively with every positive semidefinite X, test X=v v^T to obtain v^T S v>=0 for every v. The positive-semidefinite cone is therefore self-dual under the trace pairing.
If S and X are positive semidefinite and trace(SX)=0, the displayed squared Frobenius norm is zero, so X^(1/2) S^(1/2)=0. Multiplying on the left by X^(1/2) and on the right by S^(1/2) gives XS=0; taking transposes also gives SX=0. Thus trace complementarity implies a zero matrix product in this PSD setting. The same implication is false for arbitrary symmetric factors without positive semidefiniteness.
For minimize <C, X> with A(X)=b and X positive semidefinite, the equality-multiplier convention gives S=C+A*(nu) positive semidefinite and dual value -b dot nu. Here A* is defined by nu dot A(X)=<A*(nu), X>. At a feasible pair the gap is <S, X>, and zero trace pairing certifies optimality. For trace(X)=1, this specializes to S=C+nu I; writing the dual scalar as y=-nu gives the familiar condition C-y I positive semidefinite.
Write X=[[p,q],[q,1−p]]. Trace one and PSD give the filled disk. The cost is a+2bq. The extreme q with opposite sign to b yields the unique rank-one optimum when b is nonzero. The dual condition C−yI⪰0 proves tr(CX)≥y for any trace-one PSD X, and the displayed product vanishes exactly.
| Quantity | Exact result |
|---|---|
| Smallest eigenvalue a−|b| | 2 |
| One exact primal X | [[1/2,−1/2],[−1/2,1/2]] |
| Dual scalar y | 2 |
| Dual slack C−yI | [[1,1],[1,1]] |
| Slack eigenvalues | 0, 2 |
| Matrix complementarity | (C−yI)X=0 |
| Primal and dual objective | 2 / 2 |
| Gap | 0 |
| Other primal optima | None |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 3 |
| b | 1 |
PSD is a quadratic-form condition, not entrywise nonnegativity: off-diagonal entries may be negative. Likewise, complementarity is a matrix relation and is not a requirement that corresponding individual entries have nonnegative products. Eigenvalue tests, exact trace arithmetic and the actual adjoint signs must all use the same symmetric matrix convention. Finite numerical eigenvalues with rounding uncertainty require a qualified bound before they become an exact cone-feasibility proof. Related reading: [Positive semidefinite and norm cones](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=65); [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255). The trace pairing requires symmetric positive-semidefinite factors. The zero-matrix-product consequence is proved above under those hypotheses.
Equality-constrained convex quadratics
Let f(x)=(1/2)x^T Qx+c^T x with Q symmetric positive semidefinite, and suppose Ax=b is feasible. Choose one feasible x0 and a full-column-rank basis Z for ker A. Every feasible point is uniquely x0+Z w. The restricted Hessian is H=Z^T QZ. Assume h^T Qh>0 for every nonzero h in ker A, so H is positive definite whenever the null space has positive dimension.
Expanding the restricted objective gives a constant plus (1/2)w^T H w+[Z^T(Qx0+c)] dot w. Completing the square gives the unique minimizer w*=-H^(-1)Z^T(Qx0+c). Coercivity in these feasible coordinates proves attainment as well as uniqueness. If ker A={0}, feasibility already specifies a single point and no inverse of a zero-dimensional coordinate matrix is needed.
At that minimizer, Z^T(Qx*+c)=0. Orthogonality to ker A yields a multiplier nu satisfying Qx*+c+A^T nu=0 together with Ax*=b. Thus the KKT block system is [[Q, A^T], [A, 0]][x; nu]=[-c; b]. The primal solution is unique under the restricted positivity assumption, while the multiplier is unique exactly when A has full row rank. Redundant equality rows must not be silently treated as an invertible block.
If A has full row rank, the KKT block is nonsingular: a homogeneous solution obeys Ah=0 and Qh+A^T eta=0, whence h^T Qh=0, h=0, and then A^T eta=0 forces eta=0. This proof does not require Q to be invertible on the whole ambient space. With only semidefinite curvature on the null space, a linear drift in a zero-curvature direction may instead cause unboundedness, or a flat direction may cause nonuniqueness; convexity alone does not establish the stated unique attained result. Related reading: [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255); [Quadratic and entropy optimisation examples](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=168). The null-space argument supplies restricted positivity, attainment and uniqueness. Full equality-row rank is needed for the stated block nonsingularity.
Entropy under linear constraints
Let q_i>0 and define relative entropy F(p)=sum_i p_i log(p_i/q_i) on p>=0, using 0 log 0=0. On positive coordinates, the gradient is log(p_i/q_i)+1 and the Hessian is diag(1/p_i), which is positive definite. The continuous extension remains strictly convex on the nonnegative orthant. Intersecting the probability simplex with affine constraints Bp=d gives a compact feasible set, so a nonempty such set has an attained, unique minimizer.
If the affine slice contains a strictly positive feasible pbar, its minimizer is positive as well. Suppose a minimizer had a zero coordinate and move toward pbar by a small fraction t. Each formerly zero coordinate contributes a positive coefficient times t log t plus an O(t) term, whereas the initially positive coordinates change by O(t). The negative t log t contribution dominates and lowers F, a contradiction. Positivity here follows from a positive feasible comparison point, not from strict convexity alone.
At a positive optimum, the affine tangent condition gives log(p_i/q_i)+1+nu+(B^T eta)_i=0. Hence p_i=q_i exp(-(B^T eta)_i)/Z, where Z=sum_j q_j exp(-(B^T eta)_j) and nu=log Z-1. The remaining equations Bp=d determine admissible parameters eta. Whenever those equations have the required solution, the affine stationarity and convexity prove global optimality; multiplier uniqueness additionally depends on the equality-row geometry.
If some coordinates are forced to zero by the affine constraints, a finite exponential formula over all coordinates cannot represent that boundary face. One may work on an explicitly justified feasible support and its relative interior, or retain the extended-value boundary formulation. The compactness argument still gives primal attainment, but it does not justify finite full-support multipliers. Nor can a zero reference weight q_i be inserted into the positive-reference formulas without separately defining the infinite-cost support restriction. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Composition, partial minimisation and perspectives](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=97); [Quadratic and entropy optimisation examples](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=168). A positive feasible comparison point justifies a positive entropy optimum. Forced-zero faces need a separate support and multiplier treatment.
Soft thresholding and sparse optimality
For tau>=0, minimize phi(x)=(1/2)(x-z)^2+tau|x| on the real line. Its convex stationarity condition is 0 in x-z+tau partial|x|. For x>0 this becomes x=z-tau, which is consistent precisely when z>tau. For x<0 it becomes x=z+tau, consistent precisely when z<-tau. At x=0 the subgradient condition is z in tau[-1, 1].
These cases give S_tau(z)=sign(z) max(|z|-tau, 0), with zero returned throughout the closed interval [-tau, tau]. At an endpoint z=+tau or -tau, the nonzero branch meets zero; there is no interval of alternative minimizers. The quadratic term makes phi strongly convex, so the solution is unique. When tau=0 the formula reduces to z, including z=0, without dividing by tau.
For a vector z with the separable objective (1/2)||x-z||_2^2+tau||x||_1, sum the scalar objectives coordinate by coordinate. Each minimizing coordinate is S_tau(z_i). The residual z-x supplies the full subgradient certificate: it equals tau sign(x_i) on a nonzero coordinate and belongs to [-tau, tau] on a zero coordinate. A zero output therefore encodes an interval condition, not a claim that the absolute value has derivative zero there.
The proximal convention prox_(gamma lambda ||.||_1)(z) uses tau=gamma lambda, because multiplying its objective by gamma leaves the minimizer unchanged. This scaling must be retained when a sparse update is embedded in another optimization algorithm. Replacing a small coefficient by zero without checking its residual interval is a numerical heuristic rather than this exact certificate. The derivation concerns the real l1 norm with a Euclidean quadratic; a different norm or a coupled quadratic generally changes the threshold map. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Conjugates and the Fenchel inequality](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=104); [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255). The threshold formula is derived from the exact zero-coordinate interval and the nonzero branches. Its parameter is the product gamma times lambda.
A least-squares l1 dual certificate
Consider P(x)=(1/2)||Ax-b||_2^2+lambda||x||_1 with lambda>0. Introduce r=Ax-b and use the equality term y dot(Ax-b-r). Minimizing (1/2)||r||_2^2-y dot r gives r=y and value -(1/2)||y||_2^2. Minimizing lambda||x||_1+(A^T y) dot x gives zero when ||A^T y||_infinity<=lambda and -infinity otherwise, by the l1/linfinity dual-norm inequality and scaling a violating coordinate.
The dual is therefore maximize D(y)=-(1/2)||y||_2^2-b dot y subject to ||A^T y||_infinity<=lambda. The equality convention fixes the sign: at an optimum y=Ax-b, rather than its negative. For any primal x and dual-feasible y, set r=Ax-b and expand the exact gap P(x)-D(y)=(1/2)||r-y||_2^2+lambda||x||_1+x dot(A^T y). Both terms are nonnegative under the displayed dual constraint.
A zero gap is equivalent to y=r and -A^T y in lambda partial||x||_1. Thus each nonzero coordinate obeys (A^T y)_i=-lambda sign(x_i), while a zero coordinate only requires |(A^T y)_i|<=lambda. These are full global certificates from convexity and weak duality. They retain the residual square and every coordinate condition rather than treating a small ordinary gradient as a nonsmooth optimum test.
Because lambda>0, P is continuous and coercive through its l1 term, so it attains a minimum. The finite continuous sum rule at a minimizer yields precisely the displayed subgradient certificate; its residual is dual feasible and achieves the same value. Rank deficiency of A may allow several minimizing coefficient vectors, although their fitted residual is unique by strict convexity of its squared norm and convexity of the l1 term. The argument for coefficient uniqueness would need stronger assumptions and is not inferred from dual attainment. Related reading: [Conjugates and the Fenchel inequality](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=104); [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255). The residual sign is y=Ax-b. Dual feasibility and the two nonnegative gap terms are checked explicitly in the derivation.
Projected-gradient progress
Let C be a nonempty closed convex set, and let f be convex and differentiable on an open convex neighborhood of C, with L-Lipschitz gradient and L>0. For 0<alpha<=1/L, define u=P_C(x-alpha grad f(x)) from x in C. Projection optimality gives [u-x+alpha grad f(x)] dot(z-u)>=0 for every z in C. This variational inequality retains the constraint normal, which an unconstrained gradient calculation would omit.
Combine f(u)<=f(x)+grad f(x) dot(u-x)+(L/2)||u-x||^2 with f(z)>=f(x)+grad f(x) dot(z-x). The projection inequality then yields f(u)-f(z)<=[||x-z||^2-||u-z||^2]/(2alpha)-[1/(2alpha)-L/2]||u-x||^2. The distance identity follows by expanding 2(x-u) dot(u-z). The final coefficient is nonnegative for the stated step size, so dropping that last term gives a valid comparison upper bound.
Taking z=x in the full inequality gives descent f(u)<=f(x)-[1/alpha-L/2]||u-x||^2. Suppose an optimum x* in C is attained. Sum the comparison inequality with z=x* for K steps: the squared distances telescope and give sum_{j=1}^K[f(x_j)-f(x*)]<=||x_0-x*||^2/(2alpha). Since the values are nonincreasing, f(x_K)-f(x*)<=||x_0-x*||^2/(2alpha K). This is the stated fixed-step O(1/K) value bound.
The fixed-point equation x=P_C(x-alpha grad f(x)) is equivalent to -grad f(x) in N_C(x), and therefore to global constrained optimality under these convex assumptions. The rate does not assert a distance rate, an attained optimum when none exists, or safe descent for arbitrary larger steps. A numerical projection error changes the variational inequality and must be bounded separately before this exact proof can be used for an inexact implementation. Related reading: [Strong convexity and smooth quadratic bounds](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=473); [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81). The selected text supplies the smooth quadratic bounds. The projection comparison and value rate are proved here with the stated step and attainment assumptions.
Proximal-gradient progress
Let F=f+g on a finite-dimensional Euclidean space, where f is convex and differentiable everywhere with L-Lipschitz gradient, L>0, and g is proper closed convex. From x in dom g, take 0<alpha<=1/L and u=prox_(alpha g)(x-alpha grad f(x)). Existence and uniqueness follow from the proximal-point theorem already proved. Its certificate is (x-u)/alpha-grad f(x) in partial g(u).
The update minimizes the quadratic model f(x)+grad f(x) dot(z-x)+||z-x||^2/(2alpha)+g(z). The smoothness inequality makes this model an upper bound on F(z), while it agrees with F at x. More precisely, combine the displayed subgradient inequality for g with the smooth upper bound for f(u) and its convex lower bound for f(z). For every z in dom g this gives F(u)-F(z)<=[||x-z||^2-||u-z||^2]/(2alpha)-[1/(2alpha)-L/2]||u-x||^2.
Putting z=x gives monotone descent, and putting z=x* at an attained minimizer gives the same telescoping sum as projected gradient. Consequently F(x_K)-F(x*)<=||x_0-x*||^2/(2alpha K). Indicator functions g=I_C recover projection, while g=lambda||.||_1 gives a soft-threshold step. The derivation uses the exact proximal certificate rather than assuming that a nonsmooth g has an ordinary gradient.
The gradient mapping (x-u)/alpha vanishes exactly when 0 belongs to grad f(x)+partial g(x), which certifies global optimality here. Without an attained minimum the displayed bound cannot be written using an invented x*. Neither this basic rate nor the assumptions promise acceleration, linear convergence, or a distance bound. Errors in a computed proximal point need their own summable or otherwise controlled terms in the comparison inequality. Related reading: [Strong convexity and smooth quadratic bounds](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=473); [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Composition, partial minimisation and perspectives](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=97). The composite comparison is proved here from the exact proximal certificate. Its fixed-step value rate does not assert acceleration or distance convergence.
Approximate KKT with strong convexity
Consider a feasible point x for g_i(x)<=0 and Ax=b, with lambda>=0 and a free nu. Suppose the Lagrangian L(., lambda, nu) is mu-strongly convex on its declared convex domain, with a known mu>0, and r is an actual subgradient of L at x. In the differentiable case r=grad f(x)+sum_i lambda_i grad g_i(x)+A^T nu. For every domain point z, strong convexity gives L(z)>=L(x)+r dot(z-x)+(mu/2)||z-x||^2.
Completing the square in z-x proves inf_z L(z)>=L(x)-||r||^2/(2mu). Weak duality then gives the rigorous lower bound ell=L(x)-||r||^2/(2mu)<=p*. At the feasible point, the equality term vanishes and L(x)=f(x)+sum_i lambda_i g_i(x). Hence 0<=f(x)-p*<=-sum_i lambda_i g_i(x)+||r||^2/(2mu). The complementary slack term on the right is nonnegative under primal and multiplier feasibility.
This bound separates two distinct errors: lack of complementarity and lack of stationarity. It remains valid if the Lagrangian infimum is not explicitly found, because the global strong-convexity inequality bounds it from below. Convex inequality functions with nonnegative multipliers preserve a strong-convexity constant already established for f; a locally observed Hessian at one point is insufficient to establish that global constant.
Primal feasibility is essential for f(x) to be a feasible upper bound, and lambda>=0 is essential to weak duality in this convention. If the objective itself is mu-strongly convex and the convex feasible problem has an attained minimizer x*, its strong-convexity inequality along feasible segments gives (mu/2)||x-x*||^2<=f(x)-f(x*). Combining that inequality with the certificate gives a possibly loose distance bound. A residual norm alone, with feasibility or the strong-convexity premise missing, does not give this conclusion. Related reading: [Strong convexity and smooth quadratic bounds](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=473); [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255). The lower bound uses an actual Lagrangian subgradient and a known global strong-convexity constant. Feasibility and multiplier signs remain essential.
Scaling nonlinear multipliers
Let the original Lagrangian be L=f+sum_i lambda_i g_i+nu dot(Ax-b). Multiply the objective by q>0, multiply inequality i by s_i>0, and replace equalities by R(Ax-b)=0 with R invertible. The transformed multipliers preserving the same certificate are lambda_tilde_i=q lambda_i/s_i and nu_tilde=q R^(-T)nu. Their transformed Lagrangian is exactly qL, so feasibility, multiplier signs and zero complementary slack are preserved.
Under an invertible affine coordinate change x=Tz+d, the gradient of that transformed Lagrangian with respect to z is q T^T grad_x L. Thus exact stationarity is equivalent in the two coordinates. A raw residual norm is not invariant: Euclidean norms change with the singular values of T. A mu-strong convexity lower bound transforms to at least q mu sigma_min(T)^2 in the new Euclidean coordinates; one must transform residual bounds and units consistently.
Different nonlinear descriptions of the same active boundary can change the multiplier by their gradient factors. On the ball boundary ||x||=R>0, the gradients of ||x||-R and ||x||^2-R^2 differ by the factor 2R. Their corresponding active multipliers obey lambda_squared=lambda_norm/(2R). This is a pointwise boundary relation, not a claim that the two constraint functions are constant multiples everywhere.
If a replacement constraint has zero derivative on its active boundary, an inverse multiplier transformation may not exist. Squaring a nonnegative residual can preserve a feasible set while destroying the gradient representation needed for KKT necessity. Likewise, a negative row scaling reverses an inequality and its sign convention; it is outside the positive-scaling formula. Model reporting must retain the original objective scale, physical coordinates and actual constraint definitions alongside any scaled solver certificate. Related reading: [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255); [Strong convexity and smooth quadratic bounds](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=473). Transform objective scales, row scales, coordinates, multipliers and residual norms together. Equivalent feasible sets can still have different gradient certificates.
Relative interiors and affine faces
A feasible set may lie in a proper affine subspace even when the ambient space is much larger. If its exact affine hull H is known, write x=x0+Zz with the columns of Z spanning its direction space. Relative interiors and feasible perturbations then refer to z coordinates. A Slater argument carried out on that space needs strict inequalities only for the genuine nonlinear constraints retained there, together with its other domain and finite-value assumptions.
For purely affine equalities and inequalities, lack of a point making every inequality strict need not obstruct KKT multipliers. The normal cone of a polyhedron is generated by the active outward row normals plus the equality row space, as follows from the previously established alternative theorem. Thus a differentiable convex objective at an attained optimum has a polyhedral normal certificate even when an affine inequality is forced to equality throughout the feasible set.
The problem minimize x subject to x=0 and x>=0 illustrates this distinction. Its feasible set is the affine face {0}; the stationarity equation 1+nu-lambda=0 has, for example, nu=-1 and lambda=0. No strict inequality point exists in the original coordinates, but the free equality normal supplies the missing direction. The certificate uses the actual original constraints and does not infer strict feasibility from a zero-dimensional picture.
In contrast, the nonlinear description x^2<=0 has zero gradient at its only feasible point, while the true normal cone of {0} is the whole real line. Reducing that set to x=0 makes the primal problem trivial but does not manufacture a finite multiplier for the original squared inequality. Any face reduction must therefore distinguish primal equivalence from recoverability of the original multiplier certificate, and must justify removed constraints instead of declaring every relative-interior argument a cure for a flat nonlinear qualification failure. Related reading: [Duality and Slater conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=239); [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255). The affine-row refinement is distinct from a flat nonlinear constraint. Reducing the primal face does not automatically reconstruct original multipliers.
Minimax optimality by active weights
Let M(x)=max_i f_i(x) for finitely many differentiable convex functions on an open convex domain, and minimize M over a closed convex set C in that domain. The epigraph formulation uses f_i(x)<=t. Its Lagrangian is t+sum_i alpha_i(f_i(x)-t), with alpha_i>=0. Stationarity in t forces sum_i alpha_i=1, and complementary slack requires alpha_i=0 whenever f_i(x)<t.
Suppose x in C, t=M(x), and such weights satisfy 0 in sum_i alpha_i grad f_i(x)+N_C(x). For any z in C, M(z)>=sum_i alpha_i f_i(z). Convex supporting inequalities bound this sum below by sum_i alpha_i f_i(x)+[sum_i alpha_i grad f_i(x)] dot(z-x). The active-weight condition makes the first term t, and the normal-cone condition makes the second nonnegative. Therefore M(z)>=M(x), proving global optimality.
Conversely, when a minimum is attained, the finite-maximum subgradient formula gives partial M(x)=conv{grad f_i(x): i active}. Since M is finite and continuous on a neighborhood of C, the qualified sum rule with I_C applies. Convex Fermat therefore supplies weights in that convex hull and the same normal certificate. The qualification is attached to the actual finite-domain neighborhood, rather than assumed for arbitrary extended-valued maxima.
The weights need not be equal, need not be unique, and may assign zero mass to an active function. Inactive functions must have zero weight in an exact certificate. This finite convex minimax argument does not assert a general exchange of an infimum and supremum for unrelated games. Approximate active sets and approximate weight sums introduce errors that must be retained before a numerical candidate can be called a certified optimum. Related reading: [Convex functions, domains and epigraphs](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=81); [Certificates and Karush–Kuhn–Tucker conditions](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=255); [Composition, partial minimisation and perspectives](https://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=97). Active epigraph weights are nonnegative and sum to one; inactive weights vanish. The finite constrained certificate is proved above.
Explore the exact conditions behind convex, dual and semidefinite certificates. Different controls distinguish local data, feasibility, stationarity and attainment.
The gradient certifies a quantitative convex error bound
An anisotropic point gives slack
The positive diagonal Hessian has strong-convexity modulus m equal to its least eigenvalue. Minimize the global quadratic lower support f(x)+g·d+(m/2)||d||² in d to obtain f(x)−f*≤||g||²/(2m). Equality holds here when the displacement uses only directions with eigenvalue m, including every direction for the isotropic case.
| Quantity | Exact result |
|---|---|
| Exact minimizer | (0, 0) |
| Eigenvalues / modulus | (1, 3) / 1 |
| Signed displacement | (2, 1) |
| Distance squared | 5 |
| Gradient | (2, 3) |
| Gradient norm squared | 13 |
| Actual objective gap | 7/2 |
| Lower distance-based bound m||x−x*||²/2 | 5/2 |
| Upper gradient-based bound | 13/2 |
| Upper inequality attained | No |
| Exact Euclidean distance | √5 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 1 |
| b | 3 |
| u | 0 |
| v | 0 |
| x | 2 |
| y | 1 |
The normal cone distinguishes active and inactive projections
The exterior projects along the normal
Minimize half the squared distance. The projection subtracts a nonnegative multiple of the normal (1,1), with factor max(0,(q₁+q₂−L)/2). When it is positive, use z₁+z₂≤L at a binding projection to get the variational inequality. At a boundary input the constraint can be active with multiplier zero.
| Quantity | Exact result |
|---|---|
| Input constraint residual | 4 |
| Projection | (1, 0) |
| Multiplier | 2 |
| Projected constraint residual | 0 |
| Half squared distance | 4 |
| Stationarity | q−x*=λ(1,1) |
| Complementarity | λ(x₁*+x₂*−L)=0 |
| Variation against feasible z | (q−x*)·(z−x*)≤0 |
| Exact outward residual q−x* | (2,2) |
| Boundary constraint active | Yes |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| q | [3,2] |
| L | 1 |
The subgradient combines the active pieces at a minimizer
A kink uses both affine slopes
At zero, the active affine maximum has subdifferential [a,b], so a convex combination can cancel the smooth derivative if it contains zero. On a strict branch, use only the slope of the larger affine value. Strong convexity from ρ>0 makes the certified minimizer unique.
| Quantity | Exact result |
|---|---|
| Global minimizing x | 0 |
| Optimal objective | 0 |
| Active affine slopes | a=−1 and b=+1 |
| Weights on a and b | (1/2, 1/2) |
| Weighted active slope | 0 |
| Smooth derivative ρx* | 0 |
| Stationarity sum | 0 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| rho | 1 |
| a | -1 |
| b | 1 |
A conjugate supplies an exact nonnegative gap
An exact supporting contact
Maximize u z−f(z) over z. Its derivative vanishes at z=b+u/a and the objective is strictly concave. Substitution gives the conjugate expression. Completing the square in f(x)+f*(u)−u x gives [a(x−b)−u]²/(2a), so equality holds only at the corresponding slope.
| Quantity | Exact result |
|---|---|
| Conjugate f*(u) | u b + u²/(2a)−c |
| Selected coordinates x,u | (2, 2) |
| Contact x(u) | 2 |
| f(x) | 4 |
| f*(u) | 0 |
| u x | 4 |
| Fenchel–Young gap | 0 |
| Equality condition | u=a(x−b) at the selected pair: yes |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 2 |
| b | 1 |
| c | 3 |
| x | 2 |
| u | 2 |
A convex optimum may exist without a constraint multiplier
A strict feasible point and finite multiplier
For λ>0 minimize the Lagrangian x+λ(x²−r) at x=−1/(2λ). At r>0 stationarity and complementarity hold at −√r, and λ=1/(2√r) attains the equal dual value. At r=0 the only primal point is zero and stationarity is impossible for finite λ; the dual value approaches zero from below and the optimal values still match.
| Quantity | Exact result |
|---|---|
| Feasible interval | [-2, 2] |
| Primal argmin / value | -2 / -2 |
| Slater | Yes, x=0 is strictly feasible |
| Stationarity | 1+2λx=0 |
| Finite optimal multiplier | 1/4 |
| Dual function | g(λ)=−1/(4λ)−rλ for λ>0; g(0)=−∞ |
| Dual supremum / attainment | -2 / attained |
| Duality gap | 0 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| r | 4 |
A rank-one matrix and a shifted PSD cost certify the optimum
Positive off-diagonal cost favors negative q
Write X=[[p,q],[q,1−p]]. Trace one and PSD give the filled disk. The cost is a+2bq. The extreme q with opposite sign to b yields the unique rank-one optimum when b is nonzero. The dual condition C−yI⪰0 proves tr(CX)≥y for any trace-one PSD X, and the displayed product vanishes exactly.
| Quantity | Exact result |
|---|---|
| Smallest eigenvalue a−|b| | 2 |
| One exact primal X | [[1/2,−1/2],[−1/2,1/2]] |
| Dual scalar y | 2 |
| Dual slack C−yI | [[1,1],[1,1]] |
| Slack eigenvalues | 0, 2 |
| Matrix complementarity | (C−yI)X=0 |
| Primal and dual objective | 2 / 2 |
| Gap | 0 |
| Other primal optima | None |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 3 |
| b | 1 |
Worked examples
A constrained quadratic certificate
Minimize (x-3)^2+(y-1)^2 subject to x+y<=2, x, y>=0. Find the exact optimum and every multiplier in the original three-inequality convention.
- The feasible set is the closed triangle x>=0, y>=0, x+y<=2. It is nonempty and compact, so the continuous objective attains a minimum. Its Hessian is 2I, making the objective strictly convex and the feasible minimizer unique. The unconstrained point (3, 1) is infeasible; the constrained test must keep all three original inequalities.
- At the candidate (2, 0), the sum row and the y lower bound are active, while -x=-2 is strictly negative. The objective value is (2-3)^2+(0-1)^2=2, and its gradient is (-2, -2). Complementary slack therefore forces the multiplier of -x to be zero, even though it does not force the multiplier of the active -y row to be positive.
- Write the nonnegative multipliers as (a, b, c) for (x+y-2, -x, -y). Stationarity gives -2+a-b=0 and -2+a-c=0. Since b=0, these equations force a=2 and c=0. Thus every multiplier in the declared convention is determined: (a, b, c)=(2, 0, 0). It has the required signs and its products with all three constraint values vanish.
- The candidate is feasible and satisfies a convex KKT certificate, so the supporting inequality for its Lagrangian proves global optimality. Strong convexity gives primal uniqueness. The active y bound with zero multiplier is consistent with complementarity; replacing it by a strictly positive multiplier would violate stationarity and would not describe another valid certificate.
The unique optimum is (2, 0), with value 2. For g=(x+y-2, -x, -y), the entire multiplier vector is (2, 0, 0).
A parameterized Hessian
For f(x, y)=x^2+2*rho*x*y+y^2 on R^2, determine exactly when it is convex, strictly convex and strongly convex. Give the largest strong-convexity constant and explain the boundary and indefinite cases.
- The gradient is (2x+2rho y, 2rho x+2y), and the constant Hessian is 2[[1, rho], [rho, 1]]. The orthogonal directions (1, 1) and (1, -1) have Hessian eigenvalues 2(1+rho) and 2(1-rho). These exact eigenvalues, rather than the separate diagonal entries, determine joint convexity on the declared domain R^2.
- Both eigenvalues are nonnegative exactly when -1<=rho<=1. Both are positive exactly when |rho|<1, in which case the quadratic is strictly convex. Its largest Euclidean strong-convexity constant is the smaller eigenvalue mu=2(1-|rho|). Subtracting (mu/2)(x^2+y^2) leaves a positive-semidefinite quadratic, while any larger constant fails along a minimum-eigenvalue direction.
- At rho=1 the objective is (x+y)^2, and at rho=-1 it is (x-y)^2. It is convex but constant along a nonzero direction, so it is neither strictly convex nor strongly convex with any positive constant. The minimum zero is attained on an entire line, showing exactly where uniqueness fails at the parameter boundary.
- If |rho|>1, take (x, y)=t(1, -sign(rho)). Its objective is 2(1-|rho|)t^2, which tends to -infinity as |t| grows. The Hessian is then indefinite, not merely inconclusive. The constant Hessian makes all of these statements global on R^2; no disconnected-domain or local-Hessian qualification is being used.
Convex exactly for |rho|<=1; strictly and strongly convex exactly for |rho|<1, with largest mu=2(1-|rho|). At |rho|=1 there is a flat line, and for |rho|>1 the objective is unbounded below.
A nonsmooth minimax quadratic
Minimize max((x-1)^2, (x+1)^2) on R. Give a subgradient certificate, active weights and the exact strong-convexity form.
- Expand the two branches as x^2-2x+1 and x^2+2x+1. Their maximum is F(x)=x^2+1+2|x|. Hence F(x)>=1, with equality only at x=0. Both original branches are active there, and their ordinary derivatives are -2 and +2.
- The subdifferential at zero is the convex hull [-2, 2], which contains zero. A weighted derivative combination -2alpha_1+2alpha_2=0 with nonnegative weights summing to one forces alpha_1=alpha_2=1/2. These weights also certify the epigraph formulation with optimum t=1; neither active branch alone has a zero derivative.
- The function F(x)-(2/2)x^2=1+2|x| is convex, so F is 2-strongly convex in the Euclidean convention used here. In particular, the supporting subgradient zero gives F(x)>=F(0)+x^2. The exact excess is x^2+2|x|, which is at least that quadratic lower bound and is positive away from zero.
- The constant 2 is largest: on either open half-line F has second derivative 2, so subtracting any larger quadratic curvature would make the smooth restriction nonconvex. Nondifferentiability at the minimizer does not obstruct a global certificate; it requires the actual subgradient interval instead of choosing one branch derivative and calling it the gradient of the maximum.
The unique minimizer is x=0 with value 1; active weights are (1/2, 1/2), and F(x)=1+x^2+2|x| is 2-strongly convex.
Projection onto a simplex
Project z=(3, -1, 2) onto {x>=0: x1+x2+x3=1} in Euclidean distance. Give the threshold and a normal/KKT certificate, including the zero coordinate at the threshold.
- The probability simplex is nonempty, closed and convex, so Euclidean projection exists uniquely. Its coordinate KKT equations are x_i-z_i+nu-lambda_i=0 with x_i>=0, lambda_i>=0 and lambda_i x_i=0. Thus a positive coordinate has x_i=z_i-nu, while a zero coordinate requires z_i<=nu. The common threshold is determined by sum_i max(z_i-nu, 0)=1.
- With z=(3, -1, 2), choose nu=2. The threshold formula gives (max(1, 0), max(-3, 0), max(0, 0))=(1, 0, 0), whose sum is one. The third coordinate lies exactly at the threshold: its zero value is included in the closed inactive side, rather than arbitrarily being made positive.
- At x=(1, 0, 0), x-z=(-2, 1, -2). Adding nu times the all-ones vector gives (0, 3, 0), so lambda=(0, 3, 0). Every multiplier is nonnegative, all products lambda_i x_i vanish, and the equality is exact. In particular, the threshold-equality third coordinate has zero multiplier as well as zero primal value.
- The normal certificate z-x=nu times the all-ones vector - lambda belongs to the outward normal cone of the simplex. It proves the projection inequality for every feasible point. The squared distance is 4+1+4=9, hence the requested half-squared objective is 9/2. The positive-definite quadratic makes this feasible KKT point the unique projection.
The projection is (1, 0, 0), with threshold tau=2 and half-squared distance 9/2. In L=(1/2)||x-z||^2+nu(sum x-1)-lambda dot x, nu=2 and lambda=(0, 3, 0).
A vector soft threshold
Minimize (1/2)||x-z||^2+||x||_1 for z=(3, -1/2, 0). Give the exact point, value and a full coordinate subgradient certificate.
- The objective separates into three scalar quadratics plus absolute values, with threshold one. Applying the scalar stationarity cases to z=(3, -1/2, 0) gives x_1=3-1=2, while the other two coordinates satisfy |z_i|<=1 and therefore give x_2=x_3=0. The quadratic part makes the whole objective 1-strongly convex.
- The residual z-x is (1, -1/2, 0). At the positive first coordinate, the l1 subgradient is exactly +1. At each zero coordinate the allowed subgradient interval is [-1, 1], which contains -1/2 and 0 respectively. Thus s=(1, -1/2, 0) is a complete coordinate subgradient and x-z+s=0.
- The squared displacement is (-1)^2+(1/2)^2+0=5/4, so its half is 5/8. The l1 norm of the candidate is 2, yielding objective 5/8+2=21/8. This calculation retains the half in the quadratic; dropping it would change both the threshold and the final value.
- Convex Fermat proves global optimality, and strong convexity proves uniqueness. Setting the middle subgradient to zero merely because x_2=0 would leave a nonzero stationarity residual; the full interval is what permits this exact zero coefficient. The certificate therefore explains sparsity while preserving the original nonsmooth definition.
The unique point is (2, 0, 0), with value 21/8 and subgradient s=(1, -1/2, 0)=z-x in partial||x||_1.
A relative-entropy allocation
Let q=(1/2, 1/3, 1/6). Minimize sum_i p_i log(p_i/q_i) over p>=0, sum_i p_i=1, p1=1/4, with 0log0=0. Find the optimizer, value and equality multipliers, justifying positivity and uniqueness.
- The constraints fix p_1=1/4 and p_2+p_3=3/4. The remaining segment is compact, and the extended entropy is continuous there, so the minimum is attained. A positive feasible point exists. Moving off either remaining endpoint into that positive segment lowers the zero-coordinate entropy term to first order in t log t, so the minimizer has p_2, p_3>0.
- Interior stationarity along that segment requires log(p_2/q_2)+1=log(p_3/q_3)+1. Hence p_2/p_3=q_2/q_3=2, giving p_2=1/2 and p_3=1/4. Together with the fixed coordinate, this gives p=(1/4, 1/2, 1/4). Strict convexity of entropy on this feasible segment proves that it is the only optimum.
- The three ratios p_i/q_i are 1/2, 3/2 and 3/2. For L=F+nu(sum p-1)+eta(p_1-1/4), stationarity in coordinates two and three gives nu=-1-log(3/2). Coordinate one then gives eta=log 3. Since every p_i is positive, the nonnegativity multipliers are zero. The two equality-row gradients are independent, so these equality multipliers are determined.
- Substitution yields F=(1/4)log(1/2)+(1/2)log(3/2)+(1/4)log(3/2). This is the displayed value, with natural logarithms and dimensionless probability ratios. Feasibility, the full stationarity equations and strict convexity establish the result; no assumption that every affine entropy model has a positive optimizer has been made.
The unique optimizer is p=(1/4, 1/2, 1/4), with value (1/4)log(1/2)+(3/4)log(3/2). For L=F+nu(sum p-1)+eta(p1-1/4), nu=-1-log(3/2), eta=log 3, and all nonnegativity multipliers are zero.
A convex optimum with no multiplier
For min x subject to x^2<=0 on R, prove the primal optimum and show directly why no finite nonnegative KKT multiplier exists.
- The constraint x^2<=0 forces x=0, so the primal optimum is attained and equals zero. Both the objective x and the inequality function x^2 are convex on R. The absence of a strict inequality point is immediate, since a square cannot be negative.
- The Lagrangian is L(x, lambda)=x+lambda x^2 with lambda>=0. At the only feasible point, its derivative is 1+2lambda times 0=1. Feasibility and complementary slack hold there, but stationarity fails for every finite nonnegative multiplier. There is therefore no KKT pair in the original squared-constraint representation.
- For lambda>0, completing the square gives L=lambda(x+1/(2lambda))^2-1/(4lambda), so the dual function is -1/(4lambda). For lambda=0, inf_x x=-infinity. Taking lambda to positive infinity makes the finite dual values approach zero from below, showing that the dual supremum equals the primal value but is not attained by any finite multiplier.
- This zero-gap example separates strong duality in value from existence of a finite KKT certificate. The true outward normal of the feasible singleton is all of R, whereas nonnegative multiples of the active constraint gradient produce only zero. Replacing the original inequality by the equivalent equality x=0 would change the multiplier representation and cannot be used to claim a KKT multiplier for the squared row.
The only feasible point is x=0 and its value is 0, but stationarity 1+2lambda x=0 fails there for every finite lambda>=0. The dual has supremum 0 without a finite maximizer.
A translated perspective gap
Minimize exp(-2x) subject to (x-1)^2/y<=0 on y>0. Compute the attained primal value and the entire Lagrange dual value, exhibiting the escaping infimum and the failed strict-feasibility premise.
- The domain is y>0. The translated perspective (x-1)^2/y is nonnegative and is convex by the perspective Hessian calculation, so feasibility forces x=1 and leaves any positive y. The objective is then exp(-2), which is attained. No point makes the inequality strictly negative.
- For a fixed finite lambda>=0, L=exp(-2x)+lambda(x-1)^2/y is positive at every finite domain point and has lower bound zero. Let x tend to positive infinity with x>=2 and choose y=(1+lambda)(x-1)^2 exp(4x). The second term becomes [lambda/(1+lambda)]exp(-4x), and the first is exp(-2x). Both tend to zero.
- Thus inf L=0 for every lambda>=0, including lambda=0. The entire dual function is known, and its maximum zero is attained by every feasible multiplier. The inner infimum is not attained for any of them. The primal-minus-dual gap is exactly exp(-2), so convexity and primal attainment have not forced equality of the two values.
- At x=1, the perspective gradient is zero in both coordinates, while the objective gradient is (-2exp(-2), 0). Stationarity cannot hold with a finite multiplier. This is the translated positive-gap mechanism, distinct from the squared-constraint example whose dual values approach the primal value. Both keep the strict-feasibility failure explicit rather than invoking Slater without its premise.
The primal value is exp(-2), attained at x=1 and every y>0. The dual function is identically 0 for lambda>=0, so the attained dual maximum is 0 and the gap is exp(-2).
A ball and two multiplier conventions
Project a=(3, 4) onto the Euclidean ball ||x||<=2. Give the exact point, cost (1/2)||x-a||^2 and multiplier for both constraints ||x||-2<=0 and ||x||^2-4<=0.
- The input a=(3, 4) has Euclidean norm 5, outside the radius-two ball. For any feasible x, a dot x<=5||x||<=10, so minimizing the squared distance is achieved in the direction of a at the largest allowed radius. Hence x*=(2/5)a=(6/5, 8/5), with ||x*||=2. Strict convexity of the distance objective makes this point unique.
- The difference x*-a=(-9/5, -12/5) has norm 3, giving half-squared distance 9/2. For g(x)=||x||-2, the gradient at the nonzero boundary point is x*/2=(3/5, 4/5). Stationarity x*-a+lambda grad g=0 gives lambda=3, which is nonnegative and has zero complementary slack.
- For h(x)=||x||^2-4, the gradient is 2x*=(12/5, 16/5). The same stationarity equation now requires multiplier lambda_squared=3/4. It again has the correct sign and zero slack. Since both the objective and this squared-norm inequality are convex, this is a valid global certificate in that convention as well.
- The two gradients differ by the factor 2R=4 on this boundary, so the multipliers differ by its reciprocal. Their different numerical values represent the same supporting normal vector, rather than different optima. The radius is positive and the point is nonzero, so the ordinary gradient of the norm used in the first certificate is well defined.
The projection is (6/5, 8/5) and its half-squared distance is 9/2. The multiplier is 3 for ||x||-2<=0 and 3/4 for ||x||^2-4<=0.
A two-by-two semidefinite optimum
Minimize trace(CX) subject to trace(X)=1, X positive semidefinite, where C=[[2, 1], [1, 2]]. Find primal and dual optima and verify both trace and matrix complementarity.
- The symmetric cost matrix C has eigenvectors (1, -1)/sqrt(2) and (1, 1)/sqrt(2), with eigenvalues 1 and 3. Put X*=v v^T for the first unit eigenvector. This is (1/2)[[1, -1], [-1, 1]], is positive semidefinite, and has trace one. Its objective is v^T Cv=1.
- With equality Lagrangian L=<C, X>+nu(trace X-1), the dual requires C+nu I positive semidefinite and has value -nu. Equivalently, writing y=-nu gives maximize y subject to C-y I positive semidefinite. Choose y=1, so S=C-I=[[1, 1], [1, 1]], whose eigenvalues are zero and two.
- Matrix multiplication gives SX*=0, and consequently trace(SX*)=0. The primal and dual values both equal one, so weak duality proves global optimality without needing an existence theorem. The point I/2 is also strictly positive definite with trace one, but that extra Slater fact is not being substituted for the explicit matching certificate.
- For any optimum, the PSD gap trace(SX) must vanish, hence SX=0. Its range therefore lies in the one-dimensional kernel spanned by v. A PSD matrix with that range and trace one must equal v v^T, proving uniqueness. The negative off-diagonal entries of X* are allowed; positive semidefinite never meant entrywise nonnegative.
The unique primal optimum is X=(1/2)[[1, -1], [-1, 1]] with value 1. In the dual maximize y with C-yI PSD, y=1 and S=[[1, 1], [1, 1]], giving trace(SX)=0 and SX=0.
A complete sparse least-squares pair
For A=diag(1, 2), b=(3, 1), lambda=1, minimize (1/2)||Ax-b||^2+lambda||x||_1. Find an exact primal point, residual dual point and matching primal/dual values.
- The diagonal matrix separates the primal objective. The first coordinate minimizes (1/2)(x_1-3)^2+|x_1|, so x_1=2. The positive second-coordinate branch solves 2(2x_2-1)+1=0, giving x_2=1/4, consistent with that branch. The quadratic Hessian diag(1, 4) is positive definite, so the whole objective is strongly convex.
- The residual y=Ax-b is (2-3, 1/2-1)=(-1, -1/2). Multiplying by A^T gives (-1, -1), whose infinity norm is one, so y is dual feasible for lambda=1. Both primal coordinates are positive, and -A^T y=(1, 1) is their exact l1 subgradient. Thus stationarity and the residual equality are satisfied.
- The residual squared norm is 1+1/4=5/4, contributing 5/8 to the primal objective. The l1 norm is 2+1/4=9/4, so P=5/8+9/4=23/8. The dual value is -(1/2)(5/4)-b dot y=-5/8+3+1/2=23/8, using the residual-sign convention y=Ax-b.
- The exact gap formula has residual square zero and l1 complementarity term 9/4+x dot(-1, -1)=0. It therefore verifies the matching values independently of a stationary-branch guess. Strong convexity supplies primal uniqueness here because A is invertible; the general rank-deficient sparse model does not inherit coefficient uniqueness from this example.
The unique primal point is x=(2, 1/4), its residual dual point is y=(-1, -1/2), and both objective values are 23/8.
A quantified approximate KKT point
Minimize (1/2)||x||^2 subject to x1+x2>=2, x>=0. At the feasible test point (6/5, 6/5), use multiplier 1 for the sum row and 0 for the coordinate bounds. Compute stationarity residual, complementarity term, a rigorous strong-convexity lower bound and a certified objective gap.
- Use g_0(x)=2-x_1-x_2 and the bound rows -x_1, -x_2. The test point is feasible, with g_0=-2/5 and negative bound slacks. Its objective is (1/2)(36/25+36/25)=36/25. The stated multipliers are lambda_0=1 and both bound multipliers zero, so their complementary slack term is -sum lambda_i g_i=2/5.
- The objective gradient is x, and lambda_0 grad g_0=(-1, -1). Thus the Lagrangian stationarity residual is r=(1/5, 1/5), with squared norm 2/25. The Lagrangian is 1-strongly convex, and its value at the point is 36/25-2/5=26/25. The equality term is absent in this problem.
- The lower bound is ell=26/25-(2/25)/2=1. Subtracting it from the feasible objective gives 36/25-1=11/25, equivalently 2/5+1/25 from complementarity plus stationarity. This bound uses a globally valid strong-convexity constant and the exact multiplier signs, so it is a certified primal objective gap rather than a residual heuristic.
- The true optimum is (1, 1), with value one: x_1+x_2>=2 implies x_1^2+x_2^2>=(x_1+x_2)^2/2>=2, with equality at that point. Hence the objective-gap certificate is exact here. The actual squared distance from the test point is only 2/25, whereas the general strong-convexity distance estimate gives at most 22/25; that separate distance bound is not tight.
At x=(6/5, 6/5), r=(1/5, 1/5), ||r||^2=2/25, and the complementary slack term is 2/5. The rigorous lower bound is 1 and the certified objective gap is 11/25.
Try it yourself
On F={-1, 1}, minimize f(x)=x. Explain why 1 is a local minimum in the relative feasible topology but not a global minimum, and identify the missing convexity premise.
Show the answer and reasoning
Both points are local minima in the relative topology; 1 is not global because f(-1)=-1<1. The feasible set is not convex.
A relative neighborhood of 1 is the intersection of F={-1, 1} with an open real interval around 1. Choosing a radius smaller than two makes that intersection the singleton {1}. The local-minimum inequality therefore holds for every feasible point in that neighborhood, since the only point to compare is 1 itself. The other feasible point has objective f(-1)=-1, whereas f(1)=1. Thus 1 is not a global minimizer. The same isolation argument also makes -1 a local minimum; in its case the direct comparison shows it is global as well. Locality on an isolated feasible point can impose no nontrivial nearby comparison. The objective f(x)=x is convex and differentiable on the ambient line, but F is not a convex set: the midpoint of -1 and 1 is zero, which is absent. The segment argument proving that every local minimum of a convex problem is global cannot be made within this feasible domain. This counterexample keeps the relative topology rather than silently replacing it by an ambient unconstrained derivative test. In particular, f prime=1 does not rule out a relative local minimum on an isolated feasible point. The missing premise is convexity of the feasible set, not convexity or smoothness of this linear objective.
Show that exp(x) on R is strictly convex with finite infimum 0 but no minimizer. State what uniqueness does and does not imply.
Show the answer and reasoning
exp(x) is strictly convex, has infimum 0 as x tends to -infinity, and never attains it. Strict convexity gives at most one minimizer, not existence.
The first and second derivatives are both exp(x), and the second derivative is positive at every real point. On the convex domain R this establishes strict convexity. The function is strictly positive everywhere, so zero is a lower bound that no finite x attains. Taking x=-t with t tending to positive infinity gives exp(-t) tending to zero. Hence no larger lower bound is possible, and the infimum is exactly zero. The minimizing sequence escapes to negative infinity, which is why continuity on this unbounded domain does not force attainment. If two distinct minimizers of a strictly convex function on a convex domain existed, the value at their midpoint would be strictly below their common minimum. Thus strict convexity proves at most one minimizer. That conditional uniqueness proof contains no argument producing a point at the infimum. Existence can follow from an appropriate compactness or coercivity assumption, but neither is present here: the sublevel sets toward negative infinity are unbounded. The absence of a derivative-zero point is consistent with nonattainment. It must not be repaired by inventing a minimizer at an infinite coordinate outside R.
For f(x)=x^2, prove the two-point Jensen inequality by expanding the exact difference, and interpret it as epigraph convexity.
Show the answer and reasoning
theta x^2+(1-theta)z^2-[theta x+(1-theta)z]^2=theta(1-theta)(x-z)^2>=0, so the epigraph is convex.
For theta in [0, 1], expand the square of theta x+(1-theta)z. Its coefficients are theta^2 x^2, 2theta(1-theta)xz and (1-theta)^2 z^2. Subtracting from theta x^2+(1-theta)z^2 leaves theta(1-theta)(x-z)^2. That exact difference is nonnegative, giving f(theta x+(1-theta)z)<=theta f(x)+(1-theta)f(z). If 0<theta<1 and x differs from z, the difference is strictly positive. Thus the calculation proves both convexity and strict convexity on the declared convex domain R. Take two epigraph points (x, s) and (z, t), so s>=x^2 and t>=z^2. The interpolated height theta s+(1-theta)t is at least theta x^2+(1-theta)z^2, which is at least the square of the interpolated coordinate. Their convex combination is therefore another epigraph point. Conversely, applying epigraph convexity to the boundary points (x, x^2) and (z, z^2) gives exactly the two-point Jensen inequality above. The geometric epigraph test and the algebraic function test express the same condition. No differentiability argument or numerical sampling is needed to establish it.
For f(x)=exp(x), derive its supporting line at x=0 and use it to certify a minimum under x>=0 without confusing the derivative with an unconstrained Fermat test.
Show the answer and reasoning
exp(x)>=1+x. On x>=0 this gives exp(x)>=1 with equality at x=0; grad f(0)=1 is balanced by the outward normal -1.
The exponential is convex, with f(0)=1 and f prime(0)=1. Its first-order supporting inequality is exp(x)>=1+x for all real x. This is a global lower line, unlike a local Taylor approximation with an unspecified remainder sign. For feasible x>=0, the supporting line is at least one. The feasible point zero has exponential value one, proving that it is a global minimum. Strict increase or strict convexity together with this comparison also proves its uniqueness on the half-line. The outward normal cone of [0, infinity) at zero consists of the nonpositive real numbers. Thus -grad f(0)=-1 belongs to that cone, and 0 belongs to grad f(0)+N_C(0). This is the correct constrained first-order certificate. The unconstrained differentiable Fermat equation grad f(0)=0 does not hold and is not required at this boundary optimum. Equivalently, writing the inequality as -x<=0 gives nonnegative multiplier one and stationarity 1-1=0. The derivative and the active constraint normal must be used in the same convention.
The function 1/x^2 has positive second derivative on R without 0. Explain why this does not make it a convex function on that whole nonconvex domain under the standard convex-domain definition.
Show the answer and reasoning
The second derivative is 6/x^4>0 on each component, but R without 0 is not convex. Extending by +infinity at 0 fails Jensen for the endpoints -1 and 1.
For x different from zero, differentiating f(x)=x^(-2) gives f prime=-2x^(-3) and f double prime=6x^(-4)>0. On either convex interval (-infinity, 0) or (0, infinity), the Hessian criterion therefore proves strict convexity of that restricted function. The union of those intervals is not a convex domain. In particular, -1 and 1 belong to it but their midpoint zero does not. The standard definition of a convex function requires a convex effective domain, so the positive Hessian on the disconnected pieces cannot establish convexity on that union. In an extended-value description with f(0)=+infinity, the midpoint Jensen inequality would require +infinity<=((1)+1)/2=1, which is false. This makes the missing-domain failure explicit rather than treating a derivative formula at nonzero points as a global definition. One may legitimately optimize the two restrictions separately or impose a convex domain contained in one component. One may not pass a segment through the excluded singularity while applying a theorem whose hypotheses require that segment to remain in the domain. Smooth curvature and global domain geometry are independent checks.
For g(x, t)=x^2/t, t>0, compute its Hessian quadratic form and prove joint convexity. Explain the boundary and strict-convexity limitations.
Show the answer and reasoning
The Hessian quadratic form is (2/t)(h-xk/t)^2>=0. The function is jointly convex but not strictly convex; its closed extension at t=0 is 0 for x=0 and +infinity otherwise.
For t>0, the gradient of g=x^2/t is (2x/t, -x^2/t^2). Its Hessian is [[2/t, -2x/t^2], [-2x/t^2, 2x^2/t^3]]. Pairing this matrix with a direction (h, k) and expanding gives (2/t)(h-xk/t)^2, which is nonnegative. The domain {(x, t): t>0} is open and convex, so this positive-semidefinite Hessian proves joint convexity. Its rank is one, and the direction (x, t) has zero curvature. More directly, g(cx, ct)=c g(x, t) for c>0; along any such ray the function is affine, so it is not strictly convex jointly. As t decreases to zero while x approaches a fixed nonzero value, x^2/t tends to +infinity. At (0, 0), the liminf is at least zero and the path x=0 attains limiting value zero. Thus the lower-semicontinuous convex extension has value zero at (0, 0), +infinity at (x, 0) for nonzero x, and +infinity for t<0. This boundary extension is a separate domain statement, not permission to divide by zero in the original formula. For each fixed positive t the function is strictly convex in x, but that does not imply strict joint convexity. The null direction and the explicit ray equality identify exactly why the stronger claim fails.
Compute inf_z[(x-z)^2+z^2], identify the minimizer and prove convexity of the resulting function. Distinguish this attained example from the general partial-infimum theorem.
Show the answer and reasoning
The unique inner minimizer is z=x/2 and the partial infimum is x^2/2, a strictly convex function of x.
Expand (x-z)^2+z^2=x^2-2xz+2z^2. Completing the square gives 2(z-x/2)^2+x^2/2. Since the first term is nonnegative, the expression is bounded below by x^2/2 for every z. Choosing z=x/2 makes that square zero. Hence the infimum is attained at exactly that value, because its coefficient is strictly positive. The reduced value function is therefore h(x)=x^2/2, with no missing inner-domain or attainment condition. The reduced function has second derivative one on R, so it is strictly convex and 1-strongly convex. It is also the partial infimum of the jointly convex original quadratic, in agreement with the general convexity theorem for partial minimization. The general theorem can prove convexity through arbitrarily close inner choices even when an inner infimum is not attained. This example is stronger because completing the square supplies an actual unique minimizer for every x. That additional conclusion comes from this particular coercive quadratic and must not be silently added to all partial-infimum constructions.
Compute partial|x| at 0 and show that the proper closed convex function f(x)=-sqrt(x) on x>=0, extended by +infinity for x<0, has no finite subgradient at 0.
Show the answer and reasoning
partial|x|(0)=[-1, 1]. For the closed convex extension of -sqrt(x) on x>=0, the subdifferential at 0 is empty.
A subgradient s of |x| at zero must satisfy |z|>=s z for every real z. Positive z requires s<=1, and negative z requires s>=-1. Conversely, each s in [-1, 1] satisfies the inequality on both half-lines, giving the exact interval. For f(x)=-sqrt(x) on x>=0 and +infinity on x<0, the effective domain is convex and nonempty. The function is continuous at its finite boundary zero and has positive second derivative 1/(4x^(3/2)) for x>0; its extended epigraph is closed and convex. It is a proper closed convex function. A finite subgradient s at zero would require -sqrt(z)>=s z for every z>0. Dividing by z gives s<=-1/sqrt(z) for every positive z. The right side tends to negative infinity as z decreases to zero, so no finite real s can satisfy all those inequalities. Thus proper closed convexity does not promise a finite subgradient at every boundary point of the effective domain. The interior subgradient-existence theorem retains its relative-interior hypothesis. An infinite one-sided slope is not a member of the finite-dimensional subdifferential and cannot be inserted into a KKT vector as a finite certificate.
Compute the outward normal cone of [0, infinity) at 0 and at positive points. Use it to certify min x over that set.
Show the answer and reasoning
N_[0, infinity)(0)=(-infinity, 0], and N_[0, infinity)(x)={0} for x>0. At the minimum 0 of f(x)=x, grad f=1 is canceled by normal -1.
By the outward-normal definition, n belongs to N_C(x) when n(z-x)<=0 for every z in C. At x=0, the tests are n z<=0 for all z>=0. This is equivalent to n<=0, yielding the entire negative half-line including zero. At x>0, choose feasible z both slightly above and slightly below x. The two inequalities force n<=0 and n>=0 respectively, so n=0. That value indeed pairs to zero with every feasible displacement, giving N_C(x)={0}. The linear objective f(x)=x is minimized at zero on C, with value zero. Its gradient is one, and the normal -1 at the endpoint satisfies 0=1+(-1). For every feasible z, the supporting inequality and the normal condition give f(z)>=f(0). No positive point can satisfy the same stationarity condition, because its normal cone is only {0} and the gradient is one. Directly, every positive point has a smaller feasible point. The normal-cone sign is outward; reversing it would incorrectly rule out the true boundary optimum.
Write the Euclidean projection onto [0, 1] and prove its nonexpansiveness for arbitrary real input pairs, including pairs on opposite sides of the interval.
Show the answer and reasoning
P(z)=min(1, max(0, z)); for all real u, v, |P(u)-P(v)|<=|u-v|, including opposite-side inputs.
The squared distance to [0, 1] is minimized at zero if z<=0, at z itself if 0<=z<=1, and at one if z>=1. These cases give the clip formula P(z)=min(1, max(0, z)), with consistent values at both endpoints. The closed interval is convex, so the projection is unique. It suffices by symmetry to take u<=v. The clip map is nondecreasing, so P(v)-P(u)>=0. If both inputs lie below zero or both above one, that difference is zero; if both are inside the interval, it is exactly v-u. If u<=0<=v<=1, the difference is v<=v-u. If 0<=u<=1<=v, it is 1-u<=v-u. Finally, if u<=0 and v>=1, it is one, which is at most v-u. These cases cover every ordered input pair, including equality at boundaries. Therefore 0<=P(v)-P(u)<=v-u, and taking absolute values yields the desired nonexpansiveness for either input order. In particular, opposite-side inputs are not omitted. The interval-specific case proof agrees with the more general firm nonexpansiveness theorem for projection onto a nonempty closed convex set.
For f(x)=(sigma/2)x^2 with sigma>=0 and gamma>0, derive prox_(gamma f)(z), the minimized envelope value and its derivative.
Show the answer and reasoning
prox_(gamma f)(z)=z/(1+gamma sigma); the envelope is sigma z^2/[2(1+gamma sigma)] and its derivative is sigma z/(1+gamma sigma).
The proximal objective is (sigma/2)x^2+(x-z)^2/(2gamma), with gamma>0 and sigma>=0. Its second derivative is sigma+1/gamma>0, so it has one global minimizer. Its derivative equation sigma x+(x-z)/gamma=0 gives x=z/(1+gamma sigma). At that point, x-z=-gamma sigma z/(1+gamma sigma). Substituting the two terms and combining their denominators gives [sigma z^2+gamma sigma^2 z^2]/[2(1+gamma sigma)^2]=sigma z^2/[2(1+gamma sigma)]. This is the minimized envelope value, not the original function evaluated at z. Differentiating the displayed value with respect to z gives sigma z/(1+gamma sigma). It also equals [z-prox_(gamma f)(z)]/gamma, verifying the envelope-gradient formula with the same proximal parameter convention. When sigma=0, the original function is constant, the proximal point is z, and both the envelope and its derivative are zero. The proximal objective remains strictly convex because its distance term has positive curvature. Thus no division by sigma or unwarranted strict-convexity assumption on the original f is needed.
For f(x)=(a/2)x^2, a>0, derive f*(y) and express the Fenchel-Young gap as a nonnegative square.
Show the answer and reasoning
f*(y)=y^2/(2a), attained at x=y/a, and f(x)+f*(y)-xy=(ax-y)^2/(2a)>=0, with equality iff y=ax.
By definition f*(y)=sup_x[yx-(a/2)x^2] for a>0. Completing the square gives yx-(a/2)x^2=y^2/(2a)-(a/2)(x-y/a)^2. The supremum is therefore finite and is attained uniquely at x=y/a. Substituting this value into the Fenchel-Young difference gives (a/2)x^2+y^2/(2a)-xy. Combining the terms over the common denominator 2a gives (ax-y)^2/(2a), an exact nonnegative square. The gap vanishes exactly when y=ax, which is the derivative and subgradient relation y in partial f(x). The maximizing point for the conjugate and the supporting-gradient relation describe the same equality condition, rather than two unrelated stationary calculations. The assumption a>0 is essential for these finite quadratic formulas. At a=0 the conjugate is instead an indicator at y=0, and the displayed divisions would be undefined. The derivation keeps the positive curvature and the real-line domain explicit instead of extrapolating the formula through that boundary.
For min x^2 subject to x>=1 on R, derive the Lagrange dual and an attained primal-dual KKT pair under the >= row convention.
Show the answer and reasoning
Using L=x^2-lambda(x-1), lambda>=0, the dual is maximize lambda-lambda^2/4. Its optimum is lambda=2, matching x=1 and value 1.
The primal feasible domain is x>=1, so x^2>=1 with equality at x=1. Thus the primal minimum is attained with value one. To retain the >= row convention, attach a nonnegative multiplier lambda through subtraction: L=x^2-lambda(x-1)=x^2-lambda x+lambda. Completing the square gives L=(x-lambda/2)^2+lambda-lambda^2/4. Its infimum over the unconstrained Lagrangian variable is therefore d(lambda)=lambda-lambda^2/4, attained at x=lambda/2. The dual multiplier must still obey lambda>=0. The concave dual quadratic equals 1-(lambda-2)^2/4, so its maximum is one at lambda=2. At the matching primal point x=1, stationarity 2x-lambda=0 holds, the primal inequality is feasible, and lambda(x-1)=0 gives complementary slack. Weak duality and the two matching values certify global optimality. The positive multiplier is consistent with an active lower-bound row in the >= convention; using a plus sign before lambda(x-1) would represent the wrong lower bound. Strict feasibility is available at x=2, but the explicit certificate already proves the particular result.
For min x subject to x=0, x>=0, give a valid KKT multiplier pair even though the original inequality is never strict. Explain why this does not contradict the failed nonlinear-qualification example.
Show the answer and reasoning
For L=x+nu x-lambda x, lambda>=0, every pair nu=lambda-1 is valid; for example (nu, lambda)=(-1, 0). Lack of all-strict feasibility does not prevent this affine normal certificate.
The equality x=0 fixes the only feasible point, and it also satisfies x>=0. Its objective is zero. Write the lower bound as the >= row with L=x+nu x-lambda x, where nu is free and lambda>=0. Stationarity is 1+nu-lambda=0. Complementary slack is lambda x=0 and holds automatically at x=0. Hence every lambda>=0 with nu=lambda-1 gives a KKT pair, including the simple choice lambda=0, nu=-1. The same equality gives the global Lagrangian L=0 for all real x, so its infimum is zero and matches the primal value. No point makes the original nonnegative-variable inequality strict while satisfying the equality, yet the affine equality normal supplies the required stationarity direction. Slater strict feasibility is a sufficient hypothesis for certain necessity and zero-gap results, not a necessary condition for every individual certificate. In the nonlinear example x^2<=0, the only active gradient was zero and no free equality multiplier was present. This affine-face example has different actual constraints, so its valid multiplier does not repair the nonlinear example by analogy.
For f(x)=-x^2 on R, check stationarity at 0, identify its actual nature and explain why a convex global certificate is unavailable.
Show the answer and reasoning
At 0 the derivative vanishes and the second derivative is -2, so 0 is a strict global maximum. The function is unbounded below and has no minimum.
The derivative of f(x)=-x^2 is -2x, which vanishes at zero. Its second derivative is -2 everywhere, so the function is strictly concave, not convex. The stationary equation by itself does not establish a minimizing certificate. For every nonzero x, f(x)=-x^2<0=f(0), proving that zero is a strict global maximum. Taking x with magnitude tending to infinity makes f tend to -infinity, so there is no attained or finite-valued minimum on R. The convex supporting inequality at zero would require f(z)>=f(0)+f prime(0)z=0 for every z. It fails, for example, at z=1 where f(1)=-1. Thus the key global lower-bound step in the convex Fermat argument is unavailable. Even though every unconstrained differentiable local minimum must be stationary, the converse needs additional structure. A stationary value of this nonconvex objective is not its infimum and cannot be used as a valid dual lower bound when such a function appears inside a Lagrangian minimization.
Verify complementarity for X=diag(1, 0), S=diag(0, 2). Explain why PSD does not mean entrywise nonnegative by checking [[1, -1], [-1, 1]].
Show the answer and reasoning
X and S are PSD, trace(SX)=0 and SX=XS=0. The matrix [[1, -1], [-1, 1]] is PSD because its quadratic form is (a-b)^2, despite negative off-diagonal entries.
The eigenvalues of X=diag(1, 0) are one and zero, and those of S=diag(0, 2) are zero and two. Both symmetric matrices are positive semidefinite. Their product is the zero matrix, so its trace is zero and both matrix and trace complementarity hold. This agrees with the general PSD identity trace(SX)=||X^(1/2)S^(1/2)||_F^2. A zero trace here forces the product of the square roots to vanish, and hence forces both XS and SX to vanish. The implication uses positive semidefiniteness of both factors. For M=[[1, -1], [-1, 1]], the quadratic form at (a, b) is a^2-2ab+b^2=(a-b)^2>=0. Its eigenvalues are zero and two, giving the same PSD conclusion. Its off-diagonal entries are nevertheless -1, so entrywise nonnegativity is a different property. Without the PSD hypothesis, zero trace product alone would be insufficient: diag(1, -1) paired with I has trace zero but nonzero matrix product. Exact conic complementarity must therefore retain symmetry, cone feasibility and the actual trace pairing, rather than treating a zero scalar trace as a universal matrix identity.
For f(x)=(1/2)(x-3)^2 on [0, 1], take one projected-gradient step of size 1 from 0. Verify optimality by the normal cone and the fixed-point condition.
Show the answer and reasoning
The step gives P_[0, 1](3)=1, the unique optimum. At 1, grad f=-2 and normal 2 certify optimality; 1=P_[0, 1](1-(-2)).
The derivative is f prime(x)=x-3, with Lipschitz constant one. Starting at x_0=0 and taking step size one gives the unprojected point 0-(0-3)=3. Clipping to the feasible interval [0, 1] gives x_1=1. At the right endpoint, the outward normal cone is [0, infinity). The derivative there is -2, so the normal n=2 satisfies f prime(1)+n=0. The point is feasible, and the convex first-order normal certificate proves global constrained optimality. The projected-gradient fixed-point test gives the same result: P_[0, 1](1-f prime(1))=P_[0, 1](3)=1. The ambient gradient has not vanished, but its negative is an allowed outward normal at the boundary. The objective is strictly convex and is decreasing throughout this interval, so the optimum is unique and has value (1/2)(1-3)^2=2. This exact one-step result is special to this input and quadratic; the general fixed-step convergence theorem does not promise finite termination for every smooth constrained problem.
Minimize max(x, -x, -1) on R. Determine the optimizer, active functions and all feasible optimal epigraph multipliers, checking that they sum to 1.
Show the answer and reasoning
The unique primal optimum is x=0 with epigraph height 0. The first two branches are active, the third is inactive, and all optimal weights are the single vector (1/2, 1/2, 0).
The first two branches have maximum |x|, which is nonnegative and therefore strictly above the constant branch -1. Thus max(x, -x, -1)=|x| for all real x. Its unique minimum is zero at x=0, with epigraph height t=0. At this point the first two epigraph inequalities x-t<=0 and -x-t<=0 are active, whereas -1-t<=0 has slack -1. Complementary slack therefore forces alpha_3=0. Nonnegative epigraph multipliers must also satisfy alpha_1+alpha_2+alpha_3=1 from stationarity in t. Stationarity in x is alpha_1-alpha_2=0. Together with the unit sum and alpha_3=0, this gives alpha_1=alpha_2=1/2. These weights have the correct signs, satisfy every complementary product, and form a zero convex combination of the two active gradients. The equations determine all feasible optimal epigraph multipliers uniquely in this example. Assigning positive weight to the inactive constant branch would violate complementary slack even if a proposed set of weights happened to sum to one. The exact active set and the normalization are both necessary parts of this minimax certificate.
What to carry forward
- A convex function has a convex effective domain. Positive second derivatives on disconnected pieces do not repair a nonconvex domain.
- Strict convexity gives at most one minimiser; compactness, lower semicontinuity or coercivity must separately establish existence when needed.
- A subgradient is a global supporting slope and can fail to exist at a boundary. Splitting a sum or an indicator certificate requires the stated qualification.
- Closed convex projection and proper closed convex proximal problems have exact normal or subgradient certificates and firm nonexpansiveness in Euclidean distance.
- Weak duality does not require primal convexity. Matching finite feasible primal and dual values certify optimality; a nonconvex stationary value is insufficient.
- Slater conditions and attainment supply specific necessity and dual-existence conclusions. Convexity alone can leave a positive gap or no finite KKT multiplier.
- Cone certificates use the actual dual cone and pairing: a norm bound for the Euclidean cone and a trace pairing for positive-semidefinite matrices.
- Algorithm rates and residual bounds keep their step, domain, feasibility, multiplier and curvature assumptions. Coordinate and objective scaling must transform the certificate consistently.
References
Sources for the concepts and teaching approaches in this article.
Stephen Boyd and Lieven Vandenberghe9 sources
- Positive semidefinite and norm conesStephen Boyd and Lieven VandenberghePrimary · PDF
- Convex functions, domains and epigraphsStephen Boyd and Lieven VandenberghePrimary · PDF
- Composition, partial minimisation and perspectivesStephen Boyd and Lieven VandenberghePrimary · PDF
- Conjugates and the Fenchel inequalityStephen Boyd and Lieven VandenberghePrimary · PDF
- Duality and Slater conditionsStephen Boyd and Lieven VandenberghePrimary · PDF
- Certificates and Karush–Kuhn–Tucker conditionsStephen Boyd and Lieven VandenberghePrimary · PDF
- A convex perspective problem with a duality gapStephen Boyd and Lieven VandenberghePrimary · PDF
- Strong convexity and smooth quadratic boundsStephen Boyd and Lieven VandenberghePrimary · PDF
- Quadratic and entropy optimisation examplesStephen Boyd and Lieven VandenberghePrimary · PDF
- Local minima and existence of solutionsDimitri P. BertsekasPrimary · PDF