
I'm assuming $\frac{d}{dw}$ should be written as $\frac{\partial}{\partial \omega}$
I'm a bit confused by the part highlighted in green. I'm think i'm right in saying that when we integrate wrt one variable ($x$ in this case) we leave the other variable ($\omega$) constant. However the gren underline implies we that we can treat $\omega$ as a variable inside the integral which is integrating wrt $x$?