Question: Let X be a random variable with the geometric distribution $f(x) = p(1-p)^{x-1}$
Obtain the moment generating function for $t<-ln(1-p)$
Hint: $\sum_{k=0}^{\infty}r^{k} = \frac{1}{1-r}, |r|<1$
Proof:
Let $M_{X}(t)$ be the moment generating function for a random variable $X$.
Then, $M_{X}(t) = E[e^{Xt}] = \sum_{x=1}^{\infty}e^{xt}p(1-p)^{x-1} = p\sum_{x=1}^{\infty}e^{xt}(1-p)^{x-1}$
I would appreciate an obvious hint to proceed me through.
Thanks in advance.
Note that $$ \begin{align} p\sum_{x=1}^{\infty}e^{xt}(1-p)^{x-1} &=pe^t\sum_{x=1}^{\infty}e^{(x-1)t}(1-p)^{x-1}\\\tag{0} &=pe^t\sum_{u=0}^{\infty}e^{ut}(1-p)^{u}\\ &=pe^t\sum_{u=0}^{\infty}(e^t(1-p))^{u}\\ &=\frac{pe^t}{1-e^t(1-p)}\tag{1} \end{align} $$ provided that $|e^t(1-p)|=e^t(1-p)<1$ where in (0) we made the change of variables $u=x-1$ and in $(1)$ we use the hint with $r=e^t(1-p)$.