I am having trouble figuring out if the following recurrence has a closed form: $$f(n)=2f(n-1)+(n-1)2^{n-2}$$
I have never really done such problems, so I dont know what is a good strategy. I will appreciate any hints!
Edit: $f$ is defined for $n\geq 1$ and $f(1)=0$.
Hint: Let $g(n)=\dfrac{f(n)}{2^{n-2}}$. Then $g(n)=g(n-1)+(n-1)$, which is very easy to solve.