Courses › Intermediate Microeconomics
Optimal choice and demand
Tangency and the Lagrangian, corner solutions, demand functions for common preferences, and revealed preference.
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
- Explain why the best interior bundle has MRS equal to the price ratio, and what goes wrong otherwise.
- Solve for demand with the tangency condition, by substitution, and with a Lagrangian.
- Identify corner solutions for perfect substitutes and the kink solution for perfect complements.
- Derive and interpret demand functions for Cobb-Douglas and quasilinear preferences, and their properties.
- Use revealed preference to test whether choices are consistent with any rational preferences.
What this module covers
- The tangency condition
- Solving for demand
- Corners and kinks
- Quasilinear demand and the price of a small pleasure
- Revealed preference
- Problem set with step-by-step solutions
- 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:
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.
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.At an interior optimum with convex preferences:
- MUx = MUy
- MRS = px/py
- x = y
- pxx = pyy
Show answer
Answer: B. The indifference curve is tangent to the budget line.
- 2.If MUx/px > MUy/py, the consumer should:
- Spend less on x
- Keep the same bundle
- Spend less on both
- 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.With U = x0.25y0.75, m = $400 and px = $5, demand for x is:
- 5
- 20
- 60
- 80
Show answer
Answer: B. x = am/px = 0.25 × 400/5 = 20.
Problems with step-by-step solutions
- 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
- Price ratio: 30/15 = 2. The market charges 2 meals per concert.
- Her MRS of 1.5 means she values a concert at only 1.5 meals.
- So she should buy fewer concerts and more meals.
- Equivalently MUx/px < MUy/py: a dollar spent on meals adds more utility.
- 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
- Cobb-Douglas demand: x = 0.4 × 500/10 = 20; y = 0.6 × 500/5 = 60.
- MRS = (0.4/0.6)(y/x) = (2/3)(60/20) = 2.
- Price ratio: 10/5 = 2. Equal, as required.
- 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.