Lecture 6
UNCONSTRAINED OPTIMIZATION:
THE MANY-VARIABLE CASE
1. Functions of two variables
- Consider the function z = f(x,y)
1.1 Find the extremum of the function
- Obtain the first-order and second-order partial derivatives of the function:
- f1, f2
- f11, f12, f21, f22
- Write down the first-order conditions for an extremum.
- f1(x,y) = 0 (1)
- f2(x,y) = 0 (2)
- Solve (1) and (2) for x and y. Denote them x0 and y0.
Note: There may be more than one set of (x,y) that satisfy equations (1) and (2).
- The function attains an extremum value at (x0,y0).
- Evaluate the second-order partial derivatives at (x0,y0).
- Check the second-order conditions to verify whether the extremum is a maximum or a minimum:
Maximum if: f11 < 0, f22 < 0, f11f12 > f122
Minimum if: f11 > 0, f22 > 0, f11f12 > f122
1.2 The Hessian matrix, H
- The matrix whose elements are the second-order partial derivatives evaluated at (x0,y0):
H = ( f11 f12 )
( f21 f22 )
Principal minors
- Obtained by deleting successive rows and columns of the Hessian determinant (the "all-but" rule):
- H1 = f11
(delete all but the first row and column)
- H2 = f11f22 - f122 (delete all but the first two rows and columns)
- Note: In the two-variable case, H2 = det(H), the Hessian itself.
1.3 Second-order conditions revisited
- For a maximum: H1 < 0, H2 > 0
- For a minimum: H1 > 0, H2 > 0
Note: The principal minors are evaluated at (x0,y0).
2. General case
2.1 Function of n variables
- Consider the function y = f(x1,x2,...,xn)
2.2 First-order conditions (FOC)
- f1 = 0, f2 = 0, ..., fn = 0
2.3 Second-order conditions (SOC)
Look at the signs of the principal minors.
- If they alternate in sign, the first being negative, the extremum is a maximum:
H1 < 0, H2 > 0, H3 < 0,...
- If all the n principal minors are positive, the extremum is a minimum:
H1 > 0, H2 > 0, H3 > 0,..., Hn > 0
3. Application
Profit maximization by a multi-product firm (source: Chiang)
-
Consider a firm that produces two goods. The demand for each, and the firm's cost function are given:
- Demand for Good 1: Q1 = 40 - 2P1 - P2
- Demand for Good 2: Q2 = 35 - P1 - P2
- Cost function: C(Q1,Q2) = Q12 + 2Q22 + 10
- The firm wishes to maximize profits by choosing the optimal values of Q1 and Q2.
- Rewrite the demand functions as:
- P1 = f(Q1,Q2)
- P2 = g(Q1,Q2)
- Obtain the revenue functions:
- R1(Q1,Q2) = P1Q1
- R2(Q1,Q2) = P2Q2
- Obtain the profit function π(Q).
- Obtain the first-order and second-order derivatives of π(Q).
- Write down the FOC.
- Solve for the optimal values of the output levels.
- Check the SOC. [Use the Hessian.]
- Obtain the maximum value of π(Q).
EC 309 home