Solving Linear Recurrences
Geometric sequences xⁿ are the natural building blocks for a recurrence like aₙ = c₁aₙ₋₁ + c₂aₙ₋₂, because multiplying by x each step plays nicely with "combine the last two terms." Plugging in xⁿ turns the recurrence into an ordinary quadratic, and every solution is a mix of powers of its two roots.
What the symbols mean
- First coefficient
Weight on the previous term.
- Second coefficient
Weight on the term before that.
- First characteristic root
One solution of x² = c₁x + c₂.
- Second characteristic root
The other solution.
- First constant
Fixed by the starting values.
- Second constant
Fixed by the starting values.
Explanation
Solving a linear recurrence simply means trading a step-by-step rule for a formula that jumps straight to any term. "Linear" means each term is just a fixed multiple of earlier terms added together, with no squaring or multiplying terms by each other. All we're really doing is guessing that the answer is a geometric sequence and checking which ratios work. The formula line looks heavy, but there are only three pieces: the recurrence (each term is of the last one plus of the one before), the characteristic equation (an ordinary quadratic, which tells you the good ratios and ), and the answer (some amount of each, with and set by where the sequence starts). If you've solved quadratics before, you already have every tool you need.
Why guess ? Think back to the last lesson. A geometric sequence is the simplest kind of recurrence: each term is times the previous one. So it makes sense to ask whether some geometric sequence also satisfies a two-term recurrence. Substituting gives , and dividing by leaves . So works exactly when is a root of that quadratic.
One root sequence won't usually match your starting values, though, so what can we do now? Notice the recurrence is linear: if two sequences satisfy it, so does any combination , because you can add the two equations and scale them. That gives us two free constants, and the two starting values pin down and .
Example. with , . The characteristic equation has roots 2 and 3, so . From and , we get and . So .
Fibonacci (Binet's formula). Here has roots and , and the starting values give
It's a little amazing that all those square roots of 5 cancel to give whole numbers every time. Since , the part shrinks toward 0, so is the integer nearest .
Repeated root. If has a double root , you only get one root sequence, which isn't enough to match two starting values. The fix is to multiply by : the solutions are . If you've seen differential equations, this is the same move as .
In the long run the root of largest absolute value dominates, because its powers outgrow the other's. That's why Fibonacci numbers grow like , and why their ratios approach , as we saw in the last lesson.
See it
Worked examples
Solve with , .
- 1
The characteristic equation is , which has a double root at 2.
Practice
Type your answer and check it. Solve them all to complete the lesson.
Find the characteristic roots of .
With and , the solution of is . What is ?
The ratio approaches the golden ratio. What is its exact value?
has a repeated characteristic root. What is it?
Each day a patient's body clears half the drug in their blood, and then a new 100 mg dose is taken: . In the long run, what level does settle at, in mg?
Solve with and , and find .
The hardest one here. Get it, and you've got this lesson.
Solve with and , and find .
Where it's used
Engineers analyze digital filters with linear recurrences, and the same characteristic-root method solves the linear differential equations of circuits and springs.