Introduction: Economics as Constrained Optimisation
Nearly every proposition in microeconomics is the solution to the same mathematical problem. A consumer maximises utility subject to a budget. A firm minimises cost subject to an output requirement. A planner maximises welfare subject to a resource constraint. A government maximises revenue subject to behavioural responses.
The mathematical structure is identical in every case: optimise an objective function subject to a constraint. The tool that solves it is the method of Lagrange multipliers, and the multiplier itself — the quantity λ that appears almost as an afterthought in the algebra — turns out to carry the economics.
This guide develops the method, proves the interpretation of λ, works through the canonical applications, and states the conditions under which it works and fails.
1. The Problem
Maximise f(x, y) subject to g(x, y) = c.
Without the constraint, we would set the gradient to zero: ∇f = 0. With a constraint, this is generally impossible — the unconstrained optimum lies outside the feasible set.
The geometric insight
Picture the level curves of f (the objective) and the curve g(x,y) = c (the constraint).
Walk along the constraint. As you move, you cross level curves of f. If you cross a level curve transversally, you can improve by continuing in that direction. You can only be at an optimum when the constraint curve is tangent to a level curve of f — because at that point, moving in either direction along the constraint keeps you on the same level curve of f to first order.
Tangency means the two curves have the same slope. Equivalently, their gradients are parallel:
∇f = λ∇g
for some scalar λ. That scalar is the Lagrange multiplier. It exists because two parallel vectors differ only by a scalar factor.
2. The Method
Form the Lagrangian:
ℒ(x, y, λ) = f(x, y) + λ[c − g(x, y)]
Set all three partial derivatives to zero:
∂ℒ/∂x = fx − λgx = 0
∂ℒ/∂y = fy − λgy = 0
∂ℒ/∂λ = c − g(x, y) = 0
The first two are the tangency conditions. The third recovers the constraint. Three equations, three unknowns.
Dividing the first by the second eliminates λ and yields:
fx / fy = gx / gy
The ratio of marginal benefits equals the ratio of marginal costs. Every result in consumer theory is a special case of this line.
3. The Canonical Application: Utility Maximisation
Maximise U(x, y) subject to Pxx + Pyy = M.
ℒ = U(x, y) + λ(M − Pxx − Pyy)
First-order conditions:
MUx = λPx
MUy = λPy
Pxx + Pyy = M
Dividing the first two:
MUx / MUy = Px / Py
The left side is the marginal rate of substitution — the slope of the indifference curve. The right side is the slope of the budget line. This is the tangency condition every A-Level student draws, derived rather than asserted.
Rearranging the first two conditions differently:
MUx / Px = MUy / Py = λ
This is the equimarginal principle: at the optimum, the marginal utility per dollar spent must be equal across all goods. If it were not — if the last dollar spent on x delivered more utility than the last dollar spent on y — the consumer would reallocate. Equalisation is the condition for no profitable reallocation to remain.
Worked example: Cobb-Douglas
Let U = xαyβ, budget Pxx + Pyy = M.
MUx = αxα−1yβ, MUy = βxαyβ−1
MRS = MUx/MUy = (α/β)(y/x)
Setting MRS = Px/Py:
(α/β)(y/x) = Px/Py ⟹ Pyy = (β/α)Pxx
Substituting into the budget constraint:
Pxx + (β/α)Pxx = M ⟹ Pxx(1 + β/α) = M
x* = [α/(α+β)] × M/Px and y* = [β/(α+β)] × M/Py
Two properties worth memorising. Cobb-Douglas demand for each good depends only on its own price and income — cross-price elasticity is zero. And the consumer spends a constant share of income on each good, equal to that good’s exponent share. This is why Cobb-Douglas is used so heavily: it makes budget shares constant, which the data approximately supports at the aggregate level.
4. What λ Actually Means: The Shadow Price
This is the point of the entire method, and the reason economists use Lagrange rather than substitution.
Let V(c) be the maximised value of the objective, as a function of the constraint level c. This is the value function — in consumer theory, the indirect utility function.
The envelope theorem
The claim is:
dV/dc = λ*
λ is the marginal value of relaxing the constraint by one unit.
Sketch of proof. V(c) = f(x*(c), y*(c)). Differentiate totally:
dV/dc = fx(dx*/dc) + fy(dy*/dc)
Substitute the first-order conditions fx = λgx and fy = λgy:
dV/dc = λ[gx(dx*/dc) + gy(dy*/dc)]
The bracket is dg/dc along the constraint. But g = c identically, so dg/dc = 1. Hence dV/dc = λ.
The remarkable feature is that the terms involving dx*/dc and dy*/dc — how the optimal choices change — have vanished. This is the envelope theorem: at an optimum, the indirect effects of a parameter change through the choice variables are zero to first order, because the first-order conditions already set the marginal benefit of adjusting each choice variable to zero.
Interpretations of λ across economics
| Problem | Constraint | Meaning of λ |
|---|---|---|
| Utility maximisation | Budget | Marginal utility of income |
| Cost minimisation | Output level | Marginal cost of production |
| Profit maximisation | Capacity | Shadow price of capacity |
| Social planner | Resource endowment | Efficiency price of the resource |
| Firm hiring | Labour supply | Shadow wage |
| Optimal taxation | Revenue requirement | Marginal cost of public funds |
In every case, λ answers the question: how much would I pay for one more unit of the scarce thing?
This is why linear programming duality, general equilibrium prices, and the marginal cost of public funds are all the same mathematical object. Prices are shadow prices. A competitive equilibrium is a set of multipliers on the economy’s resource constraints — this is the content of the Second Welfare Theorem.
5. Cost Minimisation and the Dual Problem
Consider the firm: minimise wL + rK subject to F(K, L) = Q̄.
ℒ = wL + rK + λ[Q̄ − F(K, L)]
First-order conditions give:
MPL / w = MPK / r = 1/λ
The marginal product per dollar must be equalised across inputs. And λ here is marginal cost: the increase in minimised total cost from producing one more unit of output. The relationship dC/dQ = λ is the envelope theorem again.
Equivalently, MRTS = MPL/MPK = w/r: the isoquant is tangent to the isocost line.
Duality
Utility maximisation subject to a budget, and expenditure minimisation subject to a utility level, are dual problems. They have the same solution. This gives the Slutsky equation, Roy’s identity, and Shephard’s lemma — each of which is an application of the envelope theorem to one of the value functions.
Shephard’s lemma is the cleanest: ∂E(p, ū)/∂px = hx(p, ū), the Hicksian (compensated) demand. Differentiating the expenditure function with respect to a price recovers the quantity demanded, because the indirect effects vanish at the optimum.
6. Inequality Constraints: The Kuhn-Tucker Conditions
Real constraints are often inequalities. Consumption cannot be negative. A firm cannot exceed capacity. A budget need not be exhausted (though with monotone preferences it will be).
Maximise f(x) subject to g(x) ≤ c and x ≥ 0.
The Karush-Kuhn-Tucker conditions add complementary slackness:
λ ≥ 0, g(x*) ≤ c, and λ · [c − g(x*)] = 0
The last condition says: either the constraint binds, or its multiplier is zero. This is economically transparent. If you have budget left over, an extra dollar is worth nothing to you — λ = 0. If your budget binds, an extra dollar has positive value — λ > 0.
Corner solutions arise when the tangency condition cannot be satisfied at a positive quantity. If MUx/Px < MUy/Py even at x = 0, the consumer buys none of x. Perfect substitutes generate corner solutions generically; Cobb-Douglas never does, because MU → ∞ as consumption → 0.
7. When the Method Fails
Three conditions must hold, and students should be able to name them.
Second-order conditions
The first-order conditions identify a critical point, not necessarily a maximum. To confirm a constrained maximum, check that the bordered Hessian has the appropriate sign pattern — for two variables and one constraint, the determinant of the bordered Hessian must be positive.
In practice, if f is quasi-concave and the constraint set is convex, any critical point is a global maximum, and the second-order check can be skipped. Most standard utility and production functions are quasi-concave, which is why textbooks rarely dwell on this.
Constraint qualification
The method requires ∇g ≠ 0 at the optimum. If the gradient of the constraint vanishes, no λ exists that satisfies ∇f = λ∇g, and the method breaks down entirely. This is a genuine failure, not a technicality — it is why constraint qualifications appear in every rigorous statement of the Kuhn-Tucker theorem.
Non-differentiability and non-convexity
Perfect complements, U = min(x, y), have kinked indifference curves. The MRS is undefined at the kink, which is precisely where the optimum lies. Lagrange fails; solve by inspection instead (set x = y and substitute into the budget).
Non-convex production sets — arising from fixed costs or increasing returns — mean the first-order conditions may identify a local optimum that is not global, and may support no price system at all. This is the mathematical reason why natural monopoly resists competitive analysis.
8. Exam Technique
For undergraduate microeconomics
- Always write the Lagrangian explicitly, with the constraint expressed as (c − g), not (g − c). The sign convention determines the sign of λ, and marks are lost on it.
- Solve for λ and interpret it. A question asking for the marginal utility of income is asking for λ. Many students solve for x* and y*, then stop, leaving marks on the table.
- State the second-order condition, even briefly. Examiners look for awareness that the FOC is necessary, not sufficient.
For Cambridge A-Level and AP
- You will not be asked to construct a Lagrangian. You will be asked to state that at the consumer’s optimum, MRS = Px/Py, and MUx/Px = MUy/Py.
- Knowing where these come from makes them impossible to misremember, and lets you explain why a consumer at a non-tangency point can improve.
Common errors
- Writing the Lagrangian with the wrong sign on λ, then reporting a negative marginal utility of income.
- Applying Lagrange to perfect complements or perfect substitutes.
- Reporting the critical point without checking whether the solution requires a corner.
- Failing to notice that λ has units. In utility maximisation, λ is measured in utils per dollar.
Summary
The Lagrange method transforms a constrained problem into an unconstrained one by introducing a variable whose economic meaning is the value of the constraint. The tangency condition it produces is the mathematical content of every marginal condition in economics: equate marginal rates of substitution to price ratios; equate marginal benefit per dollar across all margins.
The multiplier is not a mathematical artefact. It is a price. Understanding this — that scarcity generates shadow prices, and that shadow prices are Lagrange multipliers on resource constraints — is what it means to understand that economics is, at its core, the theory of constrained optimisation.
Exercises for Further Thought
1. The envelope theorem states that at an optimum, the indirect effects of a parameter change operating through the choice variables vanish to first order. This yields Shephard’s lemma, Roy’s identity, and Hotelling’s lemma essentially for free. But the theorem depends on the agent already being at the optimum. Suppose agents optimise imperfectly — they are near, but not at, the maximum. Show what happens to the envelope result, and explain why this matters for empirical welfare analysis, which routinely uses the envelope theorem to infer welfare changes from observed behaviour without needing to model adjustment.
Suggested reading: Chetty, R. (2009). “Sufficient Statistics for Welfare Analysis: A Bridge Between Structural and Reduced-Form Methods.” Annual Review of Economics, 1, 451–488. Chetty’s entire approach rests on envelope-theorem logic; consider what breaks when optimisation is imperfect.
2. In a competitive general equilibrium, prices are the Lagrange multipliers on the economy’s resource constraints — this is the mathematical content of the Second Welfare Theorem. But multipliers exist only when the constraint set is convex and the constraint qualification holds. Increasing returns to scale violate convexity. Construct an economy with a natural monopoly and explain precisely which step of the multiplier argument fails. What does the non-existence of a supporting price vector tell us about the possibility of decentralising an efficient allocation through markets in such an economy?
Suggested reading: Debreu, G. (1959). Theory of Value: An Axiomatic Analysis of Economic Equilibrium. Yale University Press. Chapter 6 on optimum, and the role of the convexity assumptions stated in Chapter 3.
References
- Chetty, R. (2009). Sufficient Statistics for Welfare Analysis: A Bridge Between Structural and Reduced-Form Methods. Annual Review of Economics, 1, 451–488.
- Chiang, A. C., & Wainwright, K. (2005). Fundamental Methods of Mathematical Economics (4th ed.). McGraw-Hill.
- Debreu, G. (1959). Theory of Value: An Axiomatic Analysis of Economic Equilibrium. Yale University Press.
- Kuhn, H. W., & Tucker, A. W. (1951). Nonlinear Programming. Proceedings of the Second Berkeley Symposium on Mathematical Statistics and Probability, 481–492.
- Mas-Colell, A., Whinston, M. D., & Green, J. R. (1995). Microeconomic Theory. Oxford University Press.
- Samuelson, P. A. (1947). Foundations of Economic Analysis. Harvard University Press.
- Simon, C. P., & Blume, L. (1994). Mathematics for Economists. W. W. Norton.
