Carter Lecture Notes UnconstrainedOptimization
Carter Lecture Notes UnconstrainedOptimization
⃝
Foundations of Mathematical Economics All rights reserved
Optimization
1 Preliminaries
1.1 Formulation
max 𝑓 (x, 𝜽)
x∈𝐺(𝜽)
𝐺(𝜽) = {x ∈ 𝑋 : 𝑔𝑗 (x, 𝜽) ≤ 0, 𝑗 = 1, 2, . . . 𝑚}
∙ −x ≤ 0 or
∙ 𝑋 = ℜ𝑛+
⊳ computation
⊳ characterization
1.3 Terminology
⊳ local v. global
If 𝑓 is concave, every local optimum is a global optimum (Exercise 5.2)
⊳ interior v. boundary
1
Lecture notes based on c 2001 Michael Carter
⃝
Foundations of Mathematical Economics All rights reserved
2 Unconstrained optimization
max 𝑓 (x)
x∈𝑋
which implies
𝑥 𝑥 𝑥
Stationary Boundary Both
point point
∇𝑓 (x∗ ) ≤ 0 x∗ ≥ 0 ∇𝑓 (x∗ )𝑇 x∗ = 0
2
Lecture notes based on c 2001 Michael Carter
⃝
Foundations of Mathematical Economics All rights reserved
⊳
max 𝑓 (𝑥1 , 𝑥2 ) = 3𝑥1 𝑥2 − 𝑥31 − 𝑥32
𝑥1 ,𝑥2
Local
Saddle
maximum
point
-1
0 2
𝑥1 1
1 0
-1 𝑥2
or
∇𝑓 (x∗ )𝑇 dx + dx𝑇 𝐻𝑓 (x∗ )dx ≤ 0 for every x ∈ 𝑆
which requires that
∙ ∇𝑓 (x∗ )𝑇 dx = 0
∙ dx𝑇 𝐻𝑓 (x∗ )dx ≤ 0 for every x ∈ 𝑆.
⊳ Examples
3
Lecture notes based on c 2001 Michael Carter
⃝
Foundations of Mathematical Economics All rights reserved
⊳ If
⊳ Examples
4
Lecture notes based on c 2001 Michael Carter
⃝
Foundations of Mathematical Economics All rights reserved
3 Homework
1. If 𝑓 is concave and 𝐺(𝜽) is convex, every local optimum is a global
optimum (Exercise 5.2).
2. Conjecture: If 𝑓 : ℜ → ℜ has a local maximum at 𝑥∗ which is not a
strict local maximum, then 𝑓 is constant in some neighbourhood of 𝑥.
Prove or provide a counterexample.
3. Rolle’s theorem. Suppose 𝑓 ∈ 𝐶[𝑎, 𝑏] is differentiable on (𝑎, 𝑏). If
𝑓 (𝑎) = 𝑓 (𝑏), then there exists 𝑥 ∈ (𝑎, 𝑏) where 𝑓 ′ (𝑥) = 0 (Exercise 5.8).
Note: Rolle’s theorem =⇒ the mean value theorem, which provides all the
useful theorems of calculus.
Weierstrass
theorem
Mean value
theorem
L’Hôpital’s Young’s
rule theorem
Implicit function
theorem
4. Solve the problem max𝑥1 ,𝑥2 𝑓 (𝑥1 , 𝑥2 ) = 3𝑥1 𝑥2 − 𝑥31 − 𝑥32 (Example 5.8).
5. Solve the problem max𝑥1 ,𝑥2 𝑓 (𝑥1 , 𝑥2 ) = 𝑥1 𝑥2 + 3𝑥2 − 𝑥21 − 𝑥22 (Exercise
5.9)
6. Extend Corollary 5.1.2 to 𝑓 pseudoconcave.
5
Lecture notes based on c 2001 Michael Carter
⃝
Foundations of Mathematical Economics All rights reserved
Solutions 2
1 Suppose that x∗ is a local optimum which is not a global optimum. That
is, there exists a neighborhood 𝑆 of x∗ such that
By concavity of 𝑓
2 False. A counterexample is
{
𝑥 𝑥≤1
𝑓 (𝑥) =
1 𝑥>1
𝐷1 𝑓 = 3𝑥2 − 3𝑥21 = 0
𝐷2 𝑓 = 3𝑥1 − 3𝑥22 = 0
1
Lecture notes based on c 2001 Michael Carter
⃝
Foundations of Mathematical Economics All rights reserved
or
𝑥2 = 𝑥21 𝑥1 = 𝑥22
These equations have two solutions: 𝑥1 = 𝑥2 = 0 and 𝑥1 = 𝑥2 = 1. Therefore
(0, 0) and (1, 1) are the only stationary points of 𝑓 .
The Hessian of 𝑓 is ( )
−6𝑥1 3
𝐻(x) =
3 −6𝑥2
At (1, 1) this evaluates to
( )
−6 3
𝐻(x) =
3 −6
which have the unique solution 𝑥∗1 = 1, 𝑥∗2 = 2. (1, 2) is the only stationary
point of 𝑓 and hence the only possible candidate for a maximum. To verify
that (1, 2) satisfies the second-order condition for a maximum, we compute
the Hessian of 𝑓 ( )
−2 1
𝐻(x) =
1 −2
which is negative definite everywhere. Therefore (1, 2) is a strict local maxi-
mum of 𝑓 . Further, since 𝑓 is strictly concave (Proposition 4.1), we conclude
that (1, 2) is a strict global maximum of 𝑓 (Exercise 5.2), where it attains its
maximum value 𝑓 (1, 2) = 3 (Figure 1).
2
Lecture notes based on c 2001 Michael Carter
⃝
Foundations of Mathematical Economics All rights reserved
(1,2,3)
3
2 𝑥
2
0
1 1
𝑥1 2
Figure 1: The strictly concave function 𝑓 (𝑥1 , 𝑥2 ) = 𝑥1 𝑥2 + 3𝑥2 − 𝑥21 − 𝑥22 has
a unique global maximum.
Therefore stationarity
x∗ is a global optimum.
Conversely, if x∗ is an interior global optimum, it must be an interior local
optimum. Therefore (Theorem 5.1), ∇𝑓 (x∗ ) = 0.