Linear Algebra - Linear Constant Coefficient Difference Equations

Click For Summary
SUMMARY

The discussion focuses on solving the linear constant coefficient difference equation x[n] = -x[n-1] + x[n-2] + x[n-3] with initial conditions x[0]=0, x[-1]=0, and x[-2]=-1. The roots of the characteristic equation were identified as λ1=1 and λ2,3=-1, leading to the general solution x[n]=A+B(-1)^n+C n (-1)^n. The final coefficients were determined to be A=-1/4, B=1/4, and C=-1/2 after substituting the initial conditions into the equation.

PREREQUISITES
  • Understanding of linear constant coefficient difference equations
  • Familiarity with characteristic equations and their roots
  • Knowledge of solving linear systems of equations
  • Basic concepts of ordinary differential equations (ODEs)
NEXT STEPS
  • Study the method of solving linear constant coefficient difference equations
  • Learn about characteristic equations and their applications in difference equations
  • Explore the concept of double roots in polynomial equations
  • Practice solving initial value problems using linear combinations of solutions
USEFUL FOR

Students and educators in mathematics, particularly those studying difference equations, linear algebra, and ordinary differential equations. This discussion is beneficial for anyone looking to deepen their understanding of solving linear difference equations with initial conditions.

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
2K