I am very new to these statistical concepts and getting confused really quickly while reading online. I am supposed to find the expectation of $\ln(X)\sim N(\mu, \sigma)$ by using the MGF.
So far I've got
$M_{\ln(X)}(t)=E[e^{t\ln(X)}]$ (By defintion) $=E[X^t]$
but I am not sure how to go from there. I saw someone online simply plugging in $1$ for $t$ and saying that's the expectation but I didn't find anything on why is that and I don't know if it's correct.
Another thing I know is that the expectation is the first derivative of the MGF evaluated at $t=0$. But I am not sure how to use that. Do I simply plug in $\ln(x)$ instead of $x$ in the MGF of $X\sim N(\mu,\sigma)$ then take the first derivative? or?
If $\ln X\sim\operatorname N(\mu,\sigma^2)$ then $\operatorname E(\ln X)$ is just $\mu.$
But I have to suspect you meant the expected value of $X$ if $\ln X \sim\operatorname N(\mu,\sigma^2).$ You should work on expressing things like that more clearly.
\begin{align} \operatorname E(X) & = \int_0^\infty x f_X(x)\, dx \\[8pt] & = \int_{-\infty}^{+\infty} e^u f_U(u)\, du \text{ where } u = \ln x, \text{ so that } x = e^u, \\[8pt] & = \int_{-\infty}^{+\infty} e^u \cdot \frac 1 {\sqrt{2\pi}} e^{-(1/2)((u-\mu)/\sigma)^2} \, \left( \frac {du} \sigma \right) \\[8pt] & = \int_{-\infty}^{+\infty} e^{\mu + \sigma z} \cdot \frac 1 {\sqrt{2\pi}} e^{-z^2/2} \, dz \\[8pt] & = e^\mu \cdot \frac 1 {\sqrt{2\pi}} \int_{-\infty}^{+\infty} \exp\left( \frac{-1}2 (z^2 - 2\sigma z) \right) \, dz \\[8pt] & = e^\mu \cdot \frac 1 {\sqrt{2\pi}} \int_{-\infty}^{+\infty} \exp\left( \frac{-1}2 (z^2 - 2\sigma z + \sigma^2) \right) \, dz \cdot \exp\left( \frac{\sigma^2} 2 \right) \\ & \qquad \text{The reason we can pull out } \exp(\sigma^2/2) \text{ is that} \\ & \qquad \text{it does not change as $z$ goes from } {-\infty} \text{ to } {+\infty}. \\[8pt] & = e^\mu \cdot \frac 1 {\sqrt{2\pi}} \int_{-\infty}^{+\infty} e^{(-1/2)(z-\sigma)^2} \, dz \cdot e^{\sigma^2/2} \\[8pt] & = e^{\mu+\sigma^2/2} \cdot 1. \end{align}