In mathematics (including combinatorics, linear algebra, and dynamical systems), a linear recurrence with constant coefficients (also known as a linear recurrence relation or linear difference equation) sets equal to 0 a polynomial that is linear in the various iterates of a variable—that is, in the values of the elements of a sequence. The polynomial's linearity means that each of its terms has degree 0 or 1. A linear recurrence denotes the evolution of some variable over time, with the current time period or discrete moment in time denoted as t, one period earlier denoted as t − 1, one period later as t + 1, etc. The solution of such an equation is a function of t, and not of any iterate values, giving the value of the iterate at any time. To find the solution it is necessary to know the specific values (known as initial conditions) of n of the iterates, and normally these are the n iterates that are oldest. The equation or its variable is said to be stable if from any set of initial conditions the variable's limit as time goes to infinity exists; this limit is called the steady state. Difference equations are used in a variety of contexts, such as in economics to model the evolution through time of variables such as gross domestic product, the inflation rate, the exchange rate, etc. They are used in modeling such time series because values of these variables are only measured at discrete intervals. In econometric applications, linear difference equations are modeled with stochastic terms in the form of autoregressive (AR) models and in models such as vector autoregression (VAR) and autoregressive moving average (ARMA) models that combine AR with other features.
Definitions A linear recurrence with constant coefficients is an equation of the following form, written in terms of parameters a1, ..., an and b: yt=a1yt−1+⋯+anyt−n+b, or equivalently as yt+n=a1yt+n−1+⋯+anyt+b. The positive integer n is called the order of the recurrence and denotes the longest time lag between iterates. The equation is called homogeneous if b = 0 and nonhomogeneous if b ≠ 0. If the equation is homogeneous, the coefficients determine the characteristic polynomial (also "auxiliary polynomial" or "companion polynomial") p(λ)=λn−a1λn−1−a2λn−2−⋯−an whose roots play a crucial role in finding and understanding the sequences satisfying the recurrence.
Conversion to homogeneous form If b ≠ 0, the equation yt=a1yt−1+⋯+anyt−n+b is said to be nonhomogeneous. To solve this equation it is convenient to convert it to homogeneous form, with no constant term. This is done by first finding the equation's steady state value—a value y* such that, if n successive iterates all had this value, so would all future values. This value is found by setting all values of y equal to y* in the difference equation, and solving, thus obtaining y∗=b1−a1−⋯−an assuming the denominator is not 0. If it is zero, the steady state does not exist. Given the steady state, the difference equation can be rewritten in terms of deviations of the iterates from the steady state, as (yt−y∗)=a1(yt−1−y∗)+⋯+an(yt−n−y∗) which has no constant term, and which can be written more succinctly as xt=a1xt−1+⋯+anxt−n where x equals y − y*. This is the homogeneous form. If there is no steady state, the difference equation yt=a1yt−1+⋯+anyt−n+b can be combined with its equivalent form yt−1=a1yt−2+⋯+anyt−(n+1)+b to obtain (by solving both for b) yt−a1yt−1−⋯−anyt−n=yt−1−a1yt−2−⋯−anyt−(n+1) in which like terms can be combined to give a homogeneous equation of one order higher than the original.
Solution example for small orders The roots of the characteristic polynomial play a crucial role in finding and understanding the sequences satisfying the recurrence. If there are d distinct roots r1,r2,…,rd, then each solution to the recurrence takes the form an=k1r1n+k2r2n+⋯+kdrdn, where the coefficients ki are determined in order to fit the initial conditions of the recurrence. When the same roots occur multiple times, the terms in this formula corresponding to the second and later occurrences of the same root are multiplied by increasing powers of n. For instance, if the characteristic polynomial can be factored as (x−r)3, with the same root r occurring three times, then the solution would take the form an=k1rn+k2nrn+k3n2rn.
Order 1 For order 1, the recurrence an=ran−1 has the solution an=rn with a0=1 and the most general solution is an=krn with a0=k. The characteristic polynomial equated to zero (the characteristic equation) is simply t−r=0.
… excerpt ends here. Continue reading the full article.