Solve homogenous, constant coefficient and linear recurrence relations
Solve homogenous, constant coefficient and linear recurrence relations
Recurrence Relations
- Recurrence relations, often known as recurrence equations or difference equations, are equations that express each term of a sequence in terms of its predecessors.
- Homogeneous, constant coefficient, and linear recurrence relations are a specific type of recurrence relations that follow certain rules.
Solving Homogeneous Recurrence Relations
- Homogeneous recurrent relations have the property that the value of each term can be expressed as a linear combination of its previous terms without an additional constant.
- Write the recurrence relationship in the form
Un = aUn-1 + bUn-2
. - If the sequence starts with
U0
andU1
, attempt a solution of the formUn = rn
. - Replace
Un
,Un-1
andUn-2
in the given relationship withrn
,rn-1
andrn-2
respectively. - The roots
r
of the resulting quadratic equation are called the characteristic roots of the homogeneous recurrence relation. - If there are two distinct roots (
r1
andr2
), the solution isUn = Ar1^n + Br2^n
whereA
andB
are constants determined by the initial conditions. - If there are only two repeating roots (
r
andr
), the solution isUn = (An + B) r^n
whereA
andB
are constants determined by the initial conditions.
Solving Constant Coefficient Recurrence Relations
- In a constant coefficient recurrence relation, the coefficients (the multiples of the earlier terms) stay the same. These are often written as
Un = aUn-1 + bUn-2
wherea
andb
are constants. - With constant coefficients, the techniques to find the solution are the same as the steps described for homogeneous recurrence relations.
Solving Linear Recurrence Relations
- The term
linear
in linear recurrence relations refers to the fact that each term of the sequence is a linear function of its preceding terms. - Linear recurrence relations can be solved using techniques of generating functions or characteristic roots similar to the methods laid out for homogeneous recurrence relations.
- If the recurrence relationship is non-homogeneous, it can still be solved by first obtaining a solution to the corresponding homogeneous relationship and then obtaining a particular solution to the non-homogeneous relationship. These can then be combined to obtain the general solution.
- A particular solution can usually be guessed based on the form of the non-homogeneous term.
Key Concepts to Remember
- Initial conditions are a key aspect of solving recurrence relations, both in determining the form of the solution and the exact values of the constants involved.
- Always consider the full sequence, not just the initial terms or the difference equation itself, when approaching these problems.
- The solutions to recurrence relations sometimes fall into different categories, depending on the nature of the characteristic roots. The roots could be real and distinct, real and equal, or complex.