Let $M_{X}(t)$ be an mgf of $X$. Show that the first derivative of $\ln M_{X}(t)$ at $t=0$ is $\mathbb{E}[X]$ and the second derivative of $\ln M_{X}(t)$ at $t=0$ is $\text{Var}[X]$
I'm not entirely sure this statement is correct because what I learned in class was that if we took the $n$th derivative of $M_x(t)$ at $t=0$, then we get the expectation of $X$. But once you put in something the $\log$ function it seems like this statement doesn't really work anymore. Additionally I got something like the integrand over the integral, which doesn't seem to make any sense.
How can this be proved?
$\newcommand{\deriv}[2]{\dfrac{\text{d}}{\text{d}#1}\left[#2\right]}$ Hint (not a complete solution): $$\deriv{t}{\ln M_{X}(t)} = \dfrac{M^{\prime}_{X}(t)}{M_{X}(t)}$$ and use the quotient rule to take the second derivative of $\ln M_{X}(t)$.