Skip to content

Difference Equation


Definition

A difference equation of order k≥1k\ge1 for a sequence (xt)t≥0(x_t)_{t\ge0} is a relation

xt+k=f(t, xt, xt+1, …, xt+k−1),x_{t+k}=f\big(t,\,x_t,\,x_{t+1},\,\ldots,\,x_{t+k-1}\big),

for t=0,1,2,…t=0,1,2,\ldots, in which xtx_t actually occurs; the order is the gap between the largest and the smallest time index. A solution is a sequence satisfying the relation for every t≥0t\ge0.

The equation is linear if it has the form

xt+k+ak−1(t) xt+k−1+⋯+a1(t) xt+1+a0(t) xt=gt,x_{t+k}+a_{k-1}(t)\,x_{t+k-1}+\cdots +a_1(t)\,x_{t+1}+a_0(t)\,x_t=g_t,

with a0(t)≠0a_0(t)\ne0 for all tt. It is homogeneous if gt=0g_t=0 for all tt, and has constant coefficients if no aia_i depends on tt. A constant solution xt=x∗x_t=x^* is an equilibrium (steady state).


Interpretation

A difference equation is a rule that produces the next value of a quantity from the current and a few past values, as in a savings balance, a price, or a population observed once per period. Time is discrete; the continuous-time counterpart is a differential equation, studied from Week 3.

The Fibonacci sequence 0, 1, 1, 2, 3, 5, 8 drawn as a row of boxes, the two initial values shaded, with arrows showing each new term computed from the two terms before it.

The figure runs the Fibonacci example xt+2=xt+1+xtx_{t+2}=x_{t+1}+x_t. The two shaded initial values x0=0x_0=0, x1=1x_1=1 are given; every later box is filled by the rule from the two boxes before it, so x2=x1+x0=1x_2=x_1+x_0=1 and, further on, x5=x4+x3=5x_5=x_4+x_3=5. Because the equation has order 22, exactly two starting values are needed, and changing them produces a different solution.

The name comes from the forward difference Δxt=xt+1−xt\Delta x_t=x_{t+1}-x_t: the equation Δxt=0.1xt\Delta x_t=0.1x_t is the same as xt+1=1.1xtx_{t+1}=1.1x_t. Any relation between xtx_t and its differences can be rewritten with shifted terms.

The order counts how many consecutive past values the rule needs, not the largest index. In xt+3=xt+1x_{t+3}=x_{t+1} the smallest index is t+1t+1, so with s=t+1s=t+1 it reads xs+2=xsx_{s+2}=x_s, an equation of order 22. For a homogeneous linear equation the solution set is a vector space (for an inhomogeneous one it is a shifted copy of that space, not a vector space), which is why linear algebra applies.


Key Results

  • For an equation in the explicit form above, any choice of the kk initial values x0,…,xk−1x_0,\ldots,x_{k-1} determines exactly one solution, computed recursively.
  • The solutions of a homogeneous linear equation of order kk form a kk-dimensional subspace of the space of real sequences; see basis of solutions.
  • For a linear equation, every solution equals one particular solution plus a solution of the homogeneous equation.
  • An equilibrium of xt+1=f(xt)x_{t+1}=f(x_t) is a fixed point, x∗=f(x∗)x^*=f(x^*).
  • A linear equation of order kk can be rewritten as a first-order system in Rk\mathbb{R}^k.

Examples

First order. xt+1=2xtx_{t+1}=2x_t with x0=3x_0=3 gives xt=3⋅2tx_t=3\cdot2^t: 3,6,12,24,…3,6,12,24,\ldots

Fibonacci. xt+2=xt+1+xtx_{t+2}=x_{t+1}+x_t is linear, homogeneous, of order 22 with constant coefficients. With x0=0x_0=0, x1=1x_1=1 the recursion gives 0,1,1,2,3,5,8,…0,1,1,2,3,5,8,\ldots; other initial values give other solutions.

Nonlinear. The logistic map xt+1=r xt(1−xt)x_{t+1}=r\,x_t(1-x_t) has order 11 but is not linear. Its equilibria solve x∗=rx∗(1−x∗)x^*=r x^*(1-x^*), so x∗=0x^*=0 or x∗=1−1/rx^*=1-1/r (for r≠0r\ne0).


Prerequisites



Sources

Aliases: recurrence relation, recurrence equation, discrete-time dynamical system, discrete dynamical system Keywords: x_{t+1}, order of a difference equation, linear difference equation, homogeneous difference equation, initial values, Fibonacci recurrence Symbols: delta, real numbers

Last updated: 22 October 2026 19:04