I'm a casual reader of Randall Munroe's xkcd web comic. I'm partial especially to the artistic episodes.

I was reading the "How it Works" episode, reproduced here:

Fine, a noble sentiment (women in the hard sciences are unfairly targeted) and well executed.

As is my wont, I then went for the extra bit of juiciness to the episode by hovering over the image, and what do I find?

It's pi plus C, of course.

... OK, fine. A good reference to an in-joke in the mathematical community. Well done.

... except I can't stomach the idea of "π plus a constant." It just doesn't sit right. And there's something wrong about the equation on the board. It's missing something... else.

The equation as it appears on the board:

... and the suggested improvement:

Yeah. I still don't buy it.

Under the premise that the best way to spoil a good joke is to analyze it, let's see if we can figure out what our characters are trying to do with this integral, shall we?

Well, there are integrals and integrals. There are at least three common uses of integrals:

- Find the antiderivative of a given function for later use.
- Evaluate the antiderivative at upper and lower limits and subtract to find the area under the curve.
- Do a contour integration to evaluate a function over a known region.

The "plus a constant" comment applies exclusively to the first use. The function *y* = *x*^{2} is analytic everywhere and so is not likely to be interesting for a contour integral. But the second use seems to be very appropriate to this "integral equals a constant" equation:

The first thing to do is find the antiderivative. This can occasionally be very difficult, but in this case we have a textbook function which is the first recipe anyone memorizes:

The above formula holds for all *p* except for *p* = -1. That one's a little tricky because the denominator above would be 0. For completeness, here's the case with *p* = -1:

A little faith is required if you haven't seen the derivation, but it works out. (This is as good a definition as any of ln *x*, FWIW.)

Indeed, the antiderivative is a whole family of functions which differ only by a constant. But if we're going to evaluate it at certain limits, we need to (eventually) know what the limits are. Let's call them *a* and *b* for now:

(Note in particular that the evaluation doesn't depend on which of the family of functions we chose... *C* cancels out. This is my problem with the comment.)

Setting *p* = 2 we still have a single equation in two unknowns (*a* and *b*). Still need more information.

Well, let's think about it for a minute. Many functions have "natural" points of evaluation. For *x*^{2} this is 0. For 1/*x* it's 1. What if we set *a* = 0? The natural-ness of 0 as a base point of evaluation is made clear from a graph of *y* = *x*^{2}:

If we set *p* = 2 **and** *a* = 0, then the equation above reduces to the solvable problem:

The solution is now trivial:

So we can complete the original blackboard equation as follows:

or in fuller generality as

for any *a*.

(I'm sticking with the *a* = 0 solution, myself.)