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

Click For Summary

Homework Help Overview

The discussion revolves around a difference equation defined as w_{n + 1} = 2w_n + 1. Participants are analyzing the derivation of a general solution for this equation and comparing their results to a solution provided in a textbook.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • The original poster attempts to derive a formula for w_n and expresses confusion over discrepancies between their result and the textbook's answer. Other participants question the validity of the textbook's solution and explore the implications of different approaches to solving the equation.

Discussion Status

Participants are actively engaging in clarifying the steps taken in the derivation of the difference equation's solution. Some guidance has been offered regarding the interpretation of the results, and there is an ongoing examination of the differences between the original poster's findings and the textbook's answer.

Contextual Notes

There is mention of ambiguity in notation, particularly regarding the use of w_0 and w_0' in the original poster's work. Additionally, participants note potential errors in the textbook's solution, raising questions about the reliability of provided answers.

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?
[tex] w_{n + 1} = 2w_n + 1[/tex]
w_1 = 2w_0 + 1
w_2 = 2w_1 + 1 = 2(2w_0 + 1) + 1 = 2^2w_0 + 1 + 2^1
[tex] \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 [/tex]

[tex] w_n = 2^n w_0 ' + 2^{n + 1} - 1 - 2^n = 2^n \left( {w_0 ' - 1} \right) + 2^{n + 1} - 1[/tex]...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.

[tex] w_n = 2^n w_0 + 2^{n + 1} - 1[/tex]

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 [tex]w_{0}=2^{0}w_{0}+2-1=w_{0}+1[/tex]
Similarly [tex]w_{1}=2w_{0}+2^{2}-1=2w_{0}+3[/tex]

You have correctly found:
[tex]w_{n}=2^{n}w_{0}+2^{n+1}-1-2^{n}[/tex]
Rewrite this as follows:
[tex]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[/tex]
 
Thanks for the help but I still don't understand how the book got [tex]w_n = 2^{n + 1} - 2 + 2^n v_0[/tex] (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 [tex]w_{1}=2w_{0}+1[/tex]
but their formula says: [tex]w_{1}=2^{2}-2+2w_{0}=2+2w_{0}[/tex]
 
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.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K