hello!

So I am given the probability mass function of a geometric random variable, denoted by p(k)=p(1-p)^k, where p is the success, and 1-p is the failure. I am suppose to compute the mean and variance using the MOMENT GENERATING FUNCTION. I need help to study for my semester midterm! Thanks