Suppose $X_t$ solves an SDE.
Is it true to say that the identity,
$$ \mathbb{E}\left[e^{X_t}\right] = e^{\mathbb{E}[X_t]+\frac{1}{2}\text{Var}[X_t]} $$
holds only when the drift and volatility of $X_t$ are deterministic?
i.e.
$$ dX_t = \mu_t\, dt +\sigma_t\, dW_t $$
I ask because suppose instead,
$$ dX_t = \mu(t,X_t) \, dt + \sigma(t,X_t)\, dW_t $$
Then applying Ito, and taking expectations,
$$ \begin{align*} \mathbb{E}\left[e^{X_t}\right] &= e^{X_0}+\int_0^t \mathbb{E}\left[e^{X_s}\left(\mu(s,X_s)+\frac{1}{2}\sigma^2(s,X_s)\right)\right]\, ds \end{align*} $$
which cannot be converted into an ODE to solve for the left hand side, since the drift and volatility do not leave the expectation. Thanks!