The constraint is part of the choice problem
Consider two training activities with nonnegative allocations x and y measured in divisible staff-hours. A stipulated benefit index is B(x, y)=12x−x²+8y−y². The index is not dollars, observed performance or an employee rating; it is a transparent hypothetical objective for practicing allocation. A total resource limit is x+y≤6. Neither training effect nor hour divisibility should be assumed in a real program without evidence.
Without the resource limit, each quadratic component peaks at x=6 and y=4, requiring ten hours. The six-hour limit is therefore potentially consequential. Substituting y=6−x on a binding resource boundary gives B(x, 6−x)=12+16x−2x², with 0≤x≤6. Its derivative 16−4x gives x=4, y=2 and benefit 44. Endpoints produce 12 at(0, 6) and 36 at(6, 0), so neither dominates this interior allocation on the boundary.
Why may the inequality be treated as binding here? At the proposed solution both marginal benefits are positive, and the unconstrained optimum requires more than six hours. For any feasible allocation with unused resource and with a positive marginal benefit for an available activity, adding a sufficiently small amount improves the objective. The resource would not bind merely because a planner wrote down a capacity number.
Partial derivatives hold the other variable fixed
The partial derivative Bx=12−2x measures change in the benefit index per additional x-hour while y is held fixed. By=8−2y does the same for y. The gradient is the vector(Bx, By). It summarizes first-order changes in different directions; it is not a total change unless combined with the actual changes in x and y.
For the equality boundary x+y=b, define L=B(x, y)+λ(b−x−y). The first-order conditions are 12−2x−λ=0, 8−2y−λ=0 andb−x−y=0. The sign convention matters: with this definition, λ is the local increase in optimized benefit for an additional hour under suitable regularity and an unchanged active set.
Subtracting the first two equations gives x−y=2. Atb=6, solve with x+y=6 to obtain 4 and 2, then λ=4. The marginal benefits are equal because a small transfer from one activity to the other should not improve the optimum. If resource requirements per unit differ, equality of marginal benefits alone is wrong; compare marginal benefits per unit of the constrained resource.
Establish sufficiency and compare the corners
The objective has second partial derivatives−2 for each activity and zero cross partials. For any nonzero change vector its quadratic curvature is−2(dx²+dy²)<0, so the objective is strictly concave. The nonnegative resource-feasible triangle is convex. These properties support the unique global optimum, in addition to the explicit substitution and boundary checks.
Equality-constrained first-order equations alone are not a universal solution procedure for inequalities. A resource may be unused, nonnegativity can put an activity at zero, and constraints can be singular or redundant. On a corner, forcing both marginal equations to hold can produce negative allocations. Identify active constraints and compare feasible alternatives instead of accepting a negative training hour.
The current on-site methods unit supplies gradient and equality-constrained multiplier preparation; Volume 3 is optional further reading. This bridge introduces the notation needed for the two-variable example and uses direct substitution as an independent check. A general treatment of inequality optimality conditions, nonsmooth optimization and large nonlinear programs goes beyond this bounded bridge; those problems need additional methods and qualifications.
A local resource value is not a promise for a large expansion
For resource levels near six, solve x=(b+2)/2 and y=(b−2)/2 while both allocations are positive and the resource still binds. The multiplier becomes λ=10−b. At six it is 4 benefit-index units per additional hour. At seven the optimum is x=4.5, y=2.5, the benefit is 47.5 and the exact increase is 3.5, not 4. Marginal value declines as the resource expands.
At b=10 the unconstrained pair(6, 4) becomes available and the maximum benefit is 52. More resource is then slack; the best policy need not spend it all. Treating an inequality as x+y=b beyond that point would force wasteful allocation and distort the objective.
The multiplier uses the objective's units. An index multiplier of 4 is not a four-dollar willingness to pay without a defensible conversion. Resource availability does not imply staff are qualified, legally schedulable or actually available. Those operational and authority gates remain separate from the mathematical feasibility set.
Worked example: Reconstruct the constrained optimum two ways
Substitution gives B(x, 6−x)=12+16x−2x², maximized atx=4. Lagrange equations give x−y=2 andx+y=6, hence(4, 2). Direct evaluation yields(48−16)+(16−4)=44. Equal marginal benefits are 4 and 4; both variables are nonnegative.
Worked example: Local versus finite resource value
Atb=7 the allocations are 4.5 and 2.5. Benefit is 54−20.25+20−6.25=47.5, an increase 3.5 from 44. The multiplier 4 atb=6 is an infinitesimal rate, not an exact value for the full additional hour. Atb=11 use(6, 4), benefit 52 and one unused hour.