Lecture 9 Introduction To Difference Equations
Lecture 9 Introduction To Difference Equations
Equations
Economic Dynamics
yt yt yt 1
is a difference equation
7. yt 1 2 log( yt ) 3
8. yt 1 2 yt 3t 2
9. yt 3 2 yt 2 3 yt 1 yt 10
1.
3. yt 2 yt 1 3 log( yt 2 ) 3t
3. yt 3 2 yt 2 3 yt 1 yt 10
Difference
equations
6,7and 8 are
linear while
others are nonlinear
2. yt 1 3 yt 3
3. yt 2 3 yt 1 3 yt 4
4. yt 2 yt 1 3 yt 2 1
5. yt 1 3 yt 2t
6. yt 1 2 yt 3
2
7. yt 1 2 log( yt ) 3
8. yt 1 2 yt 3t 2
9. yt 3 2 yt 2 3 yt 1 yt 10
t 1
t 2
t 1
t 1
t 1
t 2
t 1
t 1
t 1
t 3
t 2
t 1
yt 1 2 yt , t 1,2,3,...
The solution of a difference equation is not
unique as a result y C 2t
t
Exercise
1. yt 1 yt 0
2. yt 2 yt 1 2 yt 1
3. yt 2 y t 1 t
4. yt 2 2 yt
2
5. yt 1 3 yt 2t
6. yt 1 2 yt 3
2
7. yt 1 2 log( yt ) 3
8. yt 1 2 yt 3t 2
9. yt 3 2 yt 2 3 yt 1 yt 10
yt 1 ayt b, t 0,1,2,...
where a & b are known constants
yt 1 ayt b, t 0,1,2,...
where a & b are known constants and given y 0
is initial value first order autonomous
difference equation
yt 1 ayt b, t 0,1,2,...
where a & b are known constants and given y 0
solution is given by
t
1 at
a y0 b
yt
1 a
y0 bt
if a 1, t 0,1,2,...
if a 1
yt 1 ayt b, t 0,1,2,...
where a & b are known constants
solution is given by
t
1 at
Ca b
yt
1 a
C bt
if a 1, t 0,1,2,...
if a 1
a. yt 1 yt 2 , y0 2
b. yt 1 3 yt 1 , y0 1
c. yt 1 0.5 yt 50 , y0 50
d . 3 yt 2 yt 1 1 , y0 2
yt 1 ayt b, t 0,1,2,...
where a & b are known constants
The steady state solution is given by
b
y
,a 1
1 a
Exercises
a. yt 1 yt y 2 , y0 2
t
b. yt 1 3 yt 1 , y0 1
c. yt 1 0.5 yt 50 , y0 50
d . 3 yt 2 yt 1 1 , y0 2
Application
Introduction to Differential
Equations
5/25/2015
26
1.
dy
2x 3
dx
2.
d2y
dy
3
ay 0
2
dx
dx
3.
d 3 y dy
6y 3
3
dx
dx
27
2u 2u
2 0
2
x
y
2.
4u 4u
4 0
4
x
t
3.
2 u 2 u u
2
2
t
x
t
28
ORDER
dy
2x 3
dx
d2y
dy
3 9y 0
2
dx
dx
4
d 3 y dy
6y 3
3
dx
dx
5/25/2015
29
d2y
dy
3 ay 0
2
dx
dx
Degree
1
d 3 y dy
6y 3
3
dx
dx
3
d 2 y dy
2 3 0
dx dx
5/25/2015
30
d2y
dy
3
9 y 0.
1.
2
dx
dx
is linear.
Example: 2.
d 3 y dy
6y 3
3
dx
dx
5/25/2015
31
Example: 3.
d2y
dy
3
x
x
dx
dx 2
2
Example: 4.
dy
sin y
dx
is non - linear because
5/25/2015
y3
sin y y
3!
is non linear
32
33
5/25/2015
34
Examples
1. y 5 y t
2. y 5 y 3
3. y t y cos t
4. y y 0
2
Differential
equations 2 and 4
are autonomous
and 1 and 3 are
non-autonomous
differential
equations
dy
Notations: y dt
5/25/2015
35
dy
a1 x a 0 x y g x
dx
2. Differential form:
1 xdy ydx 0
.
3. General form:
dy
f ( x, y )
dx
5/25/2015
or
dy
f ( x , y , ) 0.
dx
36
5/25/2015
37
5/25/2015
38
dny
d n 1 y
d2y
dy
a n n a n 1 n 1 .... a 2 2 a1
a0 y g x
dx
dx
dx
dx
2. nth order linear differential equation with variable coefficients
dy
d n 1 y
d2y
dy
a n x a n 1 x
......
a
x
a
x
a0 x y g x
2
1
n
2
dx
dx
dx
dx
5/25/2015
39
Autonomous Equations
Definition: The general form of the linear
autonomous first order differential
equation is
y ay b
where
5/25/2015
a&b
are constants
40
Examples
Each of the following are autonomous first
order linear differential equations
1. y 5 y 2
2. y 5 y 3
3. y 0.3 y 0
4. y y 0
5/25/2015
41
Solution Methods
For different types of differential equations
there are different methods of solving but
generally the solution of a differential
equation is a function that satisfies the
differential equation
2t
For example for y 2 y 0 , y e is a
solution
5/25/2015
42
Given y ay b
where a & b are
constants
5/25/2015
43
Examples
Equations 3 & 4 are homogeneous while 1
and 2 are non-homogeneous
1. y 5 y 2
2. y 5 y 3
3 . y 0 .3 y 0
4. y y 0
5/25/2015
44
Given y ay b
where a & b
are constants
Solving it involves two steps
1. Finding the solution of the complementary
homogeneous equation y ay 0, yh
45
yh Ce
5/25/2015
at
46
Exercise
Solve each of the following differential
equations
1. y 5 y 0
2. y 5 y 0
3. y 0.3 y 0
4. y y 0
5/25/2015
47
Particular Solution
A steady state solution of a differential
equation is the solution
of the differential
dy
equation where y dt 0 hence the
steady state solution of the y ay b where
a & b are constants is y b , this steady
a
state solution is particular solution of y ay b
Hence the general solution of y ay b is
y y p yh Ce
5/25/2015
at
48
Examples
Find the general solution of each of the
following differential equations
1. y 0.5 y 2
2. y 5 y 3
3. y 0.3 y 2
4. y y 0
5/25/2015
49
Given y ay b
where a & b
are
constants and if initial value y (0) y0 is
given the problem is called initial value
problem and the general solution will give
rise to the solution
b at b
y y p y h y 0 e
a
a
5/25/2015
50
a. y y 0 and y0 1
b. y 3 y 12 and y0 10
c. 2 y 1 / 2 y 12 and y0 10
d . y 5 and y0 1
5/25/2015
51
e. y 6 y 6 and y0 3
f . 10 y 5 y and y0 1
g . 4 y 4 y 8 and y0 10
h. y 7 and y0 2
i. y 2 y 1 and y0 5
5/25/2015
a. y 2 y 4 and y0 3
Mathematics for Economists
52
Examples
Solve each of the following IVP
1. y 0.5 y 2, y0 10
2. y 5 y 3, y0 2
3. y 0.3 y 2, y0 3
1
4. y y 0, y0 1 / 4
5
5/25/2015
53
Given y ay b
where a & b
are
constants the solution is converges to the
steady state solution y b no matter what
the initial value if and onlya if the coefficient
of the differential equation a 0
5/25/2015
54
Example
Discuss the convergence of the solution of
each of the following ODEs
1. y 0.5 y 2, y0 10
2. y 5 y 3, y0 2
3. y 0.3 y 2, y0 3
5/25/2015
1
4. y y 0, y0 1 / 4
5
Mathematics
for Economists
55