Hello! Welcome to the first lesson in your course on micro and macroeconomics.
Given your background in physics and your goal to gain a deep, quantitative understanding of economics, we'll start by building the foundational model of individual economic behavior from the ground up. This course is designed to be rigorous, and you'll find that the methods we use, particularly constrained optimization, share a common mathematical language with many areas of physics.
Today's lesson focuses on the first step in analyzing consumer behavior. We will formally define the problem every consumer faces: how to make the best possible choice given that resources are limited.
Learning Outcome: By the end of this lesson, you will be able to formulate a consumer's utility maximization problem subject to a budget constraint.
This involves two key components:
- The Constraint: Defining what is feasible for a consumer to purchase.
- The Objective: Defining what the consumer wants to achieve.
Let's begin by exploring the constraint.
1. The Budget Constraint: The Realm of the Possible
A consumer's choices are limited by two main factors: their income and the prices of goods. The budget constraint is the mathematical representation of this limitation. It defines the set of all consumption bundles a consumer can afford.
To understand how to build and interpret this constraint, please watch the following segments from a lecture by Professor Jonathan Gruber. He will introduce the concept, write out the equation, and explain its graphical representation.
Lec 3: Budget Constraints and Constrained Choice
This video from MIT OpenCourseWare introduces the budget constraint, its equation, and its graphical properties. Pay close attention to the derivation of the slope and its economic meaning.
Please watch the video from the beginning (00:00:10) until 00:05:34. Focus on how the budget line is constructed and what its intercepts and slope represent.
As you saw in the video, for a simple world with two goods, say good and good , with prices and respectively, and a given income , the budget constraint is formally written as:
This inequality states that total expenditure cannot exceed income. Economists often make a simplifying assumption called non-satiation, which means "more is always better." Under this assumption, a rational consumer will always spend their entire income to maximize their satisfaction. The budget constraint thus becomes an equality:
This equation defines the budget line.

The key features of the budget line are its intercepts and its slope:
- Intercepts: The points where the line hits the axes. The vertical intercept is and the horizontal intercept is . Each represents the maximum amount of one good you could buy if you spent your entire income on it.
- Slope: If we rearrange the budget line equation to solve for , we get: . The slope is .
The slope represents the opportunity cost of consuming one good in terms of the other. It's the rate at which the market allows you to trade good 2 for good 1. This is also called the Marginal Rate of Transformation (MRT).
2. The Objective: Utility Maximization
Now that we've defined the consumer's constraints, let's turn to their objective. In economics, we assume consumers aim to maximize their utility, which is a measure of satisfaction or happiness derived from consumption. We represent this with a utility function, .
The utility function is visualized using indifference curves—curves along which every point (a consumption bundle) provides the same level of utility. The consumer's goal is to reach the highest possible indifference curve, given their budget constraint.
This leads to the core of the consumer's problem: finding the point on the budget line that lies on the highest attainable indifference curve. This occurs at a point of tangency.

At the point of tangency, the slope of the indifference curve is equal to the slope of the budget line.
- The slope of the indifference curve is the Marginal Rate of Substitution (MRS). It represents the rate at which the consumer is willing to trade one good for the other while maintaining the same level of utility. Mathematically, .
- The slope of the budget line is the price ratio, .
Therefore, the condition for utility maximization is:
This can be rearranged into the "bang for the buck" equation you heard in the first video: . The marginal utility per dollar spent should be equal across all goods.
3. Formalizing the Problem: Constrained Optimization
We can now state the consumer's utility maximization problem in a formal, mathematical way. This structure is analogous to many problems in physics where you seek to optimize a quantity (like energy or action) subject to a set of constraints.
The problem is:
Maximize
Subject to
This is a classic constrained optimization problem. As you've likely encountered in your physics studies (for example, in classical mechanics), the standard tool for solving such problems is the Lagrangian method.
For a deeper dive into the mathematical setup, please read the following section from a set of lecture notes. It formalizes the problem and introduces the Lagrangian.
Lecture 4 - Utility Maximization - MIT OpenCourseWare
These notes from MIT OpenCourseWare provide a concise mathematical formulation of the consumer's problem using the Lagrangian method.
Please read sections 2 ('Utility maximization subject to budget constraint') and 2.2 ('Mathematical solution to the Consumer’s Problem'). You can find these on pages 2 and 4 of the PDF. Focus on how the Lagrangian function is constructed and how the first-order conditions are derived.
As the notes detail, we construct the Lagrangian function, , by combining the objective function and the constraint:
Here, (lambda) is the Lagrange multiplier. To find the optimal consumption bundle , we would take the partial derivatives of with respect to , , and , and set them equal to zero. These are the first-order conditions:
Notice that combining the first two conditions by dividing them gives us back our familiar tangency condition: . The third condition simply ensures that the solution lies on the budget line.
The Lagrange multiplier, , has a very important economic interpretation: it represents the marginal utility of income—the additional utility gained from one extra dollar of income.
Conclusion
In this lesson, we have laid the complete groundwork for analyzing consumer choice. We have formally defined the consumer's utility maximization problem.
Key Takeaways:
- A consumer's decision is a constrained optimization problem.
- The constraint is the budget line (), which describes the feasible consumption bundles. Its slope, , represents the market trade-off or opportunity cost.
- The objective is to maximize a utility function , which represents the consumer's preferences.
- The problem is formally stated as maximizing subject to the budget constraint.
- The Lagrangian is the mathematical tool used to set up and solve this problem: .
You are now able to formulate the problem. In our next lesson, we will take the next logical step: we will use the Lagrangian method to solve this problem for specific utility functions and derive the consumer's optimal consumption bundle.