Bounded solution of a second-order constant-coefficient recurrence Created 2026-10-06 Updated 2026-10-14
For a linear recurrence relation with two distinct characteristic equation of a linear recurrence roots , the solution is . If , boundedness for forces , and fixes . This selects the decaying discrete mode in a finite difference method for a boundary problem on an unbounded interval. Roots on the unit circle require separate treatment; a repeated root there can contribute an unbounded factor .
Cayley-Hamilton theorem Created 2026-09-24 Updated 2026-10-18
Every square matrix satisfies its own characteristic polynomial. More explicitly, for an -by- matrix over a commutative ring with identity, form
Then
Here is the zero matrix, and the constant term multiplies the identity matrix. This is a polynomial evaluated at a matrix; it is stronger than saying that each eigenvalue is a root of a polynomial. Neither diagonalizability nor distinct eigenvalues is required.[ref]
The practical payoff is that arbitrarily high matrix powers can be reduced to a combination of . These powers arise when repeatedly applying a linear map, solving a linear recurrence relation, or evolving a finite state space model. The characteristic polynomial turns that repeated action into a fixed-order scalar recurrence. The minimal polynomial may reduce the number of required powers further.
Characteristic equation of a linear recurrence Created 2026-09-29 Updated 2026-10-05
For a constant-coefficient linear recurrence relation, substituting a trial sequence produces a polynomial equation in called its characteristic equation. Repeated roots contribute factors polynomial in .
Discrete Wronskian Created 2026-10-14 Updated 2026-10-20
For two solutions of the linear recurrence relation , their discrete Wronskian obeys . Substitute the recurrence into : the terms cancel and the remaining expression is . Iteration gives , including when some vanish. A nonzero discrete Wronskian proves linear independence of the two solutions.
Let be the forward shift on sequences and the polynomial defining a constant-coefficient linear recurrence relation. For a nonzero base , , so is a particular solution when . At a simple root of the characteristic equation of a linear recurrence, the correct trial acquires a factor :
The identity follows by substituting into each shift term. A root of multiplicity analogously requires a degree- polynomial factor; the lower-degree homogeneous terms are supplied by the repeated characteristic root of a linear recurrence.
Fibonacci recurrence 2026-10-18
The linear recurrence relation defining the Fibonacci numbers, with and . Its state advances by the matrix , so matrix powers describe repeated updates.
For the Legendre differential equation , put . The equation becomes . Its indicial equation is . The exponent-zero power series obeys the displayed linear recurrence relation. For a nonnegative integer , it terminates at degree , giving a Legendre polynomial with . Every analytic solution at the endpoint is proportional to this one, since the recurrence determines all coefficients from .
The second independent solution has the local form , where is analytic near . Indeed, reduction of order gives , whose integrand is plus an analytic function. Rescale the second solution to obtain the unit coefficient of . Reflection gives the corresponding expansion at . This also proves the logarithmic divergence of the independent Legendre function of the second kind at each endpoint.
An inhomogeneous linear recurrence has a prescribed forcing sequence rather than zero on the right. The difference of two solutions satisfies the associated homogeneous linear recurrence relation, so every solution is a particular solution plus a homogeneous solution.
Consider a random walk on with absorbing states . At each interior state it stays in place with probability , and moves one position in either direction with probability , where . Its mean absorption time from is
Proof. A sequence of at most consecutive leftward moves ensures absorption, with probability at least . Dividing time into blocks of length gives a geometric series bound on the survival probabilities, so the expected value is finite. Let . The law of total expectation and first-step analysis give
Thus . A particular solution of this linear recurrence relation is ; its homogeneous solutions are . The two boundary conditions give , , proving both the formula and its uniqueness. Holding slows the usual symmetric random walk by the factor .
A second-order linear recurrence relation normally uses two consecutive initial conditions, but two specified nonconsecutive values may also determine a unique solution of the linear recurrence relation. For two independent homogeneous solutions of the linear recurrence relation , the coefficients in are determined by exactly when . Otherwise the data can be inconsistent or can leave freedom. A nonconsecutive subscript is therefore not by itself evidence of an error.
For a repeated characteristic root of a linear recurrence , use , . The determinant is for distinct , so any such pair of prescribed values determines the two coefficients.
Use . The Legendre differential equation becomes
Substituting a Frobenius series , , gives the indicial equation : the indicial root zero is repeated. For , the coefficient of yields
or
For the multiplying factor is nonzero. At it vanishes, so and all later coefficients are zero. Thus one solution is a polynomial of exact polynomial degree , including a nonzero constant when . Denote a chosen normalization by .
The linear recurrence relation determines every analytic coefficient from , so there cannot be a second independent analytic solution at . To see the required logarithm explicitly, reduction of order gives the second solution locally as
Near , the integrand is plus an analytic function. After rescaling the second solution, its form is therefore
The analytic remainder converges locally; its constant term may be set to zero by adding a multiple of . The nonzero logarithmic coefficient makes linearly independent of . This Frobenius expansion of the Legendre equation at an endpoint gives a Logarithmic Frobenius solution; the same endpoint calculation at explains why the independent Legendre function of the second kind is excluded when boundedness at both ends is required.
For the homogeneous linear recurrence relation, substitute . Its characteristic equation of a linear recurrence is , with roots and . Taking real linear combinations gives
These two real sequences are linearly independent: their values at form a matrix with determinant . Thus their two constants account uniquely for arbitrary first two values.
Let and reindex as . In , each term with has coefficient
The term is , and the remaining term is . This explicitly proves that is the required particular solution, a discrete Green convolution for the period-six recurrence.
The unit-response coefficients have the homogeneous form just found. The values give zero cosine coefficient and sine coefficient , so
Subtracting this particular solution from any other solution leaves a homogeneous recurrence. Thus the complete answer is
Substitute the linear recurrence relation for each of and in the discrete Wronskian:
Iterating gives
No division was used, so vanishing cause no exception.
For constant coefficients, seek a solution . The characteristic equation of a linear recurrence is . Choose with . Its roots are and , since . For the two resulting solutions,
It is independent of , exactly as the product identity predicts when .
When the roots are distinct and the discrete Wronskian is nonzero. At or , the two displayed solutions coincide and ; the identity still holds. If an independent pair is wanted at these endpoints, take and , where or respectively. Direct substitution verifies both, and their discrete Wronskian is .
The transition row sums to one, since . From any state the Markov chain can reach zero, and from zero consecutive upward moves reach every state; hence it is irreducible. Its self-transition at zero has probability , so it is aperiodic. It is the reflected chain with geometric downward jumps.
Put for the hitting problem. The first-step equations for are
Subtracting times the equation at gives the linear recurrence relation, valid for ,
The separate boundary equation at is . It must not be replaced by the linear recurrence relation with : the absorbing hitting convention at zero is different from applying a first-step return equation there.
For , the linear recurrence relation has roots and , so for . The boundary equation gives . If , then and boundedness of probabilities forces , hence . If , the repeated-root solution is ; boundedness again gives and the boundary equation gives .
For , and the nonnegative harmonic candidate , together with , satisfies every first-step equation. Hitting-by-time- probabilities start from zero off the target and iterate those equations, so by induction they are bounded above by this candidate. Taking their increasing limit gives . But the general bounded solution has limit as , forcing under that bound. Thus
In particular the transient exponent is , fixed by the original boundary equation.
The probability of a subsequent return to zero when starting there is . It is one for , so the Markov chain is recurrent there. For it equals , so the irreducible Markov chain is transient.
For a stationary probability vector , balance at zero and one gives . Subtracting adjacent balance equations gives
so this initial ratio propagates and . It can be normalized only when . In that case
Direct substitution verifies all balance equations, including . An irreducible Markov chain admitting this stationary probability law is positive recurrent, with mean return time . At the linear recurrence relation and boundary relation force every equal; no such nonzero sequence is summable. The recurrent chain is therefore null recurrent. In summary,
The homogeneous sequences are again and . A particular solution has left-hand side , so . Consequently . The two initial conditions require and , giving and . Thus
The linear recurrence relation can be rearranged as . Starting with the two integer values, mathematical induction proves that every for is an integer. For , the closed form gives
The first term on the right is divisible by ten; the second is too, because supplies a factor two and supplies a factor five. Therefore divides for every positive integer . The positivity condition matters: at the expression is .
For the homogeneous linear recurrence relation, a trial gives the characteristic equation of a linear recurrence . Thus the two homogeneous sequences are and . Seek a particular solution ; substitution gives , so and . Hence
The two independent constants supply arbitrary initial values for this second-order linear recurrence relation.
False. Take and . The only nonzero length-one fill produces constant ones. Constant ones cannot satisfy the second linear recurrence relation, since in . Thus these linear-feedback shift registers have no identical outputs from nonzero fills.
Let . For the exponential trial sequence ,
Thus gives a particular solution. The difference of any two solutions of the inhomogeneous linear recurrence satisfies the homogeneous linear recurrence relation in part (i). Therefore
Substitution of gives the characteristic equation of a linear recurrence
The repeated characteristic root of a linear recurrence supplies the solutions and , while the simple root supplies . They are linearly independent: their values at three consecutive indices have nonzero determinant. A third-order linear recurrence relation is uniquely determined by three consecutive initial values, so these three solutions span its solution space. The general solution is
The superposition principle applies because the recurrence operator is linear. Add the particular solutions from parts (ii) and (iii), then add the general homogeneous linear recurrence relation solution from part (i). This gives