This integral is part of an exercise of Bayesian analysis, but i don't know how to integrate I think completing a normal distribution can be helpful
Thanks in advance
This integral is part of an exercise of Bayesian analysis, but i don't know how to integrate I think completing a normal distribution can be helpful
Thanks in advance
Hints:
After expansion of the exponent and completing the square, you reduce to
$$\int_{-\infty}^\infty e^{-p(a-q)^2+r}da=e^r\int_{-\infty}^\infty e^{-pa^2}da$$
which is a familiar Gaussian integral.