The full academy launches January 2027. Join the waitlist for the $179 founding price.
Waldbauer Academy of Economics

Courses › Graduate Microeconomic Theory

Graduate · Module 3 of 15

Duality in consumer theory

Indirect utility and expenditure functions, Hicksian demand, Roy’s identity, Shephard’s lemma, the Slutsky equation in matrix form, and the testable restrictions of utility maximization.

By Maximus S. Waldbauer · About 4 to 5 hours, including the problem set and quiz.

The crash course introduced duality in one unit. This module develops it fully, because it is the engine behind most of applied consumer theory: welfare measurement, demand estimation and the testable implications of rationality all run through it.

You will meet the indirect utility and expenditure functions, prove their properties, derive Roy’s identity and Shephard’s lemma, move between the two problems with the duality identities, and derive the Slutsky equation and the Slutsky matrix, the sharpest restriction that utility maximization places on demand.

By the end of this module you will be able to

What this module covers

  1. The indirect utility function and Roy’s identity
  2. Expenditure minimization and the expenditure function
  3. Duality: four identities that link the problems
  4. The Slutsky equation
  5. The Slutsky matrix and what utility maximization really implies
  6. Problem set with step-by-step solutions
  7. Module quiz

Lesson 3.1 Free lesson

The indirect utility function and Roy’s identity

Solving the consumer’s problem for every price and income gives demand x(p, m). Plugging demand back into utility gives the indirect utility function

V(p, m) = u(x(p, m)) = max { u(x) : p · x ≤ m }

V answers the question “how well off is a person who faces prices p with income m?” It has properties that hold for any preferences (given local nonsatiation and continuity):

Quasi-convexity has a neat proof. Take two price–income pairs where V ≤ k and any average of them. A bundle affordable at the average must be affordable at one of the two originals (if it cost more than both incomes at both prices, it would cost more than the average income at the average prices). So the best bundle at the average is no better than the best at one of the originals: V ≤ k there too.

Roy’s identity

Because V is the value of an optimization problem, the envelope theorem gives its derivatives cheaply: differentiate the Lagrangian u(x) + λ(m − p · x) with respect to the parameter, holding x at its optimal value. So ∂V/∂m = λ and ∂V/∂pi = −λxi. Dividing one by the other gives

Roy’s identity: xi(p, m) = −(∂V/∂pi) / (∂V/∂m)

Intuition: a $1 rise in the price of good i hurts like a loss of xi dollars of income, because that is the extra cost of the current bundle. Roy’s identity lets applied economists start from a convenient V and read off demand, instead of solving a utility maximization.

Worked example: Recovering demand from indirect utility

A café-goer’s indirect utility is V = m2/(4pxpy), which is a monotone transformation of the Cobb–Douglas form √(xy).

∂V/∂px = −m2/(4px2py), ∂V/∂m = 2m/(4pxpy).

Roy: x = [m2/(4px2py)] / [2m/(4pxpy)] = m/(2px): half of income goes to x, as Cobb–Douglas with equal weights should give.

Key ideas

  • V(p, m) is homogeneous of degree zero, increasing in m, nonincreasing in prices and quasi-convex.
  • The envelope theorem gives ∂V/∂m = λ and ∂V/∂pi = −λxi.
  • Roy’s identity recovers Marshallian demand from V.

Practice questions: Duality in consumer theory

Try these, then open each answer to check your work.

  1. 1.Roy’s identity states that Marshallian demand xi equals:
    1. ∂e/∂pi
    2. −(∂V/∂pi)/(∂V/∂m)
    3. (∂V/∂m)/(∂V/∂pi)
    4. ∂V/∂pi
    Show answer

    Answer: B. From the envelope theorem, ∂V/∂pi = −λxi and ∂V/∂m = λ.

  2. 2.The expenditure function e(p, ū) is:
    1. Convex in prices
    2. Homogeneous of degree zero in prices
    3. Concave in prices
    4. Decreasing in ū
    Show answer

    Answer: C. Re-optimizing always beats the passive bundle, so e lies below its tangent lines: concave.

  3. 3.Shephard’s lemma says that ∂e/∂pi equals:
    1. Hicksian demand hi
    2. Marshallian demand times income
    3. The marginal utility of income
    4. The own-price elasticity
    Show answer

    Answer: A. The slope of the expenditure function in a price is the compensated quantity of that good.

Problems with step-by-step solutions

  1. 4.For V(p, m) = m/(px + py), use Roy’s identity to find x(p, m). What preferences does this come from?
    Show step-by-step solution
    1. ∂V/∂px = −m/(px + py)2, ∂V/∂m = 1/(px + py).
    2. x = [m/(px + py)2] / [1/(px + py)] = m/(px + py).
    3. Both goods are bought in equal amounts whatever the prices: perfect complements, u = min(x, y).
  2. 5.Show that V(p, m) for Cobb–Douglas is homogeneous of degree zero.
    Show step-by-step solution
    1. V = m(a/px)a((1 − a)/py)1−a.
    2. Replace (p, m) by (tp, tm): tm × t−a × t−(1−a) × (rest) = t1 − a − (1 − a) V = V.
    3. So V(tp, tm) = V(p, m).

Get the full module

The complete module adds every lesson, interactive graphs, a full problem set with step-by-step solutions, and a quiz. The academy opens in January 2027: join the waitlist for the founding price (lifetime access for $179).

Join the waitlist Try a full module free

More practice: free practice questions for this course.