I will only discuss linear recurrences.
A linear recurrence is a sequence defined by \(k\) initial terms and a recurrence of the form \[x_n=c_1x_{n-1}+c_2x_{n-2}+\cdots+c_kx_{n-k}\] where all the \(c\)'s are constants. To solve a recurrence, we find a closed-form expression for \(x_n\) that does not rely on previous terms.
For a very simple example, consider the recurrence relation We can easily see that the solution is for all natural numbers .
Geometric series (or combinations, as we will see) are usually the solutions to recurrences. Now, let us say we have a recurrence and a solution .
Plugging in, we get Since , we can divide by . Moving the terms over, we get which is a polynomial in , so the solution satisfies the recurrence only if is a root of this polynomial. This polynomial is called the characteristic polynomial of the recurrence.
Also, note that if two geometric series satisfy a recurrence, the sum of them also satisfies the recurrence. Then, we can find the following method for solving recurrences.
Find the characteristic polynomial.
Find the roots of the characteristic polynomial.
Assuming no multiple roots, the closed-form expression will look like for some constant 's.
Use the initial values to find the values of the 's.
Let us try an example:
The sequence is defined by , , and for all . Find a closed-form expression for .
The characteristic polynomial is found by letting the lowest indexed term in the recurrence be , and replacing all 's with . In this case, Factoring the characteristic polynomial, we get roots of and . Thus, the closed-form expression looks like Plugging in , Plugging in , Solving, we get and , and the closed-form expression is This can be verified by plugging it into the recurrence.
Problems:
Click here for more on this topic. Thanks for reading!
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
After reading this, I have a question: You have shown that xn=a1(r1)n+…+ak(rk)n will satisfy the equation. Why must all solutions be of this (seemingly exponential) form? Why isn't it possible to have a logarithmic or trigonometric term in there?
Log in to reply
Well, the sequence is uniquely determined (just use the recurrence), so if a exponential form satisfies it, no other series can. All that is left to show that the system of equations always has a solution, and I cannot do this (and searching cannot find a proof). Can anyone do this?
Log in to reply
Good thought process. You're close to the answer (for linear recurrence with distinct roots).
You want to show that given any k initial starting values, we can find k variables which satisfy the equations. What kind of equations are these? Exponential? Polynomial? Linear? Hence, how would you solve this system?
Hint: VD
well i don't about logarithmic but if you get the roots of the characteristic equation to be imaginary, then the relation will be trigonometric in relation (using Euler's formula). yeah but this method is not in any case general. for example it cant be used to solve a(n+1)= a(n) + 1/a(n). given a(1)=1
We could apply recurrence relations by reverse engineering: When we see something like A(a+bc)n+B(a−bc)n, which a lot of times appears in solving Pell's equation, it's tempting to build an recursive formula from it, so that it's easier to generate solutions. Note that a+bc,a−bc are two roots of a quadratic, so our recursive formula consists of three "variables".
Hi Daniel. After reading this post I decided to have a go at solving some recursions myself, and helpfully this https://brilliant.org/discussions/thread/recurrence-relations-from-inmo-camp-for-maharashtr/?ref_id=75599 had just popped up on my feed. Question 1b) states: Solve an=6an−1−9an−2,a0=0,a1=1 which I believe is a linear recurrence. So, forming the characteristic polynomial we get x2−6x+9=0 so (x−3)2=0, so x=3. Clearly if we write an=b1(3n)+b2(3n) to take into account the repeated root we can just factorise out the 3n. So we just need to solve an=b(3n). However, plugging in values of a1,a2 etc. we just get many contradictions and the equation is thus unsolvable. I would really appreciate it if you would point out where my logical error is or where this method breaks down. Thanks in advance
Log in to reply
The problem is that there is a multiple root, which then you have to take an=b1(3n)+b2n(3n) I was planning to do that in two weeks. I did notice that post, and also note some of those are not linear so it is different.
I'm glad you are applying this though!
Log in to reply
When you say multiple root, I am assuming that you mean same roots in both cases(because a quadratic equation will always have multiple,ie 2, roots. I have always preferred using "repeated roots"). Can you tell us why a characteristic equation with equal roots fails here. and why do we add a "n"to b2.
Why the closed-form expression will look like so ,in step three?
I have a doubt in a question ( a{0}=0 and a{n} = 3a{n-1} + 1 ). to find a{2010} ??
@Daniel Chiu Can you help edit this into the Linear Recurrence Wiki? Thanks!
precise and useful.Thanks for posting it.
Why if two geometric series satisfy a recurrence, the sum of them also satisfies the recurrence? Please elucidate.