For a real-valued function $f=f(x)$, over the real variable $x$, with the following integral
$$ \left[ \int_{a}^{b} f(x)dx \right]^{2}, $$
is there a known general method/approach to handle this as to remove the squaring from over the integral, say by making changes to the integrand and/or interval, and then proceed with a form like $\int g(x)dx$ afterwards, were $g(x)$ is some other function?
Probably the best you can do in general is $$\left(\int_a^bf(x)dx\right)^2=\int_a^b\int_a^bf(x)f(y)dxdy$$ One place where this is useful is evaluating $\int_{-\infty}^{\infty} e^{-x^2}dx$