Slides 01
Slides 01
A Mathematical Preliminaries
1 Unconstrained Optimization
2 Constrained Optimization
B Consumer Optimization
1 Graphical Analysis
2 Algebraic Analysis
3 The Time Dimension
4 The Risk Dimension
C General Equilibrium
1 Optimal Allocations
2 Equilibrium Allocations
Mathematical Preliminaries
Unconstrained Optimization
max F (x)
x
Constrained Optimization
max F (x)
x
you can:
1. Try out every possible value of x.
2. Use calculus.
Theorem If x ∗ solves
max F (x),
x
∗
then x is a critical point of F , that is,
F 0 (x ∗ ) = 0.
Unconstrained Optimization
F (x) maximized at x ∗ = 5
Unconstrained Optimization
Theorem If x ∗ solves
max F (x),
x
∗
then x is a critical point of F , that is,
F 0 (x ∗ ) = 0.
Theorem If x ∗ solves
max F (x),
x
∗
then x is a critical point of F , that is,
F 0 (x ∗ ) = 0.
Unconstrained Optimization
Theorem If
F 0 (x ∗ ) = 0 and F 00 (x ∗ ) < 0,
then x ∗ solves
max F (x)
x
Theorem If
F 0 (x ∗ ) = 0
and
max F (x).
x
Unconstrained Optimization
−(x ∗ − τ ) = 0
leads us immediately to the solution: x ∗ = τ .
Unconstrained Optimization: Example 2
max F (x1 , x2 , x3 )
x1 ,x2 ,x3
Even if each variable can take on only 1,000 values, there are
one billion possible combinations of (x1 , x2 , x3 ) to search over!
F 0 (x ∗ ) − λ∗ G 0 (x ∗ ) = 0
λ∗ [c − G (x ∗ )] = 0.
Constrained Optimization
λ∗ [c − G (x ∗ )] = 0
requires that λ∗ = 0.
F 0 (x ∗ ) − λ∗ G 0 (x ∗ ) = 0
requires that F 0 (x ∗ ) = 0.
Constrained Optimization
λ∗ [c − G (x ∗ )] = 0
F 0 (x ∗ ) − λ∗ G 0 (x ∗ ) = 0
requires that F 0 (x ∗ ) = λ∗ G 0 (x ∗ ).
Constrained Optimization: Example 1
With
1
L(x, λ) = − (x − 5)2 + λ(7 − x),
2
the first-order condition
−(x ∗ − 5) − λ∗ = 0
λ∗ (7 − x ∗ ) = 0
With
1
L(x, λ) = − (x − 5)2 + λ(4 − x),
2
the first-order condition
−(x ∗ − 5) − λ∗ = 0
λ∗ (4 − x ∗ ) = 0
1. Graphical Analysis
2. Algebraic Analysis
3. Time Dimension
4. Risk Dimension
Consumer Optimization
Y ≥ pa ca + pb cb
Consumer Optimization: Graphical Analysis
Y = pa ca + pb cb
or
Y pa
cb = − ca
pb pb
Which shows that the graph of the budget constraint will be a
straight line with slope −(pa /pb ) and intercept Y /pb .
Consumer Optimization: Graphical Analysis
A and B yield the same level of utility, and B and C yield the
same level of utility, but C is preferred to A if more is preferred
to less. Indifference curves cannot intersect.
Consumer Optimization: Graphical Analysis
Y = pa ca + pb cb
or
Y pa
cb = − ca
pb pb
has slope −(pa /pb ).
Consumer Optimization: Graphical Analysis
u(ca ) + βu(cb ).
The function u is increasing, with u 0 (c) > 0, so that more is
preferred to less, and concave, with u 00 (c) < 0, so that
marginal utility falls as consumption rises.
Ū = u(ca ) + βu(cb ).
Use this equation to define a new function, cb (ca ), describing
the number of bananas needed, for each number of apples, to
keep the consumer on this indifference curve:
u 0 (ca )
cb0 (ca ) = − .
βu 0 [cb (ca )]
Consumer Optimization: Graphical Analysis
u 0 (ca )
cb0 (ca ) = − ,
βu 0 [cb (ca )]
written more simply as
u 0 (ca )
cb0 (ca ) = − ,
βu 0 (cb )
measures the slope of the indifference curve: the consumer’s
marginal rate of substitution.
Consumer Optimization: Graphical Analysis
pa u 0 (ca )
= .
pb βu 0 (cb )
The marginal rate of substitution equals the relative prices.
Consumer Optimization: Graphical Analysis
u 0 (ca )
cb0 (ca ) = − ,
βu 0 [cb (ca )]
we can see that cb0 (ca ) < 0, so that the indifference curve is
downward-sloping, so long as the utility function u is strictly
increasing, that is, if more is preferred to less.
Consumer Optimization: Graphical Analysis
u 0 (ca )
cb0 (ca ) = −
βu 0 [cb (ca )]
Differentiating again yields
βu 0 [cb (ca )]u 00 (ca ) − u 0 (ca )βu 00 [cb (ca )]cb0 (ca )
cb00 (ca ) = − ,
{βu 0 [cb (ca )]}2
Y ≥ p0 c0 + p1 c1 + p2 c2 .
The Lagrangian for this problem is
First-order conditions:
u 0 (c0∗ ) − λ∗ p0 = 0
αu 0 (c1∗ ) − λ∗ p1 = 0
βu 0 (c2∗ ) − λ∗ p2 = 0
Consumer Optimization: Algebraic Analysis
u 0 (c0∗ ) − λ∗ p0 = 0
αu 0 (c1∗ ) − λ∗ p1 = 0
βu 0 (c2∗ ) − λ∗ p2 = 0
imply
u(c0 ) + βu(c1 ),
where β now has a more specific interpretation, as the
discount factor, a measure of patience.
Consumer Optimization: The Time Dimension
Next, let
Y0 = income today
Y1 = income next year
s = amount saved (or borrowed if negative) today
r = interest rate
Consumer Optimization: The Time Dimension
Y0 ≥ c0 + s.
Next year, the consumer simply spends his or her income,
including interest earnings if s is positive or net of interest
expenses if s is negative:
Y1 + (1 + r )s ≥ c1 .
Consumer Optimization: The Time Dimension
Divide both sides of next year’s budget constraint by 1 + r to
get
Y1 c1
+s ≥ .
1+r 1+r
Now combine this inequality with this year’s budget constraint
Y0 ≥ c0 + s.
to get
Y1 c1
Y0 + ≥ c0 + .
1+r 1+r
Consumer Optimization: The Time Dimension
u 0 (c0 )
= 1 + r.
βu 0 (c1 )
But let’s use calculus to derive the same result.
Consumer Optimization: The Time Dimension
The problem is to choose c0 and c1 to maximize utility
u(c0 ) + βu(c1 )
subject to the budget constraint
Y1 c1
Y0 + ≥ c0 + .
1+r 1+r
The Lagrangian is
Y1 c1
L = u(c0 ) + βu(c1 ) + λ Y0 + − c0 − .
1+r 1+r
Consumer Optimization: The Time Dimension
Y1 c1
L = u(c0 ) + βu(c1 ) + λ Y0 + − c0 − .
1+r 1+r
u 0 (c0∗ ) − λ∗ = 0
0 ∗ ∗ 1
βu (c1 ) − λ = 0.
1+r
lead directly to the graphical result
u 0 (c0∗ )
= 1 + r.
βu 0 (c1∗ )
Consumer Optimization: The Time Dimension
Saving −1 +(1+r)
Borrowing +1 −(1 + r )
E (X ) = π1 X1 + π2 X2 + . . . + πn Xn .
Consumer Optimization: The Risk Dimension
Suppose next that today, the consumer can buy and sell
contingent claims for both future states.
Y0 ≥ c0 + q G s G + q B s B ,
where s G and s B denote the number of each contingent claim
purchased or sold.
Y1G + s G ≥ c1G
in the good state and
Y1B + s B ≥ c1B
in the bad state.
Consumer Optimization: The Risk Dimension
Y0 ≥ c0 + q G s G + q B s B
Y1G + s G ≥ c1G
Y1B + s B ≥ c1B
Multiply both sides of the second equation by q G and both
sides of the third equation by q B , Then add them all up to get
the lifetime budget constraint
u 0 (c0∗ ) − λ∗ = 0
βπu 0 (c1G ∗ ) − λ∗ q G = 0
β(1 − π)u 0 (c1B∗ ) − λ∗ q B = 0
Consumer Optimization: The Risk Dimension
The first-order conditions
u 0 (c0∗ ) − λ∗ = 0
βπu 0 (c1G ∗ ) − λ∗ q G = 0
β(1 − π)u 0 (c1B∗ ) − λ∗ q B = 0
imply that marginal rates of substitution equal relative prices:
u 0 (c0∗ ) 1 u 0 (c0∗ ) 1
0 G∗
= G
and 0 B∗
= B
βπu (c1 ) q β(1 − π)u (c1 ) q
πu 0 (c1G ∗ ) qG
and = .
(1 − π)u 0 (c1B∗ ) qB
Consumer Optimization: The Risk Dimension
A “bond” is a safe asset that pays off one next year in the
good state and one next year in the bad state.
q stock = q G d G + q B d B .
Now let’s see how the stock and the bond can be used to
replicate the contingent claims.
Consumer Optimization: The Risk Dimension
sd G + b = 1
and in the bad state, the payoffs should be
sd B + b = 0
since the contingent claim pays off one in the good state and
zero in the bad state.
Consumer Optimization: The Risk Dimension
sd G + b = 1
sd B + b = 0 ⇒ b = −sd B
Substitute the second equation into the first to solve for
1 −d B
s= and b =
dG − dB dG − dB
Since s and b are of opposite sign, this requires going “long”
one asset and “short” the other.
Consumer Optimization: The Risk Dimension
1 −d B
s= and b =
dG − dB dG − dB
If we know the prices q stock and q bond of the stock and bond,
we can infer that in the absence of arbitrage, the claim for the
good state would have price
q stock − d B q bond
q G = q stock s + q bond b = .
dG − dB
Consumer Optimization: The Risk Dimension
sd G + b = 0
and in the bad state, the payoffs should be
sd B + b = 1
since the contingent claim pays off one in the bad state and
zero in the good state.
Consumer Optimization: The Risk Dimension
sd G + b = 0 ⇒ b = −sd G
sd B + b = 1
Substitute the first equation into the second to solve for
−1 dG
s= and b =
dG − dB dG − dB
Once again, this requires going long one asset and short the
other.
Consumer Optimization: The Risk Dimension
−1 dG
s= and b =
dG − dB dG − dB
Once again, if we know the prices q stock and q bond of the stock
and bond, we can infer that in the absence of arbitrage, the
claim for the bad state would have price
d G q bond − q stock
q B = q stock s + q bond b = .
dG − dB
Consumer Optimization: The Risk Dimension
Then we can use the contingent claims prices to infer the price
of any newly-introduced asset.
General Equilibrium
1 2
MRSa,b = MRSa,b . (PO)
Optimal Allocations
u(ca1 ) + αu(cb1 )
v (ca2 ) + βv (cb2 ).
Optimal Allocations
Consider a benevolent “social planner,” who divides Ya units
of good a and Yb units of good b up between the two
consumers, subject to the resource constraints
Ya ≥ ca1 + ca2
and
Yb ≥ cb1 + cb2 ,
so as to maximize a weighted average of their utilities:
θu 0 (ca1 ) − λa = 0
θαu 0 (cb1 ) − λb = 0
(1 − θ)v 0 (ca2 ) − λa = 0
(1 − θ)βv 0 (cb2 ) − λb = 0.
Optimal Allocations
The first-order conditions
θu 0 (ca1 ) − λa = 0
θαu 0 (cb1 ) − λb = 0
(1 − θ)v 0 (ca2 ) − λa = 0
(1 − θ)βv 0 (cb2 ) − λb = 0.
imply that
u 0 (ca1 ) λa v 0 (ca2 )
= = ,
αu 0 (cb1 ) λb βv 0 (cb2 )
a restatement of (PO) that must hold for any value of θ.
Equilibrium Allocations
u(ca1 ) + αu(cb1 )
u 0 (ca1 ) − λ1 pa = 0
αu 0 (cb1 ) − λ1 pb = 0
imply that
u 0 (ca1 ) pa
0 1
= . (CE-1)
αu (cb ) pb
Equilibrium Allocations
v (ca2 ) + βv (cb2 )
v 0 (ca2 ) − λ2 pa = 0
βv 0 (cb2 ) − λ2 pb = 0
imply that
v 0 (ca2 ) pa
0 2
= . (CE-2)
βv (cb ) pb
Equilibrium Allocations
Hence, in any competitive equilibrium
u 0 (ca1 ) pa
0 1
= . (CE-1)
αu (cb ) pb
and
v 0 (ca2 ) pa
0 2
= (CE-2)
βv (cb ) pb
must hold, so that
u 0 (ca1 ) pa v 0 (ca2 )
= = .
αu 0 (cb1 ) pb βv 0 (cb2 )
Equilibrium Allocations