Given that $X$ has geometric distribution with $p_{X}(x) = p(1-p)^{x-1}$, determine $\textbf{E}(X)$.
MY ATTEMPT
\begin{align*} \textbf{E}(X) = \sum_{x=1}^{\infty}xp(1-p)^{x-1} = p\sum_{x=1}^{\infty}x(1-p)^{x-1} \end{align*}
If we denote by
\begin{align*} F(w) = \sum_{k=1}^{\infty} w^{k} = \frac{w}{1 - w}\quad\text{for}\quad |w| < 1 \end{align*}
We conclude that \begin{align*} \textbf{E}(X) = p\sum_{x=1}^{\infty}x(1-p)^{x-1} = pF^{\prime}(1-p) \end{align*}
Since $\displaystyle F^{\prime}(w) = \frac{1}{(1-w)^{2}}$, it is now possible to obtain the desired result \begin{align*} \textbf{E}(X) = \frac{p}{(1-(1-p))^{2}} = \frac{1}{p} \end{align*}
In the case that my answer is correct, could someone provide me any other approach to this problem? I'd prefer solutions which do not involve sophisticated methods. Thanks in advance.
The geometric distribution gives the number of trials until the first success (including the successful one, in your mass function above) in a sequence of trials with probability of success $p$.
The first trial is either a success (probability $p$) or a failure (probability $1-p$); if it is a success, you are done and $X=1$. If it is a failure, you are left with another geometric process which you must add one extra failure to.
In other words, $$ \mathbb{E}[X]=p\cdot1+(1-p)\cdot(1+\mathbb{E}[X])=1+(1-p)\mathbb{E}[X]. $$ Subtracting $(1-p)\mathbb{E}[X]$ from both sides yields $$ \mathbb{E}[X]-(1-p)\mathbb{E}[X]=1, $$ which simplifies to $$ p\mathbb{E}[X]=1\qquad\Rightarrow\qquad\mathbb{E}[X]=\frac{1}{p}. $$