• Tidak ada hasil yang ditemukan

Homogeneous second-order difference equations

An equation of the form

yt+a1yt−1+a2yt−2 = 0, t≥2

in which a1 and a2 are constants, is a homogeneous linear second-order difference equation with constant coefficients (or recurrence equation of the same

description). It is called second-order because the equation involves two previous terms of the sequence (or equivalently, because the difference between the highest index and lowest index is two). If you are given y0 and y1, then the equation determinesy2 and all remaining numbers in the sequence. The equation may also be written as

yt+2+a1yt+1+a2yt = 0, t ≥0.

We want to find a general solution of this equation. The general solution will need to have two arbitrary constants so that a specific solution can be found once y0 and y1 are given (just as the general solution of a first-order equation contains one arbitrary constant).

As the equation is linear and homogeneous, two very useful properties apply (compare this with homogeneous systems of linear equations, Ax=0):

a constant multiple of a solution is a solution, the sum of two solutions is a solution.

11

11.6. Homogeneous second-order difference equations

Activity 11.5 Show this. Given two sequences xt and zt which satisfy the

homogeneous difference equation yt+2+a1yt+1+a2yt= 0, show that xt+zt and cxt, where cis a constant, also satisfy this equation

Therefore, it follows that if we know two solutions xt and zt of the difference equation, then

yt =Axt+Bzt is also a solution for any constants A, B ∈R.

We next set about finding solutions. Knowing what we do about the general solution of the homogeneous first-order equation (a geometric progression), let’s try a solution of the form yt =mt wherem is some constant to be determined.

Substituting yt=mt into the difference equation we obtain

yt+2+a1yt+1+a2yt=mt+2+a1mt+1+a2mt=mt(m2+a1m+a2) = 0.

If m= 0, we get yt= 0, so we ignore this possibility. Then yt=mt is a solution of the difference equation if and only if m satisfies m2+a1m+a2 = 0. This equation,

z2+a1z+a2 = 0. is known as the auxiliary equation.

Let’s look at an example.

Example 11.6 We find the general solution of the difference equation yt+2−5yt+1+ 6yt= 0.

The auxiliary equation is

z2−5z+ 6 = 0.

This equation factors, z2−5z+ 6 = (z−2)(z−3) = 0, with solutions z = 2 and z = 3. Therefore both xt = 2t and zt = 3t are solutions and the general solution is

yt =A(2t) +B(3t), A, B ∈R.

Now suppose we are given initial conditions y0 = 1 andy1 = 4. Then the difference equation determines all remaining numbers in the sequence. We have

y2 = 5y1−6y0 = 5(4)−6(1) = 14, y3 = 5y2−6y1, and so on.

The specific solution of the difference equation with these initial conditions is found by substituting t = 0 andt= 1 into the general solution. We have

y0 =A+B = 1 and y1 = 2A+ 3B = 4.

Solving these equations for A and B, we find B = 2 andA=−1. Therefore the solution of yt+2−5yt+1 = 6yt= 0 with initial conditions y0 = 1 and y1 = 4 is

yt =−(2t) + 2(3t).

We can immediately check that y0 =−20+ 2(30) = −1 + 2(1) = 1 and y1 =−2 + 2(3) = 4 as required. A further check is to find that

y2 =−(22) + 2(32) = −4 + 18 = 14 as we found earlier.

11

The auxiliary equation z2+a1z+a2 = 0 of a second-order difference equation is a quadratic equation and the general solution to the difference equation depends on whether the auxiliary equation has two distinct solutions, or just one solution, or no (real) solutions. Thus, the form of general solution depends on the value of the discriminant, a21−4a2. We consider each case in turn.

When the auxiliary equation has two distinct solutions, α and β, the general solution is

yt =Aαt+Bβt (A, B constants).

In any specific case, A and B are determined by the initial valuesy0 and y1, as in Example 11.6.

When the auxiliary equation has just one solution, α, the general solution is yt=Ctαt+Dαt= (Ct+D)αt.

As in the previous case, the values of the constants C and D can be determined by using the initial values y0 and y1.

The auxiliary equation has no real solutions when the quantity a21−4a2 is negative.

In that case, 4a2−a21 is positive, and hence so is a2. Thus there is a positive square root r of a2; that is, we can define r =√

a2. In order to write down the general solution in this case we define the angle θ by

cosθ=−a1

2r =− a1 2√

a2

. Then the general solution in this case is

yt =Ertcosθt+F rtsinθt, where E and F are constants.

That these general solutions are as stated can be verified by substitution into the difference equations, but you are not expected to do so for this subject. If you study complex numbers in the future, you will be able to see where the last type of general solution comes from.

Instead, we will look at some examples.

Example 11.7 We find the general solution of the difference equation yt−6yt−1+ 5yt−2 = 0.

The auxiliary equation is z2−6z+ 5 = 0, that is (z−5)(z−1) = 0, with solutions 1 and 5. The general solution is therefore

yt=A(1t) +B(5t) = A+B5t, for arbitrary constants A and B.

11

11.6. Homogeneous second-order difference equations

Example 11.8 We find the general solution of the difference equation yt+ 6yt−1+ 9yt−2 = 0.

The auxiliary equation is z2+ 6z+ 9 = 0, that is (z+ 3)2 = 0, with solution z =−3.

The general solution is therefore

yt=A(−3)t+Bt(−3)t = (A+Bt)(−3)t, for arbitrary constants A and B.

Example 11.9 Let us find yt if

yt−2yt−1+ 4yt−2 = 0, and y0 = 1, y1 = 1−√

3. Here, the auxiliary equation, z2−2z+ 4 = 0, has no real solutions, so we are in the third case. In the notation used above, we have

r =√

4 = 2. It follows that

cosθ=−(−2)/(2r) = 2/4 = 1/2, so θ=π/3. The general solution is therefore

yt= 2t(Ecos (πt/3) +F sin (πt/3)).

Putting t= 0, and using the given initial condition y0 = 1, we haveE = 1. Similarly y1 = 1−√

3 implies that

2 (Ecos(π/3) +F sin(π/3)) = 2 1 2 +F

√3 2

!

= 1−√ 3, so that 1 +√

3F = 1−√

3. Therefore F =−1 and the required solution is yt= 2t(cos (πt/3)−sin (πt/3)).

Let’s check this solution. It should satisfy the initial conditions y0 = 1, y1 = 1−√ 3.

In addition we can obtain y2: y2 = 2y1−4y0 = 2(1−√

3)−4(1) =−2−2√ 3.

Using the solution,

y0 = 20(cos 0−sin 0) = 1 and

y1 = 2(cos(π/3)−sin(π/3)) = 2((1/2)−(√

3/2)) = 1−√ 3.

So far, so good. Now for y2. We have

y2 = 22(cos(2π/3)−sin(2π/3)) = 4(−(1/2)−(√

3/2)) =−2−2√ 3, which is as it should be.

11