Solving Difference Equation: w_n = 2^n w_0 + 2^{n + 1}-1

Benny
Messages
577
Reaction score
0
Hi, I've been working on a difference equation and I just can't get the answer. Can someone checking my working?
<br /> w_{n + 1} = 2w_n + 1<br />
w_1 = 2w_0 + 1
w_2 = 2w_1 + 1 = 2(2w_0 + 1) + 1 = 2^2w_0 + 1 + 2^1
<br /> \Rightarrow w_n = 2^n w_0 + \sum\limits_{i = 0}^{n - 1} {2^i } = 2^n w_0 + \sum\limits_{i = 0}^n {2^i } - 2^n = 2^n w_0 + \frac{{1 - 2^{n + 1} }}{{1 - 2}} - 2^n <br />

<br /> w_n = 2^n w_0 &#039; + 2^{n + 1} - 1 - 2^n = 2^n \left( {w_0 &#039; - 1} \right) + 2^{n + 1} - 1<br />...I have written w_0 with a dash so as to enable me to get a 'nicer' looking answer. It is a little ambiguous but hopefully people understand what I've done. I've simply taken 2^n as a common factor of two of the terms so that I get 2^n multipled by something. In the next line I replace that 'thing' by w_0.

<br /> w_n = 2^n w_0 + 2^{n + 1} - 1<br />

Where I have used a primed w_0 so that I could get an answer which resembles the book's. The book's answer is the same as mine except where I have a negative one, it has a negative two. I don't know where I'm going wrong. Can someone help me out?
 
Last edited:
Physics news on Phys.org
Your answer is incorrect, since your formula predicts w_{0}=2^{0}w_{0}+2-1=w_{0}+1
Similarly w_{1}=2w_{0}+2^{2}-1=2w_{0}+3

You have correctly found:
w_{n}=2^{n}w_{0}+2^{n+1}-1-2^{n}
Rewrite this as follows:
2^{n}w_{0}+2^{n+1}-1-2^{n}=w_{0}2^{n}+2^{n}(2-1)-1=w_{0}2^{n}+2^{n}-1=2^{n}(w_{0}+1)-1
 
Thanks for the help but I still don't understand how the book got w_n = 2^{n + 1} - 2 + 2^n v_0 (I've typed the answer exactly as it is given with the v_0 and not the w_0). Is my corrected answer(the one you included in your reply) somehow equivalent to the book's answer? Or is it possble to get 'different' general solutions depending on the solution procedure?
 
Last edited:
Your book's formula is wrong!

Your difference equation says that w_{1}=2w_{0}+1
but their formula says: w_{1}=2^{2}-2+2w_{0}=2+2w_{0}
 
Last edited:
Hmm...I know that the answers in books are never (rarely) 100% with their answers but since it is so rare for an error to be in there I just assumed that their answer had to be correct. Thanks for clearing that up.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top