How to Solve a Recurrence Relation Using the Z-Transform
At a glance
- 1. Choose a convention
Use the unilateral Z-transform X(z) = sum of x_n z^(-n), starting at n = 0.
- 2. Transform the recurrence
Apply shift formulas, keeping the initial values in the equations.
- 3. Solve for X(z)
Collect terms and rearrange to isolate the transform.
- 4. Invert the transform
Use known transform pairs or partial fractions to recover x_n.
A Z-transform can turn a linear recurrence into an algebraic equation, making it easier to solve for the sequence. The key detail is to use the unilateral Z-transform when the sequence is defined from an initial index such as : its shift rules explicitly carry the initial values into the calculation.
This method works especially well for linear recurrences with constant coefficients. You will transform the recurrence, solve for the transform, and then identify the sequence from standard transform pairs.
The unilateral Z-transform
For a sequence , define its unilateral Z-transform by
The shift formulas you need include the starting values:
More generally, shifting a sequence forward introduces terms involving its initial values. This is why the unilateral transform is convenient for initial-value recurrences: the starting conditions are built into the transformed equation.
A step-by-step method
Suppose a recurrence is given for , along with enough initial values to determine its solution.
- Write the transform. Set using the unilateral convention.
- Transform each term. Use the appropriate shift formula, substituting the given initial values.
- Solve algebraically. Collect the terms involving and isolate it.
- Invert the result. Factor the denominator and use standard transform pairs or partial fractions.
- Check the first terms. Substitute them into the recurrence and compare with the initial values.
For a nonhomogeneous recurrence, transform the forcing sequence as well. The resulting equation is still algebraic in , provided the forcing transform is known or can be calculated.
Worked example
Solve
Let . Apply the shift rules to each term:
Substitute and :
Collect the transform terms and the remaining terms:
Therefore,
To use standard unilateral Z-transform pairs, write this in terms of :
Since , the inverse transform gives
Check the initial terms: and . The recurrence also holds: substituting makes its left side zero for every .
Convergence and transform conventions
The transform pair is valid in the region for the unilateral transform of a right-sided sequence. In the example, the sequence contains a term, so the series defining its transform converges for . In many recurrence exercises, you can manipulate the transform as a formal power series and focus on recovering its coefficients; the convergence region matters when interpreting it as an analytic function.
A bilateral Z-transform sums over all integer indices, while the unilateral transform starts at . Their shift formulas differ. Do not apply a bilateral shift rule to a recurrence with specified initial values unless you have deliberately chosen that convention and accounted for the starting boundary.
Common mistakes
- Dropping initial-value terms. For example, is , not simply .
- Using the wrong transform convention. State whether the sum starts at or runs over all integers before applying shift rules.
- Mixing up the inverse pair. With this convention, corresponds to , not .
- Stopping before checking. Verify that the recovered sequence gives the specified initial values and satisfies the recurrence.
- Assuming every recurrence needs a transform. For a short homogeneous recurrence, a characteristic equation may be quicker. The Z-transform is particularly useful when initial conditions or forcing terms need systematic handling.
The same procedure applies to higher-order linear recurrences: use the shift formula for each order, include every required initial value, then solve and invert the resulting rational function.
References
- Signals and Systems, 2nd edition — Alan V. Oppenheim, Alan S. Willsky, and S. Hamid Nawab
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.