Which when we take the derivatives (and set to ), we obtain the moments of a given random variable. It uses the fact that can be written as the following series
This gives a compact and simple way to compute all the moments of a random variable from one equation instead of having to repeatedly compute them manually as follows for the moment. For some functions with complicated pdfs the moment generating functions give us a straightforward way to compute arbitrarily many moments.
Note that as long as we take enough derivatives both are equivalent.
Convenient Trick
No one has time to derivate the times to get the moment.
So when looking for the moment simply look for the coefficient of and multiply that by factorial. (In the Taylor's Expansion)
If there is no in the Taylor's expansion, you know that the moment is .