Sub topic 1
Demand: what buyers are willing to purchase at each price
Prerequisites
This chapter assumes you can do the following:
- Read a graph with price on the vertical axis and quantity on the horizontal axis.
- Solve and rearrange a linear equation such as Q = 100 - 2P.
- Accept that buyers and sellers respond to prices. A higher price tends to make buyers purchase less, and a lower price tends to make them purchase more.
You do not need calculus. Later chapters build on this one, so the vocabulary here is used throughout the tutorial.
What demand means
Demand is the relationship between the price of a good and the quantity buyers are willing and able to purchase at that price, holding everything else fixed. Three parts of that definition matter.
- Willing and able. A wish is not demand. A buyer must want the good and have the money to pay for it.
- At each price. Demand is a whole schedule, not a single number. It answers the question "how much would be bought at $5? at $10? at $20?"
- Holding everything else fixed. Economists call this ceteris paribus. We vary only the price and keep income, tastes, and the prices of related goods constant.
The quantity demanded is one point on that schedule: how much buyers want at one specific price. The demand is the whole schedule or curve. This difference causes many errors later, so keep it in mind. A change in price changes the quantity demanded. It does not change demand.
The law of demand
The law of demand says that, other things equal, a higher price lowers the quantity demanded, and a lower price raises it. Three common explanations support this:
- Substitution. When a good gets more expensive, buyers switch to alternatives that are now relatively cheaper.
- Income effect. A higher price reduces what a given income can buy, so buyers purchase less.
- Diminishing marginal benefit. Each additional unit usually gives less benefit than the one before. Buyers will pay a high price for the first unit but only a low price for the tenth.
The third explanation also gives the demand curve a second reading. For any quantity, the price on the curve is the most buyers are willing to pay for that unit. Economists call this the willingness to pay. Chapter 11 on consumer surplus uses this reading directly.
A demand schedule and a demand curve
A demand schedule is a table of prices and quantities. Here is one for a market with the linear demand Qd = 100 - 2P.
| Price (P) | Quantity demanded (Qd) |
|---|---|
| 0 | 100 |
| 10 | 80 |
| 20 | 60 |
| 30 | 40 |
| 40 | 20 |
| 50 | 0 |
Plot these points with quantity on the horizontal axis and price on the vertical axis. They fall on a straight line that slopes downward from left to right. That line is the demand curve.
Two points on the line have names:
- The quantity intercept is where price is zero. Here it is 100. Even at a price of zero, demand is limited, because buyers can only use so much.
- The choke price is the price at which quantity demanded falls to zero. Here it is 50. At any price at or above 50, nobody buys.
Note that this chart puts price on the horizontal axis, because the chart type requires a category axis there. Textbook demand curves swap the axes: price goes on the vertical axis and quantity on the horizontal axis. The line is the same data. When you sketch a curve by hand, follow the textbook convention.
The linear demand equation
The general linear form used throughout this tutorial is:
Qd = a - b * P
- a is the quantity demanded when the price is zero. It is the intercept on the quantity axis.
- b is how many units of quantity demanded are lost for each one-unit rise in price. It is positive, which gives the curve its downward slope.
For Qd = 100 - 2P, a = 100 and b = 2. Each $1 price increase removes 2 units of demand.
Inverse demand
Economists often write price as a function of quantity. This is the inverse demand curve. Solve for P:
P = (a - Qd) / b
For our example, P = 50 - 0.5 * Qd. Both forms contain the same information. The inverse form matches the graph, because price is on the vertical axis. The form with Qd on the left is easier when you want to find quantity at a given price. The slope of the drawn curve, in price per unit of quantity, is -1/b, which is -0.5 here. It is not -b. Mixing these up is a very common mistake.
Computing demand in code
A short function turns the equation into a schedule you can inspect.
def quantity_demanded(price, a=100, b=2):
# Linear demand: Qd = a - b * P, never below zero
return max(a - b * price, 0)
def inverse_demand(quantity, a=100, b=2):
# Price buyers will pay for the last unit: P = (a - Q) / b
return (a - quantity) / b
for p in (0, 10, 20, 30, 40, 50, 60):
print(p, quantity_demanded(p))
print(inverse_demand(60))The output lists quantities 100, 80, 60, 40, 20, 0, 0. The last line prints 20.0: buyers would pay at most 20 for the 60th unit.
The max(..., 0) guard matters. The raw formula gives -20 at a price of 60, and a negative quantity has no meaning. A linear demand equation only applies for prices between 0 and the choke price. Beyond the choke price, quantity demanded is zero.
Movement along the curve versus a shift
This section covers the most important idea in the chapter, and the one most often confused.
- A change in quantity demanded is a movement along a fixed demand curve. Only the good's own price causes it.
- A change in demand is a shift of the whole curve. Any other relevant factor causes it, because it changes how much buyers want at every price.
Suppose the price of a coffee falls from 20 to 10. Buyers move down the curve from 60 units to 80 units. Demand did not change. Now suppose a health report praises coffee, and buyers want more at every price. The curve itself moves outward.
Factors that shift demand
| Factor | Effect on demand | Example |
|---|---|---|
| Income, for a normal good | Higher income raises demand | Restaurant meals when wages rise |
| Income, for an inferior good | Higher income lowers demand | Instant noodles when wages rise |
| Price of a substitute | Higher substitute price raises demand | Tea becomes pricier, coffee demand rises |
| Price of a complement | Higher complement price lowers demand | Printers become pricier, ink demand falls |
| Tastes and preferences | Stronger preference raises demand | A trend makes a product fashionable |
| Expectations | Expected future price rise raises demand now | Buyers stock up before a tax increase |
| Number of buyers | More buyers raise demand | Population growth in a city |
In the linear equation, a shift means a change in the intercept a. A rise from 100 to 130 gives Qd = 130 - 2P. The curve moves parallel to itself, and every price now has 30 more units demanded. A change in b, by contrast, rotates the curve. It means buyers have become more or less sensitive to price. Chapter 10 on elasticity returns to this point.
From individual demand to market demand
A single buyer has an individual demand curve. Market demand is the sum of all individual quantities demanded at each price. This is a horizontal sum: at a given price, add up the quantities.
Suppose two buyers have these demands:
- Buyer 1: Q1 = 40 - P
- Buyer 2: Q2 = 60 - P
At price 10, buyer 1 wants 30 and buyer 2 wants 50, so the market wants 80. Adding the equations gives Qd = 100 - 2P, the market demand used above. Notice that the slope grows: each extra buyer adds to the total reduction in quantity when the price rises.
def market_demand(price, buyers):
# buyers is a list of (a, b) pairs, one per individual demand curve
return sum(max(a - b * price, 0) for a, b in buyers)
buyers = [(40, 1), (60, 1)]
print(market_demand(10, buyers))
print(market_demand(45, buyers))This prints 80 and then 15. The second result shows an edge case. At price 45, buyer 1 has already hit their choke price of 40 and buys nothing, so only buyer 2 contributes (60 - 45 = 15). The market curve is therefore not a single straight line over its whole range. It bends at each buyer's choke price. Summing the raw equations without the max guard would give 100 - 90 = 10, which is wrong. The simple equation Qd = 100 - 2P is exact only for prices up to 40.
Common errors
- Confusing quantity demanded with demand. A price change moves you along the curve. Only other factors shift it.
- Reading the slope as -b. On a graph with price on the vertical axis, the slope is -1/b.
- Ignoring the zero floor. A linear formula can produce negative quantities beyond the choke price.
- Forgetting ceteris paribus. If income and price change together, you cannot attribute the change in purchases to price alone.
- Treating demand as spending. Demand is a quantity at each price. Spending is price times quantity, and it can rise or fall as price changes.
Summary of the working model
- Demand is a schedule of quantities buyers are willing and able to purchase at each price, other things equal.
- The law of demand gives the curve a downward slope.
- In linear form, Qd = a - b * P, with a as the intercept and b as the price sensitivity.
- A change in the good's own price moves buyers along the curve. Any other factor shifts the curve, which changes a.
- Market demand adds individual demands horizontally, and each buyer drops out at their own choke price.
Exercise
A market has demand Qd = 120 - 3P. (a) What is the quantity demanded at P = 20? (b) What is the choke price? (c) Buyers' incomes rise and the good is normal, so a rises by 30. Write the new demand equation and the new quantity demanded at P = 20. (d) Is part (c) a movement along the curve or a shift?
Show answer
(a) Qd = 120 - 3 * 20 = 60. (b) Set Qd = 0: 120 - 3P = 0, so P = 40. (c) The new equation is Qd = 150 - 3P, and at P = 20 the quantity demanded is 150 - 60 = 90. (d) It is a shift, because a factor other than the good's own price (income) changed, and the intercept a moved from 120 to 150.
Exercise
Two buyers have demands Q1 = 30 - P and Q2 = 50 - 2P. What is market demand at P = 10 and at P = 28? Explain why a single linear equation fails at P = 28.
Show answer
At P = 10, Q1 = 20 and Q2 = 30, so market demand is 50. At P = 28, Q1 = 2 and Q2 = 50 - 56 = -6, which is not meaningful, so buyer 2 buys 0 and market demand is 2. Adding the equations (80 - 3P) would give -4. The single equation fails because buyer 2's choke price is 25, and above it that buyer's quantity must be held at zero. The market curve therefore bends at P = 25.