I’m a fan of the Epic Rap Battles of History. In a fairly recent video, science educator Bill Nye is pitted against a giant of physics, Isaac Newton.

Newton’s parting words are

“And I will leave you with a page

from a book I wrote at half your age to rebut:

the integral sec y dy

from zero to one sixth of pi

is log to base e

of the square root of three

times the sixty-fourth power of what?”

That is, Newton wants Nye to solve the equation

Here’s the answer.

Let’s call the left-hand :

There are two ways of finding the indefinite integral. The first is to guess (a perfectly valid way of solving an equation) and the second is to use substitution to reduce to it a more easily integrable, recognisable form. We’re going to do the latter.

The secant function is defined as being the reciprocal of the cosine function:

The trick is to multiply the top and bottom of the integrand by cosine:

The denominator can be rewritten using the identity

Now we can use the substitution

The virtue of this substitution is that the differential naturally appears in the integrand’s numerator:

Remember the limits of integration must also be changed. The lower limit stays the same, because the sine of zero is zero, but the upper limit changes to .

Here we use the method of partial fractions to split up the integrand into two fractions:

So we’ve reduced the integrand to (relatively) friendly rational functions. We integrate:

Now it’s just a case of substituting in the limits of the integration:

The natural logarithm of one is zero (we’re asking, raised to what power is 1?), so that term vanishes:

Finally, we bring the half ‘inside’ the logarithm

because the number to which to raise to get 3 is twice that you raise to to get the square root of 3, if you see what I mean.

Now we substitute this expression back into the original equation for we’re trying to solve:

So

Fundamental theorem of algebra alert. This equation does not have *an* answer; it has *many* answers, sixty-four of them to be exact! Two are pure real, two are pure imaginary, and the remainder are complex. To deduce this, we write the number 1 in complex form:

where is any integer. We can then take the sixty-fourth root of the equation to give

I’ve stuck a subscript on the answer so we can keep track of which root we’re talking about. Substitute in any integer value of and you will get a perfectly valid solution to this equation. Let’s look at a few of them. We have the naïve solution

and the slightly less naive solution

We also have the solutions

Then we have a load of weird ones like

and so on. Here are the solutions to the equation plotted in the complex plane:

As you may know, Nye does not get a chance to rebut. Instead, Neil deGrasse Tyson appears (naturally) and claims

“By the way,

the answer to your little calculation is i,

as in,Iput the swag back in science.”

So he should really have said ‘*an* answer’.

This kind of stuff is important. Peer review and that.

They’ll thank me one day.