Sub topic 1
Demand: what buyers are willing to purchase at each price
Prerequisites
This chapter assumes you can read a graph with price on the vertical axis and quantity on the horizontal axis. It also assumes you can solve a linear equation for one unknown, and that buyers and sellers respond to prices.
Demand
Demand is the quantity of a good that buyers are willing and able to purchase at each price. As price rises, quantity demanded falls, so the demand curve slopes downward.
A linear demand equation writes this relationship as Qd = a - bP. Here Qd is quantity demanded, P is price, a is the quantity demanded at a price of zero, and b is how many fewer units buyers purchase for each one-unit price increase.
This chapter uses Qd = 100 - 2P as the running example.
| Price (P) | Quantity demanded (Qd) |
|---|---|
| 10 | 80 |
| 20 | 60 |
| 30 | 40 |
Supply
Supply is the quantity sellers are willing to offer at each price. Higher prices usually lead sellers to offer more, so the supply curve slopes upward. The example supply equation is Qs = -20 + 4P. At P = 10, sellers offer 20 units. At P = 20, they offer 60 units.
Where the curves cross: market equilibrium
Equilibrium is the price where quantity demanded equals quantity supplied. Set the two equations equal: 100 - 2P = -20 + 4P, so 120 = 6P and P = 20. At that price, Qd and Qs both equal 60.
def demand(p):
return 100 - 2 * p
def supply(p):
return -20 + 4 * p
for p in (10, 20, 30):
gap = demand(p) - supply(p)
print(p, demand(p), supply(p), gap)The script prints a gap of 60 at P = 10, 0 at P = 20, and -60 at P = 30.
Prices below equilibrium: shortages
At P = 10, buyers want 80 units but sellers offer only 20. The shortage is 60 units. Buyers compete for the scarce goods, which tends to push the price up toward 20.
Exercise
Using Qd = 100 - 2P and Qs = -20 + 4P, how large is the shortage at P = 10?
Show answer
Quantity demanded is 80 and quantity supplied is 20, so the shortage is 60 units.