Difference Equation — Definition, Formula & Examples
A difference equation is an equation that expresses the value of a sequence at one index in terms of its values at earlier indices. It is the discrete counterpart of a differential equation, replacing continuous derivatives with differences between successive terms.
A difference equation (or recurrence relation) of order is an equation of the form , where is an unknown sequence defined for integer and is a given function. The equation is solved by finding all sequences satisfying it, typically subject to initial conditions.
Key Formula
Where:
- = The value of the sequence at index $n$
- = A constant multiplier (coefficient)
- = A constant forcing term (may be zero for the homogeneous case)
- = A non-negative integer index
How It Works
You start with one or more initial values and then use the difference equation to compute each subsequent term from previous ones. For a first-order linear difference equation , you need one initial value . For a second-order equation like the Fibonacci recurrence, you need two. Solving a difference equation analytically means finding a closed-form expression for , often by assuming a solution of the form and solving the resulting characteristic equation.
Worked Example
Problem: Solve the difference equation with . Find in closed form.
Find the fixed point: Set to find the equilibrium value.
Substitute: Let . Then . This is a simple geometric recurrence.
Back-substitute: Since , we get:
Answer: . Verify: and .
Why It Matters
Difference equations model any process that evolves in discrete steps: population growth by generation, compound interest by period, or digital signal processing sample by sample. They appear throughout discrete mathematics, economics, and computer science, and mastering them prepares you for the study of differential equations in continuous settings.
Common Mistakes
Mistake: Confusing the order of the equation with the number of initial conditions needed.
Correction: A th-order difference equation requires exactly initial conditions. For instance, is second-order and needs both and .
