A Worked Example, End to End
Sections 2–8 built the machinery in symbols. This section runs the whole engine once with numbers, so you can see every quantity land. We start from two Cobb-Douglas agents and their endowments, derive the market-clearing price by hand, read off the equilibrium allocation, and confirm both agents are strictly better off than where they started. Nothing here is new theory — it is §5 with the symbols replaced by numbers.
The primitives
Two agents, and , two goods. Both have Cobb-Douglas preferences but different tastes: leans toward good 1, leans toward good 2.
Each agent arrives at the market holding exactly one good. owns all of good 1; owns all of good 2 — the classic "two traders, one good each" setup that makes the gains from trade vivid.
- Tastes
- , .
- Total endowments
- , — a square box.
- Numéraire
- Good 2, so and we solve only for .
Step 1 — Wealth at price
Wealth is the market value of the endowment, . Because each agent holds only one good, their wealth is especially simple:
's wealth scales with the price of the good they own; 's wealth is fixed at 10 because good 2 is the numéraire.
Step 2 — Cobb-Douglas demands
Each agent spends an fraction of wealth on good 1 and the rest on good 2: and . Substituting the wealths from Step 1:
- Step 1
's demand for good 1 is a constant 6 — the price cancels because 's wealth is itself proportional to .
- Step 2
's demand for good 1 falls as good 1 gets more expensive.
Step 3 — Clear the market for good 1
By Walras's Law we only need one market to clear; pick good 1. Total demand must equal the total endowment :
- Step 1
Market-clearing condition for good 1.
- Step 2
Substitute the demands from Step 2.
- Step 3
Good 1 is cheaper than good 2 (): brings a lot of good 1 to sell, so its relative price is bid down.
Step 4 — The Walrasian allocation
Now evaluate wealth at and read the demands off: and .
- Step 1
sells 4 units of good 1 and buys 3 units of good 2.
- Step 2
buys 4 units of good 1 and sells 3 units of good 2.
Step 5 — Gains from trade
At their endowments each agent holds only one good, so Cobb-Douglas utility is zero — you cannot make positive with . Trade lifts both strictly above that floor:
- Step 1
moves from nothing to a positive bundle of both goods.
- Step 2
likewise strictly gains.
Both agents are strictly better off, which is exactly the individual-rationality guarantee from §6: voluntary trade at a common price never leaves anyone worse than not trading.
Seeing it in the box
Measured from 's origin, the budget line runs through the endowment with slope . 's chosen bundle sits where 's indifference curve is tangent to that line — the defining condition . At that point the indifference curve's slope is , matching the price line exactly.