Recurrence relation

From Academic Kids

(Redirected from Difference equation)

Recurrent redirects here; for the meaning of "recurrent" in contemporary hit radio, see Recurrent rotation.

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):

<math>x_{n+1} = r x_n (1 - x_n) \,<math>

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 second-order recurrence relations in the form:

<math>a_{n}=Aa_{n-1}+Ba_{n-2} \,<math>

we have the solution rn:

<math>r^{n}=Ar^{n-1}+Br^{n-2} \,<math>

Dividing through by <math>r^{n-2}<math> we get:

<math>r^2=Ar+B \,<math>
<math>r^2-Ar-B=0 \,<math>

This is known as the characteristic equation of the recurrence relation. Solve for r to obtain the two roots <math>\lambda_1, \lambda_2 <math>, and if these roots are distinct, we have the solution

<math>a_n = C\lambda_1^n+D\lambda_2^n \,<math>

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

<math>a_n = C\lambda^n+Dn\lambda^n \,<math>

where C and D are constants.

Additionally, if the equation is of the form <math>a_{n}=Aa_{n-1}+B<math> you can substitute 2 for n and get <math>r^2=Ar+B<math> as above. The constants C and D can be found from the "side conditions" that are often given as <math>a_0=a<math>, <math>a_1=b<math>.

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:

<math>

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

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:

<math>F_{n} = F_{n-1}+F_{n-2} \,<math>
<math>F_{0} = 0 \,<math>
<math>F_{1} = 1 \,<math>

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

<math>F_n = {\Phi^n \over \sqrt{5}} - {(1-\Phi)^n \over \sqrt{5}}<math>

The initial conditions are:

<math>F_{0} = 0 \,<math>
<math>F_{1} = 1 \,<math>

Therefore, the sequence of Fibonacci numbers is:

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

Relationship to differential equations

When solving an ordinary differential equation numerically, one typically encounters a recurrence relation. For example, when solving the initial value problem

<math>y'(t) = f(t,y(t)), \qquad y(t_0)=y_0, \qquad\qquad<math>

with Euler's method and a step size h, one calculates the values <math>y_0=y(t_0)<math>, <math>y_1=y(t_0+h),<math> <math>y_2=y(t_0+2h),...<math> by the recurrence

<math> y_{n+1} = y_n + hf(t_n,y_n). <math>


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

See also

External links

it:Relazione di ricorrenza nl:Differentievergelijking

Navigation

Academic Kids Menu

  • Art and Cultures
    • Art (http://www.academickids.com/encyclopedia/index.php/Art)
    • Architecture (http://www.academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (http://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (http://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools