What to explore
Change parameters and watch the model adjust.
- Income, prices, and preference weights on the two goods
- Shock sizes for income and relative-price comparisons
Advanced microeconomics
A utility-maximisation model with budget constraints, indifference curves, and demand responses to changes in prices and income.
Budget lines, tangency, and demand response
Adjust tastes, prices, and income to compare interior and corner solutions, then track how optimal bundles and indirect utility move.Interactive diagram
The budget line shows every bundle of the two goods that exactly spends the income m at prices px and py. Anything below it is affordable; anything above is out of reach. Its slope, −px/py, is the market's exchange rate between the goods.
An indifference curve collects bundles the consumer likes equally. With Cobb-Douglas tastes the curves bow inward, and the best affordable bundle is the tangency: the point where the curve's slope (the marginal rate of substitution) equals the price ratio. That balance is the whole lesson — trade goods until your willingness to swap matches the market's terms.
With perfect substitutes the curves are straight lines, and tangency generally can't happen: the consumer simply buys whichever good delivers more utility per dollar, pushing the optimum to a corner of the budget set. Slide the prices until the two utility-per-dollar numbers meet and the whole budget line lights up as equally good — infinitely many optima.
Microeconomic markets and power
What to explore
Core ideas
Learning goals
Prerequisites
Newsletter
Next models to study
Advanced microeconomics
Move productivity, fixed costs, and output prices to see how marginal cost, average cost, and profit-maximising output respond.
Advanced microeconomics
Change payoffs to see how best-response maps, equilibrium outcomes, and strategic tension shift across familiar 2x2 games.