Can Anyone Solve This Difference Equation Using Generating Functions?

Click For Summary

Discussion Overview

The discussion revolves around solving a difference equation using two methods: direct solution and generating functions. Participants explore the characteristics of the equation, including its homogeneous and particular solutions, and engage in mathematical reasoning related to the coefficients and forms of the solutions.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant expresses difficulty in understanding how to approach the term "2n+3" in the difference equation.
  • Another participant suggests finding the homogeneous solution and asks if it has been determined.
  • A participant identifies the characteristic equation and roots, proposing a form for the homogeneous solution.
  • Another participant confirms the identification of the characteristic roots and provides a form for the homogeneous solution, suggesting the use of undetermined coefficients for the particular solution.
  • A participant outlines the steps to derive the particular solution and asks for results after substituting into the difference equation.
  • One participant admits to not understanding the substitution process and seeks further clarification.
  • A participant performs the substitution and simplifies the equation, ultimately proposing values for the coefficients of the particular solution.
  • Another participant confirms the values of the coefficients and inquires about using them in the general solution.
  • Participants discuss the final form of the general solution, incorporating the determined coefficients.
  • One participant expresses gratitude for assistance and reflects on their contributions to the discussion.
  • A later reply acknowledges the contributions of the participant and notes a lack of familiarity with generating functions, indicating a need for further input from knowledgeable members.

Areas of Agreement / Disagreement

Participants generally agree on the steps taken to derive the homogeneous and particular solutions, but there is no consensus on the use of generating functions, as some participants express uncertainty about that method.

Contextual Notes

Some participants' understanding of the generating function approach is limited, and there are unresolved steps in the mathematical reasoning that depend on further clarification or additional input.

Who May Find This Useful

Readers interested in difference equations, generating functions, and mathematical problem-solving techniques may find this discussion beneficial.

Puzzles
Messages
21
Reaction score
0
Can anyone help me solve this? Text goes: solve the difference equation first directly, then with generating functions
View attachment 6545

I've been stuck with it for hours. I have no idea what to do with "2n+3". We don't have anything about this special case in my textbook, and I can't seem to find anything online... any help would be much appreciated.
 

Attachments

  • dm1.png
    dm1.png
    1.7 KB · Views: 124
Physics news on Phys.org
First, we want to find the homogeneous solution $h_n$...have you done that? If so, what do you have?
 
From what I've understood, the homogeneous solution should look like:

r2 - 4r + 3 = 0

with roots: r1 = 1 and r2 = 3

Because of r1 = 1, we get: an = n(A0 + nA1)

I'm sorry if this is incorrect.
 
You've correctly identified the characteristic roots, and so the homogeneous solution is:

$$h_n=k_1(1)^n+k_23^n=k_1+k_23^n$$

We will be able to determine the values of the parameters $k_i$ once we have the particular solution. To do that we can use the method of undetermined coefficients. Let's write the difference equation in the form:

$$a_{n}-4a_{n-1}+3a_{n-2}=2^n+3$$

Now, looking at the form of the RHS, and observing that we already have a constant in our homogeneous solution, we conclude that our particular solution $p_n$, will have the form:

$$p_n=A2^n+Bn$$

So, what you want to do now, is write:

$$p_{n}-4p_{n-1}+3p_{n-2}=2^n+3$$

Substitute in the form we found for $p_n$, and then simplify and equate like coefficients on either side of the equation to determine $A$ and $B$. What do you get?
 
I'm sorry, but I really have no idea.
 
Okay, if we make the substitution, we get:

$$\left(A2^n+Bn\right)-4\left(A2^{n-1}+B(n-1)\right)+3\left(A2^{n-2}+B(n-2)\right)=2^n+3$$

Distributing, we get:

$$A2^n+Bn-4A2^{n-1}-4B(n-1)+3A2^{n-2}+3B(n-2)=2^n+3$$

$$A2^n+Bn-4A2^{n-1}-4Bn+4B+3A2^{n-2}+3Bn-6B=2^n+3$$

Combine like terms:

$$A2^n-4A2^{n-1}+3A2^{n-2}-2B=2^n+3$$

Now, let's multiply through by $2^{2-n}\ne0$ to get:

$$A2^2-4A2^{1}+3A2^{0}-2B2^{2-n}=2^{2}+3\cdot2^{2-n}$$

Simplify:

$$-A-2B2^{2-n}=4+3\cdot2^{2-n}$$

From this, we conclude:

$$A=-4,\,B=-\frac{3}{2}$$

And so our particular solution is:

$$p_n=-4\cdot2^n-\frac{3}{2}n=-\frac{1}{2}\left(2^{n+3}+3n\right)$$

And so, by the principle of superposition, then general solution to the given difference equation is:

$$a_n=h_n+p_n=k_1+k_23^n-\frac{1}{2}\left(2^{n+3}+3n\right)$$

Now we can use the given initial values to determine the values of the parameters $k_i$...

$$a_0=k_1+k_2-\frac{1}{2}\left(2^{3}+3(0)\right)=1$$

$$a_1=k_1+3k_2-\frac{1}{2}\left(2^{4}+3(1)\right)=4$$

Solving this system, what do you find?
 
k1 = 3/4
k2​ = 17/4

Do I just replace these in the homogeneous solution and get the final solution?
 
Puzzles said:
k1 = 3/4
k2​ = 17/4

Do I just replace these in the homogeneous solution and get the final solution?

You would use those values in the general solution:

$$a_n=\frac{3}{4}+\frac{17}{4}3^n-\frac{1}{2}\left(2^{n+3}+3n\right)=\frac{1}{4}\left(17\cdot3^n-2^{n+4}-6n+3\right)$$
 
MarkFL said:
You would use those values in the general solution:

$$a_n=\frac{3}{4}+\frac{17}{4}3^n-\frac{1}{2}\left(2^{n+3}+3n\right)=\frac{1}{4}\left(17\cdot3^n-2^{n+4}-6n+3\right)$$

Thank you very, very much, and I'm sorry for being useless throughout this.
 
  • #10
Puzzles said:
Thank you very, very much, and I'm sorry for being useless throughout this.

I wouldn't say you were "useless"...you did correctly identify several quantities. :D

As far as using a generating function to get the solution, I would have to wait until someone more knowledgeable can chime in. That's something I never learned. :D
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 22 ·
Replies
22
Views
5K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K