Question
While solving the Gambler’s Ruin recurrence
we guess a solution of the form
and substitute it into the recurrence to get
The instructor then says to “factor out” and eventually obtains
What exactly does “factor out” mean here?
Answer
Factoring out means identifying a common factor that appears in every term and rewriting the expression using that common factor.
Starting with
notice that every term contains .
Using the exponent rule
we can rewrite each term as
Substituting these forms gives
Now is a common factor in every term, so factor it out:
Assuming
we can divide both sides by
to obtain
Moving everything to one side yields the characteristic equation
Key Insight
The guess
is useful because shifting the index only changes the exponent:
This allows the recurrence relation to be converted into an algebraic quadratic equation, which is much easier to solve.
