I've been presented with the following infinite sum (where $P$ is the probability of an event, and $1-P$ is therefore the probability of it not occurring.
I was given the following equation as fact: $$\sum_{i=1}^\infty(iP^{i-1}(1-P))=\frac{1}{1-p}$$
Now I know from my basic education the sum of an infinite series for probability $P$ is
$$ \sum_{i = 0}^\infty P^i = \frac{1}{1-P}$$
Assuming I haven't made a very basic mistake, these are therefore equivalent but I don't really see how. Normally, I would ask the person who proposed the first equation to justify their working, however, in this instance I can't (they have an obscure transform named after them and would take it very badly!).
My question is, how is the first equation evaluated to such a simple result, and therefore equivalent to the second.
Thanks!