I'm going through a proof right now and am having trouble figuring out the math behind one line. It says:
$$\sum_{i=0}^\infty i^2p^{i-1} = \sum_{i=0}^\infty i(\frac{d}{dp}p^i) $$
I know this question is vague but can anybody explain why this is the case?