Why Connect Optimization to Market Clearing?
A competitive equilibrium links individual decisions to an economy-wide allocation. Consumers choose the bundles they prefer at given prices, while firms choose production plans that maximize profit at those same prices. Market clearing then requires that the quantities consumers want to buy match the quantities firms supply. The key question here is how those separate decisions imply relationships among marginal values, prices, and production costs.
The derivation uses a consumer choosing between two goods and a firm producing goods or output at competitive prices. It focuses on interior choices, where the decision-maker can make small changes in either direction. Boundary choices require inequalities rather than the equalities derived below. This connection is aligned with the SOA VEE Economics (Validation by Educational Experience) syllabus.
The Consumer’s Marginal Condition
Suppose a consumer chooses quantities \(x\) and \(y\) to maximize differentiable utility \(U(x,y)\), subject to the budget constraint \(p_xx+p_yy\leq I\). Here \(p_x\) and \(p_y\) are positive prices and \(I\) is income. Assume the consumer spends all income, prefers more of each good locally, and chooses positive quantities of both goods. At an interior optimum, a small change in the bundle that keeps spending unchanged cannot increase utility.
An increase in \(x\) of \(dx\) can be financed by reducing \(y\) by \(dy\), where \(p_xdx+p_ydy=0\). The utility change is \(dU=MU_xdx+MU_ydy\), where \(MU_x\) and \(MU_y\) are marginal utilities. At the optimum, this change is zero for a small budget-neutral move. Substituting \(dy=-(p_x/p_y)dx\) gives the consumer’s condition:
The left side is the marginal rate of substitution, \(MRS_{xy}\): how much \(y\) the consumer would just give up for one more unit of \(x\), measured at the margin. The right side is the market trade-off: how much \(y\) must be given up to buy one more unit of \(x\). At an interior optimum these trade-offs agree. This is a first-order condition; using it as a sufficient condition for a global maximum also requires appropriate curvature of preferences and a feasible budget set.
Worked Example: Checking a Consumer’s Interior Choice
A consumer has utility \(U(x,y)=\sqrt{xy}\), income \(I=120\), and faces prices \(p_x=4\) and \(p_y=6\). Find the interior utility-maximizing bundle and verify the marginal condition. Assume positive consumption, locally increasing utility, and the stated budget constraint.
Method. For this utility function, the marginal utilities are \(MU_x=\tfrac{1}{2}\sqrt{y/x}\) and \(MU_y=\tfrac{1}{2}\sqrt{x/y}\). Therefore \(MU_x/MU_y=y/x\). The consumer’s first-order condition requires \(y/x=4/6=2/3\), or \(y=2x/3\).
Substitute this relationship into the binding budget constraint:
Check spending: \(4(15)+6(10)=60+60=120\). Check marginal trade-offs: \(MU_x/MU_y=y/x=10/15=2/3\), and \(p_x/p_y=4/6=2/3\). Both the budget and the interior condition hold. The method avoids the mistake of treating the price ratio as \(p_y/p_x\) while defining \(MRS_{xy}\) as \(MU_x/MU_y\).
The Firm’s Marginal Condition
Consider first a price-taking firm that produces a single output \(q\) and sells it at price \(p\). Let its differentiable total cost be \(C(q)\). If the firm chooses a positive interior output to maximize profit \(\pi(q)=pq-C(q)\), then the derivative of profit with respect to output must be zero:
where \(MC(q)=C'(q)\) is marginal cost. The reason is direct: one additional unit earns revenue \(p\) and adds cost \(MC(q)\). If marginal cost were below price, a small increase in output would raise profit; if it were above price, a small decrease would raise profit. At an interior profit maximum, the two are equal.
This condition is necessary for a differentiable interior optimum. It does not by itself establish that output is a global profit maximum: that conclusion depends on the shape of costs and the firm’s feasible choices. Nor does the equality necessarily hold at a boundary, such as zero output or a capacity limit. The firm must be taking the market price as given; a firm that recognizes its own effect on price faces a different revenue condition.
Worked Example: Competitive Output and Marginal Cost
A price-taking workshop can produce any quantity \(q\geq 0\) at total cost \(C(q)=q^2\). It sells output for \(p=20\) per unit. Find its profit-maximizing output and profit, and verify that the choice is a maximum. Assume the cost and revenue figures use the same time period and that output is continuously adjustable.
Method. Profit is \(\pi(q)=20q-q^2\). Its derivative is \(20-2q\), so the interior first-order condition gives \(20-2q=0\), or \(q=10\). Marginal cost at that output is \(MC(10)=2(10)=20=p\).
The second derivative of profit is \(-2\), which is negative for every \(q\); profit is strictly concave, so this stationary point is the global maximum over \(q\geq0\). Profit is \(\pi(10)=20(10)-10^2=200-100=100\). At zero output profit is \(0\), which is less than \(100\), providing an additional check against the shutdown boundary. The common mistake is to set total cost equal to price; the correct condition compares price with the derivative of total cost, not with total cost itself.
Combining Prices with the Production Trade-Off
The same price ratio also guides a firm choosing between two outputs. Suppose a firm’s feasible production boundary can be written \(y=g(x)\), with \(g'(x)<0\), and it maximizes revenue \(p_xx+p_yy\) over that boundary. Assume the firm chooses an interior point and the boundary is differentiable there. An increase in \(x\) requires a change \(dy=g'(x)dx\) in \(y\). At an interior revenue maximum, the change in revenue from this feasible adjustment is zero:
The right side, \(-g'(x)\), is the marginal rate of transformation, \(MRT_{xy}\): the quantity of \(y\) that must be given up to produce one additional unit of \(x\) at the margin. Thus a firm’s interior revenue-maximizing production mix satisfies \(p_x/p_y=MRT_{xy}\). This condition is a local result; global revenue maximization depends on the full feasible production set.
Combining this firm condition with the consumer condition gives a useful chain. When consumers choose an interior bundle, a firm chooses an interior point on a differentiable production boundary, and both face the same positive prices, the consumer’s marginal willingness to trade goods equals the production trade-off:
This equality describes a marginal condition for efficient exchange and production: the amount of \(y\) a consumer is willing to trade for \(x\) matches the amount of \(y\) that production must sacrifice to make more \(x\). The equality follows from the two optimization conditions and their shared prices. Market clearing then ensures the chosen consumption and production quantities are consistent with each other.
Worked Example: Connecting Choice, Production, and Clearing
An economy has one consumer with utility \(U(x,y)=\sqrt{xy}\), and one firm that can produce any nonnegative bundle satisfying \(x+y\leq12\). The consumer owns the firm. Consider prices \(p_x=p_y=1\). Show that the consumer’s optimum, the firm’s production choice, and market clearing can be consistent at an interior allocation. Assume the consumer spends firm revenue, and that goods are divisible.
Consumer choice. The firm’s maximum revenue is \(1x+1y=12\), attained at any bundle on \(x+y=12\). Its profit, and thus the consumer’s income from ownership, is \(12\). For the consumer, the marginal condition is \(y/x=p_x/p_y=1\), so \(y=x\). The budget constraint is \(x+y=12\). Substituting \(y=x\) gives \(2x=12\), hence \(x=6\) and \(y=6\). Spending is \(1(6)+1(6)=12\).
Firm choice. At prices of one for each good, revenue is \(x+y\). It cannot exceed \(12\) on the feasible set, and every bundle with \(x+y=12\) maximizes revenue. In particular, producing \((6,6)\) is profit-maximizing. This production boundary has \(y=12-x\), so \(MRT_{xy}=-dy/dx=1\).
Market clearing and check. The firm supplies \(6\) units of each good, and the consumer demands \(6\) units of each, so both markets clear. Feasibility holds because \(6+6=12\). Finally, \(MRS_{xy}=y/x=1=p_x/p_y=MRT_{xy}\). The result is consistent across consumer choice, firm choice, and clearing. A common mistake is to infer that market clearing alone establishes the marginal condition; here it is the optimization conditions at common prices, together with the selected feasible quantities, that produce the full connection.
What Market Clearing Adds—and What It Does Not
Optimization conditions describe how consumers and firms respond to prices. They do not, by themselves, guarantee that the quantities chosen fit together. For each good \(j\), market clearing requires that total demand equal total supply. With one consumer and one firm, this means the consumer’s chosen amount of each good equals the firm’s output of that good. With multiple consumers or firms, the corresponding totals must match.
Market clearing also makes the allocation feasible: goods consumed must be available from production or other stated sources. But market clearing is a quantity condition, not a substitute for the consumer’s or firm’s optimality conditions. A feasible allocation can fail to maximize anyone’s utility or profit at the prices being considered. Conversely, optimal individual choices at proposed prices do not form an equilibrium if markets do not clear.
The marginal equalities need careful interpretation. The consumer condition \(MRS_{xy}=p_x/p_y\) presumes an interior choice and a binding budget under the assumptions stated above. The firm condition \(p=MC\) presumes positive interior output by a price-taking firm with differentiable costs. The product-mix condition \(MRT_{xy}=p_x/p_y\) presumes an interior choice on a differentiable production boundary. At corners, capacity constraints, or other boundaries, one-sided deviations may be possible, and equality can be replaced by an inequality. The equalities are not automatic descriptions of every competitive outcome.
State the consumer’s budget and utility, or the firm’s feasible production choices and profit or revenue objective.
Identify whether the choice is interior, the relevant function is differentiable, and prices are taken as given before using a first-order equality.
Use \(MRS_{xy}=p_x/p_y\) for an interior consumer choice, and \(p=MC\) or \(MRT_{xy}=p_x/p_y\) for the corresponding firm problem.
Compare quantities demanded with quantities supplied for every good; do not mistake a price-based first-order condition for market clearing.
Common Exam Traps
- Reversing the ratio. If \(MRS_{xy}\) is defined as \(MU_x/MU_y\), the matching price ratio is \(p_x/p_y\), not \(p_y/p_x\).
- Using total cost instead of marginal cost. The competitive firm’s interior condition is \(p=C'(q)\), not \(p=C(q)\).
- Assuming all first-order equalities apply at corners. Zero consumption, zero production, or a capacity limit may call for inequalities instead.
- Treating market clearing as proof of optimality. Clearing ensures quantity consistency; it does not show that consumers and firms chose optimally.
- Mixing up the production trade-off. \(MRT_{xy}\) measures \(y\) sacrificed for an additional \(x\). With \(y=g(x)\), it is \(-g'(x)\), a nonnegative quantity when the boundary slopes downward.
Check Your Understanding
For each problem, state the relevant assumptions and check the resulting quantity or allocation against the stated constraint.
- A consumer has \(U(x,y)=\sqrt{xy}\), income \(90\), and prices \(p_x=3\), \(p_y=6\). Find the interior optimum and verify the marginal condition. (Answer: \(x=15,\ y=7.5;\ MRS_{xy}=1/2=p_x/p_y\).)
- A price-taking firm faces price \(24\) and cost \(C(q)=q^2\), for \(q\geq0\). Find its profit-maximizing output and profit, and verify the maximum using the curvature of profit. (Answer: \(q=12\), profit \(=144\), with strictly concave profit.)
- A firm’s production boundary is \(y=18-2x\), and goods sell at \(p_x=2,\ p_y=1\). Find its marginal rate of transformation and compare it with the price ratio. Explain whether an interior production mix satisfies the first-order condition. (Answer: \(MRT_{xy}=2=p_x/p_y\); every point on the boundary has the same revenue, so an interior mix is consistent with profit maximization.)
- A consumer with \(U(x,y)=\sqrt{xy}\) has income \(18\) and faces \(p_x=2,\ p_y=1\). Find the interior bundle. A firm can produce bundles satisfying \(2x+y\leq18\). Check whether that bundle can be supplied by a revenue-maximizing firm and whether both markets clear. (Answer: \(x=4.5,\ y=9\); it lies on \(2x+y=18\), is revenue-maximizing, and clears both markets.)
- At an interior allocation, a consumer has \(MU_x=8\), \(MU_y=4\), and prices are \(p_x=6\), \(p_y=3\). A production boundary has slope \(dy/dx=-2\). Check the consumer and firm marginal conditions and state the resulting relation among \(MRS_{xy}\), the price ratio, and \(MRT_{xy}\). (Answer: \(MRS_{xy}=2=p_x/p_y=MRT_{xy}\).)