Session 9 2018
Session 9 2018
Introduction to Mathematics
of Finance
Session 9
Outline
2 Lagrange optimization
The chain rule Lagrange optimization
Differentiable function
Chain rule
The first of these equations can be derived from the Chain Rule in Theorem 6 by hold-
ing s Chain rule r- asTree
fixed and treating diagram
t. The second can be derived in the same way, holding r fixed
and treating s as t. The tree diagrams for both equations are shown in Figure 14.19.
w ! f (x, y, z) w ! f (x, y, z)
0w 0w 0w 0w
f 0x 0z 0x 0z
0w 0w
0y 0y
z x y z x y z
0y 0y
k 0x 0r 0z 0x 0s 0z
0r 0r 0s 0s
r s
(r, s), k (r, s)) 0w 0w 0x 0w 0y 0w 0z 0w 0 w 0x 0w 0y 0w 0z
! " " ! " "
0r 0x 0r 0y 0r 0z 0r 0s 0x 0s 0y 0s 0z 0s
(b) (c)
Example
Lagrange optimization
Lagrange Method
max f (x, y )
subject to
g(x, y ) ≤ c
Steps to follow
1
Formulate a Lagrange as follows
L(x, y , λ) := f (x, y ) − λ (g(x, y ) − c)
2
Then (x ∗ , y ∗ , λ∗ ) is a solution to the original
problem if
∂L ∗ ∗ ∗
(x , y , λ ) = 0
∂x
∂L ∗ ∗ ∗
(x , y , λ ) = 0
∂y
λ∗ · [g(x ∗ , y ∗ ) − c] = 0
λ∗ ≥ 0
g(x ∗ , y ∗ ) ≤ c
The chain rule Lagrange optimization
Example
Maximize F (x, y ) = 2y + x
subject to g(x, y ) = y 2 + xy − 1 = 0
Formulate the Lagrange
L(x, y , λ) = 2y + x − λ y 2 + xy − 1
We get
1 − λy = 0 (1)
2 − 2y λ − xλ = 0 (2)
y 2 + xy − 1 = 0 (3)
Example 2
Minimization problem
Problem:
min f (x, y )
subject to
g(x, y ) ≥ b
The chain rule Lagrange optimization