fbpx
Wikipedia

Linear recurrence with constant coefficients

In mathematics (including combinatorics, linear algebra, and dynamical systems), a linear recurrence with constant coefficients[1]: ch. 17 [2]: ch. 10  (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 edit

A linear recurrence with constant coefficients is an equation of the following form, written in terms of parameters a1, ..., an and b:

 

or equivalently as

 

The positive integer   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")

 

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

Conversion to homogeneous form edit

If b ≠ 0, the equation

 

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

 

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

 

which has no constant term, and which can be written more succinctly as

 

where x equals yy*. This is the homogeneous form.

If there is no steady state, the difference equation

 

can be combined with its equivalent form

 

to obtain (by solving both for b)

 

in which like terms can be combined to give a homogeneous equation of one order higher than the original.

Solution example for small orders edit

The roots of the characteristic polynomial play a crucial role in finding and understanding the sequences satisfying the recurrence. If there are   distinct roots   then each solution to the recurrence takes the form

 
where the coefficients   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  . For instance, if the characteristic polynomial can be factored as  , with the same root   occurring three times, then the solution would take the form
 
[3]

Order 1 edit

For order 1, the recurrence

 
has the solution   with   and the most general solution is   with  . The characteristic polynomial equated to zero (the characteristic equation) is simply  .

Order 2 edit

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 root of the characteristic polynomial. This can be approached directly or using generating functions (formal power series) or matrices.

Consider, for example, a recurrence relation of the form

 

When does it have a solution of the same general form as  ? Substituting this guess (ansatz) in the recurrence relation, we find that

 
must be true for all  .

Dividing through by  , we get that all these equations reduce to the same thing:

 

which is the characteristic equation of the recurrence relation. Solve for   to obtain the two roots  ,  : these roots are known as the characteristic roots or eigenvalues of the characteristic equation. 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  ), we have

 

This is the most general solution; the two constants   and   can be chosen based on two given initial conditions   and   to produce a specific solution.

In the case of complex eigenvalues (which also gives rise to complex values for the solution parameters   and  ), the use of complex numbers can be eliminated by rewriting the solution in trigonometric form. In this case we can write the eigenvalues as   Then it can be shown that

 

can be rewritten as[4]: 576–585 

 

where

 

Here   and   (or equivalently,   and  ) are real constants which depend on the initial conditions. Using

 
 

one may simplify the solution given above as

 

where   and   are the initial conditions and

 

In this way there is no need to solve for   and  .

In all cases—real distinct eigenvalues, real duplicated eigenvalues, and complex conjugate eigenvalues—the equation is stable (that is, the variable   converges to a fixed value [specifically, zero]) if and only if both eigenvalues are smaller than one in absolute value. In this second-order case, this condition on the eigenvalues can be shown[5] to be equivalent to  , which is equivalent to   and  .

General solution edit

Characteristic polynomial and roots edit

Solving the homogeneous equation

 

involves first solving its characteristic polynomial

 

for its characteristic roots λ1, ..., λn. These roots can be solved for algebraically if n ≤ 4, but not necessarily otherwise. If the solution is to be used numerically, all the roots of this characteristic equation can be found by numerical methods. However, for use in a theoretical context it may be that the only information required about the roots is whether any of them are greater than or equal to 1 in absolute value.

It may be that all the roots are real or instead there may be some that are complex numbers. In the latter case, all the complex roots come in complex conjugate pairs.

Solution with distinct characteristic roots edit

If all the characteristic roots are distinct, the solution of the homogeneous linear recurrence

 

can be written in terms of the characteristic roots as

 

where the coefficients ci can be found by invoking the initial conditions. Specifically, for each time period for which an iterate value is known, this value and its corresponding value of t can be substituted into the solution equation to obtain a linear equation in the n as-yet-unknown parameters; n such equations, one for each initial condition, can be solved simultaneously for the n parameter values. If all characteristic roots are real, then all the coefficient values ci will also be real; but with non-real complex roots, in general some of these coefficients will also be non-real.

Converting complex solution to trigonometric form edit

If there are complex roots, they come in conjugate pairs and so do the complex terms in the solution equation. If two of these complex terms are cjλt
j
and cj+1λt
j+1
, the roots λj can be written as

 

where i is the imaginary unit and M is the modulus of the roots:

 

Then the two complex terms in the solution equation can be written as

 

where θ is the angle whose cosine is α/M and whose sine is β/M; the last equality here made use of de Moivre's formula.

Now the process of finding the coefficients cj and cj+1 guarantees that they are also complex conjugates, which can be written as γ ± δi. Using this in the last equation gives this expression for the two complex terms in the solution equation:

 

which can also be written as

 

where ψ is the angle whose cosine is γ/γ2 + δ2 and whose sine is δ/γ2 + δ2.

Cyclicity edit

Depending on the initial conditions, even with all roots real the iterates can experience a transitory tendency to go above and below the steady state value. But true cyclicity involves a permanent tendency to fluctuate, and this occurs if there is at least one pair of complex conjugate characteristic roots. This can be seen in the trigonometric form of their contribution to the solution equation, involving cos θt and sin θt.

Solution with duplicate characteristic roots edit

In the second-order case, if the two roots are identical (λ1 = λ2), they can both be denoted as λ and a solution may be of the form

 

Solution by conversion to matrix form edit

An alternative solution method involves converting the nth order difference equation to a first-order matrix difference equation. This is accomplished by writing w1,t = yt, w2,t = yt−1 = w1,t−1, w3,t = yt−2 = w2,t−1, and so on. Then the original single nth-order equation

 

can be replaced by the following n first-order equations:

 

Defining the vector wi as

 

this can be put in matrix form as

 

Here A is an n × n matrix in which the first row contains a1, ..., an and all other rows have a single 1 with all other elements being 0, and b is a column vector with first element b and with the rest of its elements being 0.

This matrix equation can be solved using the methods in the article Matrix difference equation. In the homogeneous case yi is a para-permanent of a lower triangular matrix [6]

Solution using generating functions edit

The recurrence

 

can be solved using the theory of generating functions. First, we write  . The recurrence is then equivalent to the following generating function equation:

 

where   is a polynomial of degree at most   correcting the initial terms. From this equation we can solve to get

 

In other words, not worrying about the exact coefficients,   can be expressed as a rational function  

The closed form can then be derived via partial fraction decomposition. Specifically, if the generating function is written as

 

then the polynomial   determines the initial set of corrections  , the denominator   determines the exponential term  , and the degree   together with the numerator   determine the polynomial coefficient  .

Relation to solution to differential equations edit

The method for solving linear differential equations is similar to the method above—the "intelligent guess" (ansatz) 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. Considering the Taylor series of the solution to a linear differential equation:

 

it can be seen that the coefficients of the series are given by the  -th derivative of   evaluated at the point  . 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  -th derivative of   evaluated at   is  .

Solving with z-transforms edit

Certain difference equations - in particular, linear constant coefficient difference equations - can be solved using z-transforms. The z-transforms are a class of integral transforms 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.

Stability edit

In the solution equation

 

a term with real characteristic roots converges to 0 as t grows indefinitely large if the absolute value of the characteristic root is less than 1. If the absolute value equals 1, the term will stay constant as t grows if the root is +1 but will fluctuate between two values if the root is −1. If the absolute value of the root is greater than 1 the term will become larger and larger over time. A pair of terms with complex conjugate characteristic roots will converge to 0 with dampening fluctuations if the absolute value of the modulus M of the roots is less than 1; if the modulus equals 1 then constant amplitude fluctuations in the combined terms will persist; and if the modulus is greater than 1, the combined terms will show fluctuations of ever-increasing magnitude.

Thus the evolving variable x will converge to 0 if all of the characteristic roots have magnitude less than 1.

If the largest root has absolute value 1, neither convergence to 0 nor divergence to infinity will occur. If all roots with magnitude 1 are real and positive, x will converge to the sum of their constant terms ci; unlike in the stable case, this converged value depends on the initial conditions; different starting points lead to different points in the long run. If any root is −1, its term will contribute permanent fluctuations between two values. If any of the unit-magnitude roots are complex then constant-amplitude fluctuations of x will persist.

Finally, if any characteristic root has magnitude greater than 1, then x will diverge to infinity as time goes to infinity, or will fluctuate between increasingly large positive and negative values.

A theorem of Issai Schur states that all roots have magnitude less than 1 (the stable case) if and only if a particular string of determinants are all positive.[2]: 247 

If a non-homogeneous linear difference equation has been converted to homogeneous form which has been analyzed as above, then the stability and cyclicality properties of the original non-homogeneous equation will be the same as those of the derived homogeneous form, with convergence in the stable case being to the steady-state value y* instead of to 0.

See also edit

References edit

  1. ^ Chiang, Alpha (1984). Fundamental Methods of Mathematical Economics (Third ed.). New York: McGraw-Hill. ISBN 0-07-010813-7.
  2. ^ a b Baumol, William (1970). Economic Dynamics (Third ed.). New York: Macmillan. ISBN 0-02-306660-1.
  3. ^ Greene, Daniel H.; Knuth, Donald E. (1982), "2.1.1 Constant coefficients – A) Homogeneous equations", Mathematics for the Analysis of Algorithms (2nd ed.), Birkhäuser, p. 17.
  4. ^ Chiang, Alpha C., Fundamental Methods of Mathematical Economics, third edition, McGraw-Hill, 1984.
  5. ^ Papanicolaou, Vassilis, "On the asymptotic stability of a class of linear difference equations," Mathematics Magazine 69(1), February 1996, 34–43.
  6. ^ Zatorsky, Roman; Goy, Taras (2016). "Parapermanent of triangular matrices and some general theorems on number sequences". J. Int. Seq. 19: 16.2.2.

linear, recurrence, with, constant, coefficients, further, information, constant, recursive, sequence, mathematics, including, combinatorics, linear, algebra, dynamical, systems, linear, recurrence, with, constant, coefficients, also, known, linear, recurrence. Further information Constant recursive sequence In mathematics including combinatorics linear algebra and dynamical systems a linear recurrence with constant coefficients 1 ch 17 2 ch 10 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 Contents 1 Definitions 2 Conversion to homogeneous form 3 Solution example for small orders 3 1 Order 1 3 2 Order 2 4 General solution 4 1 Characteristic polynomial and roots 4 2 Solution with distinct characteristic roots 4 2 1 Converting complex solution to trigonometric form 4 2 2 Cyclicity 4 3 Solution with duplicate characteristic roots 4 4 Solution by conversion to matrix form 4 5 Solution using generating functions 4 6 Relation to solution to differential equations 4 6 1 Solving with z transforms 5 Stability 6 See also 7 ReferencesDefinitions editA linear recurrence with constant coefficients is an equation of the following form written in terms of parameters a1 an and b y t a 1 y t 1 a n y t n b displaystyle y t a 1 y t 1 cdots a n y t n b nbsp or equivalently asy t n a 1 y t n 1 a n y t b displaystyle y t n a 1 y t n 1 cdots a n y t b nbsp The positive integer n displaystyle n nbsp 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 l l n a 1 l n 1 a 2 l n 2 a n displaystyle p lambda lambda n a 1 lambda n 1 a 2 lambda n 2 cdots a n nbsp whose roots play a crucial role in finding and understanding the sequences satisfying the recurrence Conversion to homogeneous form editIf b 0 the equationy t a 1 y t 1 a n y t n b displaystyle y t a 1 y t 1 cdots a n y t n b nbsp 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 obtainingy b 1 a 1 a n displaystyle y frac b 1 a 1 cdots a n nbsp 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 y t y a 1 y t 1 y a n y t n y displaystyle left y t y right a 1 left y t 1 y right cdots a n left y t n y right nbsp which has no constant term and which can be written more succinctly asx t a 1 x t 1 a n x t n displaystyle x t a 1 x t 1 cdots a n x t n nbsp where x equals y y This is the homogeneous form If there is no steady state the difference equationy t a 1 y t 1 a n y t n b displaystyle y t a 1 y t 1 cdots a n y t n b nbsp can be combined with its equivalent formy t 1 a 1 y t 2 a n y t n 1 b displaystyle y t 1 a 1 y t 2 cdots a n y t n 1 b nbsp to obtain by solving both for b y t a 1 y t 1 a n y t n y t 1 a 1 y t 2 a n y t n 1 displaystyle y t a 1 y t 1 cdots a n y t n y t 1 a 1 y t 2 cdots a n y t n 1 nbsp in which like terms can be combined to give a homogeneous equation of one order higher than the original Solution example for small orders editThe roots of the characteristic polynomial play a crucial role in finding and understanding the sequences satisfying the recurrence If there are d displaystyle d nbsp distinct roots r 1 r 2 r d displaystyle r 1 r 2 ldots r d nbsp then each solution to the recurrence takes the forma n k 1 r 1 n k 2 r 2 n k d r d n displaystyle a n k 1 r 1 n k 2 r 2 n cdots k d r d n nbsp where the coefficients k i displaystyle k i nbsp 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 displaystyle n nbsp For instance if the characteristic polynomial can be factored as x r 3 displaystyle x r 3 nbsp with the same root r displaystyle r nbsp occurring three times then the solution would take the form a n k 1 r n k 2 n r n k 3 n 2 r n displaystyle a n k 1 r n k 2 nr n k 3 n 2 r n nbsp 3 Order 1 edit For order 1 the recurrencea n r a n 1 displaystyle a n ra n 1 nbsp has the solution a n r n displaystyle a n r n nbsp with a 0 1 displaystyle a 0 1 nbsp and the most general solution is a n k r n displaystyle a n kr n nbsp with a 0 k displaystyle a 0 k nbsp The characteristic polynomial equated to zero the characteristic equation is simply t r 0 displaystyle t r 0 nbsp Order 2 edit Solutions to such recurrence relations of higher order are found by systematic means often using the fact that a n r n displaystyle a n r n nbsp is a solution for the recurrence exactly when t r displaystyle t r nbsp is a root of the characteristic polynomial This can be approached directly or using generating functions formal power series or matrices Consider for example a recurrence relation of the forma n A a n 1 B a n 2 displaystyle a n Aa n 1 Ba n 2 nbsp When does it have a solution of the same general form as a n r n displaystyle a n r n nbsp Substituting this guess ansatz in the recurrence relation we find thatr n A r n 1 B r n 2 displaystyle r n Ar n 1 Br n 2 nbsp must be true for all n gt 1 displaystyle n gt 1 nbsp Dividing through by r n 2 displaystyle r n 2 nbsp we get that all these equations reduce to the same thing r 2 A r B r 2 A r B 0 displaystyle begin aligned r 2 amp Ar B r 2 Ar B amp 0 end aligned nbsp which is the characteristic equation of the recurrence relation Solve for r displaystyle r nbsp to obtain the two roots l 1 displaystyle lambda 1 nbsp l 2 displaystyle lambda 2 nbsp these roots are known as the characteristic roots or eigenvalues of the characteristic equation Different solutions are obtained depending on the nature of the roots If these roots are distinct we have the general solutiona n C l 1 n D l 2 n displaystyle a n C lambda 1 n D lambda 2 n nbsp while if they are identical when A 2 4 B 0 displaystyle A 2 4B 0 nbsp we havea n C l n D n l n displaystyle a n C lambda n Dn lambda n nbsp This is the most general solution the two constants C displaystyle C nbsp and D displaystyle D nbsp can be chosen based on two given initial conditions a 0 displaystyle a 0 nbsp and a 1 displaystyle a 1 nbsp to produce a specific solution In the case of complex eigenvalues which also gives rise to complex values for the solution parameters C displaystyle C nbsp and D displaystyle D nbsp the use of complex numbers can be eliminated by rewriting the solution in trigonometric form In this case we can write the eigenvalues as l 1 l 2 a b i displaystyle lambda 1 lambda 2 alpha pm beta i nbsp Then it can be shown thata n C l 1 n D l 2 n displaystyle a n C lambda 1 n D lambda 2 n nbsp can be rewritten as 4 576 585 a n 2 M n E cos 8 n F sin 8 n 2 G M n cos 8 n d displaystyle a n 2M n left E cos theta n F sin theta n right 2GM n cos theta n delta nbsp whereM a 2 b 2 cos 8 a M sin 8 b M C D E F i G E 2 F 2 cos d E G sin d F G displaystyle begin array lcl M sqrt alpha 2 beta 2 amp cos theta tfrac alpha M amp sin theta tfrac beta M C D E mp Fi amp amp G sqrt E 2 F 2 amp cos delta tfrac E G amp sin delta tfrac F G end array nbsp Here E displaystyle E nbsp and F displaystyle F nbsp or equivalently G displaystyle G nbsp and d displaystyle delta nbsp are real constants which depend on the initial conditions Usingl 1 l 2 2 a A displaystyle lambda 1 lambda 2 2 alpha A nbsp l 1 l 2 a 2 b 2 B displaystyle lambda 1 cdot lambda 2 alpha 2 beta 2 B nbsp one may simplify the solution given above asa n B n 2 E cos 8 n F sin 8 n displaystyle a n B frac n 2 left E cos theta n F sin theta n right nbsp where a 1 displaystyle a 1 nbsp and a 2 displaystyle a 2 nbsp are the initial conditions andE A a 1 a 2 B F i A 2 a 1 A a 2 2 a 1 B B A 2 4 B 8 arccos A 2 B displaystyle begin aligned E amp frac Aa 1 a 2 B F amp i frac A 2 a 1 Aa 2 2a 1 B B sqrt A 2 4B theta amp arccos left frac A 2 sqrt B right end aligned nbsp In this way there is no need to solve for l 1 displaystyle lambda 1 nbsp and l 2 displaystyle lambda 2 nbsp In all cases real distinct eigenvalues real duplicated eigenvalues and complex conjugate eigenvalues the equation is stable that is the variable a displaystyle a nbsp converges to a fixed value specifically zero if and only if both eigenvalues are smaller than one in absolute value In this second order case this condition on the eigenvalues can be shown 5 to be equivalent to A lt 1 B lt 2 displaystyle A lt 1 B lt 2 nbsp which is equivalent to B lt 1 displaystyle B lt 1 nbsp and A lt 1 B displaystyle A lt 1 B nbsp General solution editSee also Recurrence equation Solving homogeneous linear recurrence relations with constant coefficients Characteristic polynomial and roots edit Solving the homogeneous equationx t a 1 x t 1 a n x t n displaystyle x t a 1 x t 1 cdots a n x t n nbsp involves first solving its characteristic polynomiall n a 1 l n 1 a n 2 l 2 a n 1 l a n displaystyle lambda n a 1 lambda n 1 cdots a n 2 lambda 2 a n 1 lambda a n nbsp for its characteristic roots l1 ln These roots can be solved for algebraically if n 4 but not necessarily otherwise If the solution is to be used numerically all the roots of this characteristic equation can be found by numerical methods However for use in a theoretical context it may be that the only information required about the roots is whether any of them are greater than or equal to 1 in absolute value It may be that all the roots are real or instead there may be some that are complex numbers In the latter case all the complex roots come in complex conjugate pairs Solution with distinct characteristic roots edit If all the characteristic roots are distinct the solution of the homogeneous linear recurrencex t a 1 x t 1 a n x t n displaystyle x t a 1 x t 1 cdots a n x t n nbsp can be written in terms of the characteristic roots asx t c 1 l 1 t c n l n t displaystyle x t c 1 lambda 1 t cdots c n lambda n t nbsp where the coefficients ci can be found by invoking the initial conditions Specifically for each time period for which an iterate value is known this value and its corresponding value of t can be substituted into the solution equation to obtain a linear equation in the n as yet unknown parameters n such equations one for each initial condition can be solved simultaneously for the n parameter values If all characteristic roots are real then all the coefficient values ci will also be real but with non real complex roots in general some of these coefficients will also be non real Converting complex solution to trigonometric form edit If there are complex roots they come in conjugate pairs and so do the complex terms in the solution equation If two of these complex terms are cjltj and cj 1ltj 1 the roots lj can be written asl j l j 1 a b i M a M b M i displaystyle lambda j lambda j 1 alpha pm beta i M left frac alpha M pm frac beta M i right nbsp where i is the imaginary unit and M is the modulus of the roots M a 2 b 2 displaystyle M sqrt alpha 2 beta 2 nbsp Then the two complex terms in the solution equation can be written asc j l j t c j 1 l j 1 t M t c j a M b M i t c j 1 a M b M i t M t c j cos 8 i sin 8 t c j 1 cos 8 i sin 8 t M t c j cos 8 t i sin 8 t c j 1 cos 8 t i sin 8 t displaystyle begin aligned c j lambda j t c j 1 lambda j 1 t amp M t left c j left frac alpha M frac beta M i right t c j 1 left frac alpha M frac beta M i right t right 6pt amp M t left c j left cos theta i sin theta right t c j 1 left cos theta i sin theta right t right 6pt amp M t bigl c j left cos theta t i sin theta t right c j 1 left cos theta t i sin theta t right bigr end aligned nbsp where 8 is the angle whose cosine is a M and whose sine is b M the last equality here made use of de Moivre s formula Now the process of finding the coefficients cj and cj 1 guarantees that they are also complex conjugates which can be written as g di Using this in the last equation gives this expression for the two complex terms in the solution equation 2 M t g cos 8 t d sin 8 t displaystyle 2M t left gamma cos theta t delta sin theta t right nbsp which can also be written as2 g 2 d 2 M t cos 8 t ps displaystyle 2 sqrt gamma 2 delta 2 M t cos theta t psi nbsp where ps is the angle whose cosine is g g2 d2 and whose sine is d g2 d2 Cyclicity edit Depending on the initial conditions even with all roots real the iterates can experience a transitory tendency to go above and below the steady state value But true cyclicity involves a permanent tendency to fluctuate and this occurs if there is at least one pair of complex conjugate characteristic roots This can be seen in the trigonometric form of their contribution to the solution equation involving cos 8t and sin 8t Solution with duplicate characteristic roots edit In the second order case if the two roots are identical l1 l2 they can both be denoted as l and a solution may be of the formx t c 1 l t c 2 t l t displaystyle x t c 1 lambda t c 2 t lambda t nbsp Solution by conversion to matrix form edit An alternative solution method involves converting the n th order difference equation to a first order matrix difference equation This is accomplished by writing w1 t yt w2 t yt 1 w1 t 1 w3 t yt 2 w2 t 1 and so on Then the original single n th order equationy t a 1 y t 1 a 2 y t 2 a n y t n b displaystyle y t a 1 y t 1 a 2 y t 2 cdots a n y t n b nbsp can be replaced by the following n first order equations w 1 t a 1 w 1 t 1 a 2 w 2 t 1 a n w n t 1 b w 2 t w 1 t 1 w n t w n 1 t 1 displaystyle begin aligned w 1 t amp a 1 w 1 t 1 a 2 w 2 t 1 cdots a n w n t 1 b w 2 t amp w 1 t 1 amp vdots w n t amp w n 1 t 1 end aligned nbsp Defining the vector wi asw i w 1 i w 2 i w n i displaystyle mathbf w i begin bmatrix w 1 i w 2 i vdots w n i end bmatrix nbsp this can be put in matrix form asw t A w t 1 b displaystyle mathbf w t mathbf A mathbf w t 1 mathbf b nbsp Here A is an n n matrix in which the first row contains a1 an and all other rows have a single 1 with all other elements being 0 and b is a column vector with first element b and with the rest of its elements being 0 This matrix equation can be solved using the methods in the article Matrix difference equation In the homogeneous case yi is a para permanent of a lower triangular matrix 6 Solution using generating functions edit The recurrencey t a 1 y t 1 a n y t n b displaystyle y t a 1 y t 1 cdots a n y t n b nbsp can be solved using the theory of generating functions First we write Y x t 0 y t x t textstyle Y x sum t geq 0 y t x t nbsp The recurrence is then equivalent to the following generating function equation Y x a 1 x Y x a 2 x 2 Y x a n x n Y x b 1 x p x displaystyle Y x a 1 xY x a 2 x 2 Y x cdots a n x n Y x frac b 1 x p x nbsp where p x displaystyle p x nbsp is a polynomial of degree at most n 1 displaystyle n 1 nbsp correcting the initial terms From this equation we can solve to getY x b 1 x p x 1 1 a 1 x a 2 x 2 a n x n displaystyle Y x left frac b 1 x p x right cdot frac 1 1 a 1 x a 2 x 2 cdots a n x n nbsp In other words not worrying about the exact coefficients Y x displaystyle Y x nbsp can be expressed as a rational function Y x f x g x displaystyle Y x frac f x g x nbsp The closed form can then be derived via partial fraction decomposition Specifically if the generating function is written asf x g x i f i x x r i m i displaystyle frac f x g x sum i frac f i x x r i m i nbsp then the polynomial p x displaystyle p x nbsp determines the initial set of corrections z n displaystyle z n nbsp the denominator x r i m displaystyle x r i m nbsp determines the exponential term r i n displaystyle r i n nbsp and the degree m displaystyle m nbsp together with the numerator f i x displaystyle f i x nbsp determine the polynomial coefficient k i n displaystyle k i n nbsp Relation to solution to differential equations edit The method for solving linear differential equations is similar to the method above the intelligent guess ansatz for linear differential equations with constant coefficients is e l x displaystyle e lambda x nbsp where l displaystyle lambda nbsp is a complex number that is determined by substituting the guess into the differential equation This is not a coincidence Considering the Taylor series of the solution to a linear differential equation n 0 f n a n x a n displaystyle sum n 0 infty frac f n a n x a n nbsp it can be seen that the coefficients of the series are given by the n displaystyle n nbsp th derivative of f x displaystyle f x nbsp evaluated at the point a displaystyle a nbsp 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 y k f n k displaystyle y k to f n k nbsp and more generally x m y k n n 1 n m 1 f n k m displaystyle x m y k to n n 1 n m 1 f n k m nbsp Example The recurrence relationship for the Taylor series coefficients of the equation x 2 3 x 4 y 3 3 x 1 y 2 2 y 0 displaystyle x 2 3x 4 y 3 3x 1 y 2 2y 0 nbsp is given byn n 1 f n 1 3 n f n 2 4 f n 3 3 n f n 1 f n 2 2 f n 0 displaystyle n n 1 f n 1 3nf n 2 4f n 3 3nf n 1 f n 2 2f n 0 nbsp or 4 f n 3 2 n f n 2 n n 4 f n 1 2 f n 0 displaystyle 4f n 3 2nf n 2 n n 4 f n 1 2f n 0 nbsp 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 equationa y b y c y 0 displaystyle ay by cy 0 nbsp has solutiony e a x displaystyle y e ax nbsp The conversion of the differential equation to a difference equation of the Taylor coefficients isa f n 2 b f n 1 c f n 0 displaystyle af n 2 bf n 1 cf n 0 nbsp It is easy to see that the n displaystyle n nbsp th derivative of e a x displaystyle e ax nbsp evaluated at 0 displaystyle 0 nbsp is a n displaystyle a n nbsp Solving with z transforms edit Certain difference equations in particular linear constant coefficient difference equations can be solved using z transforms The z transforms are a class of integral transforms 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 Stability editIn the solution equationx t c 1 l 1 t c n l n t displaystyle x t c 1 lambda 1 t cdots c n lambda n t nbsp a term with real characteristic roots converges to 0 as t grows indefinitely large if the absolute value of the characteristic root is less than 1 If the absolute value equals 1 the term will stay constant as t grows if the root is 1 but will fluctuate between two values if the root is 1 If the absolute value of the root is greater than 1 the term will become larger and larger over time A pair of terms with complex conjugate characteristic roots will converge to 0 with dampening fluctuations if the absolute value of the modulus M of the roots is less than 1 if the modulus equals 1 then constant amplitude fluctuations in the combined terms will persist and if the modulus is greater than 1 the combined terms will show fluctuations of ever increasing magnitude Thus the evolving variable x will converge to 0 if all of the characteristic roots have magnitude less than 1 If the largest root has absolute value 1 neither convergence to 0 nor divergence to infinity will occur If all roots with magnitude 1 are real and positive x will converge to the sum of their constant terms ci unlike in the stable case this converged value depends on the initial conditions different starting points lead to different points in the long run If any root is 1 its term will contribute permanent fluctuations between two values If any of the unit magnitude roots are complex then constant amplitude fluctuations of x will persist Finally if any characteristic root has magnitude greater than 1 then x will diverge to infinity as time goes to infinity or will fluctuate between increasingly large positive and negative values A theorem of Issai Schur states that all roots have magnitude less than 1 the stable case if and only if a particular string of determinants are all positive 2 247 If a non homogeneous linear difference equation has been converted to homogeneous form which has been analyzed as above then the stability and cyclicality properties of the original non homogeneous equation will be the same as those of the derived homogeneous form with convergence in the stable case being to the steady state value y instead of to 0 See also editRecurrence relation Linear differential equation Skolem Mahler Lech theorem Skolem problemReferences edit Chiang Alpha 1984 Fundamental Methods of Mathematical Economics Third ed New York McGraw Hill ISBN 0 07 010813 7 a b Baumol William 1970 Economic Dynamics Third ed New York Macmillan ISBN 0 02 306660 1 Greene Daniel H Knuth Donald E 1982 2 1 1 Constant coefficients A Homogeneous equations Mathematics for the Analysis of Algorithms 2nd ed Birkhauser p 17 Chiang Alpha C Fundamental Methods of Mathematical Economics third edition McGraw Hill 1984 Papanicolaou Vassilis On the asymptotic stability of a class of linear difference equations Mathematics Magazine 69 1 February 1996 34 43 Zatorsky Roman Goy Taras 2016 Parapermanent of triangular matrices and some general theorems on number sequences J Int Seq 19 16 2 2 Retrieved from https en wikipedia org w index php title Linear recurrence with constant coefficients amp oldid 1152343965, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.