Simplification of geometric series. Can someone please help simplify this series?
$$\sum_{k=1}^\infty k\left(\frac 12\right)^k$$
In general, $$\sum_{k=1}^\infty\left(\frac 12\right)^k = \frac{1}{1-\frac{1}{2}} =2.$$
However, I am confused with the $k$ in front of the term $k\big(\frac 12\big)^k$.
I understand if the problem is $\sum_{k=1}^\infty\big(\frac 12\big)^k$. However, it is the $k$ term that I don't understand. The answer is suppose to be $2$.
Can someone help me? Thank you.

We can try to solve like a geometric series:
$$
S_n = \frac{1}{2} + 2\frac{1}{2^2} + 3\frac{1}{2^3} + \dots + (n - 1)\frac{1}{2^{n - 1}} + n\frac{1}{2^n} \\
\frac{1}{2}S_n = \frac{1}{2^2} + 2\frac{1}{2^3} + 3\frac{1}{2^4} + \dots + (n - 1)\frac{1}{2^{n}} + n\frac{1}{2^{n+1}} \\
S_n - \frac{1}{2}S_n = \frac{1}{2} + (2 - 1)\frac{1}{2^2} + (3 - 2)\frac{1}{2^3} + \dots + (n - (n - 1))\frac{1}{2^n} - n\frac{1}{2^{n+1}}
$$
This gives:
$$
S_n - \frac{1}{2}S_n = \left(\sum_{i = 1}^{i = n} \frac{1}{2^i}\right) - \frac{n}{2^{n+1}} = \frac{1}{2}\left(\sum_{i = 0}^{i = n - 1} \frac{1}{2^i}\right) - \frac{n}{2^{n+1}}
$$
We know the geometric sum: $\lim_{n\rightarrow\infty}\sum_0^n \frac{1}{2^i} = \frac{1}{1 - \frac{1}{2}} = 2$, which gives:
$$
\lim_{n\rightarrow\infty} S_n = \frac{\frac{1}{2}\cdot 2}{1 - \frac{1}{2}} = 2
$$
