You will find the derivation of the mean and variance of a geometric random variable in most textbook on Mathematical Statistics. Here are some websites (found using Google in under 5 minutes):

http://www.win.tue.nl/~rnunez/2DI30/...tributions.pdf

Expectation and variance of the discrete geometric distribution. · Digital explorations