Sub topic 2
The Demand Curve as a Ladder of Willingness to Pay
This chapter assumes you can read a linear demand equation of the form P = a - bQ. It also assumes you know what a market equilibrium is and can find the area of a triangle or trapezoid. Here you will see where the demand curve comes from and why its height at each quantity is a measure of value. The next chapters use that idea to define consumer surplus.
From individual valuations to a curve
A buyer's willingness to pay (WTP) is the highest price at which that buyer still chooses to buy one unit. At any higher price the buyer walks away. At exactly that price the buyer is indifferent.
Suppose five people each want one concert ticket. Their WTP values are $90, $70, $50, $30 and $10. Sort them from highest to lowest and you have a ladder. The top rung is the buyer who values the ticket most, and each lower rung is a buyer who values it less.
The demand curve is this ladder drawn on a graph. Quantity goes on the horizontal axis. The vertical axis shows the WTP of the last buyer needed to reach that quantity. Because the ladder is sorted from highest to lowest, the curve slopes downward. The slope is not an extra assumption. It comes from the sorting.
Reading the curve in two directions
The same curve answers two different questions. Which one you are asking decides how you read it.
| Direction | Question | Example from the ladder |
|---|---|---|
| Horizontal | At price P, how many units are demanded? | At P = 40, three buyers have WTP of at least 40, so Q = 3. |
| Vertical | What is the highest price at which the Qth unit still sells? | The third unit sells at up to 50, so the curve's height at Q = 3 is 50. |
The horizontal reading is the usual textbook view of the quantity demanded. The vertical reading is the one surplus analysis depends on. The height of the curve at Q is the marginal willingness to pay for the Qth unit. This is the most that unit is worth to the buyer who would take it.
A buyer buys when WTP is at least the price. A buyer with WTP of 40 at a price of 40 gains nothing, so by convention we count that buyer as indifferent. Counting them in or out changes quantity by one unit and does not change any surplus calculation, because their gain is zero.
Worked example: building a demand schedule
The code below turns a list of valuations into a demand schedule. It then computes the total gain to buyers at a price of 40.
wtp = [90, 70, 50, 30, 10] # one unit per buyer
def quantity_demanded(price):
"""Number of buyers whose willingness to pay is at least the price."""
return sum(1 for w in wtp if w >= price)
for p in [95, 90, 70, 50, 40, 30, 10, 5]:
print(p, quantity_demanded(p))
price = 40
buyers = [w for w in wtp if w >= price]
gain = sum(w - price for w in buyers)
print(len(buyers), gain)
# 95 0
# 90 1
# 70 2
# 50 3
# 40 3
# 30 4
# 10 5
# 5 5
# 3 90Notice the step shape in the schedule. Quantity stays at 3 for any price from just above 30 up to 50, then jumps at each WTP value. With five buyers, the demand curve is a staircase.
At a price of 40 the three buyers gain (90 - 40) + (70 - 40) + (50 - 40) = 50 + 30 + 10 = 90. That sum of gaps between WTP and price is exactly consumer surplus, which the next chapters develop. For now, it shows why the ladder idea matters. The curve records the value each unit gives, and the price records what the buyer gives up.
Smoothing the ladder: linear demand
A real market has thousands of buyers, so the steps become tiny and the staircase looks like a line. The inverse demand equation P = a - bQ describes this smooth version.
- The intercept a is the choke price. It is the WTP of the very first unit, and at any price of a or higher, quantity demanded is zero.
- The slope -b says that each extra unit is worth b less than the one before.
Take P = 100 - 2Q. The first unit is worth about 100, the tenth is worth 80, and the thirtieth is worth 40. We can check the link between the staircase and the line. Give each unit i a WTP equal to the curve's height at the middle of that unit, a - b(i - 0.5). Then add up the gains over price for the 30 units that sell at a price of 40.
a, b = 100, 2
price = 40
q_eq = (a - price) / b # 30.0 units demanded at price 40
units = int(q_eq)
# WTP of unit i, read at the midpoint of the unit
unit_wtp = [a - b * (i - 0.5) for i in range(1, units + 1)]
cs_steps = sum(w - price for w in unit_wtp)
# Triangle formula for the smooth curve
cs_triangle = 0.5 * q_eq * (a - price)
print(units, cs_steps, cs_triangle)
# 30 900.0 900.0The two answers agree. The triangle is the limit of the staircase as the steps get smaller. This is why we are allowed to compute surplus as an area.
Why the curve is marginal benefit
Economists call the demand curve a marginal benefit curve. The benefit of one more unit is the most a buyer would pay for it, which is the height of the curve at that unit. Add up the heights of all the units up to Q and you get the total benefit to buyers. On the graph, that is the whole area under the demand curve from 0 to Q.
For P = 100 - 2Q at Q = 30, that area is a trapezoid with parallel sides 100 and 40:
- Total benefit = (100 + 40) / 2 × 30 = 2100.
- Total spending = 40 × 30 = 1200.
- Gap between them = 2100 - 1200 = 900, which matches the surplus above.
So surplus is "area under demand minus the rectangle of spending." This framing is useful because it continues to work when the curve is not a straight line.
Common errors
- Confusing movement along the curve with a shift. A change in price moves you along a fixed demand curve. A change in a buyer's tastes, income, or the price of a related good changes the WTP values themselves, so the whole ladder moves and the curve shifts.
- Reading the curve only horizontally. If you only ask "how many at this price," you cannot see surplus. Surplus needs the vertical reading, the value of each unit.
- Treating WTP as ability to pay. WTP depends on value and on budget. A buyer with a small budget has a low WTP for most goods, even if they would love the good. Demand reflects willingness backed by money, not need.
- Mixing up the axes. The textbook demand curve is drawn with price on the vertical axis even though quantity is the thing that responds to price. Writing the equation as Q = 50 - 0.5P and then using it as P = a - bQ without inverting it gives wrong areas. Here the inverse form is P = 100 - 2Q.
- Using the choke price as the equilibrium price. The intercept a is the WTP of the first unit. It is usually far above the price most buyers pay.
Edge cases to keep in mind
- Several units per buyer. One person may buy more than one unit, with a lower WTP for each extra unit. The ladder then has several rungs belonging to the same person. The curve works the same way, because it is built from unit values and not from people.
- Identical valuations. If two buyers share the same WTP, the staircase has a wider step. Quantity jumps by two at that price.
- Corner cases at the price. At a price exactly equal to a WTP value, the quantity demanded depends on whether you count the indifferent buyer. The surplus is the same either way.
- Non-linear curves. A curved demand curve is still a ladder. You compute the area under it by integration or by summing steps, and the triangle formula no longer applies.
Exercise
Five buyers have willingness to pay of 80, 65, 50, 35 and 20 for one unit each. (a) What is the quantity demanded at a price of 40? (b) What is the total gain to buyers at that price? (c) At what price does the quantity demanded first reach 4?
Show answer
(a) Four buyers... check: the values at or above 40 are 80, 65 and 50, so the quantity demanded is 3. (b) The gains are 80 - 40 = 40, 65 - 40 = 25 and 50 - 40 = 10, so the total gain is 75. (c) The fourth buyer has a WTP of 35, so quantity reaches 4 when the price falls to 35.
Exercise
Inverse demand is P = 120 - 3Q. (a) What is the choke price? (b) What is the marginal willingness to pay for the 20th unit? (c) At Q = 20, what is the total benefit, which is the area under the curve?
Show answer
(a) The choke price is the intercept, 120. (b) P = 120 - 3 × 20 = 60. (c) The curve runs from 120 at Q = 0 to 60 at Q = 20, so the area is a trapezoid: (120 + 60) / 2 × 20 = 1800.