Diff Eq ND Z Tansform
Diff Eq ND Z Tansform
“Words differently arranged have a different meaning and meanings differently arranged
have a different effect.”
Blaise Pascal (1623-1662)
Chapter 6
There are many concepts in science and engineering that can be approached
from either a discrete or a continuous viewpoint. For example, consider how you
might record the temperature outside at some speciÞc place as a function of time.
One technique would be to purchase a chart recorder capable of measuring and
plotting the temperature as a function of time. This would give a continuous
record of the temperature over some interval of time. Another way to record
the temperature would be to measure the temperature, at the speciÞed place,
at discrete time intervals. The contrast between these two methods is that one
method measures temperature continuously while the other method measures
the temperature in a discrete fashion.
In any laboratory experiment, one must make a decision as to how data from
the experiment is to be collected. Whether discrete measurements or continuous
measurements are recorded depends upon many factors as well as the type of
experiment being considered. The techniques used to analyze the data collected
depends upon whether the data is continuous or discrete.
The investment of money at compound interest is an example of a physical
problem which requires analysis of discrete values. Say, $1,000.00 is to be in-
vested at R percent interest compounded quarterly. How do we determine the
discrete values representing the amount of money available at the end of each
compound period? To solve this problem, we let P0 denote the amount of money
R
initially invested, R the percent interest yearly with 14 100 = i the quarterly inter-
est and Pn the principal due at the end of the nth compound period. We can
198
then set up the equations for the determination of Pn . We have
P0 = Initial amount invested
P1 = P0 + P0 i = P0 (1 + i)
P2 = P1 + P1 i = P1 (1 + i) = P0 (1 + i)2
P3 = P2 + P2 i = P2 (1 + i) = P0 (1 + i)3
..
.
Pn = Pn−1 + Pn−1 i = Pn−1 (1 + i) = P0 (1 + i)n
R
For i = 14 100 and P0 = 1, 000.00, Þgure 6-1 illustrates a graph of Pn vs time, for
a 30 year period, where one year represents four payment periods. In this Þgure
values of R for 4%, 5.5%, 7%, 8.5% and 10% were used in the above calculations.
Figure 6-1. Return from $1,000 investment compounded quarterly over 30 year period.
In this chapter we investigate some techniques that can be used in the analysis
of discrete phenomena like the compound interest problem just considered.
The study of calculus has demonstrated that derivatives are the mathemat-
ical quantities that represent continuous change. We Þnd that if we replace
derivatives (continuous change) by differences (discrete change), then linear or-
dinary differential equations become linear difference equations. We shall inves-
tigate these difference equations and Þnd ways to construct solutions to such
equations.
In the following discussions, note that the various techniques developed for
analyzing discrete systems are very similar to many of the methods used for
studying continuous systems.
199
Differences and Difference Equations
Consider the function y = f (x) illustrated in the Þgure 6-1 which is evaluated
at the equally spaced x−values of x0 , x1 , x2 , . . . , xn , xn+1 , . . . where xn+1 = xn + h for
n = 0, 1, 2, . . . , where h is the distance between two consecutive points.
which illustrates that the difference operator ∆ can be expressed in terms of the
stepping operator E and
∆ = E − 1. (6.4)
respectively.
201
There are many instances where variable quantities are assigned values at
uniformly spaced time intervals. We shall be interested in studying these discrete
variable quantities by using differences and difference equations. An equation
which relates values of a function y and one or more of its differences is called
a difference equation. In dealing with difference equations one assume that the
function y evaluated at xn and its differences ∆yn , ∆2 yn , . . ., are all deÞned for
every number x in some set of values {x0 , x0 +h, x0 +2h, . . . , x0 +nh, . . .}. A difference
equation is called linear and of order m if it can be written in the form
L(yn ) = a0 (n)yn+m + a1 (n)yn+m−1 + · · · + am−1 (n)yn+1 + am (n)yn = g(n), (6.5)
where the coefficients ai (n), i = 0, 1, 2, . . . , m, and the right-hand side g(n) are
known functions of n. If g(n) #= 0, the difference equation is said to be nonhomo-
geneous and if g(n) = 0, the difference equation is called homogeneous.
The difference equation (6.5) can be written in the operator form
L(yn ) = [a0 (n)E m + a1 (n)E m−1 + · · · + am−1 (n)E + am (n)]yn = g(n),
Example 6-1.
Show ∆ak = (a − 1)ak , for a constant and k an integer.
Solution: Let yk = ak , then by deÞnition
Example 6-2.
The function
k [N] = k(k − 1)(k − 2) · · · [k − (N − 2)][k − (N − 1)], k [0] ≡ 1
k [0] = 1, k [1] = k, k[2] = k(k − 1), k[3] = k(k − 1)(k − 2), ···
which simpliÞes to
∆yk = {(k + 1) − [k − (N − 1)]} k[N −1] = N k [N −1] .
203
Example 6-3.
Verify the forward difference relation
∆yk = yk+1 − yk
= Uk+1 Vk+1 − Uk Vk + [Uk Vk+1 − Uk Vk+1 ]
= Uk [Vk+1 − Vk ] + Vk+1 [Uk+1 − Uk ]
= Uk ∆Vk + Vk+1 ∆Uk .
Special Differences
The table 6.1 contains a list of some well known forward differences which
are useful in many applications. The veriÞcation of these differences is left as an
exercise.
Summation of Series
Let yk+1 − yk = fk , then one can substitute k = 0, 1, 2, . . . to obtain
y1 − y0 =f0
y2 − y1 =f1
y3 − y2 =f2
.. (6.6)
.
yn − yn−1 =fn−1
yn+1 − yn =fn
Example 6-4.
Evaluate the sum
S = 1 · 2 + 2 · 3 + 3 · 4 + · · · + n(n + 1)
Solution: Let fk = k(k + 1) = k 2 + k and show one can write fk as the factorial
function fk = (k + 1)[2] . Therefore,
n
* *n ,n+1
[2] −1
+n+1 (i + 1)[3] (n + 2)[3] 2[3]
S= fi = (i + 1) = ∆ fi i=1 = = −
i=1 i=1
3 i=1 3 3
1
which simpliÞes to S = n(n + 1)(n + 2).
3
Example 6-5.
Given the difference equation
yn+1 − yn − 2yn−1 = 0