Course Retrospective:
Review of Optimization
Christopher Makler
Stanford University Department of Economics
Econ 50
Resources
Technology
Stuff
Happiness
🌎
🏭
⌚️
🤓
Part I: The Real Economy
Demand
Supply
Equilibrium
🤩
🏪
⚖
Part II: Little Green
Pieces of Paper
Three Fundamental Tools of Analysis
Optimization
Given a fixed set of circumstances (prices, technology, preferences), how do economic agents (consumers, firms) make choices?
Comparative Statics
How do changes in circumstances (changing prices, shifting technology, preferences, etc.) translate into changes in behavior?
Equilibrium
How do economic systems converge toward certain outcomes?
Three Fundamental Tools of Analysis
Optimization
Constrained Optimization
Unconstrained Optimization
Tradeoffs between two good things
Goal: balance MB/MC ratio
Math characterization: tangency condition
Optimal amount of one thing
Goal: balance MB and MC
Math characterization: MB = MC
Constrained Optimization
Choice space:
all possible options
Feasible set:
all options available to you
Optimal choice:
Your best choice(s) of the ones available to you
Constrained Optimization
Canonical Constrained Optimization Problem
Suppose \(g(x_1,x_2)\) is monotonic (increasing in both \(x_1\) and \(x_2\)).
Then \(k - g(x_1,x_2)\) is negative if you're outside of the constraint,
positive if you're inside the constraint,
and zero if you're along the constraint.
OBJECTIVE
FUNCTION
CONSTRAINT
FIRST ORDER CONDITIONS
3 equations, 3 unknowns
Solve for \(x_1\), \(x_2\), and \(\lambda\)
How does the Lagrange method work?
It finds the point along the constraint where the
level set of the objective function passing through that point
is tangent to the constraint
Better to produce
more good 1
and less good 2.
Better to produce
less good 1
and more good 2.
Better to produce
more good 1
and less good 2.
“Gravitational Pull" Towards Optimality
Better to produce
more good 2
and less good 1.
These forces are always true.
In certain circumstances, optimality occurs where MRS = MRT.
We've just seen that, at least under certain circumstances, the optimal bundle is
"the point along the PPF where MRS = MRT."
CONDITION 1:
CONSTRAINT CONDITION
CONDITION 2:
TANGENCY
CONDITION
This is just an application of the Lagrange method!
Example: Linear PPF, Cobb-Douglas Utility
Chuck has 150 hours of labor, and can produce 3 coconuts per hour or 2 fish per hour.
His preferences may be represented by the utility function \(u(x_1,x_2) = x_1^2x_2\)
OBJECTIVE
FUNCTION
CONSTRAINT
FIRST ORDER CONDITIONS
Utility from last hour spent fishing
Utility from last hour spent collecting coconuts
Equation of PPF
Utility from last hour spent fishing
Utility from last hour spent collecting coconuts
Equation of PPF
Equation of PPF
TANGENCY
CONDITION
MRS
MRT
CONSTRAINT
Optimization Subject to a Budget Constraint
First Order Conditions
"Bang for your buck" condition: marginal utility from last dollar spent on every good must be the same!
The Tangency Condition
What happens when the price of a good increases or decreases?
Utility Maximization
Cost Minimization
Solution functions:
"Ordinary" Demand functions
Solution functions:
"Compensated" Demand functions
Utility Maximization
Cost Minimization
Plug tangency condition back into constraint:
Same tangency condition, different constraints
The Social Planner's Problem
How do we maximize GDP subject to the PPF?
OBJECTIVE
FUNCTION
CONSTRAINT
DOLLARS
HOURS
What are the units?
DOLLARS
PER
HOUR
FIRST ORDER CONDITIONS
Tangency condition:
Firms setting their own MRPL equal to the wage rate will choose the point along the PPF at which \({p_1 \over p_2} = MRT\)
Conditions for
GDP Maximization
TANGENCY CONDITION
CONSTRAINT CONDITION
Firms in industry 1 set \(w = p_1 \times MP_{L1}\)
Firms in industry 2 set \(w = p_2 \times MP_{L2}\)
How does competition achieve this?
Wages adjust until the
labor market clears
Corner Solutions
Interior Solution:
Corner Solution:
Optimal bundle contains
strictly positive quantities of both goods
Optimal bundle contains zero of one good
(spend all resources on the other)
If only consume good 1: \(MRS \ge MRT\) at optimum
If only consume good 2: \(MRS \le MRT\) at optimum
What would Lagrange find...?
The Tangency Condition when Lagrange sometimes works
What happens when income decreases?
Kinked Constraints
Unconstrained Optimization
Optimize by taking derivative and setting equal to zero:
Profit is total revenue minus total costs:
"Marginal revenue equals marginal cost"
Example:
What is the profit-maximizing value of \(q\)?
Profit as a function of quantity
Profit as a function of labor
1. Total costs = cost of required inputs
2. Profit = total revenues minus total costs
3. Take derivative of profit function, set =0
1. Total revenue = value of output produced
2. Profit = total revenues minus total costs
3. Take derivative of profit function, set =0
Profit as a function of quantity
Profit as a function of labor
1. Total revenue = value of output produced
2. Profit = total revenues minus total costs
3. Take derivative of profit function, set =0
"Keep producing output as long as the marginal revenue from the last unit produced is at least as great as the marginal cost of producing it."
Profit as a function of quantity
Profit as a function of labor
"Keep producing output as long as the marginal revenue from the last unit produced is at least as great as the marginal cost of producing it."
"Keep hiring workers as long as the marginal revenue from the output of the last worker is at least as great as the cost of hiring them."
LABOR DEMAND FUNCTION
Econ 50 | Lecture 27
By Chris Makler
Econ 50 | Lecture 27
Course Retrospective
- 134