Linear Dynamical Systems

Linear Dynamical Systems and Recurrence Relations
A linear dynamical system in two variables is given by:
Letting vn=[xnyn] and A=[acbd], the system can be expressed in matrix form as:
vn+1=Avn
Notice the pattern as we find each successive state vector:
v1v2v3⋮vn====Av0Av1Av2Avn−1===A(Av0)A(A2v0)A(An−1v0)===A2v0A3v0Anv0
Therefore, we can always find vn by calculating:
vnor: vn=Anv0=PDnP−1v0
Steps
Here is how we will find a solution vnto the dynamical system vn+1=Avn given initial conditions x0 and y0:
- Diagonalize A by finding P and D such that D=P−1AP.
- Use the matrix power formula: An=PDnP−1.
- Simplify the expression vn=Anv0 , where v0=[x0y0].
Recurrence Relations
A recurrence relation defines elements of a sequence based on previous elements:
xn+2=cxn+dxn+1,x0=a, x1=b
We can treat recurrence relations of this form as linear dynamical systems by setting yn=xn+1.
Note: The initial condition can be written as:
v0=[x0y0]=[x0x1]=[ab]
⟹⟹⟹{xn+1=ynyn+1=xn+2{xn+1=0xn+1ynyn+1=cxn+dxn+1{xn+1=0xn+1ynyn+1=cxn+dynvn+1[xn+1yn+1]=A[0c1d]vn[xnyn]
Example
Rewrite the following recurrence relation as a linear dynamical system:
xn+2=−2xn+1+xn,x0=2, x1=3
Let yn=xn+1. Then {xn+1yn+1==ynxn+2==0xn+1yn1xn−2xn+1==0xn+1yn1xn−2yn⟹A=[011−2].
The initial condition is v0=[x0y0]=[x0x1]=[23].
Putting it all together, we obtain the matrix equation vn=Anv0.
Now we can solve this linear dynamical system using the same steps as before!

Example: Linear Dynamical Systems
Consider the linear dynamical system given by
with initial conditions x0=1, y0=2. Find solutions to this system for general n and for n=3.
The matrix representing this system is A=[2112].
Writing vn=[xnyn], we have the system vn+1=Avn with initial condition v0=[12].
In order to find the eigenvalues of A, we solve the following equation:
0=det(λI−A)=det[λ−2−1−1λ−2]=(λ−2)2−(−1)2=λ2−4λ+4−1=λ2−4λ+3=(λ−1)(λ−3)
Then the eigenvalues are λ1=1 and λ2=3, giving D=[λ100λ2]=[1003].
Now let's find the corresponding eigenvectors.
For λ1=1, we need to solve the homogeneous equation (I−A)X=0:
[−1−1−1−1]R2−R1→R2[−10−10]
From here it is clear that the solution is any vector of the form [−tt]=t[−11].
This gives the basic eigenvector for λ1=1 as x1=[−11].
For λ2=3, we need to solve the homogeneous equation (3I−A)X=0:
[1−1−11]R2+R1→R2[10−10]
From here it is clear that the solution is any vector of the form [tt]=t[11].
This gives the basic eigenvector for λ2=3 as x2=[11].
Then the matrix P is given by P=[x1x2]=[−1111].
Now we can compute P−1=−21[1−1−1−1]=21[−1111].
Recalling that the initial condition is v0=[12], we can write the formula vn=Anv0:
vn[xnyn]=======PDnP−1v0[−1111][1003]n21[−1111][12][−1111][1003n]21[−1111][12] [−113n3n]21[−1111][12]21[1+3n−1+3n−1+3n1+3n][12]21[−1+3⋅3n1+3⋅3n]21[−1+3n+11+3n+1]
For n=4 specifically, we have the solution:
[x4y4]=21[−1+811+81]=[4041]