Proof of sum results I was going through some of my notes when I found both these sums with their results
$$
x^0+x^1+x^2+x^3+... = \frac{1}{1-x}, |x|<1
$$
$$
0+1+2x+3x^2+4x^3+... = \frac{1}{(1-x)^2}
$$
I tried but I was unable to prove or confirm that these results are actually correct, could anyone please help me confirm whether these work or not?

we have $\sum_{i=0}^nx^i=\frac{x^{n+1}-1}{x-1}$ and the limit for $n$ tends to infinity exists if $|x|<1$
