The Lagrange Method
Econ 50: Section 2
Constrained Optimization
The Lagrange Procedure
- Set up a "Lagrangian" which is a single expression combining the objective function and the constraint.
- The Lagrangian is a function of the \(n\) choice variables and a constant called the Lagrange multiplier, written \(\lambda\)
- Take the partial derivatives with respect to each of these variables and set them equal to zero; this gives you a system of \(n+1\) equations with \(n+1\) unknowns.
- Solving these gives you both the optimal choice and a value of \(\lambda\) which gives a measure of the relationship between the objective function and the constraint.
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\)
FIRST ORDER CONDITIONS
3 equations, 3 unknowns
Solve for \(x_1\), \(x_2\), and \(\lambda\)
FIRST ORDER CONDITIONS
3 equations, 3 unknowns
Solve for \(x_1\), \(x_2\), and \(\lambda\)
FIRST ORDER CONDITIONS
3 equations, 3 unknowns
Solve for \(x_1\), \(x_2\), and \(\lambda\)
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
SOLUTIONS
Meaning of the Lagrange multiplier
Suppose you have \(F\) feet of fence instead of 40.
SOLUTIONS
Maximum enclosable area as a function of F:
Econ 50 | Fall 25 | Section 2
By Chris Makler
Econ 50 | Fall 25 | Section 2
The Mathematics of Optimization
- 112