Sub topic 2
The demand curve and the law of demand
This chapter assumes you can read a two-axis graph with price on the vertical axis and quantity on the horizontal axis, and that you can work with a simple linear equation such as Q = 100 - 2P. It also assumes you know what a market is: a set of buyers and sellers trading one good. The chapter defines the demand curve, states the law of demand, explains where the downward slope comes from, and sets up the distinction that the rest of the tutorial depends on.
What a demand curve represents
Quantity demanded is the amount of a good that buyers are willing and able to purchase at a given price, during a given period. Three parts of that definition matter.
- Willing and able. A wish without purchasing power is not demand. A person who would love a new car but cannot pay for one adds nothing to the quantity demanded.
- At a given price. Quantity demanded is always tied to a specific price. It is a different number at every price.
- During a given period. Demand is a flow, such as units per week or per year. "500 coffees" means little until you say whether that is per hour or per month.
A demand schedule is a table that lists the quantity demanded at each price. A demand curve is the graph of that schedule, with price on the vertical axis and quantity on the horizontal axis. In this tutorial, "demand" with no qualifier means the whole relationship: the full schedule or curve. "Quantity demanded" means one point on it.
Here is a schedule for a hypothetical market, using the linear curve Qd = 100 - 2P, where Qd is quantity demanded and P is the price.
| Price (P) | Quantity demanded (Qd) |
|---|---|
| 10 | 80 |
| 16 | 68 |
| 20 | 60 |
| 30 | 40 |
| 40 | 20 |
Plotting these points gives a straight line that slopes downward from left to right.
The law of demand
The law of demand says that, when other things stay the same, a higher price lowers the quantity demanded, and a lower price raises it. Price and quantity demanded move in opposite directions. This is why the demand curve slopes downward.
The phrase "when other things stay the same" is the ceteris paribus condition from the previous chapter. The law makes a claim about price alone. It does not say that quantity demanded always falls when the price rises in real data, because in real data other influences can move at the same time. Keeping that condition in view prevents most of the errors discussed later in this tutorial.
Why the curve slopes downward
Economists give two standard reasons. Both describe what happens when the price of one good changes while everything else is held fixed.
- The substitution effect. When a good becomes more expensive relative to its alternatives, buyers switch some of their purchases to those alternatives. If the price of tea rises while coffee stays the same, some tea drinkers move to coffee, and the quantity of tea demanded falls.
- The income effect. A higher price lowers what a buyer's money can purchase. At a fixed income, the buyer is effectively poorer, so they typically buy less of the good. A lower price does the reverse.
There is also a simple aggregation reason. A market demand curve adds up many buyers. At a higher price, some buyers drop out of the market entirely, because the good is no longer worth the price to them. At a lower price, new buyers enter. So the market quantity changes even if each existing buyer changed nothing.
Market demand versus individual demand
Individual demand is one buyer's quantity at each price. Market demand is the sum of all individual quantities at each price. This is a horizontal sum: for each price, you add the quantities. You do not add the prices.
def market_demand(price, buyers):
"""Add each buyer's quantity at one price (horizontal sum)."""
return sum(max(0, a - b * price) for a, b in buyers)
# Two buyers with different intercepts and slopes.
buyers = [(30, 1), (70, 1)] # Qd1 = 30 - P, Qd2 = 70 - P
print(market_demand(10, buyers)) # 20 + 60 = 80
print(market_demand(20, buyers)) # 10 + 50 = 60
print(market_demand(40, buyers)) # 0 + 30 = 30The max(0, ...) keeps a buyer's quantity from going negative once the price passes the point where that buyer leaves the market. At a price of 40, the first buyer buys nothing and only the second buyer remains. Note that the market curve built this way has a kink at the price where the first buyer drops out, so it is not a single straight line over all prices.
Reading the curve: the two ways to read it
A demand curve can be read in two directions, and both are valid.
- Quantity from price. Pick a price on the vertical axis, go across to the curve, then down to read the quantity demanded. For
Qd = 100 - 2P, a price of 16 gives 68. - Price from quantity. Pick a quantity on the horizontal axis, go up to the curve, then across to read the highest price buyers will pay for that quantity. This is the willingness to pay for the last unit. Solving
Qd = 100 - 2PforPgives the inverse demand curve,P = 50 - 0.5Q. AtQ = 68, the price is 16.
The inverse form is what you graph when price sits on the vertical axis. Both forms describe the same curve.
The key distinction: movement versus shift
The demand curve answers one narrow question: what happens to quantity demanded when only the good's own price changes? The answer is a movement along the curve. The curve itself stays where it is.
Anything else that affects buying decisions is not on the axes. Examples include buyers' incomes, the prices of related goods, tastes, expectations about the future, and the number of buyers. When one of these changes, buyers want a different quantity at every price, and the whole curve shifts. Later chapters cover these in detail.
The code below shows both cases with the same function.
def quantity_demanded(price, a=100, b=2):
return a - b * price
# Movement along the curve: only the price changes.
print(quantity_demanded(16)) # 68
print(quantity_demanded(20)) # 60
# Shift of the curve: a non-price factor raises the intercept a.
print(quantity_demanded(16, a=120)) # 88In the first two calls, the price goes from 16 to 20 and the quantity falls from 68 to 60. The parameters a and b do not change, so this is a move along one curve. In the third call, the price stays at 16 but a rises from 100 to 120, so the quantity demanded at that same price rises from 68 to 88. That is a different curve.
The diagram summarizes the logic of classification.
Edge cases and limits
The law of demand is a strong regularity, not a theorem that holds in every circumstance. Know these cases so you can recognize them.
- Price as a signal of quality. For some goods, buyers treat a high price as evidence of quality. A very low price on a wine or a medical service may reduce demand because it raises doubts. The usual response is that the buyer's belief about quality is another influence, so it can be treated as a shift rather than a failure of the law.
- Giffen goods. In theory, a staple food that takes a large share of a poor household's budget could see quantity demanded rise with its price, because the income effect outweighs the substitution effect. These cases are extremely rare and hard to document. For almost all goods, treat the downward slope as the rule.
- Expected price changes. If buyers expect a price to keep rising, a rise today may increase purchases now. Here the expectation is a separate factor that shifts demand. It is not a movement along the curve.
- Time horizon. Over a short period, buyers may have few alternatives, so the curve is steep. Over a longer period they can adapt, and the quantity responds more. The curve still slopes down in both cases.
- Non-price rationing. If a price is held below the level at which buyers would choose to purchase the available amount, the quantity actually bought may be limited by supply rather than by the demand curve. The curve still describes what buyers want at that price.
Common errors at this stage
- Calling a price change a "change in demand." A change in the good's own price is a change in quantity demanded. The word "demand" alone refers to the entire curve.
- Putting a second price on the axis without noting it. The vertical axis shows the good's own price. The price of a related good is a shifter and does not appear on the axes.
- Confusing the slope with the position. The slope reflects how responsive quantity is to price. The position (the intercept) reflects everything held constant. They are separate properties.
- Leaving out the time period. A quantity with no period attached is incomplete.
Exercise
A market has demand Qd = 100 - 2P. (a) What is the quantity demanded at P = 16, and at P = 20? Is this a movement along the curve or a shift? (b) Suppose a rise in buyers' incomes changes the demand to Qd = 120 - 2P. What is the quantity demanded at P = 16 now, and is this a movement or a shift? (c) Write the inverse demand curve for Qd = 120 - 2P.
Show answer
(a) At P = 16, Qd = 100 - 32 = 68. At P = 20, Qd = 100 - 40 = 60. The curve is unchanged and only the price moved, so this is a movement along the curve (a fall in quantity demanded). (b) At P = 16, Qd = 120 - 32 = 88. A non-price factor (income) changed the quantity demanded at the same price, so the whole curve shifted right (an increase in demand). (c) Solve 120 - 2P = Q for P: P = 60 - 0.5Q.
Exercise
Two buyers have demands Qd1 = 30 - P and Qd2 = 70 - P, each valid while the quantity is positive. What is the market quantity demanded at P = 20 and at P = 40? Why is the market curve not a single straight line across all prices?
Show answer
At P = 20, Qd1 = 10 and Qd2 = 50, so the market quantity is 60. At P = 40, Qd1 would be negative, so buyer 1 buys 0, and Qd2 = 30, so the market quantity is 30. The market curve has a kink at P = 30, where buyer 1 leaves the market. Below 30 the market curve is Q = 100 - 2P, and above 30 it is Q = 70 - P.