One time I boasted, “I can do by other methods any integral anybody else needs contour integration to do.” So Paul puts up this tremendous damn integral he had obtained by starting out with a complex function that he knew the answer to, taking out the real part of it and leaving only the complex part. He had unwrapped it so it was only possible by contour integration! He was always deflating me like that. He was a very smart fellow.

— Richard Feynman

Partially inspired by this excerpt, I’ve had several conversations in the past few months about doing hard integrals without the residue theorem. I think there’s a lot of appeal to avoiding such a high-powered tool, so I both like finding solutions that don’t use it and believe that it’s usually possible to do so. I got stuck though, on

and because this integral is basically equivalent to the reflection formula for the function, I thought it would absolutely require some kind of complex analysis to tackle.

I was wrong. The following solution is mostly due to Sameer Kailasa, and evaluates the integral without any complex analysis. It does however, require some pretty technical manipulations, and so to make life easier, I’m going to ignore all issues of convergence/interchanging limits in this post. The fact that the answer works out correctly means that these issues are actually just technical ones, that can be resolved by appropriately applying dominated convergence/Fubini.

We start by evaluating a particular sum. I know of at least one other way to do this, which involves showing that the RHS and LHS share four properties, and then using these to argue that they agree everywhere, but I like this way better, because the tricks used here is more widely applicable than the trick used in the other argument (in the interest of full disclosure, this means that I know of one other instance where this trick is useful, and no other instances where the other trick is useful).

**Proposition 1.** * We have *

*Proof:* The Weirstrass factorization theorem allows us to write

Changing variables by gives

and we differentiate to obtain

*Remark* The the factorization theorem is technically a complex analytic tool, but I’m willing to use it here because a. it’s really only a technical crutch, not the crux of the argument and b. there’s no sense (to the best of my knowledge) in which its equivalent to the residue theorem/Cauchy’s theorem/anything that does integrals. Also, it can be avoided entirely by using the other argument I mentioned above.

**Corollary 2.** * We have *

*Proof:* We write

The second sum was evaluated in Proposition 1; the first is

and now we can apply Proposition 1 to this sum as well. The result is

Noting that

allows us to finish.

Now we’re ready to tackle integral.

**Proposition 3.** * We have *

*Proof:* We start by writing

and substituting in the second integral to give

Since we’re only dealing with now, we expand the denominator as a geometric series, so

and evaluating the integral gives

Now we tweak things a bit to get

Plugging in the result of Corollary 2 with now gives

as desired.

Weierstrass*

LikeLike