Uploaded by jbetah69

Discrete first order difference equations1

advertisement
Discrete time: First order difference equations
Introduction
When dealing with discrete time, the value of variable y will change only when the
variable changes from one integer to the next.
The pattern of change is now represented by difference quotient
counterpart of
𝑑𝑦
𝑑𝑑
Δ𝑦
Δ𝑑
which is the discrete
. t can only now take on integer values.
Therefore, comparing the value of y in two consecutive periods, we must have βˆ†t = 1.
This implies that the difference quotient
Δ𝑦
Δ𝑑
can be simplified to βˆ†y. This is called the
first difference of y.
βˆ† means difference
In our case, we define the first difference as follows.
βˆ†yt = yt+ 1 - yt
yt – means value of y in tth period
yt +1 – means value y in t+1 period.
With this then we can describe the pattern of change of y by an equation such as,
βˆ†yt = 2 …………………. (i)
OR
βˆ†yt = -0.1yt ……………... (ii)
Such equations are known as difference equations. We can rewrite equation (i) and (ii)
as follows
yt +1 - yt = 2 ………………(iii)
OR
yt+1 = yt + 2
yt+1 – yt = -0.1yt ---------------------(iv)
OR
yt+1 – 0.9yt = 0
1
yt+1 = 0.9yt
Difference equations can be either linear or nonlinear, homogenous or nonhomogeneous
and of the first or second (or higher) orders.
Equations (i) for instance can be classified as linear for there is no y term raised to the
second or higher power. Nonhomogeneous because the right-hand side is non zero. The
first order because there exists only a first difference βˆ†yt.
Equations (ii) can be characterized as having constant coefficients and constant term.
We only consider difference equations with constant terms.
Solving a first order difference equation.
To solve a first order difference equation involves finding a time path yt. We can solve
the difference equation using iterative method. This method can only be understood by
working out examples.
Example 1
Find the solution to difference equation
yt+1 – yt = 2
(assuming yo initial value) = 15
It is more convenient to use the alternative
𝑦𝑑+1 = 𝑦𝑑 + 2
𝑦1 = 𝑦0 + 2
𝑦2 = 𝑦1 + 2 = (𝑦0 + 2) + 2 = 𝑦0 + 2(2)
𝑦3 = 𝑦2 + 2 = (𝑦0 + 2(2)) + 2 = 𝑦0 + 3(2)
In general
𝑦𝑑 = 𝑦0 + 𝑑(2) = 15 + 2𝑑
This is the solution as it can be used to find the value of yt for any time period.
Solve the difference equation
βˆ†π‘¦π‘‘ = −0.1𝑦𝑑 , with the initial value of y being yo
2
𝑦𝑑+1 − 𝑦𝑑 = −0.1𝑦𝑑
𝑦𝑑+1 − 0.9𝑦𝑑 = 0
𝑦𝑑+1 = 0.9𝑦𝑑
𝑦1 = 0.9𝑦0
𝑦2 = 0.9𝑦1 = 0.9(0.9)𝑦0 = (0.9)2 𝑦0
𝑦3 = 0.9𝑦2 = 0.9(0.9)2 𝑦0 = (0.9)3 𝑦0
In general the solution can be written as
𝑦𝑑 = (0.9)𝑑 𝑦0
Solve the homogeneous difference equation
𝑀𝑦𝑑+1 − 𝑛𝑦𝑑 = 0
𝑀𝑦𝑑+1 = 𝑛𝑦𝑑
𝑛
𝑦𝑑+1 = π‘š 𝑦𝑑
The solution is
𝑛
𝑦𝑑 = (π‘š)𝑑 𝑦0
𝑛
It is through ( )𝑑 that various values of t will lead to their corresponding values of y. It
π‘š
therefore corresponds to 𝑒 −π‘Žπ‘‘ in the solution of the differential equations. If we write it
more generally as 𝑏𝑑 (b for base) and attach the more general multiplicative constant A
(instead of yo) it gives the general solution for the homogenous difference equation.
𝑦𝑑 = 𝐴𝑏𝑑
This expression 𝐴𝑏𝑑 plays the same important role in difference equations as the
expression 𝐴𝑒 −π‘Žπ‘‘ in the differential equation.
The general method
Suppose that we are seeking the solution to the first difference equation
𝑦𝑑+1 + π‘Žπ‘¦π‘‘ = 𝑐
3
Where a and c are constants. The general solution will consist of the sum of two
components.
1. A particular integral yp – which is any solution of the complete non homogeneous
equation.
2. A complementary function yc – which is the general solution of the reduced
equation
𝑦𝑑+1 + π‘Žπ‘¦π‘‘ = 0
yp represents intertemporal equilibrium level of y.
yc represents deviations for the time path from that equilibrium.
𝑦𝑐 + 𝑦𝑝 constitute the general solution due to the presence of the arbitrary constants.
First, find complementary function
𝑦𝑑 = 𝐴𝑏𝑑
𝑦𝑑+1 = 𝐴𝑏𝑑+1
So that
𝑦𝑑+1 + π‘Žπ‘¦π‘‘ = 0
𝐴𝑏 𝑑+1 + π‘Žπ΄π‘π‘‘ = 0
So that
𝐴𝑏𝑑 𝑏1 + π‘Žπ΄π‘ 𝑑 = 0
(𝐴𝑏1 + π΄π‘Ž)𝑏𝑑 = 0
Divide throughout by 𝑏𝑑
𝐴𝑏 + π΄π‘Ž = 0
𝑏+π‘Ž =0
hence
𝑏 = −π‘Ž
Therefore set 𝑏 = −π‘Ž
𝑦𝑐 = 𝐴𝑏𝑑 = 𝐴(−π‘Ž)𝑑
The particular integral
Assume that 𝑦𝑑 = π‘˜ (constant)
𝑦𝑑+1 = π‘˜
4
π‘˜ + π‘Žπ‘˜ = 𝑐
𝑐
→
π‘˜ = 1+π‘Ž
Therefore, the particular integral can be written as
𝑐
𝑦𝑝 = π‘˜ = 1+π‘Ž
(π‘Ž ≠ −1)
If it happens that π‘Ž = −1, then 𝑦𝑝 is not defined and therefore another solution must be
sought. In this case let,
𝑦𝑑 = π‘˜π‘‘
𝑦𝑑+1 = π‘˜(𝑑 + 1)
π‘˜ (𝑑 + 1) + π‘Žπ‘˜π‘‘ = 𝑐
π‘˜=
𝑐
because a = -1
𝑑+1+π‘Žπ‘‘
𝑦𝑝 = π‘˜π‘‘ = 𝑐𝑑 is a non-constant function of t. it represents the moving equilibrium.
Adding 𝑦𝑐 π‘Žπ‘›π‘‘ 𝑦𝑝 gives the general solution
𝑐
𝑦𝑑 = 𝐴(−π‘Ž)𝑑 + 1+π‘Ž
(general solution a ≠ -1)
𝑦𝑑 = 𝐴(−π‘Ž)𝑑 + 𝑐𝑑 = 𝐴 + 𝑐𝑑 (general solution a = -1)
Corresponding definite solutions
Let 𝑑 = 0
𝑐
𝑦0 = 𝐴 + 1+π‘Ž
𝑦𝑑 = [𝑦0 −
𝑐
1+π‘Ž
→
] (−π‘Ž)𝑑 +
𝑦𝑑 = 𝐴 + 𝑐𝑑
𝑦𝑑 = 𝑦0 + 𝑐𝑑
→
𝑐
𝐴 = 𝑦0 − 1+π‘Ž
𝑐
1+π‘Ž
(𝑑𝑒𝑓𝑖𝑛𝑖𝑑𝑒 π‘ π‘œπ‘™π‘’π‘‘π‘–π‘œπ‘› π‘Ž ≠ −1)
𝑦0 = 𝐴
(𝑑𝑒𝑓𝑖𝑛𝑖𝑑𝑒 π‘ π‘œπ‘™π‘’π‘‘π‘–π‘œπ‘› π‘Ž = −1)
Example
Solve 𝑦𝑑+1 − 5𝑦𝑑 = 1
7
𝑦0 = 4
5
𝑦𝑐 = 𝐴(−π‘Ž)𝑑 = 𝐴(− − 5)𝑑 = 𝐴(5)𝑑
𝑐
1
1
𝑦𝑝 = 1+π‘Ž = 1−5 = − 4
1
𝑦𝑑 = 𝑦𝑐 + 𝑦𝑝 = 𝐴(5)𝑑 − 4
(π‘”π‘’π‘›π‘’π‘Ÿπ‘Žπ‘™ π‘ π‘œπ‘™π‘’π‘‘π‘–π‘œπ‘›)
When t = 0
1
𝑦0 = 𝐴 − 4
1
→
𝐴 = 𝑦0 + 4
1
1
4
4
𝑦𝑑 = (𝑦0 + ) (5)𝑑 −
7
1
1
= (4 + 4) (5)𝑑 − 4
1
= 2(5)𝑑 − 4
(𝑑𝑒𝑓𝑖𝑛𝑖𝑑𝑒 π‘ π‘œπ‘™π‘’π‘‘π‘–π‘œπ‘›)
The dynamic stability of equilibrium
In the continuous time case, the dynamic stability of equilibrium depends on the 𝐴𝑒 −π‘Žπ‘‘
term in the complementary function. In period analysis, it depends on 𝐴𝑏𝑑 the
complementary function. However, its interpretation is more complicated than in the
case of 𝐴𝑒 −π‘Žπ‘‘ .
Significance of b
Whether the equilibrium is dynamically stable or not is a question of whether the
complementary function will tend to zero as t → ∞. So we must analyze the path of 𝐴𝑏𝑑
as t increased indefinitely. The value of b is important in this regard. We first consider
its significance alone disregarding the coefficient A (by assuming its equal to 1). We
can divide the range of possible values of b (-∞, +∞) into seven distinct regions
1
2
3
4
5
6
7
b>1
b=1
0 < b< 1
b=0
-1< b< 0
b = -1
b < -1
|b|>1
|b|=1
|b|<1
|b|=0
|b|<1
|b| = 1
|b| > 1
𝑑
(2)
(1)𝑑
(1/2)𝑑
(−1/2)𝑑
(−1)𝑑
(−2)𝑑
t=0
1
1
1
0
1
1
1
t=1
2
1
1/2
0
- 1/2
-1
-2
6
t=2
4
1
1/4
0
1/4
1
4
t=3
8
1
1/8
0
- 1/8
-1
-8
In each region, bt generates a different type of time path.
i.
ii.
iii.
iv.
v.
vi.
vii.
When b > 1, bt must increase, t increases to ∞
When b = 1, bt will remain at unity for all values of t.
(0 < b< 1), bt represent a positive fraction raised to integer power. b t decreases
as t increases but remains positive.
When b = 0, bt remains at zero for all values of t (not of interest since b≠0)
When (-1 < b< 0), bt alternates between positive and negative values from period
to period. The alternating path tend closer and closer to the horizontal axis.
When (b = -1), bt alternate between positive and negative one.
When (b < -1), bt alternate between positive and negative values and deviates
further and further from the horizontal axis
In summary, the time path of bt (b ≠ 0) will be
Non oscillatory
if
b>0
Oscillatory
if
b<0
Divergent
if
|b| > 1
Convergent
if
|b| < 1
The convergence of the expression bt depends on the absolute value b while that of the
continuous case depends on the sign of a in 𝑒 −π‘Žπ‘‘
The role of A
First the magnitude of A can ‘blow up’ or ‘pare down’ the value of bt. It has a scale effect
without changing the basic configuration of the time path. The sign of A does materially
affect the change of the path because if multiplied by bt it will lead to change of bt if A
is negative. Thus, a negative A produces a mirror effect as well as a scale effect.
Convergence of equilibrium
Based on the above discussion, we can interpret the Abt as the complementary function.
Abt represents the deviations from some intertemporal equilibrium level.
In summary,
𝑦𝑑 = 𝐴𝑏𝑑 + 𝑦𝑝 is convergent iff
|b| < 1
7
Economic applications
Cobweb model
Illustrates first order difference equation application in economic analysis.
In this model, Qs is a function of price of the preceding time period and not current price.
The model considers a situation in which a producer’s output decision is made one period
in advance of the actual sale – such as in agriculture production – where planting must
precede by appropriate length of time to the harvesting and sale of the output. Assume
the output decision in period t is based on the prevailing price Pt. Since the output is not
available for sale until period (t+1). Pt determines not Qst but Qst+1. So, we have a lagged
supply function.
𝑄𝑠,𝑑+1 = 𝑆(𝑝𝑑 )
𝑄𝑠𝑑 = 𝑆(𝑃𝑑−1 )
or
When this supply function interacts with a demand function of the form
𝑄𝑑𝑑 = 𝐷(𝑃𝑑 ),
an interesting dynamic price pattern will result. Let us assume a linear version of the (lagged)
supply and (unlagged) demand functions and assume that in each time period, the market price
is always set at a level which clears the market. The market model is given as
𝑄𝑑𝑑 = 𝑄𝑠𝑑
𝑄𝑑𝑑 = 𝛼 − 𝛽𝑃𝑑
( 𝛼, 𝛽 > 0)
𝑄𝑠𝑑 = −𝛾 + 𝛿𝑃𝑑−1
(𝛾, 𝛿 > 0)
𝛼 − 𝛽𝑃𝑑 = −𝛾 + 𝛿𝑃𝑑−1
𝛽𝑃𝑑 + 𝛿𝑃𝑑−1 = 𝛼 + 𝛾
To solve the difference equation, normalize first and shift the time subscript ahead by one
period.
𝛿
𝑃𝑑 + 𝛽 𝑃𝑑−1 =
𝛼+𝛾
𝛽
𝛿
𝛼+𝛾
𝛽
𝛽
𝑃𝑑+1 + 𝑃𝑑 =
𝑦𝑑+1 + π‘Žπ‘¦π‘‘ = 𝑐
which is similar to the equation
𝛿
𝑦 = 𝑝, π‘Ž = 𝛽 , 𝑐 =
8
𝛼+𝛾
𝛽
Since 𝛿 π‘Žπ‘›π‘‘ 𝛽 are both positive → π‘Ž ≠ −1, therefore we apply the following solution
𝑐
𝑦𝑑 = 𝐴(−π‘Ž)𝑑 + 1+π‘Ž
π‘”π‘’π‘›π‘’π‘Ÿπ‘Žπ‘™ π‘ π‘œπ‘™π‘’π‘‘π‘–π‘œπ‘›
𝛼+𝛾
𝛿 𝑑
𝛽
𝑦𝑑 = 𝐴(− ) +
𝛽
1+π‘Ž
𝛼+𝛾
𝛿 0
𝛽
𝑦0 = 𝐴(− ) +
𝛽
1+π‘Ž
𝑦0 = 𝐴 +
𝛼+𝛾
𝛽+𝛿
𝛿
𝛼+𝛾
𝑦𝑑 = 𝐴(− 𝛽)𝑑 + 𝛽+𝛿
𝑐
the general solution
𝑐
𝑦𝑑 = (𝑦0 − 1+π‘Ž) (−π‘Ž)𝑑 + 1+π‘Ž
𝑐
1+π‘Ž
=
𝛼+𝛾
𝛽
𝛿
1+
𝛽
=
𝛼+𝛾
𝛽
×
𝛽
𝛽+𝛿
𝛿 𝑑
𝛼+𝛾
𝛼+𝛾
= 𝛽+𝛿
𝛼+𝛾
𝑃𝑑 = (𝑃0 − 𝛽+𝛿 ) (− 𝛽) + 𝛽+𝛿
𝑑𝑒𝑓𝑖𝑛𝑖𝑑𝑒 π‘ π‘œπ‘™π‘’π‘‘π‘–π‘œπ‘›
The cobwebs
Three points regarding the time path
𝛼+𝛾
1. The expression 𝛽+𝛿 which constitutes the particular integral of the difference equation can
be taken as the intertemporal equilibrium price of the model.
𝛼+𝛾
𝑃̅ = 𝛽+𝛿 it is a stationary equilibrium.
If we substitute
𝛼+𝛾
𝛽+𝛿
with 𝑃̅ in the equation, we have,
𝑑
𝛿
𝑃𝑑 = (π‘ƒπ‘œ − 𝑃̅) (− 𝛽) + 𝑃̅
9
2. Significance of the expression (𝑃0 − 𝑃̅) – corresponds to A in term 𝐴𝑏𝑑 . It’s negative sign
will have a mirror effect and its magnitude will have scale effects.
3. The expression
−𝛿
𝛽
which corresponds to b-component of 𝐴𝑏𝑑 . 𝛽, 𝛿 > 0. We can deduce an
oscillatory time path.
oscillatory time paths
Explosive
Uniform
Damped
It is this that gives rise to the cobweb phenomena. Three possible
𝛿> 𝛽
𝛿=𝛽
𝛿< 𝛽
if
if
if
An example:
Find the time path of price given the following
Qdt =10 – 2Pt
Qst = -4 + 3Pt-1
Qdt= Qst
10 – 2Pt = -4 + 3Pt-1
10 + 4 = 2Pt + 3Pt-1
2Pt + 3Pt-1 = 14
Pt + (3/2)Pt-1 = 7
Pt+1 + (3/2)Pt = 7, the equation is equivalent to
3
𝑦𝑑+1 + π‘Žπ‘¦π‘‘ = 𝑐
𝑦 = 𝑝, π‘Ž = 2 , 𝑐 = 7
3
7
𝑃𝑑 = 𝐴(− 2)𝑑 + 1+3/2
3
𝑃𝑑 = 𝐴(− 2)𝑑 +
3
14
(𝑃0 −
14
5
π‘”π‘’π‘›π‘’π‘Ÿπ‘Žπ‘™ π‘ π‘œπ‘™π‘’π‘‘π‘–π‘œπ‘›
5
𝑃0 = 𝐴(− 2)0 +
𝑃0 = 𝐴 +
π‘”π‘’π‘›π‘’π‘Ÿπ‘Žπ‘™ π‘ π‘œπ‘™π‘’π‘‘π‘–π‘œπ‘›
14
5
14
5
)=𝐴
𝑃𝑑 = (𝑃0 −
14
5
3
)(− 2)𝑑 +
14
5
𝑑𝑒𝑓𝑖𝑛𝑖𝑑𝑒 π‘ π‘œπ‘™π‘’π‘‘π‘–π‘œπ‘›
10
11
Download