Substitution Method
-
The substitution method for solving recurrence relations consists of three steps:
-
Guess the form of the solution.
-
Verify by induction.
-
Solve for constants.
-
-
Let’s take a look at an example. Suppose we want to solve .
We will assume that .
-
Let’s guess that . We will assume that for .
-
Now we need to prove that by induction.
The base case is for all where is a suitable constant.
We’ll now prove the general case.
Our desired form was , so we tried to put the equation in the form desired – residual: . This is certainly less then our desired form whenever (residual), for example, if and .
-
For , we have if we pick large enough.
And so we’ve shown that . But we can do better!
-
-
We shall now prove that .
-
We’ll assume that for .
-
Now we need to prove this by induction. The base case is the same as before.
Now we attempt to prove the inductive hypothesis.
But there is no such that . It seems like we’ve hit a dead end! But we can actually strengthen the inductive hypothesis by subtracting a low-order term.
Our new inductive hypothesis will be for .
-
We can pick large enough to handle the initial conditions.
-
-
As you can see, an important part of the substitution method involves making a good guess. But unfortunately, there is no general way to guess the correct solutions to recurrences. If a recurrence is similar to one you’ve seen before, then guessing a similar solution is reasonable.