I am new to stochastic calculus and I am learning it during off-hours, so I am full of doubts that maybe someone more expert may dispel.
Let's say I get the usual geometric Brownian process, where $X_0$ is known:
\begin{equation}\label{1}\text dX_t=\mu X_t \text dt+\sigma X_t \text dW_t.\end{equation}
I apply Itô's lemma, and if $f(x)=\ln(x)$, I get:
$$\text df(x)=\left(\mu-\frac{\sigma^2}2\right)\text dt+\sigma \text dW_t.$$
Up to here everything is clear to me.
In the textbook I am following, they state that integrating the last equation one finds $X_t$:
$$X_t=X_0 \exp\left[\left(\mu-\frac{\sigma^2}2\right)dt+\sigma W_t\right].$$
If I just take the first equation, and rewrite it as $$\text d\ln(X_t)=\mu\text dt+\sigma \text dW_t,$$ and integrate, of course I miss an $\exp\left[-\frac{\sigma^2}2t\right]$ term. This lets me think that Itô's lemma is just the correct way to compute all the first order terms needed to perform the integration? Is this the correct way to see this?
Many thanks.