Sub topic 7
Finding Equilibrium with Linear Equations
Prerequisites and the equilibrium condition
This chapter assumes that you can read a demand-and-supply graph, solve basic linear equations, and understand that buyers and sellers respond to price.
A market equilibrium is a price and quantity at which quantity demanded equals quantity supplied. Quantity demanded, Qd, is the amount buyers want to purchase at a given price. Quantity supplied, Qs, is the amount sellers want to offer at that price.
For linear curves, demand and supply are often written as:
- Demand: Qd = a - bP
- Supply: Qs = c + dP
Here, P is price and Q is quantity. The constants a, b, c, and d describe the curves. The minus sign in the demand equation shows that buyers usually demand less when price rises. The plus sign in the supply equation shows that sellers usually supply more when price rises.
At equilibrium:
Qd = Qs
The key step is to set the two equations equal to each other.
Solving a worked example
Suppose the market has these equations:
- Qd = 100 - 2P
- Qs = -20 + 4P
Set demand equal to supply:
100 - 2P = -20 + 4P
Add 20 to both sides:
120 - 2P = 4P
Add 2P to both sides:
120 = 6P
Divide by 6:
P = 20
The equilibrium price is 20. Substitute this price into either equation:
Qd = 100 - 2(20) = 60
Qs = -20 + 4(20) = 60
The equilibrium quantity is 60. Both equations produce the same quantity, which checks the solution.
| Variable | Calculation | Result |
|---|---|---|
| Equilibrium price | (100 + 20) / (2 + 4) | 20 |
| Quantity demanded | 100 - 2(20) | 60 |
| Quantity supplied | -20 + 4(20) | 60 |
For the general equations, solving Qd = Qs gives:
a - bP = c + dP
P = (a - c) / (b + d)
After finding P, use either curve to calculate Q.
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, 4))The program prints (20.0, 60.0). The formula works when the demand slope is negative and the supply slope is positive, as represented by this equation format.
Checking the solution and interpreting signs
A solution should pass three checks:
- The price is economically meaningful for the market. A negative price may indicate that the chosen equations are not appropriate over the relevant range.
- Quantity demanded equals quantity supplied at the calculated price.
- The quantity is within the meaningful range of both curves. For example, demand should not become negative merely because the linear equation was extended too far.
The equilibrium calculation is a model, not a claim that every transaction occurs at one exact price. It identifies the price that balances planned purchases and planned sales under the assumptions of the model.
When the formula needs care
The denominator b + d must not equal zero. In the usual case, both b and d are positive, so the denominator is positive. Also, a linear equation may predict negative quantities at extreme prices. Restrict the interpretation to the range where the demand and supply relationships make economic sense.
Exercise
Demand is Qd = 140 - 3P and supply is Qs = 20 + 2P. What are the equilibrium price and quantity?
Show answer
Set 140 - 3P = 20 + 2P. Then 120 = 5P, so P = 24. Substituting into demand gives Q = 140 - 72 = 68. The equilibrium is P = 24 and Q = 68.