Sub topic 13
A Worked Example with Linear Curves
Prerequisites and the linear model
Assume you can read a graph with price on the vertical axis and quantity on the horizontal axis. You should also be comfortable solving simple linear equations.
A linear demand curve has a constant slope. Write it as:
\[ Q_d = a - bP \]
Here, \(Q_d\) is quantity demanded, \(P\) is price, \(a\) is the demand intercept, and \(b>0\) measures how strongly quantity demanded responds to price.
A linear supply curve can be written as:
\[ Q_s = c + dP \]
Here, \(Q_s\) is quantity supplied, \(c\) is the supply intercept, and \(d>0\) measures how strongly quantity supplied responds to price.
The minus sign in the demand equation represents the law of demand. The plus sign in the supply equation represents the law of supply.
Finding the initial equilibrium
The market equilibrium is the price and quantity at which quantity demanded equals quantity supplied:
\[ Qd=Qs \]
Suppose:
\[ Q_d=100-2P \]
\[ Q_s=20+3P \]
Set the two equations equal:
\[ 100-2P=20+3P \]
\[ 80=5P \]
\[ P=16 \]
Substitute \(P=16\) into either equation:
\[ Q=100-2(16)=68 \]
The initial equilibrium is a price of 16 and a quantity of 68.
Modeling a demand shift
Suppose consumer incomes rise, and the product is a normal good. Demand increases. The demand curve shifts right, which we represent by raising \(a\):
\[ Q_d=120-2P \]
Supply stays unchanged:
\[ Q_s=20+3P \]
Set the new equations equal:
\[ 120-2P=20+3P \]
\[ 100=5P \]
\[ P=20 \]
Then:
\[ Q=120-2(20)=80 \]
A demand increase raises both the equilibrium price and the equilibrium quantity.
This is a shift of the demand curve because income changed. If only the product's own price had risen from 16 to 20, quantity demanded would have changed along the original demand curve instead.
Modeling a supply shift
Now return to the original demand curve and suppose production technology improves. Supply increases, so the supply intercept rises:
\[ Q_d=100-2P \]
\[ Q_s=40+3P \]
Solving:
\[ 100-2P=40+3P \]
\[ 60=5P \]
\[ P=12 \]
\[ Q=100-2(12)=76 \]
A supply increase lowers the equilibrium price and raises the equilibrium quantity.
| Event | Price effect | Quantity effect |
|---|---|---|
| Demand increases | Increases | Increases |
| Supply increases | Decreases | Increases |
The size of each change depends on the slopes. A flatter curve means quantity responds more strongly to a price change. A steeper curve means quantity responds less strongly.
Computing the model with Python
def equilibrium(a, b, c, d):
# Demand: Qd = a - b*P
# Supply: Qs = c + d*P
price = (a - c) / (b + d)
quantity = a - b * price
return price, quantity
print(equilibrium(100, 2, 20, 3)) # (16.0, 68.0)
print(equilibrium(120, 2, 20, 3)) # (20.0, 80.0)
print(equilibrium(100, 2, 40, 3)) # (12.0, 76.0)The general equilibrium formula follows from setting demand equal to supply:
\[ a-bP=c+dP \]
Therefore:
\[ P^*=\frac{a-c}{b+d} \]
After finding \(P^\), substitute it into either curve to find \(Q^\).
Exercise
Given Qd = 90 - 3P and Qs = 18 + 3P, find the equilibrium price and quantity. Then find the new equilibrium if demand increases to Qd = 102 - 3P.
Show answer
Initially, 90 - 3P = 18 + 3P, so P = 12 and Q = 54. After the demand increase, 102 - 3P = 18 + 3P, so P = 14 and Q = 60.