Demand curves derived from utility maximization. Inverse demand, market demand aggregation. Marshallian vs Hicksian demand.
Demand functions are the bridge between tastes and market outcomes — they tell you how much people buy when prices and income change, and they underlie everything from pricing to welfare analysis.
Demand functions map prices and income into optimal quantities; derived either from utility maximization (Marshallian) or expenditure minimization (Hicksian), they let you compute individual and market demand and the inverse demand (price as a function of quantity).
Definition and motivation
A demand function gives the quantity of a good that a consumer chooses as a function of prices and income (or utility). In more formal terms, a consumer with utility function , facing prices and income , solves a constrained optimization problem and selects a bundle . The Marshallian (uncompensated) demand is
Example: If (Cobb–Douglas), prices , , income , then standard Cobb–Douglas algebra gives and where . Numerically, , .
Marshallian vs Hicksian: two ways to get demand
The Hicksian demand isolates substitution effects because income is adjusted to keep utility fixed; the Marshallian contains both substitution and income effects. A numeric illustration: with quasilinear utility and budget , the Hicksian demand for at target utility solves minimizing s.t. . Eliminating gives the same first-order condition as the Marshallian when income shifts appropriately; we will show explicit numbers later.
Inverse demand and market demand
Inverse demand expresses price as a function of quantity. For a single-good quasilinear problem where utility is and is money numeraire, the first-order condition is so the inverse demand is
Numeric example: if then , so . At , .
Market demand is the horizontal sum of individuals' Marshallian demands. If two consumers have demands and , the market demand is ; for inverse market demand, invert that function where possible.
Why care? Practically every empirical demand estimation, welfare calculation, tax incidence, and monopoly pricing analysis starts from these demand functions. Understanding their derivation from utility ensures you interpret income and substitution effects correctly.
Mechanic: Lagrangian optimization and Roy's identity
Start from the utility maximization problem. In "Utility Theory" we solved similar problems using the Lagrangian. For two goods, the Lagrangian is
First-order conditions (assuming interior solution):
Solving yields Marshallian demand . A shortcut: compute the indirect utility function and use Roy's identity:
Numeric worked mini-example (Cobb–Douglas)
Let with , arbitrary, and income . Solve via standard steps (or Roy's identity). The Marshallian demands are:
Numerical example: , , , gives , , as above.
An alternative: Quasilinear case
If utility is quasilinear in money, where is the numeraire and price of is 1, the consumer maximizes s.t. . Eliminating gives maximize , so choose to satisfy
This directly yields inverse demand . Numeric example: , then . If price is , solve so and .
Roy's identity numeric check
For Cobb–Douglas , the indirect utility is up to a constant factor (work through substitution). Taking derivatives and applying Roy's identity yields the same above. A concrete verification: with , compute numerically and then compute to recover $25$.
Mechanic: expenditure minimization and compensated demand
The Hicksian demand isolates substitution effects by holding utility fixed. The consumer solves
and denotes the minimizer. The function is the expenditure function; Shephard's lemma states
Numeric example (Cobb–Douglas)
For and target utility , we can solve for analytically. The expenditure function is
Check numerically: let , , and . Then . By Shephard's lemma,
Plug in numbers: . Similarly . Check utility: and expenditure .
From Hicksian to Marshallian: income makes the difference
Marshallian demand can be obtained by plugging the indirect utility's into Hicksian demand:
This equation simply says: the Marshallian demand at is the Hicksian demand that achieves the utility level the consumer actually attains at .
Slutsky equation (decompose price effects)
For any good and price , the total derivative of Marshallian demand splits into substitution (compensated) and income effects:
Numeric example: use Cobb–Douglas with , . Compute derivatives: . The income effect term is . So the compensated substitution effect equals
Plug numbers: , , gives , income derivative , so income effect magnitude is , and thus compensated effect is . This shows the substitution effect is negative (as expected) and smaller in magnitude than the total effect when income effects go in the opposite direction.
Interpretation
Inverse demand and pricing
In many applied problems you know desired quantity and want to know the price that would induce it. For quasilinear utilities inverse demand is immediate: . Example: implies . This form is widely used in monopoly pricing and public goods provision where marginal willingness to pay drives optimal provision rules.
Market aggregation
If there are consumers with Marshallian demands , market demand is
Numeric illustration: two consumers with identical Cobb–Douglas demands but different incomes , , gives , , and market demand . Inverse market demand may not be analytically invertible but can be constructed numerically for aggregate analysis.
Empirical demand estimation and structural interpretation
Estimating demand curves often produces Marshallian demand (observational: prices and incomes vary). To interpret estimated elasticities correctly for welfare or tax incidence you must convert to Hicksian demand using Slutsky if you want substitution-only effects. For instance, consumer surplus approximations using Marshallian demand ignore income effects and can be biased for large price changes.
Welfare analysis: compensating and equivalent variation
Hicksian demand and the expenditure function allow exact welfare measures. Compensating variation (CV) holds prices at new prices and asks how much income change would restore original utility; mathematically CV solves
where is original utility and new prices. Numerical computation uses Hicksian demands via Shephard's lemma.
Downstream topics that use these ideas
Concrete example tying pieces together
Consider a small subsidy that lowers from 2 to 1.5 for the Cobb–Douglas consumer with , . Marshallian demand jumps from to . Using Slutsky we can attribute how much of this increase is substitution vs income effect numerically (substitution effect ~6.25 in earlier calculation; income effect ~1.08 here), and compute compensating variation using the expenditure function to find the budget change that would offset the subsidy.
In summary, demand functions are the operational translation of preference and budget constraints into quantities and prices; mastering both Marshallian and Hicksian perspectives enables precise comparative statics, welfare measurement, and aggregation.
Let . Prices: , . Income: . Find Marshallian demands .
Write general Cobb–Douglas result: for , , . Here .
Plug numbers into formula: .
Compute : , . So .
Compute . First , then . So .
Check budget: , consistent.
Insight: This example shows the quick route from functional form (Cobb–Douglas) to closed-form demands and verifies feasibility on the budget line.
Same utility . Target utility . Prices , . Find Hicksian demands and expenditure using Shephard's lemma.
Use the known expenditure function for this utility: .
Plug numbers: .
Apply Shephard's lemma: .
Compute .
Similarly . Check utility: and expenditure , matching .
Insight: Shephard's lemma directly gives compensated demand from the expenditure function; numerical checks confirm the preservation of the target utility and cost minimality.
Utility with numeraire. Find inverse demand and evaluate price at .
In the quasilinear case, FOC for maximizing subject to reduces to because is chosen to exhaust budget.
Compute derivative: , so inverse demand is .
Plug : .
Interpretation: if price is $1.6667$, the consumer is indifferent at choosing given quasilinear preferences (income affects only ).
If a market had two identical consumers, aggregate demand at price would be (invert to get ). At , each buys 9 so aggregate is 18.
Insight: Quasilinear preferences make inverse demand especially transparent: marginal utility equals price; aggregation is a simple horizontal sum since income effects on the good vanish.
Marshallian demand comes from utility maximization under a budget; Hicksian demand comes from expenditure minimization holding utility fixed.
Roy's identity recovers Marshallian demand from the indirect utility function: ; Shephard's lemma recovers Hicksian demand from the expenditure function: .
Inverse demand in quasilinear settings is ; numerically this gives marginal willingness to pay as a function of quantity.
Market demand is the horizontal sum of individual Marshallian demands; aggregation can change curvature and invertibility properties.
Slutsky decomposition splits total price effects into compensated substitution effects and income effects, crucial for welfare and tax incidence analysis.
Every formula should be checked with a numerical example to ensure algebraic manipulations and corner conditions are handled correctly.
Confusing Marshallian and Hicksian demand: Marshallian varies with income , Hicksian varies with target utility . Using one in place of the other produces wrong substitution/income attributions.
Applying Roy's identity or Shephard's lemma without verifying differentiability or interior solutions: corner solutions invalidate straightforward FOC-based formulas.
Summing inverse demands horizontally: market inverse demand is not the sum of individual inverse demands; inverse demand is the inverse of the horizontal sum of quantities, not the sum of price functions.
Easy: For utility , prices , , income , compute Marshallian demands .
Hint: Use the Cobb–Douglas formula with .
Compute . Compute . Check budget: .
Medium: Given quasilinear utility , find the Marshallian demand for as a function of price and income . Then compute the demand at and .
Hint: FOC: set marginal utility where interior; check corner cases with budget if needed.
FOC gives , so . For , . Because utility is quasilinear, income affects only , not , so irrespective of (provided can pay for that quantity, i.e., ). Check budget: , so feasible.
Hard: A consumer has utility (quasilinear). Prices , , income . (a) Find Marshallian demand . (b) Find Hicksian demand and show the Slutsky identity numerically for , (compute both sides of the Slutsky decomposition for a small price change).
Hint: For (a) quasilinear: set derivative to get interior solution; be careful about corner case when ? For (b) find by minimizing expenditure subject to utility target using algebra; then compute derivatives numerically for small dp.
(a) Utility is and budget . Eliminating gives maximize . FOC: so , provided budget allows , i.e. . If then the corner solution is to spend all income on giving .
(b) Hicksian: minimize s.t. . Substitute into objective to get . First-order condition: so independent of (again quasilinear). Thus .
Slutsky: For a small change , compute total derivative of Marshallian demand: . The compensated derivative . The income effect term is . But for interior solutions (quasilinear), so Slutsky identity reads , which holds.
Numeric check at : . . Compensated derivative . Income effect term , so decomposition holds numerically.
Looking back: In "Utility Theory" we learned to set up Lagrangians and interpret marginal utilities (the FOCs equalize marginal rate of substitution and price ratios). Those techniques give Marshallian demand directly; Roy's identity formalizes converting indirect utility to demand. In "Derivatives" we used slopes and instantaneous rates of change; here we use derivatives of indirect utility, expenditure functions, and demand functions (e.g. ) to get elasticities and Slutsky decomposition. Looking forward: mastering demand functions enables rigorous analysis in tax incidence, welfare measurement (compensating/equivalent variation), monopoly pricing (using inverse demand), and empirical structural demand estimation (recovering preferences from observed choices). Specific downstream concepts that require these tools include Slutsky symmetry and negativity proofs (advanced micro), general equilibrium welfare theorems where Hicksian demands show up in compensated demand aggregates, and industrial organization models that use inverse demand for profit maximization and for calibrating willingness-to-pay in empirical IO.