SOLUTIONS

Search for all pages containing RSolve
BUILTIN MATHEMATICA SYMBOL
RSolve
RSolve[eqn, a[n], n]
solves a recurrence equation for .
RSolve[{eqn_{1}, eqn_{2}, ...}, {a_{1}[n], a_{2}[n], ...}, n]
solves a system of recurrence equations.
RSolve[eqn, a[n_{1}, n_{2}, ...], {n_{1}, n_{2}, ...}]
solves a partial recurrence equation.
Details and OptionsDetails and Options
 RSolve[eqn, a, n] gives solutions for a as pure functions.
 The equations can involve objects of the form where is a constant, or in general, objects of the form , , , where can have forms such as:

n+ arithmetic difference equation n geometric or difference equation n+ arithmeticgeometric functional difference equation n^{} geometricpower functional difference equation linear fractional functional difference equation  Equations such as can be given to specify end conditions.
 If not enough end conditions are specified, RSolve will give general solutions in which undetermined constants are introduced.
 The constants introduced by RSolve are indexed by successive integers. The option GeneratedParameters specifies the function to apply to each index. The default is GeneratedParameters>C, which yields constants C[1], C[2], ....
 GeneratedParameters>(Module[{C}, C]&) guarantees that the constants of integration are unique, even across different invocations of RSolve.
 For partial recurrence equations, RSolve generates arbitrary functions C[n][...].
 Solutions given by RSolve sometimes include sums that cannot be carried out explicitly by Sum. Dummy variables with local names are used in such sums.
 RSolve sometimes gives implicit solutions in terms of Solve.
 RSolve handles both ordinary difference equations and difference equations.
 RSolve handles differencealgebraic equations as well as ordinary difference equations.
 RSolve can solve linear recurrence equations of any order with constant coefficients. It can also solve many linear equations up to second order with nonconstant coefficients, as well as many nonlinear equations.
New in 5  Last modified in 7
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »