[WPI] [cs2223] [cs2223 text] [News] [Notes] [Recurrence] [Solving]
Begin by putting the equation in the standard form. That means all terms containing the sequence go on the left and everything else on the right. Here is "mathemetician" notation and "standard notation" for the same recurrence relation:
Set the RHS (right hand side) to zero to form the homogeneous equation. That equation describes how the sequence evolves in the absence of any "forcing function" - the stuff in the RHS. The solution is the homogeneous solution. Here is how you find it.
Guess that the solution is of this form:
At this point, don't worry about what K and x are, just consider them to be constants whose values are not yet known. Substitute this guess into the homogeneous equation and solve for x:
Thus the homogeneous solution is:
The undetermined coefficient K can be any finite number - they are all solutions of the homogeneous equation;
The equation for x is called the characteristic equation. It can be derived from just looking at the recurrence relation;
The order of the characteristic equation is the same as the order of the recurrence relation. When it is of first order, the solution is simple.
When the characteristic equation is of second order, the solutions can be found by factoring:
There are two undetermined coefficients because the equations are of second order. The standard quadratic method can be used if the factoring is not obvious:
Here are a few examples:
Don't worry if the roots are irrational, imaginary, or complex. When the values of the coefficients are determined at the very end, the resulting sequence values, An, will be real.
If the characteristic equation is of third-order or higher, finding the roots can be problematic. Mathematical tables, symbolic mathematical software, or numerical root-finding programs can sometimes be useful.
Some characteristic equations give multiple copies of the same root:
In that case, just put n in front of one of the roots in the solution:
We can directly substitute this into the recurrence relation to show that it is the correct answer;
Here is another example:
Now that we know how to find the solution to the homogeneous equation, we are ready to go on to Step 2, finding the particular solution.
[cs2223 text] [News] [Notes] [Recurrence] [Solving] |