Formula for $r+2r^2+3r^3+...+nr^n$ [duplicate]
Is there a formula to get $r+2r^2+3r^3+\dots+nr^n$ provided that $|r|<1$? This seems like the geometric "sum" $r+r^2+\dots+r^n$ so I guess that we have to use some kind of trick to get it, but I cannot think of a single one. Can you please help me with this problem?
$\endgroup$ 75 Answers
$\begingroup$We have $$1+r+r^2 + \cdots + r^n = \dfrac{r^{n+1}-1}{r-1}$$ Differentiating this once, we obtain $$1+2r + 3r^2 + \cdots + nr^{n-1}= \dfrac{nr^{n+1}-(n+1)r^n + 1}{(r-1)^2}$$ Multiply the above by $r$ to obtain what you want.
$\endgroup$ 1 $\begingroup$HINT: $r+2r^2+3r^3+... +nr^n=(r+r^2+\dots+r^n)+(r^2+r^3+\dots+r^n)+\dots+(r^n)$ and compute values in parentheses.
$\endgroup$ 2 $\begingroup$You can use the following approach: $$ \sum_{k=1}^n k r^k = r\sum_{k=1}^n k r^{k-1} = r\left(\sum_{k=1}^n r^{k}\right)^\prime = r\left(r\frac{1-r^n}{1-r}\right)^\prime $$
$\endgroup$ $\begingroup$What I am thinking of is this: $$r+2r^2+3r^3+...+nr^n = \sum_{k=1}^{n}r^k + \sum_{k=2}^nr^k + ... \sum_{k=n}^nr^k$$ Each is a geometric series, so the sum would be $$\frac{1-r^n}{1-r} + r\frac{1-r^{n-1}}{1-r} + ... + r^n$$.
Hope this helps.
$\endgroup$ $\begingroup$\begin{align*}r+2r^2+3r^3+\ldots+nr^n&=r(1+2r+3r^2+\ldots+nr^{n-1})=r(1+r+r^2+\dots+r^n)'\\&=r\biggl(\frac{1-r^{n+1}}{1-r}\biggl)'=r\,\frac{nr^{n+1}-(n+1)r^n+1}{(1-r)^2}. \end{align*}
$\endgroup$