Unit 2 - Notes

MTH401

Unit 2: Recurrence Relations

1. Fundamentals of Recurrence Relations

Definition

A recurrence relation for the sequence is an equation that expresses in terms of one or more of the previous terms of the sequence, namely , for all integers with , where is a nonnegative integer.

A sequence is called a solution of a recurrence relation if its terms satisfy the recurrence relation.

Classification of Recurrence Relations

To solve a relation, one must first classify it based on:

  1. Order: The difference between the highest and lowest subscripts of the terms present in the equation.
    • Example: is of order 2 ().
  2. Linearity: It is linear if and previous terms appear to the first power and are not multiplied together.
    • Linear:
    • Non-linear: or
  3. Homogeneity: It is homogeneous if every term in the equation involves some . If there is a constant or a function of independent of , it is non-homogeneous.
    • Homogeneous:
    • Non-homogeneous:
  4. Coefficients: Constant coefficients (numbers) vs. variable coefficients (functions of ).

2. Modelling with Recurrence Relations

Modelling involves translating a real-world problem into a mathematical recurrence.

Classic Examples

1. Compound Interest

Problem: An investment of $1000 yields 5% interest per year. Let be the amount after years.
Model:

  • Initial condition:
  • Relation: The amount next year equals this year's amount plus interest.

2. The Tower of Hanoi

Problem: Find the number of moves required to move disks from one peg to another, following standard rules.
Model:
To move disks:

  1. Move the top disks to the auxiliary peg ( moves).
  2. Move the largest disk to the target peg (1 move).
  3. Move the disks from the auxiliary peg to the target peg ( moves).
    Recurrence:

    With initial condition .

3. Fibonacci (Rabbit Breeding)

Problem: A pair of rabbits produces a new pair every month starting from the second month. How many pairs exist at month ?
Model:


With (or depending on indexing).


3. Homogeneous Linear Recurrence Relations with Constant Coefficients

General Form

A linear homogeneous recurrence relation of degree with constant coefficients is of the form:


where are real numbers and .

Method of Solution: Characteristic Equation

Step 1: Rewrite the relation as:

Step 2: Assume a solution of the form (). Substitute into the equation and divide by to obtain the Characteristic Equation:

Step 3: Solve for the roots () of the characteristic equation.

Case A: Distinct Real Roots

If all roots are distinct, the general solution is:


The constants are determined using initial conditions.

Case B: Repeated Real Roots

If a root has multiplicity (it is repeated times), the part of the general solution corresponding to this root is:

Case C: Complex Conjugate Roots

If roots are complex numbers , express them in polar form .
The solution is:


4. Method of Inverse Operator

This method allows for solving Non-Homogeneous Linear Recurrence Relations with Constant Coefficients.
General form:


where .

The total solution is , where:

  • is the homogeneous solution (found by setting ).
  • is the particular solution.

Shift Operator Definitions

Define the shift operator such that:

Rewrite the recurrence using .
Example:
Adjust indices to highest :
Operator form:
Let be the polynomial in . Then:

Rules for Solving

Case 1: Exponential Form

If where is a constant:


Condition: .

Exception (Case of Failure):
If , then is a root of the characteristic equation.
If is a root of multiplicity :


Note: A simpler practical rule for is to use the standard undetermined coefficient result .

Case 2: Polynomial Form

  1. Rewrite by substituting (where is the forward difference operator).
  2. Alternatively, treat as an algebraic fraction.
  3. Expand in increasing powers of (or ) up to the degree of the polynomial .
  4. Apply the expanded operator to .

Case 3: Product Form

Where is a polynomial in :


After shifting out, solve for the remaining polynomial part using the method in Case 2.


5. Generating Functions

A generating function is a formal power series whose coefficients correspond to a sequence of numbers.

Definition (Ordinary Generating Function - OGF)

For a sequence , the generating function is defined as:

Important Series Expansions

  1. Geometric Series:


    Corresponds to sequence .

  2. Generalised Binomial Theorem:


    Specifically, .

  3. Exponential:

Shifts in Generating Functions

If generates :

  • generates (Right shift).
  • generates (Left shift).

6. Solution of Recurrence Relation using Generating Functions

This method is powerful because it converts the recurrence relation into an algebraic equation involving .

The Algorithm

  1. Define: Let .
  2. Multiply: Multiply the entire recurrence relation by .
  3. Sum: Sum the equation over all valid (usually where is the order of the recurrence).
  4. Substitute: Express all infinite sums in terms of and initial conditions.
  5. Solve: Solve the resulting algebraic equation for .
  6. Expand: Express as a power series (usually using Partial Fractions and known series expansions) to identify the coefficient of , which is .

Worked Example

Solve: for , with .

1. Multiply by and sum from to :

2. Convert to :

  • First term:
  • Second term:
  • Third term:

3. Assemble Equation:

4. Group terms:



5. Partial Fractions:
Factor denominator: .


Solving for constants:

  • Set :
  • Set :

6. Expand to find :
Using :


Final Solution: