$$S_t=S_0\exp\bigg(\bigg(\mu-\frac{\sigma^2}{2}\bigg)t+\sigma W_t\bigg).$$
What I tried to do is applying Ito's formula to above equation to derive SDE.
If I define $g = S_t$ then,
$dg = g_t*dt+g_{W_t}*dW_t+\frac{1}{2}g_{tt}(dt)^2+\frac{1}{2}g_{W_tW_t}(dW_t)^2+\frac{1}{2}g_{tW_t}(dtdW_t)$
And the solution of $g_t$ is $(μ-\frac{1}{2}σ^2)*g$
But I think $W_t$ is dependent on time, so the solution is wrong because it just deals $W_t$ independently with $t$
Above solution totally makes $W_t$ constant on time
Why $g_t = (μ-\frac{1}{2}σ^2)*g$ ??