Lesson 4: | LINEAR DYNAMICAL SYSTEMS OF ORDER TWO |
Objectives of This Lesson:
Introduction
Nearly all of the discrete dynamical systems examined in detail up to this lesson have been dynamical systems of order 1. In this lesson, we examine the second-order discrete dynamical systems:
(I) a0=b0, a1=b1
(R) an=f(an-1, an-2, n)
for some constants h and k, and g(n) is a given function of n. The first part of this lesson will deal with such systems that are also homogeneous; that is, for which g(n)=0 for all n.
Example 4.1: Consider the discrete dynamical system
(I) a0=0, a1=1
(R) an=2an-1-an-2 for n>1
|
n |
an |
|
0 |
0 |
|
1 |
1 |
|
2 |
2(1) 0 = 2 |
|
3 |
2(2) 1 = 3 |
|
4 |
2(3) 2 = 4 |
|
5 |
2(4) 3 = 5 |
Looking at the values, it appears that this system might have the solution a(n)=n for all n. We shall check this out later in the lesson.
Solutions to Homogeneous Discrete Dynamical Systems of Order Two
In many ways, the solution process for homogeneous discrete dynamical systems of order 2 parallels that for systems of order 1. These latter systems were systems in which the new term was some multiple of the previous term:
We saw that the solution for this system can be written as a(n)=crn for all n.
Suppose that we look for solutions of the form
to a homogeneous recurrence relation
of order 2. By substitution, you can see that (*) will be a solution of (**) provided that r satisfies:
Rewrite the preceding equation in the form
This means that:
then a(n)=an=crn is a solution of the homogeneous recurrence relation
of order 2.
The quadratic equation (C) is called the characteristic equation of the recurrence relation (R).
If we solve the characteristic equation, we may get two distinct real roots, r and s that play the role played by the ratio r in the first-order recurrence relation and solution. A conjecture for a solution to this second-order homogeneous system of order 2 might be
where r and s are the distinct real roots to the characteristic equation and c1 and c0 are constants derivable from the recurrence relation and initial values.
The solution in this case, like in the first-order cases, is a function that must satisfy the original dynamical systems defining recurrence relation. In this case, evaluating the solution for a(n), a(n 1), and a(n 2) gives the values:
a(n) = c1rn + c0sn; a(n1) = c1rn1 + c0sn1; and a(n2) = c1rn2 + c0sn2. Substituting these expressions back into the recurrence relation we have:
c1rn + c0sn = h(c1rn1 + c0sn1) + k(c1rn2 + c0sn2).
If we simplify this equation, we find that it can be written as:
c1rn2(r2 hr k) + c0sn2(s2 hs k) = 0.
But this relationship will be identically equal to 0 for all values of n if and only if both r2 hr k and s2 hs k are identically equal to 0 for all values of n. Hence, we would want to choose r and s such that they are the roots to the quadratic equation x2 hx k = 0, the characteristic equation associated with the homogeneous dynamical system of order 2 that we started with above. We will show later that if r and s are distinct real roots of the characteristic equation, all solutions of the system can be written in this form.
for a second order, homogeneous recurrence relation
then
is the general solution of the equation, where c1 and c2 are constants determined by initial values.
(I) F0 = 1, F1 = 1
(R) Fn = Fn-1 + Fn-2 for n>1
Solution: The characteristic equation for the system is
which has roots
| r1 = (1+51/2)/2 | r2 = (1-51/2)/2 |
Now impose the initial conditions F0=1 and F1=1 to obtain the equations:
The preceding equations can be solved for c1, c2 to obtain the following solution for the Fibonacci system
F(n) = (1/2n+151/2)[(1+51/2)n+1 -(1-51/2)n+1]
Although it does not look very likely that this formula for F(n) will produce the Fibonacci sequence 1,1,2,3,5,8,13,..., you can check it on your calculator. For example, if you enter this formula into your calculator, the following tables of values will result.
|
|
Right on the money!
The Case of Double Roots for the Characteristic Equation
The homogeneous discrete dynamical system of order 2 studied at the beginning of this lesson:
(I) a0=0, a1=1
(R) an=2an-1-an-2 for n>1
This equation can be written as
so it has a double root x=1. This means that
is a solution of the recurrence relation (R) of the system for any choice of the constant. However, no choice of c1 will yield the initial values
Notice that a second solution of this recurrence relation can be obtained by multiplying this first solution by n; that is
is also a solution! To see this, just substitute this expression into the recurrence relation an = 2an-1 - an-2:
This means that
is a general solution of the recurrence relation
for any choice of constants c1 and c2.
Now impose the initial conditions:
Thus, c1=0 and c2=1, so the solution of the given discrete dynamical system is
This squares with the tabular information that we developed earlier.
The method used in the preceding example to construct the general solution actually always works:
an = han-1 + kan-2
of order 2 has a characteristic equation:
x2-hx-k = 0
with a double root x=r, then the general solution of the recurrence relation is
a(n) = an = c1rn + c2nrn
where c1 and c2 are constants that are determined by the initial conditions.
The heart of the proof of the preceding result is showing that, if x=r is a double root of the characteristic equation
x2-hx-k = 0
then an=c2nrn satisfies the recurrence relation:
an = han-1 + kan-2 for n>1
for any choice of c2. This is done by direct substitution and simplification as follows:
Note that the first expression in square brackets in the preceding equation is 0 because r is a root of the characteristic equation. The second expression in square brackets is also 0 because if r is a double root of the quadratic equation x2-hx-k=0 then r=h/2 and h2+4k=0. Thus, an=c2nrn is a solution of the recurrence relation.
Example 4.3: Find the first 7 values determined by the discrete dynamical system
Then solve the characteristic equation and explore the construction of the solution of this system.
Solution: The first 7 terms of the sequence are easy to compute by hand:
The characteristic equation for (R) is:
This equation has complex conjugate roots:
| r = 1/2 + 31/2i/2 | s = 1/2 - 31/2i/2 |
Thus, in this case, the general solution is
(The earlier discussion was for distinct real roots r and s, but the algebra is the same for complex r and s!) Now impose the initial conditions a0=1 and a1=2 to obtain the equations
These equations can be solved for c1 and c2 to obtain
| c1 = 1/2 - 31/2i/2 | c2 = 1/2 + 31/2i/2 |
Let's check the first few values:
It's working!
Summary:
of a homogeneous linear DDS
has complex conjugate roots
then the general solution of (R) is
where c1 and c2 are constants whose values are detmerined by the initial conditions (I).
There is a more convenient and descriptive way to write the general solution for the case in which the charactertistic equation has complex conjugate roots r = a ± ib. First, write a + ib in polar (or trigonometric) form:
where r = (a2+b2)1/2, q = Arctan (b/a)
Then, as we have seen above, the sequence of complex numbers defined by:
is a solution of (R). Also, because the coefficients in the recurrence relation (R) are real numbers, the sequences of real and imaginary parts of zn:
| Re(zn) = rncos(nq) | Im(zn) = rnsin(nq) |
where d1 and d2 are real constants that are determined by the initial conditions (I). This form of the general solution is often called the real general solution of (R).
In Example 4.2, we found that the characteristic equation had complex conjugate roots:
Therefore, the real general solution of that system is
To compute the values of d1 and d2 that are determined by the initial values, note that
These equations have the solutions
| d1 = 1 | d2 = 31/2 |
The following example shows that the Method of Undetermined Coefficients can be used for non-homogeneous linear discrete dynamical systems of order 2 in essentially the same way as in Lesson 3 for systems of order 1.
Example 4.4:
Solution:
The characteristic equation of (R*):
has roots x=2 and x=3. Consequently the general solution of (R*) is
Based on the Method of Undetermined Coefficients for DDS's of order 1, we now seek a solution of the non-homogeneous recurrence relation (R) of the form
where c is an appropriate constant determined by substitution into (R) as follows:
(c-2)(5n) - 5c(5n-1) + 6c(5n-2) = 0
[25(c-2) - 25c + 6c](5n-2) = 0
-50+6c = 0
c = 50/6 = 25/3
Therefore
is a particular solution of (R) and so the general solution of (R) is
where c1 and c2 are constants detmerined by the initial conditions (I).
Now impose the initial conditions (I) to obtain the equations
This pair of equations has the solution c1=-127/3 and c2=27, so the solution of the given DDS is:
Important Point: The following Just Do It! questions are Assignment 4 for this module. There is an Assignment 4 shell file in the download folder for this module that contains the statements of these questions. Open that shell now and complete Assignment 4 according to the instructions in that document.
Just Do It!
for each of the following sets of initial conditions
In each case, include a screenshot of a table of the first 6 values in the space below the solution formula.
Problem 4.2
Verify that the first 6 values computed from your solution formula agree with the first 6 values computed from the discrete dynamical system. (You can do this by including screenshots from your calculator or you can do it by hand).
Problem 4.3
Then find the solution that corresponds to the initial values
Problem: Compute the total number Sn of different Morse code messages (message=any string of dots and dashes) that can be sent in n time units? To solve this problem, complete the following steps:
Problem 4.5
for the solution to (b). Then do the same for two other sets of initial conditions of your choice. Are there any conjectures that you can make about the values of this ratio sequence?