MATH 250 · Mathematics for Economics II
Inequality Constraints and Kuhn-Tucker Conditions
Handle limits that may or may not bite, such as "spend at most this much" or "buy no less than zero", with complementary slackness.
Key takeaways
- An inequality constraint says "at most" or "at least". It can bind (hold with equality) or be slack (have room to spare).
- If a constraint is slack, its multiplier is zero and it can be ignored. If it binds, its multiplier is positive and it acts like an equality.
- Complementary slackness states this exactly: λ × (slack in the constraint) = 0.
- Nonnegativity limits such as x ≥ 0 are inequality constraints too, and they produce corner solutions.
- You find the answer by guessing which constraints bind, then checking that all conditions hold.
A food truck owner named Omar has a rule from his landlord: park at most three hours a day at the corner lot. Some days that rule hurts, because the lunch rush lasts four hours. Other days it does not matter at all, because a rainy afternoon sends the crowd home after one hour. The rule is the same on both days. Whether it bites depends on what Omar would like to do.
Last lesson's Lagrange method treated limits as equalities: spend exactly the budget. Real limits are usually "at most" or "at least." You may leave money unspent. You cannot buy a negative number of burgers. This lesson extends the machinery to those cases with the Kuhn-Tucker conditions, named for Harold Kuhn and Albert Tucker, two American mathematicians of the mid-twentieth century.
Bind or slack?
Start with one choice. Omar's profit from parking t hours is f(t) = 10t − t², in dollars of hundreds. (The first hours earn most; the later ones are quieter.) The landlord limits him to t ≤ c.
Without the limit, the peak is where f′ = 10 − 2t = 0, so t = 5 hours, with f = 50 − 25 = 25. Now try two limits.
Case 1: the limit is c = 8 hours. The unconstrained peak t = 5 satisfies 5 ≤ 8. The limit is slack: Omar has room to spare. The best choice is t = 5 and the limit has no influence. Its multiplier is zero.
Case 2: the limit is c = 3 hours. The unconstrained peak t = 5 breaks the rule. Profit is rising all the way up to 5, so Omar uses all the time he is given: t = 3. The limit binds. Profit is f(3) = 30 − 9 = 21. The slope at t = 3 is f′(3) = 10 − 6 = 4, which is positive. If the landlord allowed one more hour, profit would climb by about 4. That slope is the shadow price of the limit, the multiplier λ = 4.
With a limit of 8, the peak at 5 is allowed. With a limit of 3, Omar is stopped on the way up.
Complementary slackness
Notice the pattern. In Case 1, the constraint has slack (8 − 5 = 3 unused hours) and λ = 0. In Case 2, the constraint has no slack (3 − 3 = 0) and λ = 4 > 0. Either the slack is zero or the multiplier is zero, never both positive. This is called complementary slackness:
λ × (c − t) = 0, with λ ≥ 0 and c − t ≥ 0 It makes economic sense. A limit that is not in use has no value: why pay to loosen a rule that is not binding? And a limit that is binding is worth something, because loosening it would help. The multiplier cannot be negative for a maximum problem, since loosening a limit can never hurt.
Complementary slackness: the product of the multiplier and the slack is always zero.
The Kuhn-Tucker setup
For a maximum problem with a limit g(x, y) ≤ M, build the Lagrangian as before:
ℒ = f(x, y) + λ × (M − g(x, y)) Then the Kuhn-Tucker conditions are:
ℒ_x = 0 and ℒ_y = 0 (for interior choices)
λ ≥ 0, M − g ≥ 0, λ × (M − g) = 0 (complementary slackness) If x or y must also be nonnegative, the conditions on that variable relax to ℒ_x ≤ 0 with x ≥ 0 and x × ℒ_x = 0: either x is positive and its partial is exactly zero, or x is zero and its partial is not positive (meaning you would love to have less of it, but cannot). The same applies to y.
A two-good example with a corner
Let's use a taste with a twist. Suppose Dara's happiness from cupcakes x and coffee y is
U = 4√x + y (The cupcake part has diminishing returns; the coffee part is a plain count.) Cupcakes cost $2 and coffee costs $1. She spends at most M dollars: 2x + y ≤ M, and x ≥ 0, y ≥ 0. The Lagrangian is ℒ = 4√x + y + λ(M − 2x − y). The partials:
ℒ_x = 2 ÷ √x − 2λ
ℒ_y = 1 − λ Case A: M = 4. Guess that she buys both goods and spends everything. Then ℒ_y = 0 gives λ = 1. Then ℒ_x = 0 gives 2 ÷ √x = 2, so √x = 1 and x = 1. The budget gives y = 4 − 2 × 1 = 2. Check: x = 1 > 0, y = 2 > 0, λ = 1 ≥ 0, budget used. All conditions hold. Utility is 4 × 1 + 2 = 6.
Case B: M = 1. Try the same guess. λ = 1 and x = 1 would cost 2 × 1 = $2, more than the $1 she has. So the guess fails. A second guess: she buys no coffee at all (y = 0) and spends everything on cupcakes: 2x = 1 gives x = 0.5. Check the conditions:
λ = 2 ÷ (2 × √0.5) = 1 ÷ 0.7071 = 1.414 (from ℒ_x = 0)
ℒ_y = 1 − 1.414 = −0.414 ≤ 0 (allowed, since y = 0) The conditions hold. Here is the meaning. At y = 0, ℒ_y is negative: if she could have "negative coffee," she would take less of it and buy more cupcakes. She cannot, so the nonnegativity limit binds. This is a corner solution: one of the goods is not bought at all. Utility is 4 × √0.5 = 2.83.
The multiplier works as before: raise M from 1 to 1.1 and x = 0.55, so U = 4 × √0.55 = 2.966, a gain of about 0.138 for 0.1 dollars, a rate of about 1.38, close to λ = 1.414.
Why the switch? Cupcakes give "bang per buck" of 2 ÷ (2√x) = 1 ÷ √x. That equals coffee's bang per buck of 1 only when x = 1. A person with $4 can afford x = 1 and still buy coffee with the rest. A person with $1 cannot even reach that point; every dollar is better spent on cupcakes, so coffee gets nothing. You may recognize the general lesson from the Lagrange lesson: equal bang per buck holds only if the person buys both goods. At a corner, the good that is not bought gives less bang per buck than the price demands.
A second limit: the capacity story
Here is another way to see the same logic, with a firm. A bakery makes loaves at a cost, and its profit from q loaves (in dollars) is π(q) = 12q − 0.5q². The oven can bake at most 20 loaves a day, so q ≤ 20. Without the limit, π′ = 12 − q = 0 gives q = 12, with π = 144 − 72 = 72. Since 12 ≤ 20, the oven limit is slack, and λ = 0. Buying a bigger oven would add nothing today.
Now a holiday arrives and demand strengthens. Profit becomes π(q) = 30q − 0.5q². The unconstrained peak is where 30 − q = 0, so q = 30, which breaks the oven limit. The limit binds: q = 20, with π = 600 − 200 = 400. The slope at the limit is 30 − 20 = 10, so λ = 10. The bakery would pay up to about $10 a day for room for one more loaf. A manager who knows λ can compare it with the daily cost of a bigger oven and decide whether to buy one. Without the multiplier, the manager is guessing.
Notice that the same oven gave λ = 0 on a normal day and λ = 10 on a holiday. The limit did not change. The shadow price did, because what Omar or the bakery wants to do changed. That is a general feature: a constraint's value depends on the demand pressing against it.
How to guess well
Guess-and-check sounds clumsy, but it is how working economists solve these problems, and a good guess starts with the story.
- With two goods and a budget, first guess that both are bought and the budget is spent. If an answer comes out with a negative amount, switch to a corner.
- If more of a good is always better (no "enough"), the budget will bind, since unspent money is wasted.
- If you meet a function with a clear peak, like the profit functions above, first solve it without limits. If the peak breaks a limit, that limit binds. If it does not, you are done.
With n limits there can be many combinations, but the story usually prunes them fast. The true procedure to count them is mechanical: each limit is either on or off, so two limits give four cases. For small problems, you can simply check all four. Professional software does this at scale for firms with thousands of limits.
Compare this with unconstrained optimization, where a flat spot was the entire story. Here the flat spot may not be allowed, so the best point can sit on an edge where the slope is not zero at all. Omar at t = 3 has a slope of 4, yet that is his best choice. The multiplier is exactly the slope that the limit holds back.
Why economists need this
Real constraints are almost never exact equalities. A firm cannot hire a negative number of workers. A person cannot sell more of a good than she owns. A government cannot run a budget with negative taxes. The Kuhn-Tucker conditions are how economists handle all of this in one framework. They also explain a puzzle that equalities hide: why many households buy no single item in a category, even though the model of "buy a bit of everything" is so common. At a corner, the math is perfectly happy with a zero.
A common mistake
The most common mistake is forcing an equality when the constraint is slack. A student who sets λ = 0 for a binding limit, or ignores the limit and finds t = 5 when the limit says t ≤ 3, will break the rule. The fix is the check: every proposed answer must satisfy every limit, and every multiplier must be nonnegative.
The second mistake is the opposite: assuming every limit binds. In Case 1, treating t ≤ 8 as t = 8 gives f(8) = 80 − 64 = 16, much worse than the true best of 25. A positive-looking λ would be negative there, a flag that the limit does not bind. Indeed f′(8) = 10 − 16 = −6, so the "multiplier" would be −6. A negative multiplier is the alarm bell.
A third mistake is forgetting the nonnegativity limits. If you solve for y and get a negative number, the answer is not allowed. The right response is not to report a negative quantity, but to set y = 0 and re-solve for the rest, as in Case B.
Words to know
Inequality constraint a limit of the form "at most" or "at least," which may leave room to spare.
Binding constraint a limit that is fully used, so the solution sits right on it.
Slack constraint a limit that has room to spare, so it does not affect the solution.
Complementary slackness the rule that either the multiplier is zero or the constraint binds, so their product is zero.
Corner solution a best choice where some good is bought in the amount zero.
Kuhn-Tucker conditions the first-order conditions plus sign and complementary-slackness requirements for problems with inequality limits.
Check yourself
- For f(t) = 10t − t² with t ≤ 4, does the limit bind? Find the best t and λ.
- For the same f with t ≤ 6, does the limit bind? Find the best t and λ.
- In the 4√x + y problem with M = 4, verify that the budget is exactly used.
- Why must a multiplier on an "at most" limit never be negative in a maximum problem?
- In the M = 1 case, why does Dara buy no coffee?
- Explain complementary slackness in one sentence of your own.
Show the answers
- The unconstrained peak t = 5 exceeds 4, so it binds: t = 4, f = 40 − 16 = 24, and λ = f′(4) = 10 − 8 = 2.
- The peak t = 5 is below 6, so the limit is slack: t = 5, f = 25, and λ = 0.
- Spending is 2 × 1 + 2 = $4, which equals M, so it is exactly used.
- Loosening a limit can only widen the choices, so the best value cannot fall; the multiplier measures that gain and is therefore zero or positive.
- With $1, she cannot reach the point (x = 1) where cupcakes' bang per buck falls to coffee's, so every dollar is better spent on cupcakes, and ℒ_y = 1 − 1.414 < 0 confirms it.
- Either a limit is fully used and worth something, or it has room to spare and is worth nothing, never both.