Solving Linear Recurrence Relations

Side note: My discrete math final’s coming up so I’ve decided to write a series of small posts on basic topics (while listening to Beyonce’s new album(!)) to help me study. Hopefully this’ll prove to be a helpful reference in the future too in case this topic comes up.


More specifically, this post will cover how to solve homogenous recurrence relations. So what does that mean? Here’s a general form:

It’s a recurrence relation as the \( n^{th} \) term depends upon the previous terms. It’s linear because the RHS is a sum of the previous terms (with coeffecientnts) and it’s homogeneous because all terms are multiplied with \( a_x \) . A non-homogenous relation might also depend on some term like \( 4 ^ n \) or some other f(n).

Basic example

Now, here’s an example we’ll solve:

Basically our goal is to find some non-recurrence equation to represent \(a_n\). So to start, we simply guess that \(a_n = x ^n \) and figure out x later.

Let’s substitute \(x^n\) for \(a_n\) and move things to the left:

Now if we divide everything by \(x^{n-2}\), things will start to look familiar. (In general, just divide by the lowest power you have).

This is called the characteristic equation. We find that the two roots of the equation are \(x = 11\) and \( x = 2 \). We call these the characteristic roots . Now what?

We can use these roots to find an explicit forumula by using the following formula. Constants are represented with \( c\) and our roots are represented with \(r \).

Since we have the roots and we know the first 2 terms of the relation, we can solve for our constants using a system of equations.

When we solve this, we find that \(c_1 =1, : c_2 = 2 \). And now we’re done. If we plug in our numbers we have:


What to do when you have 2+ of one root?

When we roots with a multiplicity of 2 and above, we use a different formula once we have the characteristic roots. Let’s say our characteristic equation turns out to be \(x-2) ^2 \). The root 2 has a multiplicity of 2 and we’ll use the following equation instead.

What to do when you imaginary roots?

Work as usual.

What do you do with a non-homogeneous eqation?

it's okay, Rachel, that's not on the final!