Professional Documents
Culture Documents
Lawal G.S
University of Ibadan
gslawal@hotmail.com
May 6, 2021
1 Finite Differences
2 Difference Equation
Finite Differences:
Suppose the function y = f (x) has the values y0 , y1 , y2 , ..., yn for the
equally spaced x = x0 , x0 + h, x0 + 2h, ..., x0 + nh. If y = f (x) be any
function then the value of the independent variable 0 x 0 is called argument
and the corresponding value of dependent variable 0 y 0 is called entry.
Forward Differences:
The differences y1 − y0 , y2 − y1 , ..., yn − yn−1 , are called the first forward
differences of the function y = f (x) and we denote these differences by
∆y0 , ∆y1 , ..., ∆yn , respectively,where ∆ is called the descending or forward
difference operator.
In general, the First forward difference is defined by
∆yn = yn+1 − yn
The differences of the first forward difference are called the second
forward differences and denoted by ∆2 y0 , ∆2 y1 , etc.
Lawal G.S (Department of Mathematics) MAT 241 May 6, 2021 3 / 37
Finite Differences
Backward Differences:
The differences y1 − y0 , y2 − y1 , ..., yn − yn−1 , are called the first
backward differences of the function y = f (x) and we denote these
differences by ∇y1 , ∇y2 , ..., ∇yn , respectively,where ∇ is called the
ascending or Backward difference operator.
In general, the First Backward difference is defined by
∇yn = yn − yn−1
The differences of the first forward difference are called the second
forward differences and denoted by ∇2 y2 , ∇2 y3 , etc.
∇r yn = ∇r −1 yn − ∇r −1 yn−1
Central Differences:
The differences y1 − y0 = δy 1 , y2 − y1 = δy 3 , ..., yn − yn−1 = δyn+ 1 , are
2 2 2
called the Central differences of the function y = f (x) and δ is called
central difference operator.
Similarly,
δy 3 − δy 1 = δ 2 y1
2 2
δy 5 − δy 3 = δ 2 y2
2 2
and
δ 2 y2 − δ 2 y1 = δ 3 y 3
2
and so on.
Shift Operator, E
Shift Operator, E
The Shift(Increment) operator is defined as ;
Eyn = yn+1
E 2 yn = yn+2
.. ..
.=.
E r yn = yn+r
E −1 yn = yn−1
∆yn = yn+1 − yn
= Eyn − yn
∆yn = (E − 1)yn
∆=E −1
E =∆+1
∇yn = yn − yn−1 = yn − E −1 yn
∇yn = (1 − E n )yn
∇ = 1 − E −1
E −1 = 1 − ∇
∇E = ∆
E ∇ = ∇E = ∆
1 1
−
δ = (E 2 − E 2 )
Difference Equation
Definition 3.1.1
An equation which contains independent variable, dependent variable and
successive differences of the dependent variable is called the difference
equation.
Examples 3.1.2
1 yn+2 − 6yn+1 + 9yn = 0
2 (E 2 + 6E + 9)yn = 2n i.e yn+2 + 6yn+1 + 9yn = 2n
3 (∆2 + 3∆ + 2)yn = 1 or ∆2 yn + 3∆yn + 2yn = 1
or (yn+2 − 2yn+1 + yn ) + 3(yn+1 − yn ) + 2yn = 1
or yn+2 + yn+1 = 1
Example 3.1.4
The order of the difference equation yn+2 − 7yn = 5 is
(n + 2) − n
=2
1
Definition 3.1.5
Example i:
n+2−n
The order and degree of yn+2 + 4yn+1 + 4yn = 2n are = 2 and 1
1
respectively.
Example ii:
2 n+3−n
The order and degree of yn+3 + 3yn+2 + 3yn+1 + yn = 0 are =3
1
and 2 respectively.
Definition 3.1.6
Particular solution
A solution which can be obtained from the general solution by assigning
particular values is called particular solution.
∆2 yn = yn+2 − 2yn+1 + yn
Solution:
yn = A2n + B(−2)n =⇒ yn − A2n − B(−2)n = 0
yn+2 − 4yn = 0
Definitions :
Continuation...
Equation 3.1.8 is known as the auxiliary equation. This equation has
k-roots m1 , m2 , m3 , ..., mk .Some cases may arise;
Case I: When the roots are real and distinct
If m1 , m2 , m3 , ..., mk are real and distinct roots of auxiliary equation
(3.1.8), then the solution is
Continuation...
Continuation...
yn = c1 (α + iβ)n + c2 (α − iβ)n
Example I:
Solve the difference equation yn+2 − 2yn+1 − 8yn = 0
Solution:
This equation can also be written as
(E 2 − 2E − 8)yn = 0
Let yn = mn , then
m2 − 2m − 8 = 0 =⇒ (m − 4)(m + 2) = 0
m = 4 and m = 2. Hence
yn = c1 (4)n + c2 (−2)n
Example II:
(E 3 + E 2 − 8E − 12)yn = 0
m3 + m2 − 8m − 12 = 0
yn = (c1 + c2 n)(−2)n + c3 3n
Example III:
Solve the difference equation yn+2 + 16yn = 0
Solution:
The given difference equation can be written as
(E 2 + 16)yn = 0
m2 + 16 = 0
Continuation...
π n π n
n π π
= 4 c1 cos + i sin + c2 cos − i sin
2 2 2 2
nπ nπ nπ nπ
= 4n c1 cos + i sin + c2 cos − i sin
2 2 2 2
n nπ nπ
= 4 (c1 + c2 ) cos + i(c1 − c2 ) sin
2 2
n nπ nπ
= 4 A cos + B sin
2 2
or
φ(E )yn = R(n)
where a0 , a1 , ..., an are all constants is known as non-homogeneous linear
difference equation with constant coefficient.
The general solution of (3.1.9) consist of two parts, the complementary
function and the particular integral.
The complementary function is the general solution of the homogeneous
1
equation of (3.1.9) and the Particular Integral = R(n)
φ(E )
Case I:R(n) = an
1 n 1 n
P.I = a = a
φ(E ) φ(a)
provided φ(a) 6= 0
If φ(a) = 0, then for the equation
Continuation...
When k = 2,
1 n n(n − 1)an−2
P.I = a =
(E − a)2 2!
1 1 1
= e ian − e −ian
2i ia
φ(e ) φ(e −ia )
provided φ(e ia ) 6= 0 and φ(e −ia ) 6= 0
Lawal G.S (Department of Mathematics) MAT 241 May 6, 2021 29 / 37
Difference Equation
Example I:
Solve the difference equation yn+2 − 4yn+1 + 3yn = 5.4n
This equation can also be written as
(E 2 − 4E + 3)yn = 5.4n
Solving the homogeneous equation yn+2 − 4yn+1 + 3yn = 0 , we obtain a
complementary solution
yn = c1 + c2 (3)n
To determine the Particular integral P.I, we have
1 1 5.4n
P.I = 5.4n = 5. 2 4n =
φ(E ) 4 − 4(4) + 3 3
Example II:
(E 2 − 3E + 2)yn = 6.2n
Continuation...
1 1 1
= 6. .2n = 6. .2n = 6. .2n
(E − 1)(E − 2) (2 − 1)(E − 2) (E − 2)
= 6.n2n−1 = 3n2n
Hence the general solution is
yn = c1 + c2 (2)n + 3n2n
Example III:
Solve the difference equation yn+2 − 6yn+1 + 8yn = 3n2 + 2
The given difference equation can be written as
(E 2 − 6E + 8)yn = 3n2 + 2
yn = c1 2n + c2 4n
1
= (3n2 + 2)
1 + 2∆ + ∆2 − 6 − 6∆ + 8
Lawal G.S (Department of Mathematics) MAT 241 May 6, 2021 34 / 37
Difference Equation
Continuation...
1 1 1
= (3n2 + 2) = 2
2 (3n + 2)
∆2 − 4∆ + 3 3 (1 − 4∆−∆
)
3
−1
4∆ − ∆2
1
= 1− (3n2 + 2)
3 3
4∆ − ∆2 (4∆ − ∆2 )2
1
= 1+ + + ... (3n2 + 2)
3 3 9
8 44
= n2 + n +
3 9
Hence the general solution is
8 44
y n = c 1 2n + c 2 4n + n 2 + n +
3 9
Tutorial Questions