Sub topic 4
Adding demand vertically, not horizontally
This chapter assumes you can read a demand curve as a marginal benefit curve, and that you know the efficiency rule "produce until marginal benefit equals marginal cost." It builds the aggregate demand curve for a public good, which the next chapter uses to find the efficient quantity.
Why private-good logic breaks
For an ordinary private good such as apples, the market demand curve is the horizontal sum of individual demand curves. Pick a price, read off how many units each person buys, and add the quantities. This works because every apple is consumed by exactly one person. One person's quantity plus another's gives the total number of apples.
A pure public good is non-rival. Once a unit exists, everyone consumes the same unit at the same time. If a town has one fireworks display, there is one display, and every resident watches that same display. Adding quantities makes no sense, because everyone is "buying" the same quantity.
What does differ across people is how much each values that quantity. So you hold quantity fixed and add up the prices (marginal benefits) people would pay. This is vertical summation.
| Property | Private good | Pure public good |
|---|---|---|
| What every consumer faces | The same price | The same quantity |
| What differs across consumers | Quantity chosen | Marginal benefit (willingness to pay) |
| How to build the market curve | Add quantities at each price | Add marginal benefits at each quantity |
| Direction of addition | Horizontal | Vertical |
The working model
Let person i have marginal benefit curve MB_i(q), the most that person would pay for one more unit when q units are already available. The social marginal benefit of the public good is
SMB(q) = MB1(q) + MB2(q) + ... + MB_n(q)
The SMB curve answers this question: "If we add one more unit, how much total value does the whole group gain?" Everyone gets that unit, so everyone's gain counts.
A worked example
Two people have linear marginal benefits: MB1(q) = 10 − q and MB2(q) = 6 − q. The marginal cost is constant at 8 per unit.
| Quantity q | MB_1 | MB_2 | SMB = MB_1 + MB_2 | MC |
|---|---|---|---|---|
| 0 | 10 | 6 | 16 | 8 |
| 1 | 9 | 5 | 14 | 8 |
| 2 | 8 | 4 | 12 | 8 |
| 3 | 7 | 3 | 10 | 8 |
| 4 | 6 | 2 | 8 | 8 |
| 5 | 5 | 1 | 6 | 8 |
| 6 | 4 | 0 | 4 | 8 |
SMB is 16 − 2q, and it crosses MC = 8 at q = 4. The next chapter formalizes this crossing as the efficient quantity. Here the point is how the curve is built.
The diagram plots the same numbers. The SMB line lies above each individual line, and it is steeper because the slopes add: −1 plus −1 gives −2.
Computing it in code
The function below sums marginal benefits at each quantity. It also computes the wrong, horizontal answer for comparison.
def mb(a, q):
"""Marginal benefit MB(q) = a - q, floored at zero."""
return max(a - q, 0.0)
def social_mb(a_list, q):
"""Vertical sum: add marginal benefits at a fixed quantity."""
return sum(mb(a, q) for a in a_list)
def efficient_quantity(a_list, c, step=0.01, q_max=20):
"""Largest q (on a grid) where social MB is still at least MC."""
best = 0.0
for k in range(int(q_max / step) + 1):
q = k * step
if social_mb(a_list, q) >= c:
best = q
return round(best, 2)
def horizontal_quantity(a_list, price):
"""Private-good logic: add the quantities each person demands at a price."""
return sum(max(a - price, 0.0) for a in a_list)
a = [10, 6]
c = 8
print(social_mb(a, 0)) # 16.0
print(social_mb(a, 4)) # 8.0
print(efficient_quantity(a, c)) # 4.0
print(horizontal_quantity(a, c)) # 2.0The horizontal sum at price 8 gives 2. That number is only what person 1 would buy alone, since person 2 does not value even the first unit at 8. Treating the public good like apples therefore hides person 2's benefit completely. At q = 2, person 2 still values the next unit at 4, and the horizontal method ignores it.
What the gap is worth
Between q = 2 and q = 4, SMB lies above MC, so each unit adds more value than it costs. The net gain is the area between SMB and MC over that range:
∫ from 2 to 4 of (16 − 2q − 8) dq = [8q − q²] from 2 to 4 = 16 − 12 = 4
So stopping at 2 units, which is what person 1 would buy alone, wastes 4 units of surplus. This waste is the cost of ignoring person 2's benefit, and later chapters return to it when they explain underprovision.
Edge cases and common errors
Individual curves floor at zero
Nobody has negative willingness to pay for a free, non-rival unit. In the example, MB_2 reaches zero at q = 6. Beyond that point, person 2's curve is flat at zero, not 6 − q. Without the floor, SMB would fall faster than it should and the kink would be missed. That is why the code uses max(a - q, 0.0). The SMB curve therefore has a kink at each quantity where an individual curve hits zero, and it becomes less steep after each one.
Corner solutions
If SMB(0) is below MC, even the first unit costs more than the group would pay, and the efficient quantity is zero. If SMB stays above MC for every feasible quantity, the efficient quantity is the largest feasible one. Do not assume the curves always cross at an interior point.
Common errors
- Adding quantities. This is the horizontal sum, and it applies only to rival goods. Check the example above: it gives 2, not 4.
- Adding marginal costs too. The cost of producing one more unit is paid once, however many people enjoy it. The vertical sum applies to the benefit side only.
- Mixing up total and marginal benefit. SMB is a marginal curve. The group's total benefit is the area under it. Compare SMB with MC, not total benefit with MC.
- Using the sum for a good that is only partly non-rival. If crowding sets in (a congested road, a packed beach), people no longer consume "the same unit," and the simple vertical sum overstates benefits. Treat that case as a club or common-pool good.
- Assuming the curve is observable. The sum needs each person's true MB. Nobody has to report it in a market, and people have a reason to understate it. This is why the later chapters on preference revelation exist.
Summary of the method
- Fix a quantity q.
- Read each person's marginal benefit at q, with negative values replaced by zero.
- Add these values to get SMB(q).
- Repeat for every q to trace the curve.
- Compare SMB(q) with MC(q) to find where the group's gain from one more unit stops exceeding its cost.
Exercise
Three people have marginal benefits MB1(q) = 12 − q, MB2(q) = 9 − q and MB_3(q) = 3 − q for a public good with constant marginal cost 15. Find SMB(q) for q between 0 and 3, and find the efficient quantity.
Show answer
For 0 ≤ q ≤ 3, all three curves are non-negative, so SMB(q) = (12 − q) + (9 − q) + (3 − q) = 24 − 3q. Setting 24 − 3q = 15 gives q = 3, which sits exactly at the point where MB_3 reaches zero. Check that no kink changes the answer: at q = 3, SMB = 24 − 9 = 15, equal to MC. Beyond q = 3, person 3's curve is floored at zero, so SMB = 21 − 2q. At q = 3 this gives 15, so the curve is continuous there. Since 21 − 2q is below 15 for any q greater than 3, the efficient quantity is 3.
Exercise
Using the two-person example (MB1 = 10 − q, MB2 = 6 − q, MC = 8), suppose someone adds the demand curves horizontally instead. What quantity do they get, and how much surplus is lost compared with the correct answer?
Show answer
At price 8, person 1 demands 2 units and person 2 demands 0, so the horizontal sum is 2 units. The correct vertical sum gives 4 units. The lost surplus is the area between SMB and MC from q = 2 to q = 4, which is the integral of (8 − 2q) from 2 to 4, equal to 4.