Let X be a random variable with the following probability function

fx(x)=p(1-p), z = 0,1,2,..., 0


Show that the moment generating function (mgf) Mx (t) of the random variable X is given by

Mx(t) = P / 1-(1-p)eᵗt <-log(1-p)