Science and engineering math: Difference equation, non-homogeneous

Click For Summary
The discussion focuses on solving the difference equation an+2 - 5an+1 + 6an = 4n with initial conditions a0 = 0 and a1 = 1. The homogeneous part yields solutions an = A(3)n and an = A(2)n. For the non-homogeneous part, a user attempted to find a particular solution using an = B*4n but struggled with the next steps. Another participant suggested determining the generating function A(z) to find the sequence {an}. The conversation emphasizes the importance of combining both solutions to form the general solution while satisfying the initial conditions.
chatterbug219
Messages
15
Reaction score
0

Homework Statement



Solve the difference equation: an+2 - 5an+1 + 6an = 4n
Subject to a0 = 0 & a1 = 1

Homework Equations



an = Arn

The Attempt at a Solution


I got two solutions for the first part for when it is homogeneous by substituting an = Arn into the equation and solving for r.
an = A(3)n
an = A(2)n

I just don't know where to start for non-homogeneous. I tried an = B*4n and I got B*4n+2 -5B*4n+1 + 6B*4n = 4n but I don't know where to go from there.
 
Physics news on Phys.org
welcome to pf!

hi chatterbug219! welcome to pf! :smile:
chatterbug219 said:
I tried an = B*4n and I got B*4n+2 -5B*4n+1 + 6B*4n = 4n but I don't know where to go from there.

erm :redface:

4n+2/4n = … ? :wink:
 
So B = 1/2
And plugging that in...
an = (1/2)(4n) for the particular solution
Making the general solution:
an = A(2)n + (1/2)(4n)
Right?
 
hi chatterbug219! :smile:

(just got up :zzz:)
chatterbug219 said:
… Making the general solution:
an = A(2)n + (1/2)(4n)
Right?

you mean an = A(2)n + B(3)n + (1/2)(4n) :wink:

(or you could write it 2n(2n-1 + A) + 3nB )
 
No...if you plug in the initial conditions they final answers don't match up...
Only 2 works
 
yes, but to solve for the initial condition, you also need to find A
 
chatterbug219 said:

Homework Statement



Solve the difference equation: an+2 - 5an+1 + 6an = 4n
Subject to a0 = 0 & a1 = 1

Homework Equations



an = Arn

The Attempt at a Solution


I got two solutions for the first part for when it is homogeneous by substituting an = Arn into the equation and solving for r.
an = A(3)n
an = A(2)n

I just don't know where to start for non-homogeneous. I tried an = B*4n and I got B*4n+2 -5B*4n+1 + 6B*4n = 4n but I don't know where to go from there.

The simplest way is to determine the generating function A(z) = \sum_{n=0}^{\infty} a_n z^n, then invert it to find \{ a_n \}. Google "difference equations" to see hundreds of examples.

RGV
 

Similar threads

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