I begin this post with a plea: please don't be too harsh with this post for being off topic or vague. It's a question about something I find myself doing as a mathematician, and wonder whether others do it as well. It is a soft question about recreational mathematics - in reality, I'm shooting for more of a conversation.

I know that a lot of users on this site (e.g. Cleo, Jack D'Aurizio, and so on) are really good at figuring out crafty ways of solving recreational definite integrals, like $$\int_{\pi/2}^{\pi} \frac{x\sin(x)}{5-4\cos(x)} \, dx$$ or $$\int_0^\infty \bigg(\frac{x-1}{\ln^2(x)}-\frac{1}{\ln(x)}\bigg)\frac{dx}{x^2+1}$$ When questions like this pop up on MSE, the OP provides an integral to evaluate, and the answerers can evaluate it using awesome tricks including (but certainly not limited to):

  • Clever substitution
  • Exploitation of symmetry in the integrand
  • Integration by parts
  • Expanding the integrand as a series
  • Differentiating a well-know integral-defined function, like the Gamma or Beta functions
  • Taking Laplace and Inverse Laplace transforms

But when I play around with integrals on my own, I don't always have a particular problem to work on. Instead, I start with a known integral, like $$\int_0^\pi \cos(mx)\cos(nx) \, dx=\frac{\pi}{2}\delta_{mn},\space\space \forall m,n\in \mathbb Z^+$$ and "milk" it, for lack of a better word, to see how many other obscure, rare, or aesthetically pleasing integrals I can derive from it using some of the above techniques. For example, using the above integral, one might divide both sides by $m$, getting $$\int_0^\pi \frac{\cos(mx)}{m}\cos(nx) \, dx=\frac{\pi}{2m}\delta_{mn},\space\space \forall m,n,k\in \mathbb Z^+$$ Then, summing both sides from $m=1$ to $\infty$, and exploiting a well-known Fourier Series, obtain $$\int_0^\pi \cos(nx)\ln(2-2\cos(x)) \, dx=-\frac{\pi}{n},\space\space \forall n\in \mathbb Z^+$$ or, after a bit of algebra, the aesthetically pleasing result $$\int_0^{\pi/2} \cos(2nx)\ln(\sin(x)) \, dx=-\frac{\pi}{4n},\space\space \forall n\in \mathbb Z^+$$ After pulling a trick like this, I look through all of my notebooks and integral tables for other known integrals on which I can get away with the same trick, just to see what integrals I can "milk" out of them in the same way. This is just an example - even using the same starting integral, countless others can be obtained by using other Fourier Series, Power Series, integral identities, etc. For example, some integrals derived from the very same starting integral include $$\int_0^\pi \frac{\cos(nx)}{q-\cos(x)} \, dx=\frac{\pi(q-\sqrt{q^2-1})^{n+1}}{1-q^2+q\sqrt{q^2-1}}$$ $$\int_0^\pi \frac{dx}{(1+a^2-2a\cos(x))(1+b^2-2b\cos(mx))}=\frac{\pi(1+a^m b)}{(1-a^2)(1-b^2)(1-a^m b)}$$ and the astounding identity $$\int_0^{\pi/2}\ln{\lvert\sin(mx)\rvert}\cdot \ln{\lvert\sin(nx)\rvert}\, dx=\frac{\pi^3}{24}\frac{\gcd^2(m,n)}{mn}+\frac{\pi\ln^2(2)}{2}$$ Everyone seems to be curious about the proof of this last identity. A proof can be found in my answer here.

I just pick a starting integral, and using every technique I know as many times as possible, try to come up with the most exotic integrals as I can, rather than picking a specific integral and trying to solve it.

Of course, integrals generated this way would be poor (or at least extremely difficult) candidates for contest problems or puzzles to evaluate given the integral, since they are derived "backwards," and determining the derivation given the integral is likely much harder than pursuing the vague goal of a "nice-looking integral" with no objective objective (ha ha).

QUESTION: Do you (residents of MSE who regularly answer/pose recreational definite integral questions) do this same activity, in which you try to generate, rather than solve, cool integrals? If so, what are some integrals you have come up with in this way? What strategies do you use? Does anyone care to opine on the value (or perhaps lack of value) of seeking integrals in this way?

Cheers!


Yes, definitely. For example, I found that $$ m\int_0^{\infty} y^{\alpha} e^{-y}(1-e^{-y})^{m-1} \, dy = \Gamma(\alpha+1) \sum_{k \geq 1} (-1)^{k-1} \binom{m}{k} \frac{1}{k^{\alpha}} $$ (and related results for particular values of $\alpha$) while mucking about with some integrals. Months later, I was reading a paper about a particular regularisation scheme (loop regularisation) useful in particle physics, and was rather surprised to recognise the sum on the right! I was then able to use the integral to prove that such sums have a particular asymptotic that was required for the theory to actually work as intended, which the original author had verified numerically but not proved. The resulting paper's on arXiv here.

Never let it be said that mucking about with integrals is a pointless pursuit!


Unsure if this is worthy of an answer, but one particular trick I find fascinating is coordinate changes that leave the result of an integration untouched.

For example, there's a theorem with a name I can't remember right now (EDIT: It's called Glasser's master theorem, as Chappers pointed out below) that establishes equivalence of integrals of real functions over the entire real line:

$$\int_{-\infty}^{\infty}f(x)dx = \int_{-\infty}^{\infty}f\left(|\alpha|x - \sum_{i=1}^{n}\frac{|\gamma_i|}{x - \beta_{i}}\right)dx$$

for arbitrary constants $\alpha$, $\beta_i$, $\gamma_i$.

The reason why this is great for "milking" integrals is that you can keep changing the coordinates over and over until you get a monstrosity that has a simple result.

Let's try the simplest example I can think of, $\int_{-\infty}^{\infty}\frac{1}{x^2 + a}dx$ with real positive $a$. Then, by applying the coordinate change over and over using $\alpha = 1$, $\gamma_{i} = \gamma =1$ and $\beta_i = \beta = 0$:

$$\frac{\pi}{\sqrt{a}}=\int_{-\infty}^{\infty}\frac{1}{x^2 + a}dx = \int_{-\infty}^{\infty}\frac{x^2}{x^4 + (a+2)x^2 + 1}dx = \int_{-\infty}^{\infty}\frac{(x^2 (x^2 + 1)^2)}{a x^6 + 2 a x^4 + a x^2 + x^8 + 6 x^6 + 11 x^4 + 6 x^2 + 1} dx= \quad...$$

I'm certainly not suggesting this is a difficult integral, but you can see how it can get very hairy if I had nonzero $\beta_i$'s or more than one $\gamma_i$!

Once you have enough of these types of transforms under your belt, you can apply them to your heart's content in whatever form you like knowing that the result remains unchanged.

Hope this helps your quest to find more wonky integrals!


Mathematicians milk all sorts of things just for the fun of it!

  1. One Jon concocted a sequence of integrals using Fourier analysis that at first seem to evaluate to $\pi/2$ and then break down at the seventh term. He reported it as a bug to a computer algebra system vendor, who spent 3 days before figuring out he had been had.

  2. That whole MO thread above is about coming up with counter-examples to computer algebra systems such as difficult-to-see convergence. I also do that do Wolfram Alpha all the time; it will forever remain possible to easily trick it to give the Wrong Answer.

  3. The 1968 Putnam competition featured an obviously positive integral that evaluates to $\frac{22}{7}-\pi$. Lucas concocted another similar integral for $\frac{355}{113}-\pi$.

  4. You could ask the creator of $\int_{-\infty}^{+\infty} {dx \over 1 + \left(x + \tan x\right)^2} = \pi$ how he/she came up with this integral. It does not look like a naturally occurring integral to me.