Sub topic 3
Computing surplus with linear demand and supply
This chapter assumes you can read a linear equation of the form P = a - bQ, find where two lines intersect, and calculate the area of a triangle.
Surplus at equilibrium
Use the market with demand P = 100 - 2Q and supply P = 10 + Q. Setting demand equal to supply gives 100 - 2Q = 10 + Q, so Q = 30 and P = 40.
Consumer surplus is the triangle between the demand line and the price: 0.5 × 30 × (100 - 40) = 900. Producer surplus is the triangle between the price and the supply line: 0.5 × 30 × (40 - 10) = 450. Total surplus is 1350.
a, b = 100, 2
c, d = 10, 1
q_eq = (a - c) / (b + d)
p_eq = c + d * q_eq
cs = 0.5 * q_eq * (a - p_eq)
ps = 0.5 * q_eq * (p_eq - c)
print(cs, ps, cs + ps) # 900.0 450.0 1350.0Price changes and curve shifts
A higher price moves surplus from buyers to sellers. A shift in either curve changes the equilibrium and therefore both surpluses. Recalculate the equilibrium after each change, then apply the same two triangle formulas.
Price ceilings and price floors
A binding price ceiling at 30 limits trade. Quantity falls to (30 - 10) / 1 = 20. Buyers pay at most 30, so consumer surplus becomes 1000 and producer surplus becomes 200. A price floor at 50 works the same way, with quantity set by demand.
Deadweight loss
Deadweight loss is the total surplus that the market no longer creates. For the ceiling, total surplus falls to 1200, so the deadweight loss is 1350 - 1200 = 150.
Per-unit taxes
A per-unit tax moves the supply line up by the tax amount. Buyers lose some surplus, sellers lose some surplus, and the government collects the rest. The part that no one receives is deadweight loss.
Elasticity and limits
The more elastic demand or supply is, the larger the quantity drop from a tax or control, and the larger the deadweight loss. Surplus analysis assumes linear curves, no external effects, and fixed preferences. Real markets often break these assumptions.
Exercise
In the market above, what is consumer surplus if a price floor of 50 is imposed?
Show answer
Quantity is 25, so consumer surplus is 0.5 × 25 × (100 - 50) = 625.