I am trying to find a way to solve non-homogeneous recurrences by solving the homogeneous and non-homogeneous parts separately. I can use generating functions for the whole thing, but I want to learn the separation method, which can often lead to a quick solution.
For example:
$T(1) = 1$
$T(n) = 2T(n - 1) + n$
The solution is $T(n) = 2^{n+1} - n - 2$. I want to be able to arrive at solutions like these by splitting up $T(n)$ into the homogeneous part, $2T(n-1)$, and the non-homogeneous part $n$.
I've seen several explanations online and on this stackexchange site, but I feel like several steps get skipped and various instructions / implied intentions are not clear to me at all.
I already know how to solve homogeneous recurrences. For example the homogeneous relationship $T(n) = 2T(n-1)$ has characteristic polynomial $x - 2$ with one root, $2$, so the solution of this piece is of form $T(n) = \alpha 2^n$.
So assuming I can get the form of the homogeneous part, how do I then solve the non-homogeneous part?