pollev.com/chrismakler
The Mathematics of Optimization
Christopher Makler
Stanford University Department of Economics
Econ 50: Lecture 7
Today's Agenda
- Solution functions and comparative statics
- Unconstrained optimization
- Constrained optimization and the Lagrange method
Solution Functions and Comparative Statics
Math problems with numbers
Math problems with parameters
Plot the line \(y = 5 - \frac{1}{2}x\)
10
5
4
3
2
7
6
1
9
12
11
2
1
4
3
6
5
8
7
Plot the line \(y = a - bx\)
Math problems with numbers
Math problems with parameters
Find the intersection of the lines \(y = 5 - \frac{1}{2}x\) and \(y = 2x\)
10
5
4
3
2
7
6
1
9
12
11
2
1
4
3
6
5
8
7
Find the intersection of the lines \(y = a - bx\) and \(y = cx\)
Find the intersection of the lines \(y = 5 - \frac{1}{2}x\) and \(y = 2x\)
[SOLUTIONS]
[SOLUTION FUNCTIONS]
What happens to the intersection when \(a\), \(b\), or \(c\) increases?
Comparative Statics
- When you solve a parameterized problem,
the result is a solution function: the endogenous variables as functions of the exogenous parameters
- Comparative statics is the analysis of the behavior of these solution functions: how does a change in the parameters of the problem affect its solution?
Unconstrained Optimization
Constrained Optimization
Think about maximizing each of these functions subject to the constraint \(0 \le x \le 10\).
Plot the graph on that interval; then find and plot the derivative \(f'(x)\) on that same interval.
Which function(s) reach their maximum in the domain [0, 10] at a point where \(f'(x) = 0\)?
pollev.com/chrismakler
Sufficient conditions for an interior optimum characterized by \(f'(x)=0\) with constraint \(x \in [0,10]\)
- \(f'(0) > 0\)
- \(f'(10) < 0\)
- \(f'(x)\) continuous and strictly decreasing on \([0,10]\)
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
FIRST ORDER CONDITIONS
TANGENCY
CONDITION
CONSTRAINT
Example: Fence Problem
You have 40 feet of fence and want to enclose the maximum possible area.
Example: Fence Problem
You have 40 feet of fence and want to enclose the maximum possible area.
OBJECTIVE
FUNCTION
CONSTRAINT
FIRST ORDER CONDITIONS
TANGENCY
CONDITION
CONSTRAINT
TANGENCY
CONDITION
CONSTRAINT
Meaning of the Lagrange multiplier
Suppose you have \(F\) feet of fence instead of 40.
TANGENCY
CONDITION
CONSTRAINT
SOLUTION
FUNCTIONS
Meaning of the Lagrange multiplier
SOLUTION
FUNCTIONS
Maximum enclosable area as a function of F:
Meaning of the Lagrange multiplier
In a constrained optimization problem,
the constraint may be determined by a parameter:
how much labor you have, how much money you have,
how many units of a good you want to produce, etc.
The Lagrange multiplier tells you how much
the optimized value of the objective function will change
due to a change in that parameter.
"How much more utility could you get
if you had another hour of labor,
and used it optimally?"
Next Steps
- Tomorrow night: math homework due
- Rest of this week: use these techniques
to solve for the optimal division of labor
between two competing uses
Meaning of the Lagrange multiplier
SOLUTION FUNCTIONS
Econ 50 | Lecture 07
By Chris Makler
Econ 50 | Lecture 07
Math Review: Solution Functions and Optimization
- 582