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

Courses › Graduate Microeconomic Theory

Graduate · Module 2 of 15

Utility maximization and demand

The consumer’s problem with Lagrangians and Kuhn–Tucker conditions, corner solutions, properties of Walrasian demand (homogeneity, Walras’ law), CES and quasilinear demand, and comparative statics.

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

Module 1 built utility from preferences. This module puts utility to work. We set up the consumer’s problem in general form, show when a solution exists, and derive the properties every demand function must have, whatever the preferences.

You will solve problems with Lagrangians and with Kuhn–Tucker conditions when some goods aren’t bought, work through CES and quasilinear demand in detail, and derive the aggregation conditions that any estimated demand system has to respect.

By the end of this module you will be able to

What this module covers

  1. The consumer’s problem and Walrasian demand
  2. Lagrangians and the tangency condition
  3. Kuhn–Tucker conditions and corner solutions
  4. CES demand, spending shares, and elasticities
  5. Comparative statics: income, prices, and aggregation conditions
  6. Problem set with step-by-step solutions
  7. Module quiz

Lesson 2.1 Free lesson

The consumer’s problem and Walrasian demand

With L goods, prices p = (p1, …, pL) ≫ 0 and income (wealth) m > 0, the consumer chooses a bundle x ≥ 0 to

maximize u(x) subject to p · x ≤ m

The budget set B(p, m) = {x ≥ 0 : p · x ≤ m} is closed and bounded when every price is positive, and continuous u on a closed, bounded set reaches a maximum (Weierstrass’ theorem). So with continuous preferences a best bundle always exists. The set of best bundles is the Walrasian (Marshallian) demand x(p, m). It may be a set, as with perfect substitutes at equal prices, but with strictly convex preferences it is a single bundle.

Two properties every demand function has

These two facts alone imply restrictions on how demand responds to prices and income. Lesson 5 turns them into the Cournot and Engel aggregation conditions, and Module 3 adds the strongest restriction of all, the symmetry of the Slutsky matrix.

Worked example: A rent-and-concerts budget

Leah has $2,400 a month for rent (square metres of apartment at $20 each) and concerts ($80 a ticket). Her budget set is 20h + 80c ≤ 2,400.

If her landlord and every concert venue doubled prices and her employer doubled her pay, the constraint becomes 40h + 160c ≤ 4,800, which is the same set of bundles. Her choice cannot change: homogeneity of degree zero.

If she is not satiated, she will not leave money unspent, so whatever she chooses lies on the line 20h + 80c = 2,400: Walras’ law.

Common mistake

Thinking Walras’ law says “demand equals supply”. In consumer theory it only says that a locally nonsatiated consumer spends her whole budget. Module 7 uses the same name for the market version: the value of excess demand summed over all markets is zero.

Key ideas

  • With p ≫ 0 and continuous u, a utility-maximizing bundle exists.
  • Demand is homogeneous of degree zero in (p, m): no money illusion.
  • Local nonsatiation implies Walras’ law: p · x(p, m) = m.
  • Strictly convex preferences give a single demanded bundle.

Practice questions: Utility maximization and demand

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

  1. 1.Which property of Walrasian demand follows from local nonsatiation?
    1. Homogeneity of degree zero in prices and income
    2. Walras’ law: the consumer spends all income
    3. Uniqueness of the demanded bundle
    4. Symmetry of the Slutsky matrix
    Show answer

    Answer: B. Local nonsatiation means any bundle inside the budget can be improved on, so the optimum is on the budget line.

  2. 2.With u = x0.3y0.7, m = $500 and py = $7, how many units of y are demanded?
    1. 30
    2. 35
    3. 50
    4. 70
    Show answer

    Answer: C. y = 0.7 × 500 / 7 = 50.

  3. 3.At an interior optimum, the Lagrange multiplier λ equals:
    1. The marginal utility of income, ∂V/∂m
    2. The price of the most expensive good
    3. Total utility divided by income
    4. The MRS between the first two goods
    Show answer

    Answer: A. Each FOC gives λ = MUi/pi, and the envelope theorem shows this equals ∂V/∂m.

Problems with step-by-step solutions

  1. 4.Show that if x* maximizes u on B(p, m), then x* also maximizes u on B(tp, tm) for t > 0.
    Show step-by-step solution
    1. B(tp, tm) = {x ≥ 0 : tp · x ≤ tm}. Dividing the inequality by t > 0 gives p · x ≤ m.
    2. So B(tp, tm) = B(p, m): the two budget sets contain exactly the same bundles.
    3. A bundle that is best in a set is best in an identical set, so x* is optimal for (tp, tm): demand is homogeneous of degree zero.
  2. 5.A consumer with u = x0.25y0.75 has m = $200, px = $5, py = $15. Find demand and λ for the utility ln u.
    Show step-by-step solution
    1. Cobb–Douglas: x = 0.25 × 200 / 5 = 10 and y = 0.75 × 200 / 15 = 10.
    2. With ln u = 0.25 ln x + 0.75 ln y, the FOC 0.25/x = 5λ gives λ = 0.25/(5 × 10) = 0.005.
    3. Check with y: 0.75/10 = 15λ gives λ = 0.005. Also 1/m = 1/200 = 0.005, as for any log Cobb–Douglas with exponents summing to one.

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.