Math: 2nd degree difference equation example (aka 2nd degree recurrence relation, recursive function)

The tutor starts towards the general solution to a 2nd degree difference equation, aka recurrence relation.

Back in my June 21 post, the following recurrence relation emerged:

n tn
0 1
1 1
2 2
3 3
4 5

The tabulated relationship above can be written as tn+2=tn+1+tn, and then as tn+2 – tn+1 – tn = 0

The equation above is a second degree homogeneous recurrence equation. Its general solution will be of the form

tn=as1^n + bs2^n,

where s1, s2 are the solutions to the related quadratic equation

x^2-x-1=0

Using the quadratic formula (see my post here), we get

x=(1+5^0.5)/2 or x=(1-5^0.5)/2

So the general solution to the recursive equation tn+2 – tn+1 – tn = 0 will be

tn = a((1+5^0.5)/2)^n + b((1-5^0.5)/2)^n

where a,b are constants to determine. Next post, I’ll show how to determine a and b in order to arrive at the definitive solution.

Source:

Grimaldi, Ralph P. Discrete and Combinatorial Mathematics. Don Mills:
   Addison-Wesley, 1994.

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply