A linear recurrence relation is where each term in a sequence is a linear function of previous terms, e.g. . A first-order recurrence relation is where each term only depends on the previous term and some function of , e.g. . For the AS content, only first-order recurrence relations will be considered.
A homogenous recurrence relation has the form , for some constant . In contrast, a non-homogenous recurrence relation has the form , where is some function of (in this course, a polynomial in or ).
A recurrence system is defined by the recurrence relation (e.g. ) and the initial conditions, e.g. . Our goal is typically to find a closed-form solution to the system: a position-to-term rule that only depends on . For the previous example, (you can verify this for ).
Solving recurrence relations
Where is the complementary function and is the particular solution.
First-order recurrence relations
For a first-order recurrence relation, we start by finding the complementary function , which is related to the homogenous part of the recurrence relation:
- Start with the reduced equation (only the homogeneous part).
- Replace with (), giving the auxiliary equation.
- Solve for , giving a complementary function of the form .
- In the AS course, is always of the form . Note that if , this will always be a failure case.
Second-order recurrence relations
The method is similar to above but instead we obtain a quadratic in :
- Start with the reduced equation (only the homogeneous part).
- Replace with (), giving the auxiliary equation.
- Solve for , giving two possible roots and .
The complementary function depends on the nature of the roots and :
- For distinct real or complex roots and , .
- For repeated real roots ,
Particular solution
We then find the particular solution , which is related to the non-homogenous part of the recurrence relation ():
- Choose a form for based off :
- If ) is a number,
- If ) is linear,
- If ) is quadratic,
- If ) is an exponential (some constants and ),
- A failure case occurs If the form of is the same as for . This requires multiplying by . It is possible for a new failure case to occur, requiring repeated multiplication by until resolved.
- Substitute the appropriate form for into both sides of the relation and solve for , , and .
Then, apply the initial conditions to find remaining constants from the complementary function.
Footnotes
1: Footnote on convergence (outside of specification)
There are sequences where the terms converge to 0 that do not sum to a convergent series. For example, the harmonic sequence is convergent because the terms tend to 0. However, the harmonic series is not convergent.
2: Footnote on the Fibonacci and Lucas numbers
is more commonly used to denote the golden ratio than , but the specification uses .
Some definitions of the Fibonacci and Lucas numbers start from instead of (as an extra sidenote, Fibonacci himself started from 1 and 2).