Sub topic 10
Building Market Demand from Individual Demand
This chapter assumes you can read a demand schedule and a downward-sloping demand curve with price on the vertical axis. It also assumes you know the difference between a movement along a curve and a shift of the curve, and can work with a linear equation like Q = a − bP. It builds on those ideas. It does not cover elasticity beyond a short note at the end.
From one buyer to a market
So far, "demand" has described one buyer. Markets contain many buyers, and most questions in economics are about the market. How much will all consumers of coffee buy if the price rises by 10 percent? How does a city's population growth change the demand for apartments?
Market demand is the total quantity of a good that all buyers in the market want to purchase at each price, holding other things constant. It is built from individual demand curves by one operation: at each price, add up the individual quantities demanded.
The market demand curve inherits the law of demand. If every buyer buys no more at a higher price, the total cannot rise either. Market demand therefore slopes downward whenever the individual curves do.
Horizontal summation
Adding quantities at each price is called horizontal summation. On a standard graph, quantity is on the horizontal axis. Fixing a price means drawing a horizontal line across the graph. You then add the horizontal distances from the vertical axis to each buyer's curve along that line.
The procedure has three steps:
- Pick a price.
- Read off each buyer's quantity demanded at that price.
- Add those quantities. The sum is one point on the market demand curve. Repeat for every price.
A worked example with algebra
Take two buyers with linear demand:
- Buyer 1: Q₁ = 40 − 2P
- Buyer 2: Q₂ = 60 − 3P
Market demand is Q = Q₁ + Q₂ = (40 − 2P) + (60 − 3P) = 100 − 5P. The intercepts add (40 + 60 = 100) and the slope coefficients add (2 + 3 = 5). The market curve is flatter in the price-on-vertical picture because a one-dollar price change moves the total quantity by 5 units instead of 2 or 3.
def q_buyer_1(p):
return max(40 - 2 * p, 0)
def q_buyer_2(p):
return max(60 - 3 * p, 0)
def q_market(p):
return q_buyer_1(p) + q_buyer_2(p)
for p in (0, 10, 20):
print(p, q_buyer_1(p), q_buyer_2(p), q_market(p))
# Output:
# 0 40 60 100
# 10 20 30 50
# 20 0 0 0At a price of 10, buyer 1 wants 20 units and buyer 2 wants 30, so the market wants 50. That matches 100 − 5(10) = 50.
Common error: adding prices
Students often add the equations in their inverse form, where price is written as a function of quantity. Doing so gives the wrong answer.
The inverse forms are P = 20 − 0.5Q₁ for buyer 1 and P = 20 − Q₂/3 for buyer 2. Adding these produces nonsense: a price of about 40, which neither buyer faces. In a competitive market, every buyer faces the same price, so price is the shared variable and quantity is what gets added.
You can check the market curve by inverting it. From Q = 100 − 5P, we get P = 20 − 0.2Q. At Q = 50, this gives P = 10, which agrees with the table above.
The kink: when buyers drop out at different prices
The max(..., 0) in each function matters. A linear demand equation goes negative at high prices, but no one buys a negative quantity. Each buyer's quantity is zero above their choke price, the lowest price at which they buy nothing. The choke price of Q = a − bP is a/b.
In the example above, both buyers have a choke price of 20, so the market curve is a clean line, Q = 100 − 5P, up to P = 20. If the choke prices differ, the market curve bends.
Add a third buyer, whose demand is Q = 30 − 3P (choke price 10), and consider buyer 1 and this new buyer together:
def q_a(p):
return max(40 - 2 * p, 0)
def q_c(p):
return max(30 - 3 * p, 0)
def q_market(p):
return q_a(p) + q_c(p)
print("Price A C Market")
for p in (0, 5, 10, 15, 20, 25):
print(f"{p:>5} {q_a(p):>3} {q_c(p):>3} {q_market(p):>7}")
# Output:
# Price A C Market
# 0 40 30 70
# 5 30 15 45
# 10 20 0 20
# 15 10 0 10
# 20 0 0 0
# 25 0 0 0The market demand is piecewise:
| Price range | Who is buying | Market demand |
|---|---|---|
| P ≤ 10 | A and C | Q = 70 − 5P |
| 10 < P ≤ 20 | A only | Q = 40 − 2P |
| P > 20 | Nobody | Q = 0 |
At P = 10 both formulas give 20, so the pieces join. The slope changes from −5 to −2 (in quantity per unit price) at that price. That change is a kink in the market demand curve. If you write "Q = 70 − 5P" for the whole market, you will overstate demand at every price above 10.
Scaling up: many similar buyers
If a market has N identical buyers, each with demand q(P), then market demand is N × q(P). A town with 1,000 buyers who each have q = 40 − 2P has market demand Q = 40,000 − 2,000P.
A general function handles any list of buyers, and it lets us see how the number of buyers affects demand:
def make_buyer(a, b):
return lambda p: max(a - b * p, 0)
def market_demand(price, buyers):
return sum(q(price) for q in buyers)
buyers = [make_buyer(40, 2), make_buyer(60, 3)]
print(market_demand(5, buyers)) # 30 + 45 = 75
buyers.append(make_buyer(30, 3)) # a new buyer enters the market
print(market_demand(5, buyers)) # 75 + 15 = 90At the same price of 5, the quantity demanded in the market rose from 75 to 90. The price did not change, so this is not a movement along the old curve. It is a shift of the market demand curve to the right, caused by a larger number of buyers.
What shifts market demand
Everything that shifts an individual demand curve shifts market demand, because the market curve is the sum of the individual curves. Income, the prices of related goods, tastes, and expectations all work this way. Market demand has two extra sources of shifts.
- The number of buyers. More buyers shift the curve right, and fewer buyers shift it left. Immigration, a birth cohort aging into the market, or a new store opening in an area that was previously unserved all change the count.
- The mix of buyers. Two markets with the same number of people can differ in demand if the buyers differ. A market that is mostly college students has a different curve from one that is mostly retirees, for goods where age affects tastes or income.
Shifts need not be uniform. If only one group's income rises, only that group's curve shifts. The market curve then shifts by that group's share of the change, and its slope can change too.
A change in the price of the good itself is still a movement along the market curve, exactly as for one buyer.
Slope and elasticity of the market curve
Because the coefficients add, the slope of market demand (quantity per unit price) is the sum of the individual slopes. In the two-buyer example, −2 and −3 combine to −5. Elasticity does not add the same way. It is a ratio of percentage changes, and it depends on the quantity at the chosen point. The market's price elasticity at a given price is a quantity-weighted average of the individual elasticities. A buyer who purchases more at that price counts for more. This is a preview only. Later chapters on elasticity treat it fully.
Edge cases to keep in mind
- Heterogeneous buyers. Summation works for any mix of linear and nonlinear curves, because it only requires each buyer's quantity at a given price.
- Same price for everyone. The method assumes all buyers face one price. If a seller charges different prices to different groups, you sum within a single price only if the groups can be put on a common price, and otherwise treat the groups as separate markets.
- Public goods. For goods that everyone consumes together, such as a lighthouse, the demand curves are added vertically (willingness to pay is added at each quantity). That case belongs to a later topic. For ordinary private goods, add horizontally.
- Aggregation hides details. The market curve tells you what the group will buy in total, but not who buys. Two very different sets of individual curves can produce the same market curve.
Summary
Market demand is the horizontal sum of individual demand curves: pick a price, add the quantities, repeat. Add quantities, never prices. Remember the zero floor, which creates kinks when buyers have different choke prices. A change in the number of buyers shifts the market curve, while a change in the good's own price moves along it.
Exercise
Buyer X has demand Q = 50 − 5P and buyer Y has demand Q = 20 − P. Both buy only non-negative quantities. Find the market quantity demanded at P = 4, P = 10, and P = 15.
Show answer
At P = 4: X buys 50 − 20 = 30 and Y buys 20 − 4 = 16, so the market quantity is 46. At P = 10: X buys 50 − 50 = 0 (P = 10 is X's choke price) and Y buys 20 − 10 = 10, so the market quantity is 10. At P = 15: X buys max(50 − 75, 0) = 0 and Y buys 20 − 15 = 5, so the market quantity is 5. Note the kink at P = 10: below it the market curve is Q = 70 − 6P, and above it only Y remains, so Q = 20 − P.
Exercise
A town's market demand for bus rides is Q = 8,000 − 2,000P, where P is the fare in dollars. A new factory opens, and 2,000 new commuters each have the individual demand q = 2 − 0.5P. What is the new market demand? Is this a movement along the old curve or a shift? How many rides are demanded at P = 2 before and after?
Show answer
The new commuters add 2,000 × (2 − 0.5P) = 4,000 − 1,000P. New market demand is Q = 12,000 − 3,000P. Because the fare did not change and the number of buyers did, this is a rightward shift of the demand curve, not a movement along the old one. At P = 2, before: 8,000 − 4,000 = 4,000 rides. After: 12,000 − 6,000 = 6,000 rides, an increase of 2,000.
Exercise
A classmate adds the inverse demand curves P = 20 − 0.5Q₁ and P = 20 − Q₂/3 to get market demand. Explain in one or two sentences why this is wrong, and describe the correct procedure.
Show answer
In a competitive market all buyers face the same price, so price is the shared variable and quantities are what combine. Adding the inverse equations adds prices at a given quantity, which gives a price no buyer actually faces. The correct procedure is to solve each inverse curve for Q (Q₁ = 40 − 2P and Q₂ = 60 − 3P), add them to get Q = 100 − 5P, and invert the result if you need P as a function of Q.