Classroom - Notes1 2022
Classroom - Notes1 2022
Mohammed Bouaddi
September 8, 2022
Outline
1. Critical values
2. The second derivative and concavity/convexity.
3. Unconstrained optimization: one-variable case.
4. Unconstrained optimization: two-variable case.
5. Second-order conditions: unconstrained optimization.
6. Constrained optimization: one-variable functions: the Lagrangian.
7. Constrained optimization: two-variable functions: the Lagrangian.
8. Second-order conditions: constrained optimization.
9. Applications.
10. About the Lagrange multiplier.
2 if x > 0
f 0 (x ) =
2 if x 6 0
x x (x x )2 00
f (x ) = f (x ) + f 0 (x ) + f (x )
1! 2!
(x x ) n (n )
+... + f (x ) + R (x x )n +1
n!
where lim R (x x )n +1 = 0.
x !x
If n = 2, then
x x (x x )2 00
f (x ) = f (x ) + f 0 (x ) + f (x )
1! 2!
+R (x x )3
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
If n = 1, then
x x
f (x ) = f (x ) + f 0 (x ) + R (x x )2
1!
De…nition
A twice di¤erentiable function f (x ) is convex if f 00 (x ) > 0 at all points on
its domain.
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
De…nition
A twice di¤erentiable function f (x ) is strictly convex if f 00 (x ) > 0 at all
points on its domain.
De…nition
A twice di¤erentiable function f (x ) is concave if f 00 (x ) 6 0 at all points
on its domain.
De…nition
A twice di¤erentiable function f (x ) is strictly concave if f 00 (x ) < 0 at all
points on its domain.
y
40
30
20
10
-4 -2 2 4
x
x
-5 -4 -3 -2 -1 1 2 3 4 5
y
-10
-20
-30
-40
Minima are point at which the function attains its lowest value in a given
interval or any points for which f 00 (x ) > 0.
y
100
50
-5 -4 -3 -2 -1 1 2 3 4 5
x
-50
-100
fx 4x
5f = = =0
fy 6y
x = 0 and y = 0
y 2-40
-60
2x
4f 4
-80
-100
-120
fx 4x 1
5f = = =0
fy 6y 2
1 1
x = and y =
4 3
y5 5x
10 10
f (x, y ) = 2x 2 x 3y 2 + 2y + 4
fx 4x 1
5f = = =0
fy 6y + 2
1 1
x = and y =
4 3
1 f (x, y ) = x 2 3x + 2y 2 + y 1
2 f (x, y ) = x 2 + x 2y 2 + 3y + 5
3 f (x, y ) = x 3 + x 2y 3 + 5y
Solution
1. f (x, y ) = x 2 3x + 2y 2 + y 1
The stationary points
fx 2x 3
5f = = =0
fy 4y + 1
3 1
x = and y =
2 4
The point (x , y ) = ( 32 , 1
4 ) is a stationary point of f .
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
The Hessian matrix
fxx fxy 2 0
Hf = =
fyx fyy 0 4
Minors
fxx = 2>0
2 0
det = 8>0
0 4
All the minors of the Hessian matrix are positive. Thus, the point is a
local minimum and since the Hessian is the same at all points (Constant),
then this minimum is global (The function is strictly convex).
fx 2x + 1
5f = = =0
fy 4y + 3
1 3
x = and y =
2 4
The the point (x , y ) = ( 12 , 43 ) is a stationary point of f .
The Hessian matrix
fxx fxy 2 0
Hf = =
fyx fyy 0 4
Minors
fxx = 2<0
2 0
det = 8>0
0 4
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
The minors of the Hessian matrix alternite the sign. Thus, the point is a
local maximum and since the Hessian is the same at all points (Constant),
then this maximum is global (The function is strictly concave).
3. f (x, y ) = x 3 + xy y3
The stationary points
fx0 3x 2 + y
5f = = =0
fy0 3y 2 + x
y = 3x 2
2
3 3x 2 +x = 0
3
x 27x + 1 = 0
r
3 1 1
x = 0 or x = =
27 3
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
2
1 1
y =3 02 = 0 or y = 3 =
3 3
The the points (0, 0) and ( 31 , 31 ) are stationary points of f .
The Hessian matrix
fx 3x 2 + y
5f = = =0
fy 3y 2 + x
fxx fxy 6x 1
Hf = =
fyx fyy 1 6y
Minors
fxx = 6x
6x 1
det = 36xy 1
1 6y
Note: The Hessian depends on the values of x and y .
For the …rst stationary point (0, 0), we have
fxx = 0
0 1
det = 1
1 0
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
The Hessian is inde…nite. Therefore, we have a saddle point.
1 1
For the second stationary point 3, 3 , we have
fxx fxy 2 1
Hf = =
fyx fyy 1 3
Minors
fxx = 2
2 1
det = 5
1 3
The minors of the Hessian matrix alternite the sign. Thus, the point is a
local maximum.
Practice question: Find the optima (if it exists) of the following function
f (x, y ) = x3 2y 2 + xy
fxx = 100
100 0
det = 5000
0 50
max f (x, y )
such that
g (x, y ) = 0.
max L (x, y , λ)
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
The …rst order conditions give
maxY = AK α Lβ
K ,L
given that
pK K + pL L = B Budget constraint
Lagrange function
L (K , L, λ) = AK α Lβ λ ( pK K + pL L B)
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
The …rst order conditions give
dL (K , L, λ) d AK α Lβ d ( pK K + pL L B)
= λ
dK dK dK
= αAK α 1 Lβ λpK = 0 (1)
dL (K , L, λ) d AK α Lβ d ( pK K + pL L B)
= λ
dL dL dL
= βAK α Lβ 1 λpL = 0 (2)
dL (K , L, λ)
= ( pK K + pL L B) = 0 (3)
dλ
From equations 1 and 2 we have:
1
αA (K )α (L ) β = λpK (3)
α β 1
βA (K ) (L ) = λpL (4)
pK αA (K )α 1 (L ) β αL
= 1
= (5)
pL α
βA (K ) (L ) β βK
We notice from the last equation, that the ratio of the prices is equal to
the ratio of the corresponding marginal productions at the equilibium (at
the optimum).
From equation 5, we have
β pK
L = K (6)
α pL
β pK
pK K + pL K =B
α pL
Therefore, we have
αB
K =
( α + β ) pK
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
and substitute in 3 to get
βB
L =
( α + β ) pL
Second-order conditions
Assumptions on global optima:
For the local optima to be global, we need the following assumptions:
1 Convexity: The objective function is convex or concave.
Theorem
If the point (x , y , λ ) is a stationary value of the constrained problem,
then:
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
1 If the determinant of the bordered Hessian is negative at the
optimum, i.e jHf j < 0, then we have a minimum.
2 If the determinant of the bordered Hessian is positive at the optimum,
i.e jHf j > 0, then we have a maximum.
Examples
Solve the following examples
given that
pK K + pL L = B Budget constraint
where:
Y is the output
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
A is the total factor productivity
K and L are the intputs (capital and labor)
ρ is the substitution parameter (elasticity of substitution parameter is
e = 11ρ)
π is the share of input capital and (1 π ) is the share of input labor.
δ is the degree of homogeneity of the production function.
Y = A (πK + (1 π ) L)
Y = min (K , L)
Lagrange function
δ
L (K , L, λ) = A (πK ρ + (1 π ) Lρ ) ρ λ ( pK K + pL L B)
dL (K , L, λ) d A (πK ρ + (1 π ) Lρ ) ρ d ( pK K + pL L B)
= λ
dK dK dK
δ
ρ 1 1
= δπK A (πK ρ + (1 π ) Lρ ) ρ λpK = 0 (1)
δ
dL (K , L, λ) d A (πK ρ + (1 π ) Lρ ) ρ
d ( pK K + pL L B)
= λ
dL dL dL
δ
ρ 1 1
= δ (1 π) L A (πK ρ + (1 π ) Lρ ) ρ λpL = 0(2)
dL (K , L, λ)
= ( pK K + pL L B) = 0 (3)
dλ
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
From equations 1 and 2 we have:
δ
1 1
δπK ρ A (πK ρ + (1 π ) Lρ ) ρ = λpK (4)
δ
1 1
δ (1 π ) Lρ A (πK ρ + (1 π ) Lρ ) ρ = λpL (5)
Therefore, we have
B
K = 1 (8)
πp L ρ 1
pK + pL (1 π )p K
B B
L = 1 = 1 (9)
πp L ρ 1 (1 π )p K ρ 1
pK (1 π )p K
+ pL pK πp L + pL
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
We can rewrite 8 and 9 as
B
K = ρ
1 ρ 1
π pL
pK 1+ 1 π
ρ 1
pK
B
L = ρ
1 ρ 1
1 π pK
pL 1+ π
ρ 1
pL
Y = min (K , L)
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
150
100
20
50
100 100
Capital
50 50 50
20
20 20
0
0 50 100 150
Labor
Y = AK ρ Lρ
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
150
10
20
0
100
50
Capital
100
50
50
20
50
20 20
0
0 50 100 150
Labor
100
Capital
10
0
50
50
100
20
50 10 0
0 50
0 50 100 150
Labor
given that
π1 + π2 = 1 Budget constraint
Lagrange:
F.O.C:
dL
= 2π 1 σ21 + 2π 2 σ12 λ=0 (1)
d π1
dL
= 2π 2 σ22 + 2π 1 σ12 λ=0 (2)
d π2
MB (Business School) Econ 4061 - Mathematical Economics September 8, 2022 1/1
dL
= (π 1 + π 2 1) = 0 (3)
d π1
From equation 3 we have:
π2 = 1 π1 (4)
From equations 1 and 2 we have:
λ
π 1 σ21 + π 2 σ12 = (5)
2
λ
π 2 σ22 + π 1 σ12 = (6)
2
Equate 5 and 6 to get:
2σ21 2σ12 1
jHf j = 2σ12 2σ22 1 = 2σ21 2σ22 + 4σ12
1 1 0
= 2 σ21 + σ22 2σ12 < 0.
Therfore,
∆L = ∆f λ∆g
At the optimum
∆L = ∆f λ ∆g = 0
Thus
∆f
λ =
∆g
Hence, the lagrange multiplier gives the change of the objective function
resulting from small change of the constraint at the optimum, i.e it gives
the marginal e¤ect of the constraint on the objective function.