D
Constant-Coefficient Difference Equations
We will describe here means of solving simple linear constant-coefficient differ-
ence equations (4Es for short). For a more in-depth introduction we recom-
mend the books by Dahlquist and Bj¨ork [17, Section 3.3.5] or Elaydi [18].
A kth order difference is a relationship between k + 1 consecutive terms of a
sequence x
0
, x
1
, . . . , x
n
, . . . . In a kth-order linear constant-coefficient 4E this
relationship is of the form
a
k
x
n+k
+ a
k−1
x
n+k−1
+ ··· + a
0
x
n
= f
n
(D.1)
in which the coefficients are a
k
, a
k−1
, . . . , a
0
, and f
n
is a given sequence of
numbers. We shall assume throughout that n runs consecutively through the
non-negative integers: n = 0, 1, . . . . We shall also assume that neither a
0
nor
a
k
is zero, for otherwise this could be written as a 4E of order lower than k.
Our objective is: given k > 0, a set of coefficients and the sequence f
n
to
obtain a formula for the nth term of the s equence satisfying (D.1). We shall
focus mainly on first (k = 1) and second-order (k = 2) 4Es and also consider
only the cases when either f
n
≡ 0 for all n (called the homogeneous case) or
when the forcing term f
n
has a particularly simple form.
As for linear c onstant-coeffi cient ODEs, the general solution of 4Es of the
form (D.1) may be composed of the sum of a complementary function (CF—the
general solution of the homogeneous 4E) and a particular solution (PS—any
solution of the given 4E). The arbitrary constants in a general solution may be
fixed by specifying the appropriate number (k) of starting conditions: x
j
= η
j
,
for j = 0 : k − 1.