I'm reading the lecture notes of a course in statistics and I found the next:
The moment generating function is defined as $$M_X(t)=E(e^{tX})$$ Check that : $$M^{(n)}_X(t)=E(X^n) $$
Any idea where the last result is coming from?
For example if I try to do this for say a random variable with a binomial distribution I do not get that.