Moment in terms of Moment Generating Function

Theorem
Let $X$ be a random variable.

Let $M_X$ be the moment generating function of $X$.

Then:


 * $\expect {X^n} = \map {M^{\paren n}_X} 0$

where:
 * $n$ is a non-negative integer
 * $M^{\paren n}_X$ denotes the $n$th derivative of $M_X$
 * $\expect {X^n}$ denotes the expectation of $X^n$.

Proof
Setting $t = 0$ yields the result.