Lecture Notes 6
Lecture Notes 6
Economics Department
National University of Singapore
1 / 57
Readings: Chapters 8, 13, 14 of EMEA; Chapter 3 of FMEA;
Chapters 9, 11, 12, 13 of FMME
2 / 57
Optimization: single-variable case
3 / 57
Optimization
4 / 57
Extrema
I The values where functions reach their highest and lowest values
are the maximum and minimum points, or the points where the
maxima and minima occur.
I Jointly, these are called extreme points or the points where
extrema (singular: extremum) occur.
I More precisely, if f (x) has domain D,
5 / 57
Local Extrema
6 / 57
Finding Local Extrema
7 / 57
Local Extrema
f(x)
5
0 x
-1 0 1 2 3 4 5
-1
8 / 57
Local Extrema
f(x)
3
0 x
-1 0 1 2 3
-1
9 / 57
First Derivative Test
10 / 57
f (x) = x2
y
2
f'(x) f(x)
0 x
-2 -1 0 1 2
-1
-2
11 / 57
f (x) = −x2
y
2
0 x
-2 -1 0 1 2
-1
f(x)
f'(x)
-2
12 / 57
f (x) = x3
y
2
f'(x) f(x)
0 x
-2 -1 0 1 2
-1
-2
13 / 57
Second Derivative Test
14 / 57
f (x) = −x2
y
1
0 x
-2 -1 0 1 2
f(x)
-1
f'(x)
-2
f''(x)
-3
15 / 57
f (x) = −x4
y
1
f'(x)
0 x
-2 -1 0 1 2
f(x)
-1
-2
f''(x)
-3
16 / 57
Inflection Points
17 / 57
f (x) = x3
y
2
f'(x) f''(x) f(x)
0 x
-2 -1 0 1 2
-1
-2
18 / 57
Example
x4 2x3 x2
Find the local maximum and minimum points of 4 − 3 + 2 −1
using both the first and second derivative tests.
19 / 57
x4 2x3 x2
f (x) = 4 − 3 + 2 −1
y
1
f''(x) f'(x)
0 x
-1 0 1 2
f(x)
-1
-2
20 / 57
Other Local Extrema
21 / 57
√
f (x) = x
f(x)
2
0 x
-1 0 1 2
-1
22 / 57
f (x) = |x|
f(x)
1
0 x
-1 0 1
-1
23 / 57
Global Extrema
24 / 57
Extreme Value Theorem
25 / 57
Global Extrema on [a, b]
26 / 57
Global Extrema without Boundaries
27 / 57
General Procedure for Global Extrema
28 / 57
Example
4
2x3 x2
Find the global maximum and minimum points of x4 − 3 + 2 − 1.
Also find the minimum value attained by the function.
29 / 57
Example
y
1
f''(x) f'(x)
0 x
-1 0 1 2
f(x)
-1
-2
30 / 57
Optimization: multi-variable case
31 / 57
Multi-variable
f (x) ≤ f (x∗ ) ∀ x ∈ D
32 / 57
Multi-variable: first-order condition
I Equivalently,∇f (x) = 0
33 / 57
Intuition
34 / 57
First-Order (Necessary) Conditions: two-variable
example
35 / 57
Formal proof: maximum case
36 / 57
Example
37 / 57
Multi-variable: second-order condition
38 / 57
Example
39 / 57
Local Exteme Points
40 / 57
FOCs and Saddle Points
I The first order conditions for local extrema are similar to those of
global extrema:
I At a local extreme point in the interior of the domain of a
differentiable function, all first-order partial derivatives are 0.
I As usual, a stationary point does not have to be a local extreme
point.
I You can also have saddle points. This occurs at x∗ when there
are simultaneously points arbitrarily close to x∗ that give a larger
value of the function and other points that give a smaller value of
the function.
41 / 57
Saddle Points: two-variable case
z(x, y) = x2 − y 2 at (x, y) = (0, 0)
42 / 57
Second-Derivative Test: sufficient conditions
43 / 57
Second-Derivative Test: necessary conditions
44 / 57
Intuitive argument
I Then we have
45 / 57
Second-Derivative Test: two variable case
Suppose f (x, y) has continuous second-order partial derivatives in a
domain S, and let (x0 , y0 ) be an interior stationary point of f . Also, let
00 00 00
A = f11 (x0 , y0 ), B = f12 (x0 , y0 ), and C = f22 (x0 , y0 )
Then
1. If A < 0 and AC − B 2 > 0, then (x0 , y0 ) is a (strict) local
maximum point.
2. If A > 0 and AC − B 2 > 0, then (x0 , y0 ) is a (strict) local
minimum point.
3. If AC − B 2 < 0, then (x0 , y0 ) is a saddle point.
4. If AC − B 2 = 0, then (x0 , y0 ) could be a local maximum, a local
minimum, or a saddle point.
Recall the Hessian matrix at (x0 , y0 ):
A B
D2 f (x0 , y0 ) =
B C
46 / 57
Example
47 / 57
Increasing Transformations
I The maximum points will be the same for each of these cases,
but the maximum values will be very different.
48 / 57
Increasing Transformations
g(x1 , . . . , xn ) = F (f (x1 , . . . , xn ))
Then:
1. If F is increasing and c maximizes (minimizes) f over S, then c
also maximizes (minimizes) g over S.
(F increasing and c optimizes f ⇒ c optimizes g)
2. If F is strictly increasing, then c maximizes (minimizes) f over S
if and only if c maximizes (minimizes) g over S.
(F strictly increasing ⇒ (c optimizes f ⇔ c optimizes g))
49 / 57
Example
50 / 57
Economic Applications
P1 = a1 − b1 Q1 , P2 = a2 − b2 Q2
51 / 57
Economic Applications
P = 80 − Q1 − Q2
52 / 57
Comparative Statics
I Assume that you found an optimal point for a function, but the
value of the function is also dependent on the value of a
parameter that is set exogenously (i.e. not determined by the
model).
I For example, in the discriminating monopolist example, the profit
function has 4 parameters, a1 , a2 , b1 , and b2 , and the equation for
the maximum profit depended on these 4 parameters:
a21 a2
π ∗ (a1 , a2 , b1 , b2 ) = + 2
4b1 4b2
53 / 57
Comparative Statics
54 / 57
Envelope Theorem
I Using the chain rule on f ∗ (r),
∂π ∗
Take the example of the discriminating monopolist. Find by
∂a1
(a) using the envelope theorem, and
(b) directly computing the derivative from π ∗ (a1 , a2 , b1 , b2 ).
56 / 57
Envelope Theorem
57 / 57