E1 ·
Demand optimality ✓ · Market residual 2.2e-16 · Efficient ✓ · Individually rational ✓
PURE EXCHANGE ECONOMY
Change preferences and endowments. Watch the economy take shape.
Two perspectives on one allocation
Efficiency and voluntary exchange
EXPLORE A PRICE
Move one step past 100 for ∞, or type ∞ in the price box.
Set the size of the economy and split the goods between agents.
Changing totals preserves each agent’s share.
MARKET CLEARING
Superscripts identify agents; subscripts identify goods. Write for consumption and endowment. The formulas below use and normalize the price of good 2 to one.
Income is the market value of the initial bundle.
Here is excess demand for good ; the last identity is Walras’ law. At an indifference price, choose clearing bundles from the entire demand segments.
In agent 1’s coordinates , the contract curve is
Using the equivalent Cobb–Douglas utility representation , the two agents’ individual-rationality conditions become
The individually rational part of the contract curve is therefore
Demand optimality ✓ · Market residual 2.2e-16 · Efficient ✓ · Individually rational ✓
Finite prices are searched from 10⁻¹² to 10¹², with exact checks at 0, ∞, linear indifference prices, and analytically supported no-trade prices. Both goods and demand membership are checked. Smooth roots are numerical solutions; the search does not certify that every root has been found. At p = ∞, use normalized prices (1, 0), rather than multiplying by infinity.
Equate the marginal rate of substitution to the relative price, then substitute into the budget.
At positive finite prices, the optimal bundle is the kink on the budget line.
The interior first-order condition is clipped by nonnegativity and the budget.
Compare utility per unit of spending. Equality makes the entire budget segment optimal.
WELFARE THEOREMS
Every competitive equilibrium in this model is Pareto efficient.
All included preferences, with the positive coefficients enforced here, are locally nonsatiated: arbitrarily nearby bundles can improve utility. This also holds for perfect complements. Convexity is not needed for this theorem.
Suppose an alternative feasible allocation made everyone weakly better off and one agent strictly better off. Optimality and local nonsatiation imply that each weakly preferred bundle costs at least that agent’s equilibrium wealth; a strictly preferred bundle costs strictly more. Summing gives total spending strictly above the value of the total endowment, contradicting feasibility.
Feasibility requires equality, so this strict inequality is impossible.
The equilibrium checks above test demand optimality, both markets, efficiency, and individual rationality. They corroborate the theorem for the computed solutions, rather than replacing its proof. MIT: first welfare theorem ↗
Convex preferences support efficient allocations after wealth redistribution—with a boundary qualification.
All included preferences have convex upper contour sets. Separation gives a nonzero supporting price and a quasi-equilibrium: strictly preferred bundles cannot cost less than target wealth. To obtain a full equilibrium, the target must also maximize utility in its budget set. Interior target bundles are sufficient; boundary cases need checking.
Use a normalized price vector, including the infinite-price endpoint.
These transfers give each agent exactly the wealth needed to buy the target and sum to zero by feasibility. The check below then tests both agents’ actual demand correspondences.
Point P moves on the second graph. Transfers are hypothetical and leave the original endowments unchanged.
Efficient ✓ · Agent 1 optimizes ✓ · Agent 2 optimizes ✓ · Transfers sum to zero ✓ · Target is in the original core
The contract curve is the full set of strongly Pareto efficient allocations; it can have area. The displayed core is its individually rational subset. We use coalition blocking that allows every member to be weakly better off with one strictly better off. With flat preferences, a core based on strict improvement for every member can be larger.
For W = (1, 2), let agent 1 have equal-weight CES utility with σ = 2 and agent 2 have min(x₁, x₂). The allocation (0, 1) to agent 1 and (1, 1) to agent 2 is efficient. Its supporting price is p = ∞, but agent 1 strictly wants more of the free good 2, so no finite maximizing bundle exists. The quasi-equilibrium version of the second theorem holds; unqualified full decentralization fails at this boundary.
Blue quantities are measured from the bottom left. Orange quantities are measured from the top right: agent 2’s bundle is plotted at . The black point marks the initial endowment.
Each offer curve traces an agent’s optimal bundle as the relative price varies. At the selected price, both agents face the dashed line through the endowment.
For CES, , with Cobb–Douglas at . As in the original project, exactly switches to ; this weighted convention can differ from the limit as σ approaches zero.
For perfect substitutes, the dashed colored segment contains all optimal bundles at . Quasilinear utility is , including corner solutions.
The price slider runs continuously from 0 to 0.01, then logarithmically to 100, with one final step to ∞. Markers show demand at that price; demand outside the economy’s box remains visible in the numerical readouts.
A geometric crossing alone need not be an equilibrium: the agents must demand feasible allocations at the same price. At p = 0 good 1 is free; at p = ∞ good 2 is free (normalized prices (1, 0)). Perfect complements have whole optimal rays. With other preferences there may be no finite maximizing bundle; the readout states this explicitly.