Recurrence Relation to Non-recursive Formula

In summary, the conversation was about finding a non-recursive formula for the sequence f_n, which was defined by f_0=f_1=2 and f_n = (\frac{f_{n-1}+2f_{n-2}}{6}), when n\geq2. The individual attempted to solve for the closed formula of the generating function, but was unsure if that was the correct approach. The expert suggested using two exponential solutions and solving for c1 and c2 to fit the initial conditions. The individual then solved for the correct roots and used them to find a linear combination of powers, which is the non-recursive formula for f_n. The expert also
  • #1
pupeye11
100
0

Homework Statement



The sequence [tex]f_n[/tex] is defined by [tex]f_0=f_1=2[/tex] and

[tex]f_n = (\frac{f_{n-1}+2f_{n-2}}{6})[/tex], when [tex]n\geq2[/tex].

Find a non-recursive formula for [tex]f_n[/tex]

The Attempt at a Solution



Well I have solved for the closed formula of the generating function which I will call g(x) so

[tex]
g(x) = \frac{12-10x}{6-x-2x^2}
[/tex]

My question is, is this what they are looking for or do I need to continue and use partial fractions and linear algebra to get farther?
 
Physics news on Phys.org
  • #2
They want to find a general formula for f_n. I think you want to find two solutions of the form (p1)^n and (p2)^n to your recursion relation and then combine them as c1*(p1)^n+c2*(p2)^n and solve for c1 and c2 to fit the initial conditions.
 
  • #3
Well I used Partial fractions and then linear algebra and got

[tex]
c_1 = \frac{-6}{7}
[/tex]

[tex]
c_2 = \frac{32}{7}
[/tex]

So where would I have to go from there
 
  • #4
I have no idea what you're doing unless you show what you are doing. I really don't think partial fractions or linear algebra have much to do with it. There are two exponential solutions to the linear recursion relation. I.e. of the form p^n. What are the p's? Use 'quadratic equation'.
 
  • #5
You lost me, what is the linear recursion relation (I am not huge on this terminology) That might also explain these p^n's you are talking about...
 
  • #6
pupeye11 said:
You lost me, what is the linear recursion relation (I am not huge on this terminology) That might also explain these p^n's you are talking about...

Put f_n=p^n into the recurrence relation. You'll get a quadratic equation in p after you cancel some powers. Just try it. Since the equation in linear in f, linear combinations of those two solutions are also solutions. This is an awful lot like a linear second order ODE.
 
  • #7
The recurrence relation is the original formula I had? And if I put p^n in place of f_n the what would f_n-1 become?
 
  • #8
pupeye11 said:
The recurrence relation is the original formula I had? And if I put p^n in place of f_n the what would f_n-1 become?

f_n-1 becomes p^(n-1) doesn't it?
 
  • #9
Ok so then my equation would be

[tex]
6p^n -p^{n-1} - 2p^{n-2} = 0
[/tex]

so using the quadratic equation I get that

[tex]
p = \frac{1 \pm \sqrt{27}}{12}
[/tex]

then what?
 
  • #10
pupeye11 said:
Ok so then my equation would be

[tex]
6p^n -p^{n-1} - 2p^{n-2} = 0
[/tex]

so using the quadratic equation I get that

[tex]
p = \frac{1 \pm \sqrt{27}}{12}
[/tex]

then what?

Which quadratic did you solve to get those roots?? That's not what I get. Once you've got the correct roots, it's just what I said. Your solution is a linear combination of powers of the two roots. Solve for c1 and c2.
 
  • #11
If we put a p^n in for all f's we get

[tex]
p^n = (\frac{p^{n-1}+2p^{n-2}}{6})
[/tex]

so multiplying both sides by six to get rid of the fraction and setting it equal to zero we get

[tex]
6p^n -p^{n-1} - 2p^{n-2} = 0
[/tex]

which is the quadratic I solved. Unless a = -2, b=-1 and c=6. I did it the opposite way around where a=6, b=-1, and c=-2. Is that my mistake?
 
  • #12
pupeye11 said:
If we put a p^n in for all f's we get

[tex]
p^n = (\frac{p^{n-1}+2p^{n-2}}{6})
[/tex]

so multiplying both sides by six to get rid of the fraction and setting it equal to zero we get

[tex]
6p^n -p^{n-1} - 2p^{n-2} = 0
[/tex]

which is the quadratic I solved. Unless a = -2, b=-1 and c=6. I did it the opposite way around where a=6, b=-1, and c=-2. Is that my mistake?

b^2-4ac=1-(4*6*(-2))=49. There's no 'sqrt(27)' around. Even if you understand the problem perfectly, you'll never get the answer unless you take some care.
 
  • #13
I know, I was doing this really late at night but now I get that my roots are equal to

[tex]
\frac{2}{3}, \frac{-1}{2}
[/tex]

I know you have said from there that they are a linear combination of powers of the two roots and I can solve it that way, but I do not know what a linear combination of powers is?
 
  • #14
pupeye11 said:
I know, I was doing this really late at night but now I get that my roots are equal to

[tex]
\frac{2}{3}, \frac{-1}{2}
[/tex]

I know you have said from there that they are a linear combination of powers of the two roots and I can solve it that way, but I do not know what a linear combination of powers is?

(2/3)^n and (-1/2)^n solve your recurrence relation. So put f_n=c1*(2/3)^n+c2*(-1/2)^n. Solve for the constants c1 and c2.
 
  • #15
Ok, to solve for c1 and c2 though I would need two equations. Does that mean I need to use the fact that f_0=f_1=2 somehow?
 
  • #16
pupeye11 said:
Ok, to solve for c1 and c2 though I would need two equations. Does that mean I need to use the fact that f_0=f_1=2 somehow?

Yes.
 
  • #17
Oh, my two equations would be the following correct?

[tex]
2=c_1\left(\frac{2}{3}\right)^0 + c_2\left(\frac{-1}{2}\right)^0
[/tex]

and

[tex]
2=c_1\left(\frac{2}{3}\right)^1 + c_2\left(\frac{-1}{2}\right)^1
[/tex]
 
  • #18
pupeye11 said:
Oh, my two equations would be the following correct?

[tex]
2=c_1\left(\frac{2}{3}\right)^0 + c_2\left(\frac{-1}{2}\right)^0
[/tex]

and

[tex]
2=c_1\left(\frac{2}{3}\right)^1 + c_2\left(\frac{-1}{2}\right)^1
[/tex]

Of course they would.
 
  • #19
So

[tex]
c_1 = \frac{18}{7}
[/tex]

[tex]
c_2 = \frac{-4}{7}
[/tex]

so what do those get put into to find the non-recursive formula for f_n ?
 
  • #20
pupeye11 said:
So

[tex]
c_1 = \frac{18}{7}
[/tex]

[tex]
c_2 = \frac{-4}{7}
[/tex]

so what do those get put into to find the non-recursive formula for f_n ?

A nonrecursive formula for f_n is a formula you can plug into your calculator to find f_n without first finding f_n-1 and f_n-2. What do we now have that might be such a formula?
 
  • #21
For the record, once he had the generating formula, he really could have used partial fractions and the geometric series formula to get the answer. (And no linear algebra involved)
 
  • #22
Hurkyl said:
For the record, once he had the generating formula, he really could have used partial fractions and the geometric series formula to get the answer. (And no linear algebra involved)

Thanks for pointing out there's another way. I just picked the method I knew.
 
  • #23
Would I need to put c_1 and c_2 back into

[tex]
f_n=c_1\left(\frac{2}{3}\right)^n + c_2\left(\frac{-1}{2}\right)^n
[/tex]

Would that be the answer then?
 
  • #24
pupeye11 said:
Would I need to put c_1 and c_2 back into

[tex]
f_n=c_1\left(\frac{2}{3}\right)^n + c_2\left(\frac{-1}{2}\right)^n
[/tex]

Would that be the answer then?

Of course. Check it. Find f_2 using the recursion relation and then find f_2 using that formula. Do they agree?
 
  • #25
They do indeed. Thanks for all your help :)
 

Related to Recurrence Relation to Non-recursive Formula

1. What is a recurrence relation?

A recurrence relation is a mathematical expression that defines a sequence of values based on the previous terms in the sequence. It is typically represented using a recursive formula, which means that the value of each term is dependent on the previous term.

2. How is a non-recursive formula related to a recurrence relation?

A non-recursive formula is a mathematical expression that defines a sequence of values without using the previous terms in the sequence. It is related to a recurrence relation because it can be derived from a recurrence relation by solving for the nth term in the sequence using algebraic manipulation.

3. Why would one want to convert a recurrence relation to a non-recursive formula?

Converting a recurrence relation to a non-recursive formula can make it easier to calculate the values of a sequence, especially for larger values of n. It can also help to better understand the pattern or behavior of the sequence.

4. Is it always possible to convert a recurrence relation to a non-recursive formula?

No, it is not always possible to convert a recurrence relation to a non-recursive formula. In some cases, the recurrence relation may be too complex or may not have a closed-form solution, which means that it cannot be expressed using a non-recursive formula.

5. Are there any common techniques for converting a recurrence relation to a non-recursive formula?

Yes, there are several common techniques for converting a recurrence relation to a non-recursive formula, including substitution, iteration, and using generating functions. The specific technique used will depend on the complexity of the recurrence relation and the desired form of the non-recursive formula.

Similar threads

  • Calculus and Beyond Homework Help
Replies
11
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
3K
  • General Math
Replies
4
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
  • Topology and Analysis
Replies
21
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
769
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
912
  • Set Theory, Logic, Probability, Statistics
Replies
18
Views
2K
  • Calculus and Beyond Homework Help
Replies
8
Views
2K
Back
Top