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

Courses › Intermediate Microeconomics

Second and third year · Module 4 of 15

Optimal choice and demand

Tangency and the Lagrangian, corner solutions, demand functions for common preferences, and revealed preference.

By Maximus S. Waldbauer · About 3½ hours, including the problem set and quiz.

Module 2 described what a consumer can afford. Module 3 described what she wants. This module puts the two together: the consumer picks the best bundle she can afford. From that single idea come demand curves, which first year simply drew.

You will solve the consumer’s problem with the tangency condition and with a Lagrangian, learn when the answer is a corner instead of a tangency, derive demand functions for the preferences in the Module 3 gallery, and see how economists can test the whole theory using only what people buy.

By the end of this module you will be able to

What this module covers

  1. The tangency condition
  2. Solving for demand
  3. Corners and kinks
  4. Quasilinear demand and the price of a small pleasure
  5. Revealed preference
  6. Problem set with step-by-step solutions
  7. Module quiz

Lesson 4.1 Free lesson

The tangency condition

The consumer wants to reach the highest indifference curve that still touches her budget set. With smooth, convex preferences and both goods bought, that happens where an indifference curve just touches the budget line without crossing it: a tangency. At a tangency the two slopes are equal:

MRS = MUx/MUy = px/py

The left side is the rate at which she is willing to trade y for x. The right side is the rate at which the market lets her trade. If they differ, she can trade and gain.

Worked example: Why a mismatch can’t be optimal

Ana buys concerts (x, $20) and meals (y, $10). Suppose at her current bundle her MRS is 4: she would give up 4 meals for one more concert.

The market charges only 2 meals for a concert ($20 / $10). So she can skip 2 meals, buy one more concert, and be better off: she would have given up 4.

She keeps shifting toward concerts. As she does, her MRS falls (convexity), until it reaches 2. Then no trade at market prices helps her.

An equivalent way to say the same thing: at the optimum, the last dollar spent on each good adds the same utility.

MUx/px = MUy/py

If a dollar spent on x gave more extra utility than a dollar spent on y, moving a dollar from y to x would help. This “bang for the buck” version is often the easiest way to explain the result to someone who hasn’t seen indifference curves.

The full module has an interactive graph here that you can move yourself.

Two conditions, two unknowns

Tangency alone isn’t enough: every income level has its own tangency. The consumer also spends all her income (with more-is-better preferences, leaving money unspent is wasteful). So the optimal bundle solves two equations together: the tangency condition and the budget line pxx + pyy = m.

Common mistake

Using the tangency condition when preferences aren’t smooth and convex, or when the best choice is a corner. Tangency is a condition for an interior optimum with convex preferences. Lesson 4.3 covers the cases where it fails.

Key ideas

  • Interior optimum: MRS = px/py, together with the budget constraint.
  • Equivalently MUx/px = MUy/py: equal bang for the buck.
  • If the MRS exceeds the price ratio, buy more x; if it is less, buy less.

Practice questions: Optimal choice and demand

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

  1. 1.At an interior optimum with convex preferences:
    1. MUx = MUy
    2. MRS = px/py
    3. x = y
    4. pxx = pyy
    Show answer

    Answer: B. The indifference curve is tangent to the budget line.

  2. 2.If MUx/px > MUy/py, the consumer should:
    1. Spend less on x
    2. Keep the same bundle
    3. Spend less on both
    4. Spend more on x and less on y
    Show answer

    Answer: D. A dollar moved from y to x adds more utility than it costs.

  3. 3.With U = x0.25y0.75, m = $400 and px = $5, demand for x is:
    1. 5
    2. 20
    3. 60
    4. 80
    Show answer

    Answer: B. x = am/px = 0.25 × 400/5 = 20.

Problems with step-by-step solutions

  1. 4.Ana’s MRS at her current bundle is 1.5. Concerts cost $30 and meals $15. Should she buy more concerts or fewer? Explain with bang for the buck.
    Show step-by-step solution
    1. Price ratio: 30/15 = 2. The market charges 2 meals per concert.
    2. Her MRS of 1.5 means she values a concert at only 1.5 meals.
    3. So she should buy fewer concerts and more meals.
    4. Equivalently MUx/px < MUy/py: a dollar spent on meals adds more utility.
  2. 5.With U = x0.4y0.6, m = $500, px = $10 and py = $5, find the optimal bundle and check the tangency condition.
    Show step-by-step solution
    1. Cobb-Douglas demand: x = 0.4 × 500/10 = 20; y = 0.6 × 500/5 = 60.
    2. MRS = (0.4/0.6)(y/x) = (2/3)(60/20) = 2.
    3. Price ratio: 10/5 = 2. Equal, as required.
    4. Spending check: 200 + 300 = 500.

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.