Sub topic 1
Starting point: the competitive equilibrium
Prerequisites
This chapter assumes you can read supply and demand curves, solve two linear equations for a shared solution, compute the area of a triangle, and work with percentage changes.
Market equilibrium
In a competitive market, buyers and sellers meet at the price where quantity demanded equals quantity supplied. This meeting point is the equilibrium. Take demand P = 100 - Q and supply P = 20 + Q. Setting the two equal gives 100 - Q = 20 + Q, so Q = 40 and P = 60.
Elasticity and the slopes of the curves
The slope of each curve shows how strongly quantity responds to price. Here both slopes have magnitude 1. The price elasticity of demand at equilibrium is (1/b)(P/Q) = (1)(60/40) = 1.5. Flatter curves mean higher elasticity. Later chapters show that elasticity controls how much a tax distorts trade.
Consumer and producer surplus
Consumer surplus is the gap between what buyers would pay and what they pay. Producer surplus is the gap between the price sellers receive and their cost. Both are triangles under the price line.
def equilibrium(a, b, c, d):
"""Demand: P = a - b*Q. Supply: P = c + d*Q."""
q = (a - c) / (b + d)
p = a - b * q
return q, p
def surplus(a, b, c, d):
q, p = equilibrium(a, b, c, d)
consumer = 0.5 * q * (a - p)
producer = 0.5 * q * (p - c)
return {"Q": q, "P": p, "CS": consumer, "PS": producer, "TS": consumer + producer}
print(surplus(a=100, b=1, c=20, d=1))
# {'Q': 40.0, 'P': 60.0, 'CS': 800.0, 'PS': 800.0, 'TS': 1600.0}Total surplus and efficiency
Total surplus is consumer surplus plus producer surplus, which is 800 + 800 = 1600 here. At the competitive equilibrium, every unit traded is worth more to the buyer than it costs the seller. Efficiency means no other quantity produces more total surplus.
What deadweight loss is and what it is not
Deadweight loss is the fall in total surplus below the competitive equilibrium level. A transfer, such as money a tax moves from buyers to the government, does not count as a loss, because the recipient gains what the payer loses. Deadweight loss is the surplus from trades that no longer happen.
Exercise
If only 30 units trade instead of 40, with no tax, what is the deadweight loss?
Show answer
At a price of 60, the surplus from the first 30 units is 1500, because the integral of (100 - q - 60) plus (60 - (20 + q)) from 0 to 30 gives 750 + 750. The loss is 1600 - 1500 = 100. The same answer comes from the triangle with base 10 (units 30 to 40) and height 20 (the gap between buyer value of 70 and seller cost of 50 at Q = 30): 0.5 × 10 × 20 = 100.