ConceptComplete

Recurrence Relations - Key Properties

Solving recurrence relations requires understanding how the characteristic equation's roots determine the solution form. Different types of roots lead to different solution structures, and these patterns are fundamental to the theory.

DefinitionSolution for Distinct Real Roots

If the characteristic equation rkc1rk1ck=0r^k - c_1r^{k-1} - \cdots - c_k = 0 has kk distinct real roots r1,r2,,rkr_1, r_2, \ldots, r_k, then the general solution to the recurrence relation is: an=α1r1n+α2r2n++αkrkna_n = \alpha_1 r_1^n + \alpha_2 r_2^n + \cdots + \alpha_k r_k^n

where α1,α2,,αk\alpha_1, \alpha_2, \ldots, \alpha_k are constants determined by initial conditions.

This is analogous to solving linear differential equations: the characteristic equation gives us the exponential basis functions, and initial conditions determine the coefficients.

ExampleSolving a Second-Order Recurrence

Consider an=5an16an2a_n = 5a_{n-1} - 6a_{n-2} with a0=1a_0 = 1 and a1=4a_1 = 4.

The characteristic equation is r2=5r6r^2 = 5r - 6, or r25r+6=0r^2 - 5r + 6 = 0.

Factoring: (r2)(r3)=0(r-2)(r-3) = 0, giving roots r1=2r_1 = 2 and r2=3r_2 = 3.

General solution: an=α12n+α23na_n = \alpha_1 \cdot 2^n + \alpha_2 \cdot 3^n

Using initial conditions:

  • a0=1a_0 = 1: α1+α2=1\alpha_1 + \alpha_2 = 1
  • a1=4a_1 = 4: 2α1+3α2=42\alpha_1 + 3\alpha_2 = 4

Solving: α1=1\alpha_1 = -1 and α2=2\alpha_2 = 2.

Therefore: an=2n+23n=2(3n2n1)a_n = -2^n + 2 \cdot 3^n = 2(3^n - 2^{n-1}).

DefinitionSolution for Repeated Roots

If the characteristic equation has a root rr with multiplicity mm, then the corresponding part of the general solution is: (α1+α2n+α3n2++αmnm1)rn(\alpha_1 + \alpha_2 n + \alpha_3 n^2 + \cdots + \alpha_m n^{m-1}) r^n

where α1,,αm\alpha_1, \ldots, \alpha_m are constants.

This phenomenon mirrors the behavior in differential equations where repeated roots introduce polynomial factors.

ExampleFibonacci Closed Form

The Fibonacci recurrence Fn=Fn1+Fn2F_n = F_{n-1} + F_{n-2} has characteristic equation r2=r+1r^2 = r + 1, or r2r1=0r^2 - r - 1 = 0.

Using the quadratic formula: r=1±52r = \frac{1 \pm \sqrt{5}}{2}.

Let ϕ=1+52\phi = \frac{1 + \sqrt{5}}{2} (the golden ratio) and ϕ^=152\hat{\phi} = \frac{1 - \sqrt{5}}{2}.

General solution: Fn=α1ϕn+α2ϕ^nF_n = \alpha_1 \phi^n + \alpha_2 \hat{\phi}^n

Using F0=0F_0 = 0 and F1=1F_1 = 1: Fn=15(ϕnϕ^n)=15[(1+52)n(152)n]F_n = \frac{1}{\sqrt{5}}\left(\phi^n - \hat{\phi}^n\right) = \frac{1}{\sqrt{5}}\left[\left(\frac{1+\sqrt{5}}{2}\right)^n - \left(\frac{1-\sqrt{5}}{2}\right)^n\right]

This is Binet's formula.

DefinitionMethod of Undetermined Coefficients

For non-homogeneous recurrences an=c1an1++ckank+f(n)a_n = c_1a_{n-1} + \cdots + c_ka_{n-k} + f(n), we find a particular solution an(p)a_n^{(p)} by guessing a form based on f(n)f(n):

  • If f(n)=df(n) = d (constant), try an(p)=Ca_n^{(p)} = C
  • If f(n)=dnkf(n) = d \cdot n^k, try an(p)=C0+C1n++Cknka_n^{(p)} = C_0 + C_1n + \cdots + C_kn^k
  • If f(n)=dsnf(n) = d \cdot s^n, try an(p)=Csna_n^{(p)} = C \cdot s^n

If the guessed form solves the homogeneous part, multiply by nn.

Remark

The theory of recurrence relations has deep connections to generating functions. The generating function G(x)=n=0anxnG(x) = \sum_{n=0}^{\infty} a_n x^n transforms a recurrence relation into a functional equation, which can often be solved to give closed forms. For instance, the Fibonacci generating function is G(x)=x1xx2G(x) = \frac{x}{1-x-x^2}, and expanding this as a power series recovers Binet's formula. This connection between discrete recurrences and analytic functions is a powerful bridge in combinatorics.

These solution methods provide systematic approaches to solving a wide class of recurrence relations.