This solves a recurrence equation for a geometric series:
This gives the same result:
This gives an algebraic solution to a recurrence equation:
This solves the Fibonacci recurrence equation:
RSolve can be thought of as a discrete analog of DSolve. Many of the same functions generated in solving differential equations also appear in finding symbolic solutions to recurrence equations.
This generates a gamma function, which generalizes the factorial:
This second‐order recurrence equation comes out in terms of Bessel functions:
RSolve does not require you to specify explicit values for terms such as a. Like DSolve, it automatically introduces undetermined constants C[i] to give a general solution.
This gives a general solution with one undetermined constant:
RSolve can solve equations that do not depend only linearly on Null. For nonlinear equations, however, there are sometimes several distinct solutions that must be given. Just as for differential equations, it is a difficult matter to find symbolic solutions to recurrence equations, and standard mathematical functions only cover a limited set of cases.
Here is the general solution to a nonlinear recurrence equation:
This gives two distinct solutions:
RSolve can solve not only ordinary difference equations in which the arguments of differ by integers, but also ‐difference equations in which the arguments of are related by multiplicative factors.
This solves the ‐difference analog of the factorial equation:
Just as one can set up partial differential equations that involve functions of several variables, so one can also set up partial recurrence equations that involve multidimensional sequences. Just as in the differential equations case, general solutions to partial recurrence equations can involve undetermined functions.
This gives the general solution to a simple partial recurrence equation: