Spring Semester ’12-’13 Akila Weerapana
Lecture 6: Solving Linear Differential Equations
I. INTRODUCTION
• In a previous lecture, we discussed the general principle of the “dynamic” nature of most macroeconomic variables. with values that change over time. We then looked at techniques of solving difference equations that related discretely changing macroeconomic variables to their own past or future values.
• This lecture will cover the basic theory needed to solve macroeconomic models with endoge- nous variables that change continuously over time. We will begin by deriving continuous time models as a limiting case of discrete time models, establish why some key mathematical functions like ln and e play a key role in continuous time and discuss the techniques needed to solve differential equations.
• The solution technique and the concepts of stability and steady state are going to be very similar to what we discussed for difference equations in the previous class.
• Being able to handle basic linear difference and differential equations is also the first step in our journey towards being able to solve dynamic optimization problems.
III. FROM DISCRETE TO CONTINUOUS TIME
• Consider a variable x that changes in value in discrete periods. For simplicity, assume that x has a per-period growth rate of r and changes only once during a period.
• The value of x after 1 period will be x t+1 = x t (1 + r) and the value of x after 2 periods will be x t+2 = x t+1 (1 + r) = x t (1 + r) 2 . Extending this, we can show that after n periods, the future (or compounded) value of x can be expressed as x t+n = x t (1 + r) n .
• Conversely, if we knew the value of x at a future time t + n and a per-period growth rate of r, we can calculate the initial (or discounted) value of that variable at time t as x t = (1+r) x
t+nn.
• Now let’s make things a little more complicated by supposing that x was still growing at the rate of r a year but the compounding was happening k times a year. Ex: a bank account that pays interest monthly at an interest rate of 5% a year has r=0.05 and k=12.
• Now, the value of x after 1 period will be x t+1 = x t (1 + r k ) k . Generalizing, we can show that after n periods, the future (or compounded) value of x can be expressed as x t+n = x t 1 + r k kn
• Under continuous compounding, a variable x is changing in value all the time.In other words unlike your bank account on which interest may be calculated annually or quarterly or monthly or daily, many economic variables are changing at every instant in time.
• We can think of continuous compounding as a special case of discrete compounding, where k approaches infinity. So the value, t periods from now, of a variable that is being compounded continuously at a rate r can be expressed as
x t+n = lim
k→∞ x t
1 + r
k
kn
• We can do a little bit of algebra and re-write this as
x t+n = lim
k r
→∞
x t
1 + 1
k r
!
kr
rn
= x t
lim
k r