Hubbry Logo
Recurrence relationRecurrence relationMain
Open search
Recurrence relation
Community hub
Recurrence relation
logo
7 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
Contribute something
Recurrence relation
Recurrence relation
from Wikipedia

In mathematics, a recurrence relation is an equation according to which the th term of a sequence of numbers is equal to some combination of the previous terms. Often, only previous terms of the sequence appear in the equation, for a parameter that is independent of ; this number is called the order of the relation. If the values of the first numbers in the sequence have been given, the rest of the sequence can be calculated by repeatedly applying the equation.

In linear recurrences, the nth term is equated to a linear function of the previous terms. A famous example is the recurrence for the Fibonacci numbers, where the order is two and the linear function merely adds the two previous terms. This example is a linear recurrence with constant coefficients, because the coefficients of the linear function (1 and 1) are constants that do not depend on For these recurrences, one can express the general term of the sequence as a closed-form expression of . As well, linear recurrences with polynomial coefficients depending on are also important, because many common elementary functions and special functions have a Taylor series whose coefficients satisfy such a recurrence relation (see holonomic function).

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

The concept of a recurrence relation can be extended to multidimensional arrays, that is, indexed families that are indexed by tuples of natural numbers.

Definition

[edit]

A recurrence relation is an equation that expresses each element of a sequence as a function of the preceding ones. More precisely, in the case where only the immediately preceding element is involved, a recurrence relation has the form

where

is a function, where X is a set to which the elements of a sequence must belong. For any , this defines a unique sequence with as its first element, called the initial value.[1]

It is easy to modify the definition for getting sequences starting from the term of index 1 or higher.

This defines recurrence relation of first order. A recurrence relation of order k has the form

where is a function that involves k consecutive elements of the sequence. In this case, k initial values are needed for defining a sequence.

Examples

[edit]

Factorial

[edit]

The factorial is defined by the recurrence relation

and the initial condition

This is an example of a linear recurrence with polynomial coefficients of order 1, with the simple polynomial (in n)

as its only coefficient.

Logistic map

[edit]

An example of a recurrence relation is the logistic map defined by

for a given constant The behavior of the sequence depends dramatically on but is stable when the initial condition varies.

Fibonacci numbers

[edit]

The recurrence of order two satisfied by the Fibonacci numbers is the canonical example of a homogeneous linear recurrence relation with constant coefficients (see below). The Fibonacci sequence is defined using the recurrence

with initial conditions

Explicitly, the 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, ...

The recurrence can be solved by methods described below yielding Binet's formula, which involves powers of the two roots of the characteristic polynomial ; the generating function of the sequence is the rational function

Binomial coefficients

[edit]

A simple example of a multidimensional recurrence relation is given by the binomial coefficients , which count the ways of selecting elements out of a set of elements. They can be computed by the recurrence relation

with the base cases . Using this formula to compute the values of all binomial coefficients generates an infinite array called Pascal's triangle. The same values can also be computed directly by a different formula that is not a recurrence, but uses factorials, multiplication and division, not just additions:

The binomial coefficients can also be computed with a uni-dimensional recurrence:

with the initial value (The division is not displayed as a fraction for emphasizing that it must be computed after the multiplication, for not introducing fractional numbers). This recurrence is widely used in computers because it does not require to build a table as does the bi-dimensional recurrence, and does not involve very large integers as does the formula with factorials (if one uses all involved integers are smaller than the final result).

Difference operator and difference equations

[edit]

The difference operator is an operator that maps sequences to sequences, and, more generally, functions to functions. It is commonly denoted and is defined, in functional notation, as

It is thus a special case of finite difference.

When using the index notation for sequences, the definition becomes

The parentheses around and are generally omitted, and must be understood as the term of index n in the sequence and not applied to the element

Given sequence the first difference of a is

The second difference is A simple computation shows that

More generally: the kth difference is defined recursively as and one has

This relation can be inverted, giving

A difference equation of order k is an equation that involves the k first differences of a sequence or a function, in the same way as a differential equation of order k relates the k first derivatives of a function.

The two above relations allow transforming a recurrence relation of order k into a difference equation of order k, and, conversely, a difference equation of order k into recurrence relation of order k. Each transformation is the inverse of the other, and the sequences that are solution of the difference equation are exactly those that satisfies the recurrence relation.

For example, the difference equation

is equivalent to the recurrence relation

in the sense that the two equations are satisfied by the same sequences.

As it is equivalent for a sequence to satisfy a recurrence relation or to be the solution of a difference equation, the use of the term "difference equation" is not limited to equations using a difference operator,[2] and the two terms "recurrence relation" and "difference equation" can be used interchangeably.[3] See Rational difference equation, Linear constant-coefficient difference equation and Matrix difference equation for examples of using "difference equation" instead of "recurrence relation".

Difference equations resemble differential equations, and this resemblance is often used to mimic methods for solving differentiable equations to apply to solving difference equations, and therefore recurrence relations.

Summation equations relate to difference equations as integral equations relate to differential equations. See time scale calculus for a unification of the theory of difference equations with that of differential equations.

From sequences to grids

[edit]

Single-variable or one-dimensional recurrence relations are about sequences (i.e. functions defined on one-dimensional grids). Multi-variable or n-dimensional recurrence relations are about -dimensional grids. Functions defined on -grids can also be studied with partial difference equations.[4]

Solving

[edit]

Solving linear recurrence relations with constant coefficients

[edit]

Solving first-order non-homogeneous recurrence relations with variable coefficients

[edit]

Moreover, for the general first-order non-homogeneous linear recurrence relation with variable coefficients:

there is also a nice method to solve it:[5]

Let

Then

If we apply the formula to and take the limit , we get the formula for first order linear differential equations with variable coefficients; the sum becomes an integral, and the product becomes the exponential function of an integral.

Solving general homogeneous linear recurrence relations

[edit]

Many homogeneous linear recurrence relations may be solved by means of the generalized hypergeometric series. 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, while

is solved by

the confluent hypergeometric series. Sequences which are the solutions of linear difference equations with polynomial coefficients are called P-recursive. For these specific recurrence equations algorithms are known which find polynomial, rational or hypergeometric solutions.

Solving general non-homogeneous linear recurrence relations with constant coefficients

[edit]

Furthermore, for the general non-homogeneous linear recurrence relation with constant coefficients, one can solve it based on variation of parameter.[6]


Solving first-order rational difference equations

[edit]

A first order rational difference equation has the form . Such an equation can be solved by writing as a nonlinear transformation of another variable which itself evolves linearly. Then standard methods can be used to solve the linear difference equation in .

Stability

[edit]

Stability of linear higher-order recurrences

[edit]

The linear recurrence of order ,

has the characteristic equation

The recurrence is stable, meaning that the iterates converge asymptotically to a fixed value, if and only if the eigenvalues (i.e., the roots of the characteristic equation), whether real or complex, are all less than unity in absolute value.

Stability of linear first-order matrix recurrences

[edit]

In the first-order matrix difference equation

with state vector and transition matrix , converges asymptotically to the steady state vector if and only if all eigenvalues of the transition matrix (whether real or complex) have an absolute value which is less than 1.

Stability of nonlinear first-order recurrences

[edit]

Consider the nonlinear first-order recurrence

This recurrence is locally stable, meaning that it converges to a fixed point from points sufficiently close to , if the slope of in the neighborhood of is smaller than unity in absolute value: that is,

A nonlinear recurrence could have multiple fixed points, in which case some fixed points may be locally stable and others locally unstable; for continuous f two adjacent fixed points cannot both be locally stable.

A nonlinear recurrence relation could also have a cycle of period for . Such a cycle is stable, meaning that it attracts a set of initial conditions of positive measure, if the composite function

with appearing times is locally stable according to the same criterion:

where is any point on the cycle.

In a chaotic recurrence relation, the variable stays in a bounded region but never converges to a fixed point or an attracting cycle; any fixed points or cycles of the equation are unstable. See also logistic map, dyadic transformation, and tent map.

Relationship to differential equations

[edit]

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

with Euler's method and a step size , 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 article.

Applications

[edit]

Mathematical biology

[edit]

Some of the best-known difference equations have their origins in the attempt to model population dynamics. For example, the Fibonacci numbers were once used as a model for the growth of a rabbit population.

The logistic map is used either directly to model population growth, or as a starting point for more detailed models of population dynamics. 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 equations are a form of recurrence relation important to spatial ecology. These and other difference equations are particularly suited to modeling univoltine populations.

Computer science

[edit]

Recurrence relations are also of fundamental importance in analysis of algorithms.[7][8] If an algorithm is designed so that it will break a problem into smaller subproblems (divide and conquer), its running time is described by a recurrence relation.

A simple example is the time an algorithm takes to find an element in an ordered vector with elements, in the worst case.

A naive algorithm will search from left to right, one element at a time. The worst possible scenario is when the required element is the last, so the number of comparisons is .

A better algorithm is called binary search. However, it requires a sorted vector. It will first check if the element is at the middle of the vector. If not, then it will check if the middle element is greater or lesser than the sought element. At this point, half of the vector can be discarded, and the algorithm can be run again on the other half. The number of comparisons will be given by

the time complexity of which will be .

Digital signal processing

[edit]

In digital signal processing, recurrence relations can model feedback in a system, where outputs at one time become inputs for future time. They thus arise in infinite impulse response (IIR) digital filters.

For example, the equation for a "feedforward" IIR comb filter of delay is:

where is the input at time , is the output at time , and controls how much of the delayed signal is fed back into the output. From this we can see that

etc.

Economics

[edit]

Recurrence relations, especially linear recurrence relations, are used extensively in both theoretical and empirical economics.[9][10] In particular, in macroeconomics one might develop a model of various broad sectors of the economy (the financial sector, the goods sector, the labor market, etc.) in which some agents' actions depend on lagged variables. The model would then be solved for current values of key variables (interest rate, real GDP, etc.) in terms of past and current values of other variables.

See also

[edit]

References

[edit]
[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
A recurrence relation is an equation that defines a recursively by expressing each term as a function of one or more preceding terms in the sequence. These relations are fundamental in and , providing a framework for modeling sequences where explicit formulas are difficult to derive directly. Recurrence relations can be classified into various types based on their structure. Linear recurrence relations express each term as a of previous terms, often with constant coefficients, such as the where Fn=Fn1+Fn2F_n = F_{n-1} + F_{n-2} for n2n \geq 2, with initial conditions F0=0F_0 = 0 and F1=1F_1 = 1. Homogeneous linear recurrences have no additional non-recursive terms, while non-homogeneous ones include an extra function of nn; higher-order relations depend on more previous terms, with the order equal to the number of such terms. Nonlinear recurrences, in contrast, involve nonlinear functions of prior terms and are generally harder to solve. Solving recurrence relations typically involves finding a that eliminates the . For linear homogeneous relations with constant coefficients, the characteristic equation method is used: the roots of the rkc1rk1ck=0r^k - c_1 r^{k-1} - \cdots - c_k = 0 determine the general solution as a of terms like rinr_i^n. Initial conditions then fix the coefficients. offer another approach, transforming the recurrence into an for the generating function of the sequence. Recurrence relations have broad applications across mathematics and related fields. In , they model the time complexity of recursive algorithms, such as divide-and-conquer methods like , where T(n)=2T(n/2)+nT(n) = 2T(n/2) + n. In , they enumerate structures like paths in graphs or permutations, while in probability, they describe Markov chains and processes. These tools also appear in physics for modeling or , highlighting their versatility in capturing iterative dependencies.

Fundamentals

Definition

A recurrence relation is an equation that defines a sequence recursively by expressing each term as a function of one or more preceding terms in the sequence./08%3A_Recursion_and_Recurrence_Relations/8.03%3A_Recurrence_Relations) More formally, for a sequence {an}\{a_n\} where nn is a non-negative integer, a recurrence relation of order kk takes the form an=f(an1,an2,,ank)a_n = f(a_{n-1}, a_{n-2}, \dots, a_{n-k}) for n>kn > k, where ff is some function. This recursive structure contrasts with an explicit or closed-form definition, which provides a direct formula for ana_n in terms of nn alone, without reference to other terms in the sequence; solving a recurrence relation typically involves deriving such a closed-form expression from the recursive one. To uniquely determine the sequence generated by a recurrence relation, one or more initial conditions—specific values for the first few terms, such as a0,a1,,ak1a_0, a_1, \dots, a_{k-1}—must be provided alongside the relation. These boundary values ensure that the recursion produces a single, well-defined rather than a family of possible sequences. The order of the recurrence is defined as the largest kk such that anka_{n-k} appears in the equation, representing the "depth" of dependency on prior terms. Recurrence relations are further classified by linearity: a linear recurrence expresses ana_n as a of previous terms (additive with constant coefficients multiplying the terms), possibly plus a non-homogeneous term, whereas a nonlinear recurrence involves products, powers, or other nonlinear functions of the preceding terms. For instance, a simple first-order linear recurrence might be an=2an1a_n = 2a_{n-1} for n1n \geq 1, which defines each term as twice the immediate predecessor, requiring an initial value like a0=1a_0 = 1 to specify the sequence.

Notation and Basic Properties

Recurrence relations are typically expressed using sequences denoted by lowercase letters with subscripts, such as ana_n for the nnth term, where nn is a non-negative integer. The forward difference operator Δ\Delta is defined as Δan=an+1an\Delta a_n = a_{n+1} - a_n, which measures the discrete change between consecutive terms. Complementing this, the shift operator EE advances the sequence by one index, satisfying Ean=an+1E a_n = a_{n+1}, and higher powers like Ekan=an+kE^k a_n = a_{n+k} allow compact representation of relations involving multiple prior terms. A key property of recurrence relations is that, when supplemented with appropriate initial conditions (such as the first kk terms for a kkth-order relation), they determine a unique satisfying the relation. For linear recurrence relations, this uniqueness extends to well-posedness, ensuring existence and a single solution given the initial values, as the relations map linearly from prior terms to the next. Recurrence relations are classified as homogeneous or non-homogeneous based on the form of the defining . A homogeneous relation has the form an=i=1kciania_n = \sum_{i=1}^k c_i a_{n-i}, where the right-hand side involves only previous terms of the sequence and no additional function; for instance, the case anpan1=0a_n - p a_{n-1} = 0 is homogeneous. In contrast, a non-homogeneous relation includes an extra term, written as ani=1kciani=f(n)a_n - \sum_{i=1}^k c_i a_{n-i} = f(n), where f(n)f(n) is a forcing function independent of the sequence. For linear homogeneous recurrence relations with constant coefficients, the characteristic equation provides a foundational tool for analysis. Assuming a solution of the form an=rna_n = r^n (where r0r \neq 0) and substituting into the relation an=i=1kciania_n = \sum_{i=1}^k c_i a_{n-i} yields rki=1kcirki=0r^k - \sum_{i=1}^k c_i r^{k-i} = 0. Systems of recurrence relations, involving multiple interdependent sequences such as vn=(an,bn)T\mathbf{v}_n = (a_n, b_n)^T, can be expressed in as vn=Mvn1\mathbf{v}_n = M \mathbf{v}_{n-1}, where MM is a companion matrix encoding the coefficients of the coupled relations. This matrix form facilitates studying the system's behavior through linear algebra, preserving the uniqueness property when initial vectors are specified.

Examples

Linear Recurrences

Linear recurrence relations express each term of a sequence as a of one or more preceding terms, often with constant coefficients. A classic example is the , defined by the second-order recurrence Fn=Fn1+Fn2F_n = F_{n-1} + F_{n-2} for n2n \geq 2, with initial conditions F0=0F_0 = 0 and F1=1F_1 = 1. Computing the first few terms yields: F2=1F_2 = 1, F3=2F_3 = 2, F4=3F_4 = 3, F5=5F_5 = 5, F6=8F_6 = 8, F7=13F_7 = 13, and F8=21F_8 = 21. This sequence exhibits , approximately proportional to ϕn\phi^n, where ϕ1.618\phi \approx 1.618 is the . The factorial sequence provides another illustration of a first-order linear recurrence, given by n!=n(n1)!n! = n \cdot (n-1)! for n1n \geq 1, with the base case 0!=10! = 1. Explicit computations for small values include: 1!=11! = 1, 2!=22! = 2, 3!=63! = 6, 4!=244! = 24, and 5!=1205! = 120. This relation highlights how factorials build multiplicatively from prior terms. Binomial coefficients also satisfy a linear recurrence, specifically (nk)=(n1k1)+(n1k)\binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k} for 1kn11 \leq k \leq n-1, with boundary conditions (n0)=1\binom{n}{0} = 1 and (nn)=1\binom{n}{n} = 1 for all n0n \geq 0. For instance, computing the third row (n=3n=3) from the second row (n=2n=2): from (20)=1,(21)=2,(22)=1\binom{2}{0}=1, \binom{2}{1}=2, \binom{2}{2}=1, so (31)=(20)+(21)=1+2=3\binom{3}{1} = \binom{2}{0} + \binom{2}{1} = 1 + 2 = 3, (32)=(21)+(22)=2+1=3\binom{3}{2} = \binom{2}{1} + \binom{2}{2} = 2 + 1 = 3. This recurrence generates Pascal's triangle row by row. First-order linear recurrences encompass arithmetic and geometric sequences. An arithmetic sequence follows an=an1+da_n = a_{n-1} + d for n1n \geq 1, where dd is the constant difference; starting with a0=5a_0 = 5 and d=2d = 2, the terms are 5, 7, 9, 11, 13. A geometric sequence obeys an=ran1a_n = r \cdot a_{n-1} for n1n \geq 1, with common ratio rr; for a0=2a_0 = 2 and r=3r = 3, the sequence is 2, 6, 18, 54, 162. These simple cases demonstrate steady linear progression without higher-order dependencies.

Nonlinear Recurrences

Nonlinear recurrence relations involve terms where the dependent variable appears in a non-additive manner, often leading to complex dynamical behaviors such as bifurcations and chaos, unlike the predictable patterns in linear cases. These relations are typically defined with an order greater than one and specified initial conditions, as per the general framework of recurrences. A prominent example is the , introduced in the context of and popularized in studies of discrete dynamical systems, given by the recurrence xn+1=rxn(1xn),x_{n+1} = r x_n (1 - x_n), where rr is a parameter ranging from 0 to 4, and the initial value x0x_0 lies in [0,1] to keep iterates bounded in that interval. This first-order nonlinear recurrence models growth limited by carrying capacity, with xnx_n representing the population fraction at generation nn. The behavior of the logistic map varies dramatically with rr, exhibiting bifurcations that mark transitions from stability to periodicity and chaos. For r=2r = 2, the sequence converges to the fixed point x=0.5x = 0.5, as iterations dampen toward equilibrium regardless of x0x_0 in (0,1). Increasing to r=3r = 3, the map enters a regime of period-2 oscillations, where even and odd iterates alternate between two values after transients decay. At r=4r = 4, the system becomes fully chaotic, with the Lyapunov exponent positive, indicating exponential divergence of nearby trajectories. To illustrate sensitivity to initial conditions at r=4r = 4, consider x0=0.1x_0 = 0.1: the first few iterates are x1=0.36x_1 = 0.36, x2=0.9216x_2 = 0.9216, x30.2890x_3 \approx 0.2890, x40.8220x_4 \approx 0.8220, and so on, producing a seemingly random sequence dense in [0,1]. In contrast, starting from x0=0.100001x_0 = 0.100001, the iterates diverge rapidly from the previous trajectory after a few steps, such as x30.2890x_3 \approx 0.2890, highlighting the map's extreme dependence on precise initial values. Fixed points exist at x=0x = 0 and x=(r1)/rx = (r-1)/r, but their nature shifts with rr without altering the overall qualitative dynamics here. Another illustrative nonlinear recurrence arises in variants of the puzzle, which extends the classic linear problem of disk moves. The standard satisfies the linear recurrence Tn=2Tn1+1T_n = 2 T_{n-1} + 1 with T1=1T_1 = 1, yielding exponential growth Tn=2n1T_n = 2^n - 1. However, nonlinear variants, such as those incorporating restricted moves or multi-peg configurations with interdependent states, introduce multiplicative or higher-order nonlinearities; for instance, a framed variant where moves depend on the current tower configuration can lead to recurrences like Tn=2Tn1+f(n)T_n = 2 T_{n-1} + f(n) with f(n)f(n) nonlinear in prior states, resulting in super-exponential growth rates that outpace simple exponentials. These modifications model more realistic constraint-based puzzles and demonstrate how nonlinearity amplifies . The provides an extreme example of a nonlinear recurrence embodying hyperoperations, growing faster than any and highlighting the limits of in recursive definitions. Defined as a double recurrence with base cases A(0,n)=n+1A(0,n) = n+1 for n0n \geq 0, A(m,0)=A(m1,1)A(m,0) = A(m-1,1) for m1m \geq 1, and A(m,n)=A(m1,A(m,n1))A(m,n) = A(m-1, A(m,n-1)) for m,n1m,n \geq 1, it nests iterations hyperoperationally: A(1,n)A(1,n) yields addition, A(2,n)A(2,n) multiplication, A(3,n)A(3,n) exponentiation, A(4,n)A(4,n) tetration, and higher levels escalate rapidly. For small values, A(4,2)=2222=216=65536A(4,2) = 2^{2^{2^2}} = 2^{16} = 65536, while A(4,3)A(4,3) towers to 2655362^{65536}, a number vastly larger than exponential scales, illustrating the explosive nonlinearity from recursive self-application. This function, originally formulated to demonstrate non-primitive recursive functions, underscores how nested nonlinear recurrences can encode transfinite growth hierarchies.

Difference Equations

Forward and Backward Differences

In the context of recurrence relations, forward and backward differences serve as discrete analogs to , enabling the analysis of sequences by measuring changes between successive terms. The forward difference operator, denoted by Δ, is defined for a sequence {a_n} as Δa_n = a_{n+1} - a_n. Higher-order forward differences are obtained iteratively, with the k-th order difference Δ^k a_n = Δ(Δ^{k-1} a_n), providing a way to capture accelerated changes in the sequence similar to higher in continuous . The backward difference operator, denoted by ∇, offers an alternative perspective by looking retrospectively: ∇a_n = a_n - a_{n-1}. Higher-order backward differences follow analogously, ∇^k a_n = ∇(∇^{k-1} a_n). Mixed differences, combining forward and backward operators, arise in more complex analyses, such as central differences δa_n = (Δa_n + ∇a_n)/2, which approximate symmetric changes around a point. Recurrence relations can be reformulated as difference equations using these operators, facilitating solution techniques akin to differential equations. For instance, a general first-order recurrence might be expressed as Δa_n = f(a_n, n), where f encapsulates the dependency on the current term and index. Linear difference equations take the form Δa_n + p_n a_n = q_n, where p_n and q_n are functions of n; this structure mirrors linear ordinary differential equations and allows for methods in discrete settings. Newton's forward difference formula provides an tool for sequences, approximating a_n based on initial values and differences: ank=0m(nk)Δka0,a_n \approx \sum_{k=0}^m \binom{n}{k} \Delta^k a_0, where the \binom{n}{k} = \frac{n(n-1)\cdots(n-k+1)}{k!} generalizes to non-integer n, enabling beyond tabulated points. This formula is particularly useful in for constructing polynomials that fit discrete data from recurrences. A key relation links differences to summation: solving the simple difference equation Δa_n = g_n yields a_n = a_0 + \sum_{i=0}^{n-1} g_i, as the forward difference telescopes over the sum, providing an exact solution for non-homogeneous linear cases with zero p_n.

From Sequences to Multidimensional Grids

Extending difference equations from one-dimensional sequences to multidimensional settings involves considering functions defined on lattices or grids, where values depend on neighbors in multiple directions. This generalization leads to partial difference equations, which are discrete analogs of partial differential equations and are used to model phenomena on two- or higher-dimensional discrete domains. Partial difference operators are defined similarly to their one-dimensional counterparts but act along specific grid directions. For a function u(m,n)u(m, n) on a two-dimensional integer grid, the forward partial difference operator in the xx-direction (or mm-index) is given by Δxu(m,n)=u(m+1,n)u(m,n),\Delta_x u(m, n) = u(m+1, n) - u(m, n), and analogously for the yy-direction: Δyu(m,n)=u(m,n+1)u(m,n).\Delta_y u(m, n) = u(m, n+1) - u(m, n). Higher-order or mixed operators, such as ΔxΔyu(m,n)\Delta_x \Delta_y u(m, n), can be formed by composition, enabling the expression of more complex relations. These operators facilitate the study of grid functions where changes occur independently along each axis. Grid-based recurrences arise when the value at a grid point is determined by values at adjacent points, often resembling path-counting problems in . A simple example is the binomial recurrence u(m,n)=u(m1,n)+u(m,n1),u(m, n) = u(m-1, n) + u(m, n-1), with boundary conditions u(0,n)=1u(0, n) = 1 and u(m,0)=1u(m, 0) = 1 for m,n0m, n \geq 0, which generates the binomial coefficients u(m,n)=(m+nm)u(m, n) = \binom{m+n}{m} and corresponds to the number of lattice paths from (0,0)(0,0) to (m,n)(m,n) using right and up steps. This extends the one-dimensional recurrence by distributing dependencies across dimensions. To embed a one-dimensional recurrence into a two-dimensional grid, one approach uses bivariate s, where the ordinary for the 1D becomes a slice or diagonal of the 2D satisfying a partial difference . Alternatively, interpret the 1D terms as path counts on a grid, promoting the to a row or column in the 2D array. For instance, the can be embedded as the values along the of a grid satisfying a related 2D recurrence, preserving the original relation through summation over paths. A notable example of a multidimensional grid recurrence is provided by the Delannoy numbers D(m,n)D(m, n), which count the number of paths from (0,0)(0,0) to (m,n)(m,n) on a grid allowing steps right (1,0)(1,0), up (0,1)(0,1), or diagonally (1,1)(1,1). These satisfy the recurrence D(m,n)=D(m1,n)+D(m,n1)+D(m1,n1),D(m, n) = D(m-1, n) + D(m, n-1) + D(m-1, n-1), with boundary conditions D(0,0)=1D(0,0) = 1, D(m,0)=1D(m,0) = 1, and D(0,n)=1D(0,n) = 1 for m,n0m, n \geq 0. This equation captures interactions across both axes and diagonals, generalizing simpler grid paths. Boundary conditions on grids specify values or differences along the edges (e.g., m=0m=0 or n=0n=0) to initiate the recurrence and ensure . For well-posedness, these conditions must provide sufficient data to determine all interior values without ambiguity or , analogous to initial-value problems in continuous partial differential equations; insufficient or over-specified boundaries can lead to multiple solutions or none. In discrete settings, well-posed problems on bounded grids typically require conditions on all boundary faces, guaranteeing a unique solution via forward propagation.

Solution Methods

Linear Homogeneous with Constant Coefficients

A linear homogeneous recurrence relation with coefficients is of the form an=c1an1+c2an2++ckanka_n = c_1 a_{n-1} + c_2 a_{n-2} + \cdots + c_k a_{n-k} for n>kn > k, where the cic_i are constants and the right-hand side is zero. To solve such relations, the method of characteristic equations is employed, which transforms the recurrence into an whose determine the form of the solution. The characteristic equation for the recurrence anc1an1c2an2ckank=0a_n - c_1 a_{n-1} - c_2 a_{n-2} - \cdots - c_k a_{n-k} = 0 is given by rkc1rk1c2rk2ck=0r^k - c_1 r^{k-1} - c_2 r^{k-2} - \cdots - c_k = 0. The roots r1,r2,,rkr_1, r_2, \dots, r_k of this equation of degree kk are the characteristic roots. If all roots are distinct, the general solution is an=A1r1n+A2r2n++Akrkna_n = A_1 r_1^n + A_2 r_2^n + \cdots + A_k r_k^n, where the coefficients AiA_i are constants determined by initial conditions. This form arises because each term AirinA_i r_i^n satisfies the recurrence individually, and the principle of linear superposition allows their sum to also satisfy it. For an illustrative example, consider the Fibonacci sequence defined by Fn=Fn1+Fn2F_n = F_{n-1} + F_{n-2} for n2n \geq 2, with initial conditions F0=0F_0 = 0 and F1=1F_1 = 1. The characteristic equation is r2r1=0r^2 - r - 1 = 0, with roots ϕ=1+52\phi = \frac{1 + \sqrt{5}}{2}
Add your contribution
Related Hubs
Contribute something
User Avatar
No comments yet.