Utility
The basic assumption of demand theory is that consumers maximize their utility (i.e., satisfaction) subject to the constraints of their budgets. Economists systematize utility as a function of the quantities of goods consumed. In the interests of realism, the utility function should have two properties: (1) Total utility increases as consumption of either or both goods increases, and (2) marginal utility, defined as the extra satisfaction derived from each additional unit, decreases. The utility function might have a peak ("bliss point') beyond which additional consumption of some goods actually reduces utility--an economic good becomes a "bad" in other words--but rational consumers should never consume to this point.
Here's a quadratic utility function for beers (B): U = 15B - B2. The total utility (red) and marginal utility (blue) schedules are graphed below: This consumer maximizes the evening's total utility at 7.5 beers, where total utility peaks and marginal utility equals zero. Here the marginal utility values are the increments in total utility.
| Beers | Utility | Marginal
Utility |
![]() |
| 0 | 0 | -- | |
| 1 | 14 | 14 | |
| 2 | 26 | 12 | |
| 3 | 36 | 10 | |
| 4 | 44 | 8 | |
| 5 | 50 | 6 | |
| 6 | 54 | 4 | |
| 7 | 56 | 2 | |
| 8 | 56 | 0 | |
| 9 | 54 | -2 |
The single-good problem is rather trivial, since consumers actually
have a large selection of goods they can purchase, and we are often interested
in analyzing the trade-offs consumers make between multiple goods.
The graph below shows the utility levels some individual consumer might
obtain from various combinations of two goods, Spam and widgets,
say. This is the Cobb-Douglas function U = 10X0.4Y0.4.
The general form of these functions is U = aXbYc.
where a, b and c are positive constants, b +
c < 1, and X and Y are quantities of different goods.


The consumer's purchases are naturally constrained by a money budget. A budget line can be superimposed on the indifference mapping, showing all combinations of goods that exhaust the budget. Suppose widgets cost $1.50 each, cans of Spam cost $3.00 each, and the consumer's total budget (M) is $12.00. The end-points of the budget line are easily calculated: if the consumer spent all $12 on widgets, she could buy $12/$1.50 = 8; or if she spent all $12 on Spam, she could buy $12/$3 = 4 cans. And since the prices are constant, all just-affordable combinations of widgets and Spam lie on a straight line between these points. The slope of the budget line is the price ratio P(widgets)/P(Spam). This ratio, the marginal rate of transformation (MRT), is the rate at which the consumer can trade widgets for Spam in the market.

The consumer can only afford combinations of widgets and Spam that lie on (or else southwest of) her budget line. The affordable portion of the indifference mapping is the region southwest of the budget line. Graphically, the consumer maximizes utility by climbing as high as she can on the affordable portion of the utility surface. The consumption bundle that provides maximum affordable utility is defined by the single point of tangency between the budget line and the highest attainable indifference curve. On the lower of the two budget lines shown above, the utility-maximizing consumption bundle is (4 widgets, 2 Spams), which yields a total utility of 50.
Now suppose the price of widgets drops to $1. This price reduction rotates the entire budget line outward to a new end-point on the horizontal axis at 12 widgets. Now the utility maximizing consumption bundle is now (6 widgets; 2 Spams), which yields a total utility of 60.
The tangency of the indifference curve and the budget line implies that the slopes of these schedules are the same at the optimal consumption point. In other words, the utility-maximizing consumers buys a consumption bundle where the marginal rate of (preference) substitution MU(widgets)/MU/(Spam) equals the marginal rate of (market) transformation P(widgets)/P(Spam):
MRS = MU(widgets)/MU(Spam) = P(widgets)/P(Spam) = MRT
We can rearrange this to obtain a more common-sense result:
MU(widgets)/P(widgets) = MU(Spam)/P(Spam)
which, in plain English, means that, to maximize utility, this consumer should allocate her budget between widgets and Spam so that the extra satisfaction per dollar spent on widgets equals the extra satisfaction per dollar spent on Spam.
Derivations of demand schedules
For any goods X1 and X2, a change in income or either price will shift the budget constraint line, and we can then trace out how the tangency point defining the just-affordable, utility-maximizing bundle (X1*,X2*) changes. A reduction in the price of a good shifts the end-point of the budget line outward along the axis representing that good, since the consumer can now afford more of it; a price increase shifts the end-point inward toward the origin. An increase in the consumer's income shifts both end-points of the budget line outward proportionately; a decrease in income shifts the budget line inward in parallel.
If we vary income or either price continuously, we can trace out a demand schedule. A conventional demand schedule is the schedule of quantities of a good consumers are willing to buy at various prices of the good. In our two-good world, economic demands for X1 and X2 each depend on both prices P1 and P2 and the budget M.
If we vary the price of X1, we can trace out a conventional own-price demand schedule for X1. Own-price demand schedules are always downward-sloping: the higher the price, the less people buy.
If we vary the price of the other good, X2, we can trace out a cross-price demand schedule, for X1 with respect to the price of X2. If the cross-price demand schedule is positively sloped, X1 and X2 are substitutes. If the cross-price demand schedule is negatively sloped, X1 and X2 are complements.
If we vary the consumer's income, we can trace out an income demand schedule (Engel curve) for X1. Any good with a positively-sloped income-demand schedule is a normal good. Some goods have negatively-sloped demand schedules, and are termed inferior goods.
Each of these demand functions can only be represented graphically if the other two arguments are held constant. You should study these animated figures until you are clear on why the budget lines shift the way they do, and how the successive tangencies trace out the respective demand schedules
NOTE: It is important to distinguish between a shift in demand and a change in quantity demanded. Consider the (own-price) demand for X1 with respect to P1: a change in P1 implies a movement along the demand schedule, while a change in P2 or M (or any other variable besides P1 which influences demand) implies a shift of the entire demand schedule. To get clear on this, you may want to check out the answers to the micro thoery review quiz I give my FREC 444 students.
Elasticity
We can calculate elasticities of demand for either good with respect to either price or income. Elasticity is a unit-free index of a function's responsiveness to a change in one of its arguments. Specifically, elasticity is the percent change in an effect variable caused by a one-percent change in a causal variable. For example, the ("own-price") elasticity of demand for X1 with respect to P1 is calculated as the percent change in quantity of X1 demanded divided by the percent change in P1. The cross-price elasticity is the percent change in X1 divided by the percent change in P2, the price of the other good. The income elasticity is the percent change in X1 divided by the percent change in the budget M.
X1 and X2 are substitutes if the cross-price demands for X1 with respect to P2, and X2 with respect to P1, are positively sloped, so that the cross-price elasticities are positive too. X1 and X2 are complements if the cross price demands are negatively sloped and the cross-price elasticities are negative too.
X1 is an inferior good if its Engel curve is negatively sloped and its income elasticity is negative. X1 is a normal good if its Engel curve is positively sloped and income elasticity is positive. X1 is a luxury good (luxury goods are a subset of normal goods) if its income elasticity is greater than one.
Consumer and producer surplus
A competitive
market is characterized by full information, so everyone knows what
price levels are and sellers can’t engage in price discrimination
(charge
different consumers different prices). A downward-sloping demand schedule
implies that the WTP of most consumers is higher than the amount they actually
have to pay. The aggregate amount consumers would theoretically be willing
to
pay for the equilibrium quantity X, above what they
do pay, is called
consumer surplus (CS). This measures the aggregate economic benefit
realized by consumers in the market. Graphically, consumer surplus is the
triangular area below the demand (WTP) schedule and above the market price.
An increase (rightward shift) in supply implies a movement down the demand
schedule: equilibrium price is lower for all consumers, and the area of
the consumer surplus triangle is increased.
Similarly, an upward-sloping supply schedule implies that the willingness-to-sell
(WTS) of most sellers is less than the market price they receive.
The aggregate amount that all sellers in the market collectively receive
(Peq x Xeq) above the minimum amounts they would
be willing to accept is called producer surplus (PS).