RSolve
Now a built-in Mathematica function, the newly expanded RSolve is one of the most extensive
systems available today for solving recurrence relations. These
include linear and nonlinear difference equations, difference
algebraic equations, partial difference
equations, q-difference, and divide-and-conquer equations.
Example: Solving Recurrence Equations
This gives the general solution to involving one arbitrary constant
.
The following example solves a linear system of a difference and an
algebraic equation. This second-order system has only one general
constant in its solution because one degree of freedom has already
been removed by the algebraic equation.
RSolve can solve partial difference equations. In these cases the
general solution is parameterized by general functions such as below.
RSolve can also solve so-called q-difference equations
or divide-and-conquer equations. These are equations of the form .
This is a linear q-difference equation that gives the number of
comparisons when doing a binary search.
|