In the last post, we started looking at the question: of all possible quadratic equations with real coefficients, what fraction of them, , have real roots?

To review, the roots of a quadratic equation, are given by the quadratic formula: . The roots are real when the thing inside the square-root, the discriminant, is positive.

Last time, we tried using some probability arguments to see if we could make sense of , but we didn’t get anywhere useful. This time, let’s explore what we learn by noting that the condition that the disciminant is positive for real roots defines a surface in -space that separates sets that give real roots from those that don’t, and so the ratio of the volume of the real-root space to the whole space ought to give us the fraction of possible quadratics with real roots.

How big is the volume of -space? Infinite. Let’s avoid that by assuming the space is finite and then we’ll take the limit to infinity later. Specifically, let’s treat the space as a cube bounded in each direction by . Then, the volume of -space is:

Now, to the space of real roots. The condition that the discriminant is positive corresponds to the region defined by:

The volume of this region is given by an integral:

Hmm, that’s funny. What’s that doing there? Doesn’t ? But volume had better be real. Did we make a silly mistake?

If we take a look at the calculation above, the only place shenanigans might show up is from the integration over . Let’s take a closer look. One thing we ought to be able to do is split the integral like this:

Furthermore, in the integral over the negative range, we can make a change of variable:

and so we can rewrite the integral as:

but there’s no reason we can’t also call the symbol the symbol instead! So, let’s make that change and do a couple extra things to find:

What the … happened? Where’s the ? On the bright side, if this integral is zero, then , which is real. And, on top of that, we find for the fraction of quadratics with real coefficients with real roots:

which is to say that there are exactly as many quadratics with real roots as without!

Since we’re asking a question about volumes, the answer had to be real, and so the second version of the integral over as got to be right. It’s also the answer you’d get if you picture the volume defined by and think hard for a couple minutes.

But wait, so the integral of over a symmetric domain should be zero you say, but we still have that result from before that . What do we do about that?

Let’s take a look at what we mean by . The logarithm is defined by:

So, for what value of do we get ? Euler tells us that (and it’s not too hard to prove it, but the proof is reasonably rigorous, and thus has no place in this post!). We get for , and so .

But wait! We also get for or, most generally, for for all integer .

So, ! So many answers, and none are zero!

I bet Euler would say, if we’ve got an infinite number of perfectly good answers, the average is really what we’re looking for. What’s the average answer? For every positive answer, there’s a corresponding negative answer, and so the average is zero!

So there you have it, another reason to think that . (In general this answer for that integral is known as it’s Cauchy Principle Value.)

If it’s not clear by now, I don’t understand how modern mathematicians’ clear this confusion up. For the problem of interest, we get zero for that integral three ways (change of variables, picturing the volume, and averaging the multivalued function), but not all ways. Anyone care to explain?

To to summarize, if you shenanigan the integral correctly, one finds that the fraction of quadratics with real coefficients that have real roots is a half.

And if you’re still unhappy, there’s (at least) one more reason to believe that . For every choice of a choice of is either above or below the boundary set by . Since the space of possible is infinite, then partioning that space at any one point yields two semi-infinite spaces, and so half of the total space leads to real roots.

How fun is it that such a simple question leads to such sneaky mathematics?

Next time, let’s look at something a little less messy.

**Update **(5/4/2009): The internet has a little chatter about this question and it seems is not the most popular answer. Take a look at this thread or this one to see why

is a good answer too.

Question for the masses: how can there be multiple good answers?