I came across this problem In a finance module of mine and I don't quite understand the solution. The actual equation is as follows:
$E[S(t)] = S(0) + \mu \int^{t}_{0} E[S(u)]du$
Where $S(t)$ is an asset price at time $t$ And $E$ is the expectation. The solution to the question is given as:
$E[S(t)] = S(0)e^{ut}$
and is stated that this is obtained from solving an ODE. I am probably missing something really obvious here, but if someone could fill in the steps then that would be great!
You differentiate both sides with respect to $t$ leading you to $$\frac d{dt} E[S(t)] = \mu E[S(t)].$$ This is a simple ODE which is known to have the solution $$E[S(t)] = E[S(0)] \exp(\mu t),$$ where $E[S(0)] = S(0)$, since you already know the price at the beginning.