Sub topic 9
Writing Demand as a Linear Function
Assume you can read and graph a linear equation, interpret a two-axis graph, and understand that buyers face scarce resources. This chapter turns a demand relationship into an equation. The equation helps you calculate quantity demanded, identify the curve’s intercepts, and test how changes in price affect buying decisions.
The basic linear demand function
A linear demand function has a constant slope. A common form is:
\[ Q_d = a - bP \]
Here:
- \(Q_d\) is quantity demanded.
- \(P\) is the price of the good.
- \(a\) is the quantity demanded when price is zero.
- \(b\) measures how much quantity demanded falls when price rises by one unit.
- \(b\) is positive, but it appears with a minus sign because demand usually slopes downward.
The minus sign represents the law of demand, holding other factors constant. If price rises, quantity demanded falls along the same demand curve.
For example:
\[ Q_d = 100 - 2P \]
This function says that quantity demanded is 100 units when the price is zero. For every one-unit increase in price, quantity demanded falls by two units.
Reading the intercepts
The vertical-axis intercept is found by setting \(Q_d=0\):
\[ 0 = 100 - 2P \]
\[ P = 50 \]
At a price of 50, the modeled quantity demanded is zero. This is the price intercept.
The horizontal-axis intercept is found by setting \(P=0\):
\[ Q_d = 100 \]
This is the quantity intercept. The two intercepts give convenient points for drawing the demand curve.
| Price \(P\) | Quantity demanded \(Q_d=100-2P\) |
|---|---|
| 0 | 100 |
| 10 | 80 |
| 20 | 60 |
| 30 | 40 |
| 40 | 20 |
| 50 | 0 |
Plot price on the vertical axis and quantity on the horizontal axis. Connecting these points produces a downward-sloping demand curve. Although the equation is often written with quantity on the left, economists usually draw demand with price on the vertical axis.
def quantity_demanded(price, a=100, b=2):
"""Linear demand: Q = a - b * P, never below zero."""
return max(a - b * price, 0)
print("Price Quantity")
for p in range(0, 51, 10):
print(f"{p:>5} {quantity_demanded(p):>8}")The max function prevents the program from reporting a negative quantity. Negative purchases are not meaningful, so the linear model is normally used only over its economically relevant range.
Inverse demand and the graph
To write price as a function of quantity, solve the equation for \(P\):
\[ Q_d = a-bP \]
\[ bP = a-Q_d \]
\[ P = \frac{a}{b} - \frac{1}{b}Q_d \]
For \(Q_d=100-2P\), inverse demand is:
\[ P = 50 - 0.5Q_d \]
This form matches the graph’s axes directly. The intercept \(50\) is the highest price associated with positive demand in this simple model. The slope is \(-0.5\) price units per quantity unit.
Shifts and the meaning of the coefficients
The equation describes one demand curve while other determinants remain fixed. A change in the good’s own price changes \(Q_d\) and creates a movement along the curve.
A change in income, tastes, the price of a related good, expectations, or the number of buyers can change the equation’s intercept. For example:
\[ Q_d = 20 - 2P + 0.01Y \]
Here \(Y\) is income. At a fixed price, higher income raises quantity demanded because the good is modeled as a normal good. This is a shift of demand, not a movement caused by the good’s own price.
A common error is to treat the coefficient \(b\) as price elasticity. The coefficient measures the change in units of quantity for a one-unit price change. Elasticity measures percentage responsiveness:
\[ Ed = \frac{\%\text{ change in }Qd}{\%\text{ change in }P} \]
A straight-line demand curve has a constant slope, but its elasticity changes at different points because the price and quantity levels change.
Exercise
For the demand function Qd = 80 - 4P, find quantity demanded at P = 10 and the price intercept.
Show answer
At P = 10, Qd = 80 - 4(10) = 40. Set Qd = 0 to find the price intercept: 0 = 80 - 4P, so P = 20.