I am trying to do the following stochastic integral
$$ \int_0^T \mu(B_s) dB_s - \frac{\int_0^T (\mu(B_s))^2 ds}{2} $$ where $ \{ B_t \}$ is a standard Brownian motion, and $\mu(x) = \frac{\beta}{2x} (x^2 - \frac{4\gamma}{\sigma^2} - \frac{1}{ \beta})$.
I currently only know how to integrate when the integrands are constant, i.e. $\mu$.is constant function. I was wondering how to integrate under more complicated case as above.
Thanks and regards!
You can do this by different methods. One way I like is to use Ito's formula.
For instance, consider $B_t^2$.
$d(B_t^2) = 2B_t dB_t + dt$.
Hence, $\int_{0}^{T} B_t dB_t = \frac{1}{2} \int_{0}^{T} (d(B_t^2) - dt) = \frac{1}{2} (B_T^2 - T)$.
Similarly, consider $B_t^3$.
Use Ito's formula,
$d(B_t^3) = 3B_t^2 dB_t + 3 B_t dt$.
Hence, $\int_{0}^{T} B_t^2 dB_t = \frac{1}{3} \int_{0}^{T} (d(B_t^3) - 3 B_t dt) = \frac{1}{3} (B_T^3 - 3 \int_{0}^{T} B_t dt)$.
Use these to get your desired answer. (Plug in for $\mu(B_s)$ and then simplify to get integrals of the form $\int_{0}^{T} B_t^2 dB_t$ and $\int_{0}^{T} B_t dB_t$)
Hope this helps.