One of the most common conditions in consumer choice theory is
This condition means that utility is maximized when the marginal utility per unit of money spent is equal across goods. I understood the intuition, but when I tried to derive it directly, I got stuck on how to differentiate the utility expression. So I rewrote the problem using the budget constraint and total utility as the integral of marginal utility.
Assume that a consumer only consumes two goods, and . Their prices are and , and the consumed quantities are and . The consumer's income is fixed at . The budget constraint is
Solving for gives
Since the budget is fixed, consuming more of requires consuming less of . Differentiating this with respect to gives
This is the slope of the budget line. It represents how much must be given up in order to consume one more unit of .
Now express total utility as the accumulated marginal utility. Since marginal utility measures how much total utility increases when consumption increases by a small amount, total utility can be written as
The important point is that, on the budget line, is not an independent variable. It is determined by . So total utility can be treated as a function of alone:
Now differentiate this expression with respect to .
The first term is straightforward. By the fundamental theorem of calculus,
The second term requires a little more care. The integration variable is , but the upper limit is a function of . Therefore, we need to apply the chain rule.
In general,
Applying this to the second term gives
From the budget constraint, we already have
Therefore,
So the derivative of total utility with respect to is
Simplifying,
At an interior optimum, slightly increasing or decreasing should no longer increase total utility. Therefore,
So
Rearranging gives
Dividing both sides by gives
Therefore, the utility maximization condition in consumer choice theory is
The meaning of this condition is simple. The consumer allocates a limited budget across goods. The additional utility gained from spending one more unit of money on is , while the additional utility gained from spending one more unit of money on is .
If
then spending money on is more efficient than spending money on . The consumer should reduce consumption of and increase consumption of .
If
then spending money on is more efficient. The consumer should reduce consumption of and increase consumption of .
Eventually, the consumer has no reason to change the allocation when the two values become equal:
In other words, utility maximization does not mean simply consuming more of the good with higher marginal utility. It means allocating the budget until the marginal utility per unit of money is equal across goods.