While working on a physics problem, I got the following double integral that depends on the parameter $a$:
$$I(a)=\int_{0}^{L}\int_{0}^{L}\sqrt{a}e^{-a(x-y+b)^2}dxdy$$
where $L$ and $b$ are constants.
Now, this integral obviously has no closed form in terms of elementary functions. However, it follows from physical considerations that the derivative of this integral $\frac{dI}{da}$ has a closed form solution in terms of exponential functions. Unfortunately, my mathematical abilities are not good enough to get this result directly from the integral. So, how does a mathematician solve this problem?
Introduce new variables $u$, $v$ by means of $$x={1\over2}(u+v+L)\ ,\quad y={1\over2}(-u+v+L)$$ and get $$I(a)=\int_{|u|+|v|\leq L}{\sqrt{a}\over2}\exp\bigl(-a(u+b)^2\bigr){\rm d}(u,v)\ .$$ Now the inner integral, with respect to $v$, running from $-(L-|u|)$ to $L-|u|$, is elementary, and the resulting outer integral can be written as a linear combination of integrals of the form $\int_\ldots^\ldots (u+b)\exp\bigl(-a(u+b)^2\bigr) du$ and $\int_\ldots^\ldots \exp\bigl(-a(u+b)^2\bigr)du$, the first of which are also elementary.