say I have a the equation $$y = xw + z$$
And I am trying to compute $$\begin{aligned}\int \text{exp}((y - xw)^2 - w^2)dw &= \int\text{exp}(y^2 - 2xwy + x^2w^2 - w^2)dw \\&= \int\text{exp}(y^2)exp(-2xwy + x^2 -w^2)dw \end{aligned}$$
Am I allowed to factor out the $\text{exp}(y^2)$ term considering $y = xw + z$ to get $$\text{exp}(y^2)\int\text{exp}(-2xwy + x^2 - w^2)dw$$
I appreciate all of the swift replies. I did believe that was not correct, but needed a sanity check. Thank you all. To answer some comments, x and z are constants here.