Linear Difference Equation — Definition, Formula & Example
A linear difference equation is a recurrence in which each unknown term appears only to the first power. The unknown terms are never multiplied together or placed inside functions like or a square root.
A difference equation of order is linear if it can be written as . Here the coefficients and the forcing term depend only on , and and . The equation is homogeneous when for all . The solutions of the homogeneous equation form a -dimensional vector space. Every solution of the full equation equals one particular solution plus a homogeneous solution.
Key Formula
Where:
- = The unknown sequence, indexed by the integer n
- = The order: the largest gap between indices in the equation
- = Coefficients, which may depend on n but never on the terms
- = The forcing (nonhomogeneous) term; g(n) = 0 gives a homogeneous equation
- = General solution of the homogeneous equation, with k arbitrary constants
- = Any one particular solution of the full equation
Worked Example
Problem: Solve the first-order linear difference equation with . Find in closed form.
Step 1: Drop the forcing term to get the homogeneous equation . Each term doubles the one before, so the homogeneous solution is a geometric sequence with one free constant.
Step 2: The forcing term is linear in , so guess a particular solution . Substitute it into the full equation and match coefficients. The terms give , so . The constant terms give , so .
Step 3: By linearity, the general solution is the homogeneous part plus the particular part. Apply the initial condition only after adding them.
Answer: . Check: the recurrence gives and . The formula gives and .
Why It Matters
Linear difference equations model anything updated in discrete steps, such as a loan balance with monthly payments or a population counted each year. In electrical engineering, every linear digital filter in audio and image processing is a linear difference equation. Discrete math courses use them to solve counting recurrences, and the superposition structure here parallels linear differential equations.
Common Mistakes
Mistake: Applying the initial condition to the homogeneous part alone. In the example, this means solving and getting .
Correction: The initial condition constrains the whole solution, not one piece of it. Add the particular solution first, then solve to get . The wrong value gives , but the recurrence gives .
