Advanced Macroeconomics 2024-2025: Euler 1744 Optimization, A Complement Etienne Wasmer
Advanced Macroeconomics 2024-2025: Euler 1744 Optimization, A Complement Etienne Wasmer
Etienne Wasmer
NYUAD
1/47
Optimization
▶ Static case
▶ Dynamic case
▶ Transversality conditions
▶ Source: the excellent Further Mathematics for Economic Analysis, Knut Sydsaeter, Peter
Hammond, Atle Seierstad, Arne Strom, Pearson Ed., ISBN-13: 9780273713289
2/47
Optimization
▶ Static case
▶ Dynamic case
▶ Transversality conditions
3/47
Static optimization
▶ Suppose that you want to maximize a function of n variables
f (x1 , x2 , ...xn )
subject to m constraints
X ∂gj (x) m
∂L(x) ∂f
=0⇔ = λj
∂xi ∂xi ∂xi
j=1
5/47
Necessary and sufficient conditions, static optimization
1. Part 1: Necessary condition
▶ Suppose that x∗ is an optimum of the initial problem and that
functions f , gj , j = 1, m are differentiable around x∗ .
▶ Suppose that the matrix m × n of
8/47
Necessary and sufficient conditions, static optimization,
proof of part 1
▶ The proof of the first part involves the rank condition. It uses
the theorem of implicit functions.
▶ Then one finds a set of m variables satisfying the constraints,
as a function of the n − m remaining variables.
▶ And one can express the remaining free variables to get the
optimum.
9/47
If constraints are inequality conditions
▶ Suppose now that you want to maximize a function of n
variables
f (x1 , x2 , ...xn )
subject to m constraints
gj (x1 , x2 , ...xn ) ≤ bj , j = 1, ...m < n
▶ Still introduce the Lagrangian
m
X
L(x) = f (x) − λj [gj (x) − bj ]
j=1
▶ Static case
▶ Dynamic case
▶ Transversality conditions
11/47
A dynamic environment
Y = f (K ) = C + K̇
12/47
A dynamic environment
▶ Equivalent to maximizing
Z T
U[f (K ) − K̇ ]e −σt dt (1)
0
13/47
A dynamic environment
14/47
Here comes Euler!
15/47
Here comes Euler!
16/47
Proof 1/N: Necessary condition
17/47
Proof 2/N: Necessary condition
18/47
Proof 3/N: Necessary condition
∂ ∂F ∂F
F (t, x ∗ + αµ, x˙∗ + αµ̇) = µ+ µ̇
∂α ∂x ∂ ẋ
▶ Apply it to α = 0:
Z t1
∂ ∂
I ′ (0) = F (t, x ∗ , x˙∗ ) × µ + F (t, x ∗ , x˙∗ ) × µ̇ dt
t0 ∂x ∂ ẋ
(7)
19/47
Proof 4/N: Necessary condition
20/47
Proof 5/N: Necessary condition
▶ Reintegrate in I ′ (0)
Z t1 Z t1
′ ∂ d ∂
I (0) = F (t, x ∗ , x˙∗ ) × µ − ∗ ˙∗
F (t, x , x ) × µdt
t0 ∂x t0 dt ∂ ẋ
t1
∂ ∗ ˙∗
+ F (t, x , x ) × µ
∂ ẋ t0
▶ that is,
Z t1
′ ∂ d ∂
I (0) = F (t, x ∗ , x˙∗ ) − F (t, x ∗ , x˙∗ ) × µdt
t0 ∂x dt ∂ ẋ
t1
∂
+ F (t, x ∗ , x˙∗ ) × µ
∂ ẋ t0
21/47
Proof 6/N: Necessary condition
22/47
Proof 7/N: Necessary condition
23/47
Proof 8/N: Sufficiency
24/47
Proof 9/N: Sufficiency
▶ Concave means in general for a real differentiable function
G (y)of n variables on an open convex set S that
∂F (t, x ∗∗ , x ˙∗∗ )
F (t, x, ẋ) − F (t, x ∗∗ , x ˙∗∗ ) ≤ (x − x ∗∗ )
∂x
∂F (t, x ∗∗ , x ˙∗∗ )
+ (ẋ − x ˙∗∗ )
∂ ẋ
▶ Now insert the Euler equation:
∂ ∗∗ ˙∗∗ d ∂ ∗∗ ˙∗∗
F (t, x , x ) = F (t, x , x )
∂x dt ∂ ẋ
▶ therefore
∗∗ d ∂
F (t, x, ẋ) − F (t, x , x ˙∗∗ ) ≤ F (t, x , x ) (x − x ∗∗ )
∗∗ ˙∗∗
dt ∂ ẋ
∂F (t, x ∗∗ , x ˙∗∗ )
+ (ẋ − x ˙∗∗ )
∂ ẋ
26/47
Proof 11/N: Sufficiency
▶ Invert the inequality: leads to:
∗∗ d ∂F
˙
∗∗
F (t, x , x ) − F (t, x, ẋ) ≥ (t, x , x ) .(x ∗∗ − x)
∗∗ ˙∗∗
dt ∂ ẋ
∂F (t, x ∗∗ , x ˙∗∗ ) ˙∗∗
+ (x − ẋ)
∂ ẋ
▶ Now the miracle: the right-hand side can be rewritten as:
∗∗ ˙∗∗ d ∂F ∗∗ ˙∗∗ ∗∗
F (t, x , x ) − F (t, x, ẋ) ≥ (t, x , x ).(x − x)
dt ∂ ẋ
(9)
▶ Why? Just redevelop.
d ∂F ∗∗ ˙∗∗ ∗∗
(t, x , x ).(x − x)
dt ∂ ẋ
d ∂F
= (t, x , x ). (x ∗∗ − x)
∗∗ ˙∗∗
dt ∂ ẋ
d ∂F
+ (x ∗∗ − x) (t, x ∗∗ , x ˙∗∗ )
dt ∂ ẋ 27/47
Proof 12/N: Sufficiency
28/47
Proof 13/N: Sufficiency
29/47
Optimization
▶ Static case
▶ Dynamic case (continued)
▶ Transversality conditions
30/47
Euler is back!
with
∂2F ∂2F ∂2F ˙
d ∂F
(t, x, ẋ) = + ẋ + ẋ (11)
dt ∂ ẋ ∂t∂ ẋ ∂x∂ ẋ ∂ ẋ∂ ẋ
31/47
Apply it to our ”nation’s problem”
▶ That is
F (t, K , K̇ ) = U[f (K ) − K̇ ]e −σt
▶ Euler says
32/47
Apply it to our ”nation’s problem”
∂F
= f ′ (K )U ′ [f (K ) − K̇ ]e −σt
∂K
∂F
= −U ′ ([f (K ) − K̇ ])e −σt
∂ K̇
33/47
Apply it to our ”nation’s problem”
▶ Combining:
U”(C ) h ′ ˙
i
f ′ (K ) − σ = − f (K )K̇ − K̇
U ′ (C )
▶ How do we continue?
34/47
Apply it to our ”nation’s problem”
▶ Write it again:
U”(C ) h ′ ˙
i
f ′ (K ) − σ = − f (K )K̇ − K̇
U ′ (C )
▶ Now use:
C + K̇ = f (K )
▶ That is:
Ċ + K̇˙ = f ′ (K )K̇
▶ So we can replace and get:
U”(C )
f ′ (K ) − σ = − Ċ
U ′ (C )
CU”(C ) Ċ
f ′ (K ) − σ = −
U ′ (C ) C
Ċ f ′ (K ) − σ
=
C θ
our regular Euler equation. 35/47
Apply it to our ”nation’s problem”
36/47
Optimization
▶ Static case
▶ Dynamic case
▶ Transversality conditions
37/47
Return to the original problem: transversality
38/47
Return to the original problem: transversality
Theorem
1. Necessary condition:
▶ If x ∗ is an optimal solution to the problem, it must solve the
Euler equation.
▶ In case i) of a free value x ∗ (t1 ), one has
∂F
(t = t1 ) = 0
∂ ẋ
∂F
(t = t1 ) ≤ 0
∂ ẋ
with inequality if x ∗ (t1 ) = x1 and equality if x ∗ (t1 ) > x1 .
2. Sufficient condition
▶ Reciprocally, if F (t, x, ẋ) is concave in (x, ẋ), then an
admissible solution x ∗∗ satisfying Euler and the transversality
condition will solve the original problem.
39/47
Return to Proof 1/N: Necessary condition
▶ Calculus of variations.
▶ Denote by x ∗ = x ∗ (t) a solution to the original problem.
▶ Consider a variation function µ(t) twice differentiable such
that µ(t0 ) = 0 (but not necessarily in t1 ) and an arbitrary
constant α.
▶ Given this, a function x = x ∗ + αµ is a candidate to the
problem since it has the same initial value.
40/47
Return to Proof 2/N: Necessary condition
41/47
Return to Proof 3/N: Necessary condition
∂ ∂F ∂F
F (t, x ∗ + αµ, x˙∗ + αµ̇) = µ+ µ̇
∂α ∂x ∂ ẋ
▶ Apply it to α = 0:
Z t1
′ ∂ ∗ ˙∗ ∂ ∗ ˙∗
I (0) = F (t, x , x )µ + F (t, x , x )µ̇ dt (16)
t0 ∂x ∂ ẋ
42/47
Return to Proof 4/N: Necessary condition
Z t1
′ ∂
I (part2) = F (t, x ∗ , x˙∗ )µ̇dt
t ∂ ẋ
0 Z t1
∂ d ∂
= F (t, x ∗ , x˙∗ )µ tt10 − F (t, x ∗ , x˙∗ ) µdt
∂ ẋ t0 dt ∂ ẋ
43/47
Return to Proof 5/N: Necessary condition
▶ Reintegrate in I ′ (0)
Z t1 Z t1
′ ∂ d ∂
I (0) = F (t, x ∗ , x˙∗ )µ − ∗ ˙∗
F (t, x , x ) µdt
t ∂x t0 dt ∂ ẋ
0
∂ ∗ ˙∗
+ F (t, x , x )µ tt10
∂ ẋ
▶ that is,
Z t1
′ ∂ d ∂
I (0) = F− F µdt
t0 ∂x dt ∂ ẋ
∂
+ F (t, x ∗ , x˙∗ )µ t1
t0
∂ ẋ
44/47
Return to Proof 6/N: Necessary condition
45/47
Return to Proof 6/N, continued: Necessary condition
▶
Z t1
′ ∂ d ∂ ∂F (t)
I (0) = F− F µdt + µ(t) (t1 )
t0 ∂x dt ∂ ẋ ∂ ẋ
46/47
Return to Proof 6/N, continued: Necessary condition
▶ Second case:
Z t1
′ ∂ d ∂ ∂F (t)
I (0) = F− F µdt + µ(t) (t1 )
t0 ∂x dt ∂ ẋ ∂ ẋ
47/47