Linear Algebra - Linear Constant Coefficient Difference Equations

Click For Summary

Homework Help Overview

The problem involves solving a linear constant coefficient difference equation given by x[n] = -x[n-1] + x[n-2] + x[n-3] with specified initial conditions. The original poster attempts to find the general solution for x[n] after determining some characteristic roots.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the use of an ansatz involving characteristic roots and the formation of a linear combination of terms based on those roots. There is debate over the correct handling of roots, particularly regarding multiplicity and the application of initial conditions.

Discussion Status

The discussion is ongoing, with participants providing insights into the formulation of the general solution and questioning the original poster's calculations. Some guidance has been offered regarding the structure of the solution, but there is no consensus on the correct approach yet.

Contextual Notes

There is a noted confusion regarding the roots of the characteristic equation and their multiplicity, which is influencing the proposed forms of the solution. The initial conditions provided may also be impacting the discussion on how to proceed with solving for the coefficients.

symsane
Messages
13
Reaction score
0

Homework Statement



x[n] = -x[n-1] + x[n-2] + x[n-3] and x[0]= 0, x[-1]= 0, x[-2]= -1

We want to find "x[n]". When I started to solve this problem I acquired that lambda1= 1 and lambda2,3= -1. I couldn't do anything after lambda's are found. So, can anyone solve the remaining part?
 
Physics news on Phys.org
So I assume you used the ansatz
<br /> x[n]=\lambda^n<br />
?

well, just build up a linear combination from your three lambdas
<br /> x[n]=A+B(-1)^n+C n (-1)^n<br />
Because there is this double root at -1 you need to multiply one of the terms by n. Do you know this type of thing from ODE's?

Then plug in your initial values and solve for A,B,C.

This is a linear system of equations with three unknowns and solution A=-1/4, B=1/4, C=-1/2.
 
symsane said:

Homework Statement



x[n] = -x[n-1] + x[n-2] + x[n-3] and x[0]= 0, x[-1]= 0, x[-2]= -1

We want to find "x[n]". When I started to solve this problem I acquired that lambda1= 1 and lambda2,3= -1. I couldn't do anything after lambda's are found. So, can anyone solve the remaining part?

Pere Callahan said:
So I assume you used the ansatz
<br /> x[n]=\lambda^n<br />
?

well, just build up a linear combination from your three lambdas
<br /> x[n]=A+B(-1)^n+C n (-1)^n<br />
Because there is this double root at -1 you need to multiply one of the terms by n. Do you know this type of thing from ODE's?

Then plug in your initial values and solve for A,B,C.

This is a linear system of equations with three unknowns and solution A=-1/4, B=1/4, C=-1/2.

But it is 0 that is a double root so it is not (-1)n that you need to multiply by n! You should have x_n= A+ Bn+ C (-1)^n.
 
I think 0 is not even a single root. Plugging in x[n]=lambdan gives
<br /> \lambda^{n}=-\lambda^{n-1}+\lambda^{n-2}+\lambda^{n-3}<br />
or
<br /> \lambda^{3}=-\lambda^{2}+\lambda^{1}+1<br />
I think the OP's calculation of the roots was correct.
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
15
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 10 ·
Replies
10
Views
3K
Replies
9
Views
3K