I am working on the following problem, and struggling with it. Can anyone help?
Let $$H=e^{\int_0^T B_s\,ds}$$ where $T>0$. Show first $E[H^2]<\infty$. Then find an adapted process ($\epsilon_t$) with $$E\left[\int^T_0\epsilon_S^2\,ds\right]<\infty$$ such that $$H(\omega)=H_0+\int^T_0\epsilon_t(\omega) \, dB_t(\omega)~~~~~ \mathbb{P}\text{-a.s.}$$ where $H_0=E[H]$.
I did the first step. $E[H^2]=E\left[e^{2\int^T_0 B_s \, ds}\right]=e^{2\int^T_0E[B_s]\,ds}=e^{\int^T_00\,ds}<\infty$. Not sure whether it is correct or wrong. The teacher said we only need to play with the Ito's formula to get the answer. Can someone help? Thanks!