First of all, sorry for not posting for two weeks. I had finals and was busy (also I lost my 80 day streak :O). Well, I'll try to start up again by continuing on recurrence relations.
Here is my second post on recurrence relations. You can find part 1 here. For a review problem, see here.
Now, we will continue from last time to try to solve recurrence relations with two more complications:
Some terms are not previous elements of the sequence.
There are repeated roots of the characteristic polynomial.
1: Some terms are not previous elements of the sequence.
The idea for recurrences that satisfy this complication is to remove the term that is not a previous element in the sequence, and then solve as we would before. You can do this by shifting the index, which means plugging a different index into the recurrence, and then usually subtracting the two resulting equations.
A sequence is defined by and for . Find a closed-form expression for .
A recurrence must hold for all possible values of , so if we change to , the recurrence still holds. To shift the index, add 1 (or subtract 1) to each index of the recurrence. We get Subtracting the two equations, the 1's cancel, and we are left with a recurrence as we have had before: The characteristic polynomial is . Therefore, the closed-form expression can be expressed as . We only have one initial condition, but need two! Fortunately, the recurrence given only uses one previous term, so we can find that . Now, we can solve that and .
Therefore, the closed-form expression is
This method can also solve recurrences with terms of powers of . With each shift, the power goes down by one until the term is gone.
A sequence is defined by and for . Find a closed-form expression for .
Similar to last time, we try to eliminate the term that isn't a previous element, which is . Again, we shift the index: Thinking cleverly, we note that , and so we subtract twice the original recurrence from this new recurrence: This is a recurrence we know how to deal with. The characteristic polynomial is , so the closed-form expression can be expressed as . We can find another initial term using the given recurrence, . Solving, we find the closed form is
Now, we see how to solve recurrences given any exponential terms. Shift the index once, then subtract to remove the exponentials.
2: There are repeated roots of the characteristic polynomial.
If there is a repeated root of the characteristic polynomial with multiplicity , then the closed-form expression will look like See here on more why this is so.
A sequence is defined by , , and for . Find a closed-form expression for .
The characteristic polynomial is . Using our above form, we see that the closed-form expression looks like . From the initial conditions, so and . Thus, the closed-form expression is .
Problems:
I'll post a problem or two soon.
Thanks for reading! This will be my last post on recurrence relations.
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
Hey can you please post a way to solve this kind of recurrences ??? @Daniel Chiu
an=nan−1+an−2
an=an−12+an−2
an=an−12+an−22
If I want to find the recurrence relation for n2+2n,should I just reverse the steps or is there an easier way?I think looking at the differences will help.
i think there is a small error
If there is a repeated root r of the characteristic polynomial with multiplicity m , then the closed-form expression will look like
in the closed form the power of n is one less than the term but in last term there is an error
You had finals in winter? What?
:O... I kind of understood this. It was pretty good dude! Hey, do you know that you're in like 13 different articles in the news... How did you get so good at math? Like seriously!!
Is the procedure same even when we have the repeated roots as one of the many roots ??