What is the step of solving this problem?
Evaluate: $$\sum_{i=1}^nia^i$$
For what I know, it's $$\sum_{i=1}^ni\times\sum_{i=1}^na^i$$
I know how to evaluate $$\sum_{i=1}^na^i=\frac{a(1-a^n)}{1-a}$$ but I am stuck on the the next steps.
Please help, thank you.
$$\sum_{i=0}^n a^i=\frac{1-a^{n+1}}{1-a}$$ So $$\sum_{i=1}^n ia^i=a\cdot \frac{d}{da}\sum_{i=0}^n a^i=a\cdot \frac{d}{da}\left(\frac{1-a^{n+1}}{1-a}\right)=\cdots$$