I'm currently trying to expand the following sum and have simplified it down using the steps below: $$ \sum_{i=1}^{n+1}{i\cdot2^i}\\ \sum_{i=0}^{n}{(i+1)\cdot2^{(i+1)}}\\ \sum_{i=0}^{n}{i\cdot2^{i+1}}+\sum_{i=0}^{n}{2^{i+1}}\\ \sum_{i=0}^{n}{2\cdot i\cdot2^{i}}+\sum_{i=0}^{n}{2\cdot 2^{i}}\\ 2\sum_{i=0}^{n}{i\cdot2^{i}}+2\sum_{i=0}^{n}{2^{i}}\\ $$
I know I can use the formula for a geometric series on the right sum to get $2\sum_{i=0}^{n}{2^{i}}=2(2\cdot 2^n-1)$ But I'm unsure of how to simplify the left sum since $a=i$.
Note that $$ \sum_{k=0}^nk2^k=2\sum_{k=0}^nk2^{k-1} $$ then define $$ f(x):=\sum_{k=0}^nkx^{k-1} $$ and $$ g(x):=\sum_{k=0}^nx^{k}=\frac{x^{n+1}-x}{1-x}\;. $$ Clearly $$ f(x)=g'(x)=\frac{\left((n+1)x^n-1\right)(1-x)+x^{n+1}-x}{(1-x)^2}. $$ What we where searching for is then $ 2f(2). $