The Ultimate Question of Life, the Universe, and Everything

Thanks to AI, now we have computers that can answer questions that would have been unthinkable to previous computers, including what is the Ultimate Question of Life, the Universe, and Everything. We know well, thanks to Douglas Adams’s research, that the answer is forty-two, but Deep Thought, the computer that found this answer after eons of heavy computation, was too humble to attempt formulating the question, leaving that for a future computer of immeasurably greater power, which would take millions of years to build and then to operate.

Or so it was thought. . . I happened to bump into the solution to this essentially important problem totally by chance, and so I am humbled to present it here, taking no special credit since it was only sheer luck (if you believe in that) that led me to the Ultimate Question.

So read on if you want to know. But beware: you’re probably not going to like it. . .

Okay, you clicked, so here it is (again, you may not like it, but you can still stop reading before it is too late).

No? Okay, here it goes: The Ultimate Question of Life, the Universe, and Everything, whose answer is forty-two, is:

“How many minutes would it take for a coin dropped from the surface of the earth into a shaft going all the way through it, to emerge on the other side?”

Did you like it? No? Yes? I thought so. . .

But at least you may be curious about how this can be calculated. If so, read on, valiant galaxy explorer.

The picture shows the earth as a sphere, with a straight shaft going all the way to the center, and continuing on to the other side. Because of the rotation of the earth, the trajectory of the coin would bend, hitting the sides of the shaft and ruining the experiment, unless the shaft goes straight from north pole to south pole, or vice-versa. Therefore, we shall assume that from now on. We shall also assume that the density of the earth is the same everywhere below the surface and, naturally, that the coin is able to withstand the extremely hot temperatures it is going to encounter during its trip. There is also no air resistance, so the coin is subjected only to gravity from one end to the other.

The acceleration of gravity g is not going to be constant as the coin does down the tube. In fact, it will be zero at the very center of the earth, where gravity forces would pull the coin equally in all directions. One way to calculate how this acceleration changes with distance from the center is by applying Gauss’s divergence theorem, which I won’t discuss here, leading to this formula:

g = G * M / r2

where G is the universal gravitational constant = 6.6743*10-11 Newton m2/kg2, M is the remaining mass of the earth, considered as a sphere, below the location of the coin, with a radius r. Since that is a sphere with constant density ρ, this gives:

g = 4 π / 3 * ρ * G * r

In other words, the acceleration decreases linearly with depth and is zero at the center, then it reverses and increases linearly again. Now, if we recognize that acceleration is the second derivative of space as a function of time, we get:

d2 r / d t2 = – 4 π / 3 * ρ * G * r

where the minus sign accounts for the fact that the distance to the center decreases with time. This is a linear differential equation of second order, which needs two initial conditions. One is that the coin is on the surface at time zero: r = R, the radius of the earth. The other is that its initial velocity is zero at time zero: d r/ d t = 0

We could spend a lot of time trying to solve this equation, but it turns out that this is a very well known equation, and its solution is sines and cosines. since their second derivatives yield the original functions with the opposite sign. Therefore, we can just try a solution, for instance, r = A cos(ω t), which has the general shape we want.

Indeed, its derivative is a sine, which is zero at time zero, fulfilling the velocity initial condition. Then, we know that r = 0 at the halfway point, which happens when the argument of the cosine is π/2 radians. So, if the total flight time is T, the time to reach the center is T/2, and we have:

ω T/2 = π/2

We only need to get ω in order to find T. This can be done by replacing the trial solution into the differential equation, yielding:

  • A ω2 cos(ω t) = – A 4 π / 3 * ρ G cos(ω t)

so it must be:

ω = √( 4 π / 3 * ρ G)

where √() is the square root function.

Substituting that, we get after some simple algebra:

T = √( 3 π / 4  / (ρ G) )

Now we can replace the universal gravity constant, shown earlier in the post, and the average density of the earth, which happens to be: ρ = 5.513 g / cm3. After a little algebra, we get:

T = 2530.5 seconds  = 42.17 minutes

So there you have it. We have bumbled into the Ultimate Question of Life, the Universe, and Everything. Ain’t that awesome?

But I sense you still don’t like it. I was afraid of that, so let me show you some nifty things that might make you like it a bit more.

Observe that the formula does not depend on the size of the earth, represented by R, only on its density. It follows that the answer is pretty much the same for other planets that are more or less like Earth, like Mars, Venus, or Mercury, even though they are of very different sizes. The Moon, too. This result is pretty universal.

Not only that. If you let the coin drop down a frictionless straight shaft connecting the planet surface with any other point on the surface, the travel time is also 42 minutes! You can see the math in this Wikipedia article.

So now it only remains for Elon Musk to build a gravity-driven hyperloop sort of thing that would transport passengers across the earth or any of those planets. The thing is already designed: it was featured in the movie “Total Recall” (remake of 2012), and Colin Farrell took it every day to commute between his home in Australia and his job in the UK. Except that in the movie a one-way trip lasted only 17 minutes, possibly to make the film shorter in times of tight budgets.

You can get almost the same result by simply applying dimensional analysis to the problem. The input parameters are the gravity constant, density of the Earth, and its radius. Since there are three fundamental magnitudes involved in the problem (mass, length, time), the solution in dimensionless terms, according to the Buckingham Pi theorem, depends on 3 – 3 = 0 dimensionless variables. In other words, the time is a characteristic time made by combining the gravity constant, density, and Earth radius, multiplied by a constant. If you multiply the gravity constant and the density you get a time to the power -2 without having to involve the radius at all, so the trip time is:

T = constant / √(ρ G)

The theorem does not give us the value of the constant but solving the differential equation does. We see from the above that its value is √(3 π/4), or 1.535, which is about 64 / 42.

So, in base 64 the inverse of the answer is indeed 42. It is a well-known fact that Vogons calculate in base 64 because they have eight fingers in each of their eight limbs, which led them to developing digital computers way before the other races in the galaxy. How about it?

Hopefully you’ll like the Ultimate Question a little better now. . .

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.