FACTOID # 124: The United States allowed women to stand for election in 1788. 132 years later, women were finally allowed to vote in elections.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

Encyclopedia > Difference equation


In mathematics, a recurrence relation, also known as a difference equation, is an equation which defines a sequence recursively: each term of the sequence is defined as a function of the preceding terms.


For example (the logistic map):

x_{n+1} = r x_n (1 - x_n)  ,

Some simply defined recurrence relations can have very complex (chaotic) behaviours and are sometimes studied by physicists and mathematicians in a field of mathematics known as nonlinear analysis.


Solving a recurrence relation means obtaining a non-recursive function of n.

Contents

Linear homogeneous recurrence relations with constant coefficients

The term linear means that each term of the sequence is defined as a linear function of the preceding terms. The coefficients and the constants may depend on n, even non-linearly.


A special case is when the coefficients do not depend on n.


Homogeneous means that the constant term of the relation is zero.


In order to obtain a unique solution to the linear recurrence there must be some initial conditions, as the first number in the sequence can not depend on other numbers in the sequence and must be set to some value.


Solving linear recurrence relations

Solutions to recurrence relations are found by systematic means, often by using generating functions (formal power series) or by noticing the fact that rn is a solution for particular values of r.


For recurrence relations in the form:

a_{n}=Aa_{n-1}+Ba_{n-2}  ,

we have the solution rn:

r^{n}=Ar^{n-1}+Br^{n-2}  ,

Dividing through by rn - 2 we get:

r^2=Ar+B  ,
r^2-Ar-B=0  ,

This is known as the characteristic equation of the recurrence relation. Solve for r to obtain the two roots λ12, and if these roots are distinct, we have the solution

a_n = C lambda_1^n+D lambda_2^n  ,

while if they are identical (when A2+4B=0), we have

a_n = C lambda^n+Dn lambda^n  ,

where C and D are constants.


Additionally, if the equation is of the form an = Aan - 1 + B you can substitute 2 for n and get r2 = Ar + B as above. The constants C and D can be found from the "side conditions" that are often given as a0 = a, a1 = b.


Different solutions are obtained depending on the nature of the roots of the characteristic equation.


If the recurrence is inhomogeneous, a particular solution can be found by the method of undetermined coefficients and the solution is the sum of the solution of the homogeneous and the particular solutions.


Interestingly, the method for solving linear differential equations is similar to the method above — the "intelligent guess" for linear differential equations is ex.


This is not a coincidence. If you consider the Taylor series of the solution to a linear differential equation:

 sum_{n=0}^{ infin}  frac{f^{(n)}(a)}{n!} (x-a)^{n}

you see that the coefficients of the series are given by the n-th derivative of f(x) evaluated at the point a. The differential equation provides a linear difference equation relating these coefficients.


This equivalence can be used to quickly solve for the recurrence relationship for the coefficients in the power series solution of a linear differential equation.


Example: Fibonacci numbers

The Fibonacci numbers are defined using a linear recurrence relation:

F_{n} = F_{n-1}+F_{n-2}  ,
F_{0} = 0  ,
F_{1} = 1  ,

and has solution (letting  Phi = {1+ sqrt{5}  over 2} be the golden ratio)

F_n = { Phi^n  over  sqrt{5}} - {(1- Phi)^n  over  sqrt{5}}

The initial conditions are:

F_{0} = 0  ,
F_{1} = 1  ,

Therefore, the sequence of Fibonacci numbers is:

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 ...

Related topics


  Results from FactBites:
 
DIFFERENCE EQUATIONS \\ Applications and \\ Discrete Transforms Method (1647 words)
Difference equations are often used to model ``an approximation'' of differential equations, an approach which underlies the development of many numerical methods.
In the rest of the chapter we present some of the fundamental difference operators along with their basic properties and their inverses as ``sum'' operators, which are necessary for modeling difference equations as well as developing pairs for the basic discrete transforms.
In addition to the main topic here which is linear difference equations of one variable, or ``ordinary linear difference equation,'' a clear introduction to difference equations of several variables, or ``partial difference equations'' is also presented, which is supported by a number of interesting examples.
  More results at FactBites »

 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your location
Your comments
Please enter the 5-letter protection code


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.