Let f = 1 + 2x + 3x^2 + 4x^5 + ...
First consider y = x + x^2 + x^3 + x^4 + x^5 + ...
y = x(1 + x + x^2 + x^3 + x^4 + ...) or y = x(1 + y) (as long as y converges, which it does if |x| < 1)
so y(1 - x) = x
y = x/(1 - x)
Now from the original series expression for y we have dy/dx = 1 + 2x + 3x^2 + 4x^3 + ... or in other words
f = dy/dx. Since y also equals x/(1 - x) we have dy/dx = 1/(1-x) + x/(1-x)^2 or dy/dx = (1-x+x)/(1-x)^2 or dy/dx = 1/(1-x)^2, so, f = 1/(1-x)^2 or
1 + 2x + 3x^2 + 4x^5 + ... = 1/(1 - x)^2
.