A moment generating function for a random variable $X$ is defined as:
$M(t)=E(e^{tX})$
Now this is a nice and concise definition, but it's not descriptive at all, what role does $t$ play in this function and why did Euler's number appear in this formula?
In other words, what is the intution on how this formula is derived and what aspect of a statistical distribution is it describing?
Take the derivative of $M$ $k$ times and put $t=0$ then you have the moment e.g. a neat compact description of all moments. $$ M^{(k)}(0) = E(X^k) $$
The Euler number is there because of it's nice derivative property, e.g. $$ \frac{d}{dt}M(t) = \frac{d}{dt}E(e^{tX}) = E(\frac{d}{dt}e^{tX})=E(Xe^{tX}) $$