I was deriving the solution to the stochastic differential equation $$dX_t = \mu X_tdt + \sigma X_tdB_t$$ where $B_t$ is a brownian motion. After finding $$X_t = x_0\exp((\mu - \frac{\sigma^2}{2})t + \mu B_t)$$ I wanted to calculate the expectation of $X_t$. However I think I'm not quite getting it. I thought that I'd just calculate $$E(x_0\exp((\mu - \frac{\sigma^2}{2})t + \mu B_t) = x_0\exp((\mu - \frac{\sigma^2}{2})t)E(\exp(\mu B_t))$$ but the book I'm using gives as answer $E(X_t) = x_0\exp(\mu t)$. I found this quite surprising as I don't quite see how $\sigma$ could just disappear. After reading Wikipedia I see that the result could be either $E(X_t) = x_0\exp((\mu + \frac{\sigma^2}{2})t)$ or $E(X_t) = x_0\exp(\mu t)$, depending on whether you use the Itô interpretation or the Stratanovich interpretation.
Since the book I use only considers the Itô formulation of stochastic integration I am interested in the latter result. But how do I obtain this? Do I just fail in calculating $E(\exp(\mu B_t))$? Thanks in advance.
The answer is that $E(X_t)=x_0e^{\mu t}$. The easiest way to see it is to start from the SDE and to note that $$\mathrm{d}E(X_t)=\mu E(X_t)\mathrm{d}t,\qquad E(X_0)=x_0.$$ Hence $a(t)=E(X_t)$ solves $a'(t)=\mu a(t)$ and $a(0)=x_0$, that is, $a(t)=x_0e^{\mu t}$ as claimed above.
Your solution goes astray when you solve the SDE, the factor of $B_t$ is wrong and, in fact, $$ X_t=x_0e^{(\mu-\sigma^2/2)t+\sigma B_t}. $$ Hence $$ E(X_t)=x_0e^{(\mu-\sigma^2/2)t}E(e^{\sigma B_t}). $$ Since $E(e^{uZ})=e^{u^2/2}$ for every real number $u$ and every standard normal random variable $Z$, the identity $E(e^{\sigma B_t})=e^{\sigma^2 t/2}$ follows from the fact that $\sigma B_t$ is distributed like $\sigma\sqrt{t}Z$. Simplifying, one gets the same expression of $E(X_t)$ than by the direct route, namely, $$E(X_t)=E(X_0)e^{\mu t}.$$