Whenever I integrate a gaussian function, I get to a step that makes me a little uncomfortable because I don't fully understand it. The only way I know of to analytically integrate the gaussian function is to multiply two of them together, like so...
$$\int_{- \infty}^{\infty} e^{-x^2}dx\int_{- \infty}^{\infty} e^{-y^2}dy = \int_{- \infty}^{\infty}\int_{- \infty}^{\infty}e^{-x^2-y^2}\,dx\,dy$$
My questions is, what allows me to group two different integrands together into one integrand? When is this technique not allowed? Thanks in advance.