Sub topic 11
Whole units and corner solutions
This chapter assumes you know the marginal decision rule (keep going while marginal benefit, MB, is at least marginal cost, MC). It also assumes you know that diminishing returns produce a stopping point, that fixed costs do not change that stopping point, and that sunk costs are ignored. Here you test the rule against two complications. Many choices come in whole units, and many optima sit at a boundary instead of at the point where MB equals MC.
Why the rule needs care
The rule is easiest to state with smooth curves: stop where MB = MC. In real decisions you rarely land on that point exactly. You buy whole laptops, hire whole workers, and run whole shifts. You also face limits, such as 24 hours in a day or a fixed budget.
Both complications change how you apply the rule. They do not change the idea behind it. You still compare what one more unit adds with what it takes.
Whole units: stop at the last unit that pays
When quantity moves in steps, MB almost never equals MC exactly. So you read the rule as a test for each unit: add the unit if MB is at least MC, and stop at the first unit where MB falls below MC.
Take a firm that sells at a price of 55, so each unit has a marginal benefit (marginal revenue) of 55. Its marginal costs rise with each unit:
| Unit | MC | MB | MB − MC | Add it? |
|---|---|---|---|---|
| 1 | 40 | 55 | +15 | Yes |
| 2 | 45 | 55 | +10 | Yes |
| 3 | 50 | 55 | +5 | Yes |
| 4 | 60 | 55 | −5 | No |
| 5 | 75 | 55 | −20 | No |
The best quantity is 3. At 3 units, MB (55) is still above MC (50). At 4 units, MC (60) is above MB. The firm never finds a unit where the two are equal, and it does not need one.
Ties
If MB equals MC for some unit, adding it changes total net benefit by zero. Either choice is equally good. The rule says "at least" so that ties go to adding the unit, but you can stop one unit earlier with no loss.
Rounding a smooth answer
Sometimes you have a smooth model and solve MB = MC with algebra. The answer may be a fraction, such as 6.625 units, and you can only choose whole units. For a net benefit curve that rises and then falls, the best whole number is always one of the two neighbors of the smooth optimum. Compare both. Do not assume that rounding the fraction picks the right one.
import math
def net(q):
# Net benefit of q units: benefit 53q - 4q^2, minus a fixed cost of 20.
return 53 * q - 4 * q**2 - 20
q_star = 53 / 8 # MB - MC = 53 - 8q = 0 in the smooth model
candidates = [math.floor(q_star), math.ceil(q_star)]
best = max(candidates, key=net)
# Brute-force check over every whole quantity from 0 to 20.
brute = max(range(0, 21), key=net)
print(q_star, candidates, [net(q) for q in candidates]) # 6.625 [6, 7] [154, 155]
assert best == brute
print(best) # 7The two neighbors differ by only 1 in net benefit. When the gap is that small, a rough estimate of MB or MC can flip the answer, so treat the choice as close to a tie.
Lumpy choices: when units are not independent
The unit-by-unit test assumes that marginal cost rises steadily. Some costs do not. A second delivery van, a new production line, or a larger warehouse arrives as a lump. The first unit that needs it has a very high marginal cost, and the units after it are cheap again.
In that case "stop at the first unit where MC exceeds MB" can stop too early. Here a firm sells at 40 per unit. Its fourth unit needs a new van, which makes that unit's marginal cost 100.
total_cost = [0, 10, 20, 30, 130, 140, 150, 160] # unit 4 needs a new van
price = 40
marginal_cost = [total_cost[q] - total_cost[q - 1] for q in range(1, len(total_cost))]
# Unit-by-unit rule: stop at the first unit whose MC exceeds the price.
q_rule = 0
for mc in marginal_cost:
if mc <= price:
q_rule += 1
else:
break
def profit(q):
return price * q - total_cost[q]
# Compare total profit at every quantity.
q_best = max(range(len(total_cost)), key=profit)
print(marginal_cost) # [10, 10, 10, 100, 10, 10, 10]
print(q_rule, profit(q_rule)) # 3 90
print(q_best, profit(q_best)) # 7 120
# Test the whole block of units 4 through 7 as one decision.
block_cost = total_cost[7] - total_cost[3]
print(block_cost / 4, price) # 32.5 40The unit-by-unit rule stops at 3 units and earns 90. Buying the van and selling 7 units earns 120. The fourth unit loses money on its own, but it unlocks three cheap units after it. Treated as one block, the four units cost 130 in total, or 32.5 each, which is below the price of 40.
The fix is to widen the unit of decision. Compare the total extra benefit of the whole block with its total extra cost. This is the same idea as incremental cost from the earlier chapter, applied to a larger step.
Corner solutions: when the best choice is at a boundary
An interior solution is one where you stop partway, because MB falls to meet MC. A corner solution is one where the best choice is at the edge of what is allowed. The edge is usually zero units or the maximum possible number of units.
There are two ways to land at a corner.
- MB is below MC from the very first unit. Even the first unit does not pay, so the best quantity is 0.
- MB is still above MC when you hit a limit. The limit might be capacity, a budget, or hours in the day. You would like more, but cannot have more, so you choose the maximum.
At a corner the equality MB = MC does not hold. That is not a failure of the rule. The rule says to keep going while a unit pays, and it says to stop at a limit.
marginal_cost = [40, 45, 50, 60, 75]
def best_quantity(price, capacity):
q = 0
for mc in marginal_cost[:capacity]:
if mc <= price:
q += 1
else:
break
return q
print(best_quantity(70, 10)) # 4: interior, stops where MC (75) exceeds 70
print(best_quantity(70, 3)) # 3: corner at capacity, MB 70 > MC 50
print(best_quantity(30, 3)) # 0: corner at zero, even unit 1 costs 40The three outcomes look like this:
| Case | Price | Capacity | Result | MB vs MC at the choice |
|---|---|---|---|---|
| Interior | 70 | 10 | 4 units | MB ≥ MC at unit 4, MB < MC at unit 5 |
| Upper corner | 70 | 3 | 3 units | MB > MC at the limit |
| Zero corner | 30 | 3 | 0 units | MB < MC at unit 1 |
The zero corner and fixed costs
Zero is a real option, and you must compare it with the interior answer. In the production example from the profit chapter, total cost at zero units is 100, which is the fixed cost. At a price of 55 the best quantity is 3 units with a profit of −70. That is a loss, but producing zero units gives −100, so the firm still chooses 3. The fixed cost is the same either way, so it does not change the choice.
If the fixed cost could be avoided by shutting down, you would compare 0 with the best interior profit instead. The test is the same: put the corner and the interior answer side by side, and take the better one.
A decision procedure
The following flow combines the checks in this chapter.
Corners in everyday choices
Consumer choices have corners too. Suppose you have 10 free hours before an exam and can split them between two subjects. The extra points from each hour fall with each hour spent, which is diminishing returns. If subject A gives 6, 4, 2 points for the first three hours and subject B gives 3, 2, 1, you will not split the time evenly by habit. You put hours where the next hour adds the most.
Now suppose subject B gives only 1 point or less per hour, and you only need 3 hours on A. After 3 hours on A, the next hour on A adds less than B does, so you switch to B. If the points from A never dropped below B's first hour, you would spend all 10 hours on A, and that would be a corner. The equimarginal principle (equalizing the marginal benefit per unit of budget across options) holds only for interior choices. At a corner, the better option still has a higher marginal benefit per unit than the other, and the other gets nothing.
Common errors
- Forcing MB = MC. If you cannot find a quantity where they are equal, that does not mean you made a mistake. With whole units, pick the last unit where MB ≥ MC.
- Rounding blindly. Check the floor and the ceiling of a smooth answer, and compare their totals.
- Trusting the stopping shortcut with lumpy costs. When a unit needs a new machine or hire, evaluate the block as a whole.
- Forgetting zero as an option. Always compare your best positive quantity with doing nothing.
- Ignoring limits. If a capacity or budget stops you while MB still exceeds MC, the limit sets the answer. The useful follow-up question is what it would be worth to relax that limit. The answer is the gap between MB and MC at the corner.
Exercise
A bakery sells loaves at 6 each. Its marginal costs for loaves 1 to 6 are 2, 3, 4, 5, 6, 8. The oven holds at most 4 loaves per batch, and the bakery can only bake one batch. What quantity should it bake, and is that an interior or a corner solution?
Show answer
The oven limit is 4 loaves. MC is below 6 for loaves 1 to 4 (2, 3, 4, 5), so each pays. Loaf 5 would tie (MC 6 equals MB 6) and loaf 6 would lose money, but the oven cannot hold them anyway. The bakery bakes 4 loaves. This is a corner solution at the capacity limit, because MB (6) still exceeds MC (5) at the fourth loaf.
Exercise
A courier earns 40 per delivery. Deliveries 1 to 3 cost 10 each. Delivery 4 needs a new bike costing 100 in total, and deliveries 5 to 7 cost 10 each again. Should the courier stop at 3 deliveries?
Show answer
No. Deliveries 4 to 7 earn 4 × 40 = 160 and cost 100 + 30 = 130, a net gain of 30. Stopping at 3 earns 120 − 30 = 90, while going to 7 earns 280 − 160 = 120. The courier should make 7 deliveries, because the block pays even though delivery 4 does not pay on its own.