1. Home
  2. Explore
  3. Economics
  4. Deriving Demand Curves

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Deriving Demand Curves

How Demand Curves Come from Consumer Choice

A demand curve is not just a line drawn to summarize how buyers behave. It can be derived from a consumer’s preferences, the prices of goods, and the consumer’s budget. Once that foundation is clear, it becomes possible to explain not only how much of a good a consumer chooses at different prices, but also why demand responds to price and income in the ways it does.

From preferences and a budget to a demand curve

Consider a consumer choosing between slices of pizza, denoted by sss, and cookies, denoted by ccc. The consumer’s preferences are represented by the utility function

U(s,c)=sc.U(s,c)=\sqrt{sc}.U(s,c)=sc​.

Utility is a way of representing how desirable a bundle of goods is. The consumer also faces a budget constraint:

Y=pss+pcc,Y=p_s s+p_c c,Y=ps​s+pc​c,

where YYY is income, psp_sps​ is the price of a slice of pizza, and pcp_cpc​ is the price of a cookie. The budget constraint lists the combinations of goods the consumer can afford.

Suppose income is 242424, pizza costs 444 per slice, and cookies cost $2 each. The consumer chooses the affordable combination that reaches the highest possible indifference curve. An indifference curve represents combinations of goods that provide the same level of utility.

The tangency condition

At an interior optimum, the budget line is tangent to the highest attainable indifference curve. This is the tangency condition: at the chosen bundle, the rate at which the consumer is willing to trade one good for another matches the rate at which the market allows that trade.

For this utility function, the marginal utilities—the additional utility from one more unit of each good—are

MUs=12cs,MUc=12sc.MU_s=\frac{1}{2}\sqrt{\frac{c}{s}}, \qquad MU_c=\frac{1}{2}\sqrt{\frac{s}{c}}.MUs​=21​sc​​,MUc​=21​cs​​.

At an optimum, marginal utility per dollar is equal across the two goods:

MUsps=MUcpc.\frac{MU_s}{p_s}=\frac{MU_c}{p_c}.ps​MUs​​=pc​MUc​​.

Equivalently,

MUsMUc=pspc.\frac{MU_s}{MU_c}=\frac{p_s}{p_c}.MUc​MUs​​=pc​ps​​.

The left side describes the consumer’s willingness to trade pizza for cookies; the right side describes the market’s relative prices. For this utility function, the condition simplifies to

cs=pspc.\frac{c}{s}=\frac{p_s}{p_c}.sc​=pc​ps​​.

With the initial prices, this gives

cs=42=2,\frac{c}{s}=\frac{4}{2}=2,sc​=24​=2,

so the consumer chooses twice as many cookies as slices of pizza. Combining that relationship with the budget constraint,

24=4s+2c,24=4s+2c,24=4s+2c,

gives the optimal bundle:

s∗=3,c∗=6.s^*=3,\qquad c^*=6.s∗=3,c∗=6.

The superscript star indicates an optimal choice. The consumer spends 121212 on pizza and 121212 on cookies. The bundle is optimal because it satisfies both the budget constraint and the tangency condition.

Changing the price of cookies

To derive a demand curve for cookies, the consumer’s optimal choice is recalculated at different cookie prices, while income, the pizza price, and preferences are held fixed.

If the cookie price rises from 222 to 333, the new budget constraint is

24=4s+3c.24=4s+3c.24=4s+3c.

The tangency condition becomes

cs=43.\frac{c}{s}=\frac{4}{3}.sc​=34​.

Solving the two equations gives

s∗=3,c∗=4.s^*=3,\qquad c^*=4.s∗=3,c∗=4.

The higher cookie price makes cookies more expensive relative to pizza, so the consumer chooses fewer cookies. In this particular example, pizza consumption remains at three slices.

If instead the cookie price falls from 222 to 43\frac{4}{3}34​, the tangency condition becomes

cs=44/3=3.\frac{c}{s}=\frac{4}{4/3}=3.sc​=4/34​=3.

Combining this with the budget constraint gives

s∗=3,c∗=9.s^*=3,\qquad c^*=9.s∗=3,c∗=9.

The consumer now chooses more cookies.

The resulting price–quantity pairs for cookies are therefore (c,pc)=(6,2)(c,p_c)=(6,2)(c,pc​)=(6,2), (4,3)(4,3)(4,3), and (9,43)(9,\frac{4}{3})(9,34​). Plotting quantity on the horizontal axis and price on the vertical axis produces a demand curve: it shows the quantity the consumer chooses at each possible price.

A demand curve comes from finding the consumer’s optimal quantity at each price, with preferences, income, and other prices held fixed.

Why pizza consumption stays constant in this example

The unchanged pizza quantity is a special feature of the utility function, not a general rule. With U(s,c)=scU(s,c)=\sqrt{sc}U(s,c)=sc​, the consumer spends half of income on pizza and half on cookies. Since pizza’s price and total income remain fixed, pizza spending stays at 121212, which buys three slices at 444 per slice—even when the cookie price changes.

In most situations, changing the price of one good affects the quantities chosen of both goods. The effect of one good’s price on the demand for another is called a cross-price effect. Here, the cross-price effect on pizza quantity happens to be zero because of the particular preferences represented by this utility function.

Think About It: If a price change alters the consumer’s best affordable bundle, which parts of the problem have changed—and which have stayed fixed?

How responsive is demand to price?

A demand curve tells how quantity varies with price. Price elasticity of demand measures how responsive quantity demanded is to a price change. It is calculated as the percentage change in quantity divided by the percentage change in price:

ε=% change in quantity demanded% change in price.\varepsilon = \frac{\%\text{ change in quantity demanded}} {\%\text{ change in price}}.ε=% change in price% change in quantity demanded​.

For a small change, the point elasticity can be written as

ε=dqdppq,\varepsilon=\frac{dq}{dp}\frac{p}{q},ε=dpdq​qp​,

where qqq is quantity and ppp is price. The factor pq\frac{p}{q}qp​ matters: elasticity measures a percentage response, not simply the change in quantity for each unit of price change. For a typical good, quantity falls when its own price rises, so price elasticity is negative. Sometimes discussions focus on the absolute size of elasticity instead.

Inelastic and elastic demand

Perfectly inelastic demand has an elasticity of 000. Quantity does not respond to price, so the demand curve is vertical. This is an extreme case: even a product with few substitutes is unlikely to be perfectly inelastic at every possible price.

Insulin is a useful example of a good whose demand may be highly inelastic over a relevant range. People who depend on it have few practical alternatives. Gasoline and water can also have relatively inelastic demand in some circumstances, but consumers may have alternatives—such as public transportation, walking, or other drinks—so demand is not perfectly unresponsive.

At the other extreme, perfectly elastic demand has an elasticity whose magnitude is infinite. At the relevant price, even a tiny increase would cause consumers to switch away, so the demand curve is horizontal. This is also an idealized case rather than a typical real-world situation.

The central factor behind elasticity is substitutability. A good with many close substitutes tends to have more elastic demand because consumers can switch easily when its price rises. A good with few substitutes tends to have less elastic demand. For example, if two similar fast-food restaurants offer close alternatives, a large price difference may lead many customers to choose the less expensive one.

Most goods fall between the perfectly inelastic and perfectly elastic extremes. Their responsiveness depends in part on how readily consumers can find alternatives. Elasticity is also distinct from the visual steepness of a demand curve: elasticity is about percentage changes, while a curve’s slope measures changes in units.

Think About It: Why might the same price increase cause a large change in demand for one product but only a small change for another?

Income changes and Engel curves

Prices are not the only factor that affects consumer choices. Income also matters. If income rises while prices and preferences stay the same, the budget constraint shifts outward in parallel: the consumer can afford more of both goods, but their relative prices have not changed.

With income increased from 242424 to 323232, the tangency condition remains

cs=42=2,\frac{c}{s}=\frac{4}{2}=2,sc​=24​=2,

because neither prices nor preferences have changed. The new budget constraint is

32=4s+2c.32=4s+2c.32=4s+2c.

The optimal bundle becomes

s∗=4,c∗=8.s^*=4,\qquad c^*=8.s∗=4,c∗=8.

If income instead falls to 161616, the optimal bundle becomes

s∗=2,c∗=4.s^*=2,\qquad c^*=4.s∗=2,c∗=4.

A graph showing how the quantity demanded changes with income is called an Engel curve. An Engel curve can be drawn separately for each good. A demand curve relates quantity to price; an Engel curve relates quantity to income.

Income elasticity and types of goods

Income elasticity of demand, denoted by γ\gammaγ, measures how responsive quantity demanded is to an income change:

γ=% change in quantity demanded% change in income.\gamma = \frac{\%\text{ change in quantity demanded}} {\%\text{ change in income}}.γ=% change in income% change in quantity demanded​.

For a small change,

γ=dqdYYq.\gamma=\frac{dq}{dY}\frac{Y}{q}.γ=dYdq​qY​.

The sign and size of γ\gammaγ classify goods:

  • A normal good has γ>0\gamma>0γ>0: consumers buy more of it as income rises.
  • An inferior good has γ<0\gamma<0γ<0: consumers buy less of it as income rises.
  • A necessity is a normal good with 0<γ<10<\gamma<10<γ<1: its quantity rises with income, but more slowly than income does.
  • A luxury, in the income-elasticity sense, has γ>1\gamma>1γ>1: its quantity rises more than proportionally as income rises.

Ramen is often used as an example of an inferior good. As someone’s income grows, that person may replace inexpensive packets of ramen with other meals and buy less ramen. The key idea is not that ramen must be disliked; it is that the person may have chosen it partly because it was cheap.

Rent can illustrate a necessity. A higher-income household may choose a better or larger home, so the amount spent on housing can rise. But housing may take up a smaller share of that household’s budget as income grows. Eating at restaurants or buying increasingly expensive watches can illustrate luxury consumption when those purchases take a growing share of the budget.

In the example with utility U(s,c)=scU(s,c)=\sqrt{sc}U(s,c)=sc​, both quantities rise in direct proportion to income: an increase from 242424 to 323232 raises each quantity by one-third. That corresponds to unit income elasticity, γ=1\gamma=1γ=1, for each good in this example.

Think About It: How does an inferior good differ from a necessity? In both cases, could a consumer still choose to buy some of the good?

What happens when a price changes?

A price change has two effects at once. Separating them helps explain why consumers respond as they do.

The substitution effect

The substitution effect is the change in a consumer’s choices caused by a change in relative prices, holding utility constant. If cookies become more expensive relative to pizza, cookies are a worse deal, so the consumer shifts away from cookies toward pizza.

Graphically, this effect can be isolated with an imaginary budget line. It is drawn parallel to the new budget line, so it has the new relative prices, but it is tangent to the original indifference curve, so utility is held constant. The movement from the original bundle to the point on this compensated budget line shows the substitution effect.

For a good whose own price rises, the substitution effect reduces the quantity demanded of that good. The good has become relatively more expensive, so the consumer substitutes toward alternatives. If its price falls, the substitution effect increases the quantity demanded.

The income effect

The income effect is the change in choices caused by the change in the consumer’s purchasing power. Even if money income stays the same, a price increase reduces what that income can buy. The consumer is effectively poorer; a price decrease makes the consumer effectively richer.

The direction of the income effect depends on the type of good. For a normal good, being poorer leads the consumer to buy less, while being richer leads the consumer to buy more. For an inferior good, the direction is reversed: being poorer can lead the consumer to buy more of it, while being richer can lead the consumer to buy less.

Combining the effects

When cookies become more expensive and cookies are a normal good, both effects reduce cookie consumption:

  1. The substitution effect reduces cookie consumption because cookies have become relatively expensive.
  2. The income effect reduces cookie consumption because the price increase has reduced real purchasing power, and cookies are normal.

When the cookie price falls, both effects work in the opposite direction: cookies are relatively cheaper, and the consumer is effectively richer. Both effects increase cookie consumption.

For an inferior good, the two effects can point in opposite directions. A price increase still creates a substitution effect that reduces consumption of that good. But the resulting loss of purchasing power may create an income effect that increases consumption of the inferior good. The total, or net effect, depends on which effect is stronger.

Consider potatoes and steak. Suppose potatoes are inferior and steak is normal. If potatoes become more expensive, consumers substitute away from potatoes toward steak. But they also become effectively poorer. Because potatoes are inferior, that loss of purchasing power may make them consume more potatoes than they otherwise would. The substitution effect lowers potato consumption; the income effect raises it.

Think About It: When a price rises, why does the substitution effect have a predictable direction while the income effect depends on whether a good is normal or inferior?

Giffen goods and the usual downward-sloping demand curve

In most cases, the substitution effect is strong enough that a price increase reduces demand overall. A theoretical exception is a Giffen good: an inferior good for which the positive income effect from a price increase outweighs the negative substitution effect. The result would be an upward-sloping demand curve: a higher price would be associated with higher quantity demanded.

This possibility is different from an ordinary inferior good. Inferiority alone does not make a good a Giffen good; the income effect must be unusually strong. Giffen goods are generally treated as rare theoretical cases.

Historical claims that potatoes were a Giffen good during the Irish potato blight illustrate a problem with interpreting data. The observation that potato consumption per person increased does not by itself show that each person consumed more potatoes because their price rose. If people who could afford other foods left the country, the population that remained could have been disproportionately made up of people who relied on potatoes. The average could then rise because the composition of the population changed, not because individual consumers increased their potato consumption in response to price.

A Veblen good is a different idea. It describes a good for which a high price may itself contribute to its appeal because of social status. That is not the substitution-and-income-effect explanation used to define a Giffen good.

Putting the pieces together

For a normal good, a price increase causes both the substitution effect and the income effect to reduce quantity demanded. A price decrease causes both effects to increase quantity demanded. This reinforces the familiar downward-sloping demand relationship.

For an inferior good, the substitution effect still moves quantity in the opposite direction from the price change. The income effect moves in the opposite direction from the normal-good income effect. As a result, the two effects may partly offset one another. Usually the substitution effect still determines the overall direction, but in the theoretical Giffen case the income effect is stronger and reverses it.

The same distinction matters beyond the analysis of goods such as cookies or potatoes. When a decision changes both relative incentives and purchasing power, separating substitution and income effects clarifies the forces behind the final choice.

Comprehensive Review

  • A consumer’s optimal bundle is determined by preferences, prices, and the budget constraint. At an interior optimum, marginal utility per dollar is equal across goods.
  • A demand curve is derived by finding the consumer’s optimal quantity at different prices while holding income, preferences, and other prices fixed.
  • Price elasticity measures the percentage responsiveness of quantity demanded to price. More close substitutes generally mean more elastic demand.
  • An Engel curve shows how quantity demanded changes with income. Normal goods have positive income elasticity; inferior goods have negative income elasticity.
  • A necessity has income elasticity between zero and one; a luxury, in this classification, has income elasticity greater than one.
  • A price change creates a substitution effect, based on relative prices, and an income effect, based on purchasing power.
  • For an own-price increase, the substitution effect reduces demand for that good. The income effect depends on whether the good is normal or inferior.
  • A Giffen good would have an income effect large enough to outweigh the substitution effect, producing an upward-sloping demand relationship.

Together, preferences, budgets, and price and income changes explain how individual choices generate demand curves and why those curves take the shapes they do.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent