There was a post on math.stackexchange.com where somebody was looking for a non-trivial integral, evaluating to , as a birthday present for his father. In the end, only one answer impressed me. All the rest relied on some transparent encoding of in the exponents and/or coefficients.
The polynomial in the numerator is waving a big, red flag at us that we should stick in an exponential factor and repeatedly differentiate it. Let’s instead consider the integral
which is related to the integral of interest through
We compute by letting and taking a contour closing in the upper half of the complex plane (where so that is exponentially damping).
The integrand has poles everywhere that , i.e. at odd integer values of along the imaginary axis. What are the residues there? The poles are all simple, so at , with , we find
and the result of the integral, enclosing the poles indexed , is
The last sum is easily done because it is geometric. So now all that’s left is to differentiate six times and plug in to compute the original integral. This computation is tedious but straightforward, yielding
so that Eqn. (1) gives
Now that we understand the nature of the coming out of this integral, how can we understand it in a broader sense? We see that it is some sort of a happy accident that this function encodes the value which is very close to . What else does it encode? If we look at a Taylor series for small , we have
In fact, this is the exponential generating function for the Euler numbers . If we want to engineer this sort of integral to give any other value, we can do it. The coefficients that will come in will be those needed to get the desired value as a linear combination of Euler numbers. It is nice that those numbers will be entirely unrecognizable at first sight, but the original example for is particularly impressive because there are no big, fishy numbers floating around.
To sum it all up: at the heart of this problem is a nice, simple-looking but not-simple-to-compute integral representation:
From it, we can form linear combinations of its Taylor coefficients by derivatives with respect to . It also helps that this particular function generates an exotic looking sequence.
A similar but less interesting example is furnished by taking the usual integral representation of the Bessel function,
Then, examining its Taylor series about , we can write things like
and
The coefficients show no obvious link to , but the integrals have elementary anti-derivatives. The principle of how to generate problems like these is clear, though. The hard part is finding a sufficiently nice integral representation (of a function with rational Taylor coefficients).