A Curious Integral

On Mathstodon, Robin Houston pointed out a video where Oded Margalit claimed that it’s an open problem why this integral:

\displaystyle{  \int_0^\infty\cos(2x)\prod_{n=1}^\infty\cos\left(\frac{x}{n} \right) d x }

is so absurdly close to \frac{\pi}{8}, but not quite equal.

They agree to 41 decimal places, but they’re not the same!

\displaystyle{  \int_0^\infty\cos(2x)\prod_{n=1}^\infty\cos\left(\frac{x}{n}\right) d x } =
0.3926990816987241548078304229099378605246454...

while

\frac\pi 8 =
0.3926990816987241548078304229099378605246461...

So, a bunch of us tried to figure out what was going on.

Jaded nonmathematicians told us it’s just a coincidence, so what is there to explain? But of course an agreement this close is unlikely to be “just a coincidence”. It might be, but you’ll never get anywhere in math with that attitude.

We were reminded of the famous cosine Borwein integral

\displaystyle{ \int_0^\infty 2 \cos(x) \prod_{n = 0}^{N}  \frac{\sin (x/(2n+1))}{x/(2n+1)}  \, d x}

which equals \frac{\pi}{2} for N up to and including 55, but not for any larger N:

\displaystyle{ \int_0^\infty 2 \cos(x) \prod_{n = 0}^{56} \frac{\sin (x/(2n+1))}{x/(2n+1)} \, d x  \approx \frac{\pi}{2} - 2.3324 \cdot 10^{-138} }

But it was Sean O who really cracked the case, by showing that the integral we were struggling with could actually be reduced to an N = \infty version of the cosine Borwein integral, namely

\displaystyle{ \int_0^\infty 2 \cos(x) \prod_{n = 0}^{\infty}  \frac{\sin (x/(2n+1))}{x/(2n+1)} \, d x}

The point is this. A little calculation using the Weierstrass factorizations

\displaystyle{  \frac{\sin x}{x} = \prod_{n = 1}^\infty \left( 1  - \frac{x^2}{\pi^2 n^2} \right) }

\displaystyle{  \cos x = \prod_{n = 0}^\infty \left( 1  - \frac{4x^2}{\pi^2 (2n+1)^2} \right) }

lets you show

\displaystyle{  \prod_{n = 1}^\infty \cos\left(\frac{x}{n}\right) = \prod_{n = 0}^\infty \frac{\sin (2x/(2n+1))}{2x/(2n+1)} }

and thus

\displaystyle{   \int_0^\infty \cos(2x) \prod_{n=1}^\infty \cos\left(\frac{x}{n} \right) \; d x  = }

\displaystyle{  \int_0^\infty\cos(2x) \prod_{n = 0}^\infty \frac{\sin (2x/(2n+1))}{2x/(2n+1)} d x  }

Then, a change of variables on the right-hand side gives

\displaystyle{  \int_0^\infty \cos(2x) \prod_{n=1}^\infty \cos\left(\frac{x}{n} \right) \; d x   = }

\displaystyle{ \frac{1}{4} \int_0^\infty 2\cos(x) \prod_{n = 0}^\infty \frac{\sin (x/(2n+1))}{x/(2n+1)} d x }

So, showing that

\displaystyle{  \int_0^\infty\cos(2x)\prod_{n=1}^\infty\cos\left(\frac{x}{n} \right) d x }

is microscopically less than \frac{\pi}{8} is equivalent to showing that

\displaystyle{ \int_0^\infty 2\cos(x) \prod_{n = 0}^\infty \frac{\sin (x/(2n+1))}{x/(2n+1)} d x }

is microscopically less than \frac{\pi}{2}.

This sets up a clear strategy for solving the mystery! People understand why the cosine Borwein integral

\displaystyle{ \int_0^\infty 2 \cos(x) \prod_{n = 0}^{N}  \frac{\sin (x/(2n+1))}{x/(2n+1)}  \, d x}

equals \frac{\pi}{2} for N up to 55, and then drops ever so slightly below \frac{\pi}{2}. The mechanism is clear once you watch the right sort of movie. It’s very visual. Greg Egan explains it here with an animation, based on ideas by Hanspeter Schmid:

• John Baez, Patterns that eventually fail, Azimuth, September 20, 2018.

Or you can watch this video, which covers a simpler but related example:

• 3Blue1Brown, Researchers thought this was a bug (Borwein integrals).

So, we just need to show that as N \to +\infty, the value of the cosine Borwein integral doesn’t drop much more! It drops by just a tiny amount: about 7 \times 10^{-43}.

Alas, this doesn’t seem easy to show. At least I don’t know how to do it yet. But what had seemed an utter mystery has now become a chore in analysis: estimating how much

\displaystyle{ \int_0^\infty 2 \cos(x) \prod_{n = 0}^{N}  \frac{\sin (x/(2n+1))}{x/(2n+1)}  \, d x}

drops each time you increase N a bit.

At this point if you’re sufficiently erudite you are probably screaming: “BUT THIS IS ALL WELL-KNOWN!”

And you’re right! We had a lot of fun discovering this stuff, but it was not new. When I was posting about it on MathOverflow, I ran into an article that mentions a discussion of this stuff:

• Eric W. Weisstein, Infinite cosine product integral, from MathWorld—A Wolfram Web Resource.

and it turns out Borwein and his friends had already studied it. There’s a little bit here:

• J. M. Borwein, D. H. Bailey, V. Kapoor and E. W. Weisstein, Ten problems in experimental mathematics, Amer. Math. Monthly 113 (2006), 481–509.

and a lot more in this book:

• J. M. Borwein, D. H. Bailey and R. Girgensohn, Experimentation in Mathematics: Computational Paths to Discovery, Wellesley, Massachusetts, A K Peters, 2004.

In fact the integral

\displaystyle{ \int_0^\infty 2 \cos(x) \prod_{n = 0}^{\infty}  \frac{\sin (x/(2n+1))}{x/(2n+1)}  \, d x}

was discovered by Bernard Mares at the age of 17. Apparently he posed the challenge of proving that it was less than \frac{\pi}{4}. Borwein and others dived into this and figured out how.

But there is still work left to do!

As far as I can tell, the known proofs that

\displaystyle{ \frac{\pi}{8} -  \int_0^\infty\cos(2x)\prod_{n=1}^\infty\cos\left(\frac{x}{n} \right) d x }  \; \approx \; 7.4073 \cdot 10^{-43}

all involve a lot of brute-force calculation. Is there a more conceptual way to understand this difference, at least approximately? There is a clear conceptual proof that

\displaystyle{ \frac{\pi}{8} -  \int_0^\infty\cos(2x)\prod_{n=1}^\infty\cos\left(\frac{x}{n} \right) d x }  \;\; > \;\; 0

That’s what Greg Egan explained in my blog article. But can we get a clear proof that

\displaystyle{ \frac{\pi}{8} -  \int_0^\infty\cos(2x)\prod_{n=1}^\infty\cos\left(\frac{x}{n} \right) d x }  \; \; < \; \; C

for some small constant C, say 10^{-40} or so?

One can argue that until we do, Oded Margalit is right: there’s an open problem here. Not a problem in proving that something is true. A problem in understanding why it is true.

7 Responses to A Curious Integral

  1. Sir Light says:

    Computers have really dissolved mathematical rigour somewhat. There are a lot of questions that have been considered interesting just a century ago, which have now been “solved” but still are just as perplexing as they were during those times. What was once considered a defining attribute of mathematics: to be able to definitely prove something as guaranteed to be correct or guaranteed to be wrong, turned out to have no value in of itself

    • John Baez says:

      It has some value, especially if you’re using the math to build bridges or something like that. But in pure math it really just sets the stage for what I consider the interesting part, namely understanding things.

  2. Ben Johnsrude says:

    I suppose there’s a concentration-of-measure thing going on with the upper bound \frac{\pi}{8}-\int_0^\infty\cos(2x)\prod_{n=1}^\infty\cos\left(\frac{x}{n}\right)dx<C. Note that, if we pass to the rect-convolutions, writing f_n(x)=(2n+1)\text{rect}((2n+1)x) and g_n=f_1*\cdots*f_n, then we are interested in how far down g_n(0) falls as n\to\infty. But notice that g_n is the PDF of a sum of independent random variables X_1,\ldots,X_n which are independent, and X_k is uniformly distributed in [-\frac{1}{2k+1},\frac{1}{2k+1}]. Note that g_n(0) is the maximum value of g_n, whereas by law-of-large-numbers intuition the bulk of the mass of g_n should be contained in the interval [-O(1/n),O(1/n)], i.e. the mass of g_n in [-O(1/n),O(1/n)] should be 1-o(1). Since g_n maximizes at 0, we must have that g_n(0) is not too small.

    • John Baez says:

      Convolutions are definitely the key to understanding this problem! I like your line of thinking. But there’s a nuance here. For the original Borwein integrals

      \displaystyle{ \int_0^\infty \prod_{k = 0}^n \frac{\sin(x/(2k+1))}{x/(2k+1)} \, dx }

      we are interested in how far g_n(0) falls. But for the cosine Borwein integrals

      \displaystyle{  \int_0^\infty 2 \cos x \prod_{k = 0}^n \frac{\sin(x/(2k+1))}{x/(2k+1)} \, dx }

      we are interested in how far g_n(1) + g_n(-1) falls. We need to reach n = 7 for g_n(0) to start falling, but we need to reach n = 55 for g_n(1) + g_n(-1) to start falling. All this is explained by Greg Egan here:

      Patterns that eventually fail, Azimuth, September 18, 2018.

  3. Graham Jones says:

    I have a sketchy idea. I’ll use Ben’s definition of f_k and g_n. Also let h_n = f_{n+1} * f_{n+2} * \dots be the convolution of all the other f_k‘s. We want G(1) where G = g_n * h_n for any n. My idea is to choose a good n, expand the Taylor series of g_n about 1, and find moments for h_n, and hope that something nice happens when it all gets put together.

    The moments of h_n come from those of f_k, and involves sums like \sum_{i > n} 1/(2i+1)^m for even $m$, and the moments of a uniform distribution between -1/2 and 1/2. Perhaps someone knows formulas for these.

    The m’th derivative of g_n (for m < n) can be found (I think!) by replacing m of the f_k by its derivatives f'_k, and those are made of Dirac delta functions at something like \pm 1 \pm 1/3 \pm 1/5 \dots. The remaining part f_{m+1} * \dots * f_{n} has to be evaluated at these points.

  4. anon says:

    I wonder if there is a differential version of this story. Does that infinite cosine product satisfy a differential equation (maybe an ODE with an infinite number of derivatives could be cooked up), and can that weird “anomaly” in the integral be related to an anomaly in the ODE?

You can use Markdown or HTML in your comments. You can also use LaTeX, like this: $latex E = m c^2 $. The word 'latex' comes right after the first dollar sign, with a space after it.

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.