Before, I begin I want say that the original question asks, "A couple decides to continue to have children until a daughter is born. What is the expected number of children until a daughter is born?"
Below, is the solution that they had in the back of the textbook (Statistical Inference, Second Edition, Roger L. Berger, George Casella)
What I do not understand is how to deduce summations that well.
First of all, how do they get $$\sum^\infty_{k=1}k(1-p )^{k-1}p = p - \sum^\infty_{k=1}\frac{d}{dp}(1-p )^{k}$$
Next, How do they simplify this as well $$-p\frac{d}{dp}{\bigg[\sum^\infty_{k=0}(1-p)^k-1\bigg]} = -p\frac{d}{dp}\bigg[\frac{1}{p}-1\bigg] = \frac{1}{p}$$
I would like this to be shown and explained intuitively because the statistics course I am taking requires me to be able to deduce summations on my own, and it seems to be a huge part of understanding the subject. Thank you ahead of time.
As an alternate method that does not require the use of Geometric Series:
Let $E$ denote the answer, then consider the possible outcomes from the first child. Either the child is a daughter ($p$) in which case the answer is $1$ or it is a son ($1-p$) and the answer is now $1+E$.
Thus $$E=p\times 1 + (1-p)\times (E+1)\implies E=\frac 1p$$
In general, the use of Geometric Series only makes sense in those situations (as here) in which one can easily enumerate all the possible outcomes. Generally speaking, however, this is not possible.