I am trying to find the 3rd moment of the a process $X_{t}$ that satisfies the following differential equation:
$$dX_{t} = (AX_{t} + a)dt + (BX_{t} + b)dWt$$
where A,a,B,b are constants. I came across the following formula for the moments of a process that satisfy a SDE: denote $f = AX_{t} + a$ and $L = (BX_{t} + b)$, the moments of the differential equation are given by:
$$\frac{dE(X_{t}^{n})}{dt} = nE(X_{t}^{n-1}f(x)) + \frac{n(n-1)}{2}E(X_{t}^{n-2}L^{2}(x))$$
The proof of the equation relies on applying Ito's lemma to $X^{n}$ and the fact that the expected value of an integral with respect to the brownian motion is $0$.
There are a couple of things I don't understand about this:
- Why can we move the 'd' outside the expectation?
- Why is the expected value of the integral with respect to the Brownian motion always zero in this case?
This equation can be found on page 73 of https://users.aalto.fi/~ssarkka/pub/sde_book.pdf