All Topics  
Recurrence relation

 

   Email Print
   Bookmark   Link






 

Recurrence relation



 
 
"Difference equation" redirects here. It should not be confused with a differential equation
Differential equation

A differential equation is a mathematics equation for an unknown function of one or several variable that relates the values of the function itself and its derivatives of various orders....
.


In mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
, a recurrence relation is an equation
Equation

An equation is a mathematics Proposition, in table of mathematical symbols, that two things are exactly the same . Equations are written with an equal sign, as in...
 that defines a sequence
Sequence

In mathematics, a sequence is an ordered list of objects . Like a Set , it contains Element , and the number of terms is called the length of the sequence....
 recursively
Recursion

Recursion, in mathematics and computer science, is a method of defining Function in which the function being defined is applied within its own definition....
: each term of the sequence is defined as a function
Function (mathematics)

The mathematical concept of a function expresses dependence between two quantities, one of which is known and the other which is produced. A function associates a single output to each input element drawn from a fixed Set , such as the real numbers , although different inputs may have the same output....
 of the preceding terms.

A difference equation is a specific type of recurrence relation.

An example of a recurrence relation is the logistic map
Logistic map

The logistic map is a polynomial mapping of Quadratic function, often cited as an archetypal example of how complex, chaos theory behaviour can arise from very simple non-linear dynamical equations....
:

Some simply defined recurrence relations can have very complex (chaotic
Chaos theory

In mathematics, chaos theory describes the behavior of certain dynamical system s ? that is, systems whose states evolve with time ? that may exhibit dynamics that are highly sensitive to initial conditions ....
) behaviours and are sometimes studied by physicists and mathematicians in a field of mathematics known as nonlinear analysis
Nonlinearity

In mathematics, a nonlinear system is a system which is not linear system, that is, a system which does not satisfy the superposition principle, or whose output is not proportional to its input....
.

Solving a recurrence relation means obtaining a closed-form solution: a non-recursive function of n.

seed values:

Explicitly, recurrence yields the equations: etc.

We obtain the sequence of Fibonacci numbers which begins:
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...


It can be solved by methods described below yielding the closed form expression
Fibonacci number

In mathematics, the Fibonacci numbers are a sequence of numbers named after Leonardo of Pisa, known as Fibonacci . Fibonacci's 1202 book Liber Abaci introduced the sequence to Western European mathematics, although the sequence had been previously described in Indian mathematics....
 which involve powers of the two roots of the characteristic polynomial ; the generating function
Generating function

In mathematics a generating function is a formal power series whose coefficients encode information about a sequence an that is indexed by the natural numbers....
 of the sequence is the rational function
Rational function

In mathematics, a rational function is any function which can be written as the ratio of two polynomial functions....
 .

e the coefficients (for all ) are constants.

More precisely, this is an infinite list of simultaneous linear equations, one for each .






Discussion
Ask a question about 'Recurrence relation'
Start a new discussion about 'Recurrence relation'
Answer questions from other users
Full Discussion Forum



Encyclopedia


"Difference equation" redirects here. It should not be confused with a differential equation
Differential equation

A differential equation is a mathematics equation for an unknown function of one or several variable that relates the values of the function itself and its derivatives of various orders....
.


In mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
, a recurrence relation is an equation
Equation

An equation is a mathematics Proposition, in table of mathematical symbols, that two things are exactly the same . Equations are written with an equal sign, as in...
 that defines a sequence
Sequence

In mathematics, a sequence is an ordered list of objects . Like a Set , it contains Element , and the number of terms is called the length of the sequence....
 recursively
Recursion

Recursion, in mathematics and computer science, is a method of defining Function in which the function being defined is applied within its own definition....
: each term of the sequence is defined as a function
Function (mathematics)

The mathematical concept of a function expresses dependence between two quantities, one of which is known and the other which is produced. A function associates a single output to each input element drawn from a fixed Set , such as the real numbers , although different inputs may have the same output....
 of the preceding terms.

A difference equation is a specific type of recurrence relation.

An example of a recurrence relation is the logistic map
Logistic map

The logistic map is a polynomial mapping of Quadratic function, often cited as an archetypal example of how complex, chaos theory behaviour can arise from very simple non-linear dynamical equations....
:

Some simply defined recurrence relations can have very complex (chaotic
Chaos theory

In mathematics, chaos theory describes the behavior of certain dynamical system s ? that is, systems whose states evolve with time ? that may exhibit dynamics that are highly sensitive to initial conditions ....
) behaviours and are sometimes studied by physicists and mathematicians in a field of mathematics known as nonlinear analysis
Nonlinearity

In mathematics, a nonlinear system is a system which is not linear system, that is, a system which does not satisfy the superposition principle, or whose output is not proportional to its input....
.

Solving a recurrence relation means obtaining a closed-form solution: a non-recursive function of n.

Example: Fibonacci numbers


The Fibonacci number
Fibonacci number

In mathematics, the Fibonacci numbers are a sequence of numbers named after Leonardo of Pisa, known as Fibonacci . Fibonacci's 1202 book Liber Abaci introduced the sequence to Western European mathematics, although the sequence had been previously described in Indian mathematics....
s are defined using the linear recurrence relation with seed values:

Explicitly, recurrence yields the equations: etc.

We obtain the sequence of Fibonacci numbers which begins:
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...


It can be solved by methods described below yielding the closed form expression
Fibonacci number

In mathematics, the Fibonacci numbers are a sequence of numbers named after Leonardo of Pisa, known as Fibonacci . Fibonacci's 1202 book Liber Abaci introduced the sequence to Western European mathematics, although the sequence had been previously described in Indian mathematics....
 which involve powers of the two roots of the characteristic polynomial ; the generating function
Generating function

In mathematics a generating function is a formal power series whose coefficients encode information about a sequence an that is indexed by the natural numbers....
 of the sequence is the rational function
Rational function

In mathematics, a rational function is any function which can be written as the ratio of two polynomial functions....
 .

Structure


Linear homogeneous recurrence relations with constant coefficients


An order linear homogeneous recurrence relation with constant coefficients is an equation of the form:

where the coefficients (for all ) are constants.

More precisely, this is an infinite list of simultaneous linear equations, one for each . A sequence which satisfies a relation of this form is called a linear recursive sequence or LRS. There are d degrees of freedom for LRS, the initial values (initial conditions) can be taken to be any values but then the linear recurrence determines the sequence uniquely.

The same coefficients yield the characteristic polynomial
Characteristic polynomial

In linear algebra, one associates a polynomial to every square matrix, its characteristic polynomial. This polynomial encodes several important properties of the matrix , most notably its eigenvalues, its determinant and its Trace ....
 (also "auxiliary polynomial")

whose d roots play a crucial role in finding and understanding the sequences satisfying the recurrence.

Rational generating function

Linear recursive sequences are precisely the sequences whose generating function
Generating function

In mathematics a generating function is a formal power series whose coefficients encode information about a sequence an that is indexed by the natural numbers....
 is a rational function
Rational function

In mathematics, a rational function is any function which can be written as the ratio of two polynomial functions....
: the denominator is the auxiliary polynomial (up to a transform), and the numerator is obtained from the seed values.

The simplest case are periodic sequences, , , which have sequence and generating function a sum of geometric series:

More generally, given the recurrence relation: with generating function the series is annihilated at and above by the polynomial: That is, multiplying the generating function by the polynomial yields as the coefficient on , which vanishes (by the recurrence relation) for . Thus so dividing yields

expressing the generating function as a rational function.

The denominator is a transform of the auxiliary polynomial (equivalently, reversing the order of coefficients); one could also use any multiple of this, but this normalization is chosen both because of the simple relation to the auxiliary polynomial, and so that .

Relationship to difference equations


Given a sequence
Sequence

In mathematics, a sequence is an ordered list of objects . Like a Set , it contains Element , and the number of terms is called the length of the sequence....
  of real numbers: the first difference is defined as

.

The second difference is defined as

,

which can be simplified to

.

More generally: the kth difference is defined as

.

A difference equation is an equation composed of and its kth differences.

Every recurrence relation can be formulated as a difference equation. Conversely, every difference equation can be formulated as a recurrence relation. Some authors thus use the two terms interchangeably. For example, the difference equation

is equivalent to the recurrence relation

Thus one can solve recurrence relations by rephrasing them as difference equations, and then solving the difference equation, analogously to how one solves ordinary differential equations.

See time scale calculus
Time scale calculus

In mathematics, time scale calculus is a unification of the theory of difference equations with that of differential equations. Discovered in 1988 by the German mathematician Stefan Hilger, it has applications in any field that requires simultaneous modelling of discrete and continuous data....
 for a unification of the theory of difference equations with that of differential equations.

Solving


General methods

For order 1 no theory is needed; the recurrence has the obvious solution with and the most general solution is with . Note that the characteristic polynomial is simply .

Solutions to such recurrence relations of higher order are found by systematic means, often using the fact that is a solution for the recurrence exactly when is a solution of the characteristic polynomial. This can be approached directly or using generating function
Generating function

In mathematics a generating function is a formal power series whose coefficients encode information about a sequence an that is indexed by the natural numbers....
s (formal power series
Formal power series

In mathematics, formal power series are devices that make it possible to employ much of the mathematical analysis machinery of power series in settings that do not have natural notions of Convergent series....
) or matrices.

Consider, for example, a recurrence relation of the form

When does it have a solution of the form an = rn? Substituting this guess (ansatz
Ansatz

Ansatz is a German noun with several meanings in the English language. The fact that the word Ansatz is found in the English language today suggests that it has been carried by those who have used it frequently,, such as mathematicians and physicists....
) in the recurrence relation, we find that

must be true for all n>1.

Dividing through by rn − 2, we get that all these equations reduce to the same thing

Solve for r to obtain the two roots ?1, ?2. Different solutions are obtained depending on the nature of the roots: If these roots are distinct, we have the general solution

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

This is the most general solution, the two constants C and D can be chosen freely to produce a solution. If "initial conditions" a0 = a, a1 = b have been given then we can solve (uniquely) for C and D.

Solving via linear algebra

Given an LRS, one can write down the companion matrix
Companion matrix

In linear algebra, the companion matrix of the monic polynomialis the square matrix defined asWith this convention, and writing the basis as , one has , and generates V as a -module: C cycles basis vectors....
 of its characteristic polynomial, then put it in Jordan normal form
Jordan normal form

In linear algebra, Jordan normal form shows that a given square matrix M over a field K containing the eigenvalues of M can be transformed into a certain normal form by changing the Basis ....
 (which is diagonal if the eigenvalues are distinct). Expressing the seed in terms of the eigenbasis, say

yields

which is a closed form expression (expand on the first coordinate to obtain a closed form expression for ).

If the companion matrix
Companion matrix

In linear algebra, the companion matrix of the monic polynomialis the square matrix defined asWith this convention, and writing the basis as , one has , and generates V as a -module: C cycles basis vectors....
 is not diagonalizable, then the resulting expression is more complicated, but conceptually the same.

This description is really no different from general method above, however it is more succinct. It also works nicely for situations like . . Where there are several linked recurrences.

Solving with z-transforms

Certain difference equations, in particular Linear constant coefficient
Z-transform

In mathematics and signal processing, the Z-transform converts a discrete_mathematics time-domain signal, which is a sequence of real number or complex numbers, into a complex frequency-domain representation....
 difference equations, can be solved using z-transform
Z-transform

In mathematics and signal processing, the Z-transform converts a discrete_mathematics time-domain signal, which is a sequence of real number or complex numbers, into a complex frequency-domain representation....
s. The z-transforms are a class of integral transform
Integral transform

In mathematics, an integral transform is any list of transforms T of the following form:The input of this transform is a function f, and the output is another function TF....
s that lead to more convenient algebraic manipulations and more straightforward solutions. There are cases in which obtaining a direct solution would be all but impossible, yet solving the problem via a thoughtfully chosen integral transform is straightforward.

Theorem


Given a linear homogeneous recurrence relation with constant coefficients of order , let be the characteristic polynomial
Characteristic polynomial

In linear algebra, one associates a polynomial to every square matrix, its characteristic polynomial. This polynomial encodes several important properties of the matrix , most notably its eigenvalues, its determinant and its Trace ....
 (also "auxiliary polynomial")

such that each corresponds to each in the original recurrence relation (see the general form above). Suppose is a root of having multiplicity . This is to say that divides . The following two properties hold:

  1. Each of the sequences satisfies the recurrence relation.
  2. Any sequence satisfying the recurrence relation can be written uniquely as a linear combination of solutions constructed in part 1 as varies over all distinct roots of .


As a result of this theorem a linear homogeneous recurrence relation with constant coefficients can be solved in the following manner:

  1. Find the characteristic polynomial .
  2. Find the roots of counting multiplicity.
  3. Write as a linear combination of all the roots (counting multiplicity as shown in the theorem above) with unknown coefficients .




This is the general solution to the original recurrence relation.



4. Equate each from part 3 (plugging in into the general solution of the recurrence relation) with the known values from the original recurrence relation. Note, however, that the values from the original recurrence relation used do not have to be contiguous, just of them are needed (i.e. for an original linear homogeneous recurrence relation of order 3 one could use the values ). This process will produce a linear system of equations with unknowns. Solving these equations for the unknown coefficients of the general solution and plugging these values back into the general solution will produce the particular solution to the original recurrence relation that fits the original recurrence relation's initial conditions (as well as all subsequent values of the original recurrence relation).


Interestingly, the method for solving linear differential equations is similar to the method above — the "intelligent guess" (ansatz
Ansatz

Ansatz is a German noun with several meanings in the English language. The fact that the word Ansatz is found in the English language today suggests that it has been carried by those who have used it frequently,, such as mathematicians and physicists....
) for linear differential equations with constant coefficients is where is a complex number that is determined by substituting the guess into the differential equation.

This is not a coincidence. If you consider the Taylor series
Taylor series

In mathematics, the Taylor series is a representation of a function as an Series of terms calculated from the values of its derivatives at a single point....
 of the solution to a linear differential equation:

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.

The rule of thumb (for equations in which the polynomial multiplying the first term is non-zero at zero) is that:

and more generally

Example: The recurrence relationship for the Taylor series coefficients of the equation:

is given by

or

This example shows how problems generally solved using the power series solution method taught in normal differential equation classes can be solved in a much easier way.

Example: The differential equation

has solution

The conversion of the differential equation to a difference equation of the Taylor coefficients is

.

It is easy to see that the nth derivative of eax evaluated at 0 is an

Solving non-homogeneous recurrence relations

If the recurrence is inhomogeneous, a particular solution can be found by the method of undetermined coefficients
Method of undetermined coefficients

In mathematics, the method of undetermined coefficients is an approach to finding a particular solution to certain inhomogeneous ordinary differential equations and recurrence relations....
 and the solution is the sum of the solution of the homogeneous and the particular solutions. Another method to solve an inhomogeneous recurrence is the method of symbolic differentiation. For example, consider the following recurrence:

This is an inhomogeneous recurrence. If we substitute , we obtain the recurrence

Subtracting the original recurrence from this equation yields

or equivalently

This is a homogeneous recurrence which can be solved by the methods explained above. In general, if a linear recurrence has the form

where are constant coefficients and is the inhomogeneity, then if is a polynomial with degree , then this inhomogeneous recurrence can be reduced to a homogeneous recurrence by applying the method of symbolic differentiation times.

General linear homogeneous recurrence relations

Many linear homogeneous recurrence relations may be solved by means of the hypergeometric series
Hypergeometric series

In mathematics, a hypergeometric series, in the most general sense, is a power series in which the ratio of successive coefficients indexed by n is a rational function of n....
. Special cases of these lead to recurrence relations for the orthogonal polynomials, and many special functions. For example, the solution to

is given by

,

the Bessel function
Bessel function

In mathematics, Bessel functions, first defined by the mathematician Daniel Bernoulli and generalized by Friedrich Bessel, are Canonical#Mathematics solutions y of Bessel's differential equation:...
, while

is solved by

the confluent hypergeometric series.

Relationship to differential equations


When solving an ordinary differential equation
Ordinary differential equation

In mathematics, an ordinary differential equation is a relation that contains functions of only one independent variable, and one or more of its derivatives with respect to that variable....
 numerically
Numerical ordinary differential equations

Numerical ordinary differential equations is the part of numerical analysis which studies the numerical solution of differential equation . This field is also known under the name numerical integration, but some people reserve this term for the computation of integrals....
, one typically encounters a recurrence relation. For example, when solving the initial value problem
Initial value problem

In mathematics, in the field of differential equations, an initial value problem is an ordinary differential equation together with specified value, called the initial condition, of the unknown function at a given point in the domain of the solution....


with Euler's method and a step size h, one calculates the values

by the recurrence

Systems of linear first order differential equations can be discretized exactly analytically using the methods shown in the discretization
Discretization

In mathematics, discretization concerns the process of transferring continuous function models and equations into wiktionary:Discrete counterparts....
 article.

Applications


Biology


Some of the best-known difference equations have their origins in the attempt to model population
Population

File:Population density.pngIn biology, a population is the collection of inter-breeding organisms of a particular species; in sociology, a collection of human beings....
 dynamics. For example, the Fibonacci number
Fibonacci number

In mathematics, the Fibonacci numbers are a sequence of numbers named after Leonardo of Pisa, known as Fibonacci . Fibonacci's 1202 book Liber Abaci introduced the sequence to Western European mathematics, although the sequence had been previously described in Indian mathematics....
s were once used as a model for the growth of a rabbit population.

The logistic map
Logistic map

The logistic map is a polynomial mapping of Quadratic function, often cited as an archetypal example of how complex, chaos theory behaviour can arise from very simple non-linear dynamical equations....
 is used either directly to model population growth, or as a starting point for more detailed models. In this context, coupled difference equations are often used to model the interaction of two or more populations. For example, the Nicholson-Bailey model for a host-parasite interaction is given by

,

with representing the hosts, and the parasites, at time .

Integrodifference equation
Integrodifference equation

In mathematics, an integrodifference equation is a recurrence relation on a function space, of the following form:where is a sequence in the function space and is the domain of those functions....
s are a form of recurrence relation important to spatial ecology
Ecology

Ecology is the science study of the distribution and Abundance of life and the interactions between organisms and their nature environment ....
. These and other difference equations are particularly suited to modeling univoltine
Voltinism

Voltinism is a term used in biology to indicate the number of broods or generations of an organisms in a year. The term is particularly in use in sericulture, where silkworm varieties vary in their voltinism....
 populations.

See also

  • Hypergeometric series
    Hypergeometric series

    In mathematics, a hypergeometric series, in the most general sense, is a power series in which the ratio of successive coefficients indexed by n is a rational function of n....
  • Orthogonal polynomial
  • Recursion
    Recursion

    Recursion, in mathematics and computer science, is a method of defining Function in which the function being defined is applied within its own definition....
  • Recursion (computer science)
    Recursion (computer science)

    Recursion is a way of thinking about and solving problems. In fact, Recursion_ is one of the central ideas of computer science. Solving a problem using recursion means the solution depends on solutions to smaller instances of the same problem....
  • Lagged Fibonacci generator
    Lagged Fibonacci generator

    A Lagged Fibonacci generator is an example of a pseudorandom number generator. This class of random number generator is aimed at being an improvement on the 'standard' linear congruential generator....
  • Master theorem
    Master theorem

    In the analysis of algorithms, the master theorem, which is a specific case of the Akra-Bazzi method, provides a cookbook solution in asymptotic terms for recurrence relations of types that occur in practice....
  • Circle points segments proof
  • Continued fraction
    Continued fraction

    In mathematics, a continued fraction is an expression such aswhere a0 is an integer and all the other numbers ai are positive integers....
  • Time scale calculus
    Time scale calculus

    In mathematics, time scale calculus is a unification of the theory of difference equations with that of differential equations. Discovered in 1988 by the German mathematician Stefan Hilger, it has applications in any field that requires simultaneous modelling of discrete and continuous data....
  • Integrodifference equation
    Integrodifference equation

    In mathematics, an integrodifference equation is a recurrence relation on a function space, of the following form:where is a sequence in the function space and is the domain of those functions....
  • Combinatorial principles
    Combinatorial principles

    In proving results in combinatorics several useful combinatorial rules or combinatorial principles are commonly recognized and used.The rule of sum, rule of product, and inclusion-exclusion principle are often used for Enumerative combinatorics purposes....


External links

  • : provides closed form of linear recurrence sequences