This time, we’ll be looking at a technique from complex analysis to solve a class of trigonometric integrals on the unit circle, or
. We’ll begin by studying this integral:

For this integral to even converge, we have to have
less than one, as that guarantees that there won’t be any singularity (which wouldn’t be integrable) of the function. At first, view this integral seems pretty hard to compute if we rely on just real analytic approaches. Which is why we’ll be switching over to working with complex numbers, where we can use Cauchy’s integral formula:

where
is a circle of a radius
,
is holomorphic on the disk of the same radius, and
.
Going back to our original integral and using the complex exponential form of cosine, our integral is now

After substituting
,
, our integral transforms into

Where
is the unit circle on the Argand diagram. Now, to be able to apply Cauchy’s theorem, we have to factor the denominator into the form
, where one of
or
is included in our unit circle. We can do this pretty quickly using the quadratic formula:

First, we can notice that because
is less than one, our roots will always be real, as the discriminant inside the square root will always be positive. Because
is relatively small, we can approximate both of these roots using the first two terms of the binomial series:

We can see that for
,
will always be in the unit circle while
will alway be outside of our circle. Going back to our original integral and factoring the denominator, it can be expressed in this form:

We are close to being able to apply Cauchy’s formula, but not quite there, as our denominator in our integrals is raised to the second power. To fix this, differentiate both sides of Cauchy’s formula with respect to
to obtain

Applying it to our case by letting
, our integral reduces to

Carrying out the computations,
.
We have then also found the value of our original integral:

I’d still like to show at least one of the ways through which real techniques can be used to calculate this integral. First, we’ll look at the following integral, where
:

Notice that

Which is our original integral. Because
, we can expand the integrand into its geometric series and switch summation and integration, obtaining

Usually I would jump to the Beta function to evaluate the last integral, but today I decided to use a different approach that I don’t think has appeared on the blog yet. First, we can see that from the complex exponential definition of the cosine function and the binomial theorem,

Now, owing to the orthogonality of the complex exponential, we have that

Where
is the Kronecker Delta. It will pick out the term of the sum in which
, which is only possible if
is even, meaning that
for some integer
. If
is odd, the sum is zero, letting us substitute in the relevant
:

The only term left in the sum, thanks to the Kronecker Delta, is the term
:

Going back to our infinite sum, we find that the only non-vanishing terms will occur, as we said, when
is even, or in other words when
. Our series is now

This form is actually closely related to a series representation of the arcsine function:

Notice that if we can interchange the derivative and summation operator (actually the limit of the finite sum), our series reduces to

Now, in order to justify this switch of limit operators, we can use the Weierstrass M-test, which states that if
is a sequence of functions, and there exists a sequence
such that
for every
and all
and
converges, then
converges uniformly. Why is it useful to know that a series of functions converges uniformly? Well, if the sum
converges at a least one point
, and
converges uniformly, then
.
All this means that if we can prove that the series
converges uniformly, then we can indeed differentiate term by term the series for arcsine and obtain our result.
Letting
, we first see that
on our interval of interest. Let
for
. I will show that our series converges uniformly for any
, meaning for any
because we can make
as small as we want. We have to see that our sequence
is bounded by a constant, since its series converges, say by
. Notice that
. The series of this last sequence converges, as it is geometric and
. Thus,
, and because the series of the latter sequence converges, by the M-test the series
converges uniformly. Thanks to this result and the fact that the series for arcsine term does converge for at least one
, we can indeed differentiate the series term by term.
This justifies all of our results, and thus

Differentiating both sides and setting
, we obtain again the same result:

Although it took us a bit longer to arrive at the result by real analytic techniques, we also encountered some interesting mathematics along the way. Thanks for reading!