Lecture 7
CONSTRAINED OPTIMIZATION
1. Objective
To find the extremum of a function in the presence of an equality constraint
2. The Lagrange-multiplier method
Convert the constrained optimization problem into an unconstrained optimization one.
- Form the Lagrangian function:
L(x,y,λ) = f(x,y) + λ[c - g(x,y)]
- λ is the Lagrange multiplier
- Treat the Lagrangian function as the new objective function, with the choice variables as x, y and λ.
2.1 First-order conditions
Use the FOC to obtain the extrema of the function.
- The first-order necessary conditions are:
L1 = f1(x,y) - λg1(x,y) = 0 (1)
L2 = f2(x,y) - λg2(x,y) = 0 (2)
L3 = c - g(x,y) = 0 (3)
[Note: Equation (3) gives us back the constraint!]
- Solve equations (1)-(3) for x, y and λ.
- These values of x and y will yield an extremum for f(x,y).
2.2 Example
Find the extremum of the function z = xy, subject to the constraint x + y = 8.
- Obtain the Lagrangian function, L(x,y,λ).
- Write down the first-order conditions (3 of them).
- Solve the three equations for the three variables.
- Obtain the stationary value of z.
[Note: At this point we do not know if the extremum is a maximum or a minimum. We will develop the SOC later.]
2.3 Second-order conditions
The second-order conditions entail the use of:
- The second-order partial derivatives of L(x,y,λ), and
- The first-order derivatives of g(x,y).
3. The Bordered Hessian
- Evaluate the partial derivatives--L11, L12, L21, L22--at the extremum.
- Form a determinant with the partial derivatives, and border it on two sides by g1 and g2.
- The bordered Hessian (H_bar) is:
0 g1 g2
H_bar = g1 L11 L12
g2 L21 L22
- Sufficient condition for a maximum: det(H_bar) > 0
- Sufficient condition for a minimum: det(H_bar) < 0
4. The n-variable case
- Objective function: z = f(x1, x2,..., xn)
- Constraint: g(x1, x2,..., xn) = c
4.1 Finding the extremum
- Form the Lagrangian function:
L(x1, x2,..., xn, λ) = f(x1, x2,..., xn) + λ[c - g(x1, x2,..., xn)]
- Obtain the FOC:
L1(x1, x2,..., xn, λ) = 0 (1)
L2(x1, x2,..., xn, λ) = 0 (2)
...
Ln(x1, x2,..., xn, λ) = 0 (n)
Lλ(x1, x2,..., xn, λ) = 0 (n+1)
- Solve equations (1), (2),...,(n+1) to obtain x1, x2,..., xn and λ.
- Obtain the bordered Hessian:
H_bar =
0 g1 g2 ... gn
g1 L11 L12 ... L1n
g2 L21 L22 ... L2n
...
gn Ln1 Ln2 ... Lnn
- Obtain the bordered principal minors:
0 g1 g2
H2_bar = g1 L11 L12
g2 L21 L22
H3_bar, H4_bar,..., Hn_bar
- Check the second-order conditions (SOC)
For a maximum: H2_bar > 0, H3_bar < 0, ...
For a minimum: H2_bar < 0, H3_bar < 0, ...
5. Interpretation of the Lagrange multiplier
- The multiplier measures the change in the optimal value of the objective function due to a change in the parameter c in the constraint, i.e.
6. Application: Utility maximization
The consumer's optimization problem is:
max u(x,y)
x,y
s.t. pxx + pyy = I
Graphical solution
- The optimal bundle is obtained at the tangency between the indifference curve and the budget constraint.
Analytical solution
- Form the Lagrangian function.
- Obtain the FOC.
- Obtain the bordered Hessian.
- What restrictions on u(x,y) will ensure that the FOC will yield a maximum?
- What is the interpretation of the multiplier?
6.1 Example
Consider the utility function u(x,y) = (x+2)(y+1). The prices of the two goods and the consumer's income are: px = 4, py = 6, I = 130.
- Solve for the optimal levels of x and y.
- Are the second-order conditions for a maximum satisfied?
- What will happen to the optimal levels of x and y in response to an increase in the price of Good X? How about utility? (Assume px increases by 10%.)
- What will happen to the optimal levels of x and y in response to an increase in income? What will ahppen to utility? (Assume I increases to 150.)
EC 309 home