The Calculus of Explanations

Putting the fun in functionals


the earth is actually a donut: part i

I recently saw this meme. Below is a transcript of my thoughts. As usual, a shoutout to my coauthor D.G. for his contributions to the calculations.

First thought: …that’s silly

Second thought: Most of the Earth couldn’t see the ocean above them, so that can’t possibly be the reason.

Third thought: Actually, I wonder how much of the Earth would have the the Earth *directly* overhead? It can’t be too much, just a narrow strip around the inside of the donut.

Fourth thought: Ooo that might make a good blog post.

Specifically, let’s pretend that Earth is a torus, and calculate what percentage of the surface would have a normal vector that would intersect another point on Earth.

A torus is, essentially, a circle rotated in a circular arc, and is therefore defined by two different radii (a major one, R, and minor one r.)

A torus is defined by a major radius and minor radius.

It’s much easier to think visually in two dimensions, so lets take a slice through the planet and look at when see if we can figure out what it would mean for the Earth to be overhead.

A cross-section of a torus with major radius R=2 and minor radius r=1, with rays emanating from the origin.

Choosing our coordinate system to align with the center of one of the circles is convenient, since then straight lines through the origin align with the “normal” vectors which are perpendicular to the surface, basically your line of sight if you lived on the donut Earth and looked straight up.

To figure out how much of the surface can see the “other side” of the Earth by looking directly up, we have to figure out the line going through the origin, having maximum angle, that will still intersect the other circle.

My first thought to find this angle was simply to draw the diagram below.

We know for a circle, there is a radius perpendicular to the tangent line, so this is a right angled triangle and we can use trigonometry to find the maximum (positive) angle is \theta_{\text{max}} = \arcsin \left( \displaystyle \frac{r}{2R} \right).

This is a bit handwavey, so I forgive you if you don’t believe me. Check the postscript, where we write down some equations to prove this.

Regardless, this does turn out to be correct, and the “arc of visibility”, which is -\theta_{max} < \theta < \theta_{max} has an arclength of

s = 2r\theta = 2r \arcsin\left( \displaystyle \frac{r}{2R} \right)

How do we go about finding the surface area swept out by this angle around the torus? To do this we’ll first learn about something called Pappus’ Centroid Theorem.

This theorem states that the surface area generated by rotating a curve about an axis is equal to the product of the arc length of that curve s and the distance d traveled by the centroid of the curve.

You can think of the centroid as the geometric centre, or the centre of mass of an object. For the curve we are trying to rotate, the centroid is calculated as below.

The red dot is the centroid of the curve that we are trying to sweep around the red axis of rotation to form our surface.

The position of the centroid, by symmetry, lies on the x-axis. Its exact position can be calculated using a particular integral which I will leave in an appendix. But note that particularly for small angles \theta (when the donut is wide / skinny) the centroid will be very close to the curve of the circle, and we can use this as a first approximation.

The dashed red axis is at x = R, so the distance from this axis to the centroid is approximately R -r.

Hence the distance the centroid travels when revolved around this axis is approximately d \approx 2\pi(R-r), and by Pappus’ Theorem we have the surface area A = sd given by

A \approx 2r\theta \times 2\pi(R - r)

or A = 4\pi r \theta(R-r) = 4\pi r (R-r)\arcsin\left( \displaystyle \frac{r}{2R} \right).

The total surface area of torus of this kind is 4\pi^2rR. If we take a ratio of the two we can find the percentage of the surface the strip comprises. We’ll call this ratio T_{\text{approx}}. Then

T_{\text{approx}} = \displaystyle \frac{(R-r)\arcsin\left( \displaystyle \frac{r}{2R} \right)}{\pi R}

For a fairly wide, skinny donut, for example if R/r = 3 as below, this approximation gives a strip of land (or ocean) which is 3.55% of the total area of the “planet”. This is within 0.3% of the true value which is a great result!

A donut with R/r = 3. The strip of land with ocean visible above it is roughly 3.55%

As you would expect, as R/r \rightarrow \infty, then A \rightarrow 0.

For a plumper donut of ratio R/r = 1.5, the strip covers roughly 3.7%

A torus with R/r = 1.5. View the full torus demo here.

Now, a “donut” is only one type of torus, commonly called a ring torus. If we think about the case when R=r, we get a donut with no hole in the middle, where the circles just touch. This is called a horn torus.

The case when R/r = 1. The area with land visible above is small but clearly non-zero.

The missing point in the centre of the donut has no area, of course, so our analysis should hold for this case.

Our approximation, which contains the term (R-r), gives us a result of zero. This is clearly incorrect as can be seen above.

Here then, we need to use the true value of the centroid distance, and we get the correct formula for the surface area,

A = 4\pi r(R\theta-r\sin(\theta))

Keen observers will note that using the small angle approximation for the sine function, \sin \theta \approx \theta recovers the approximation used before. Also, that when \theta = \pi, i.e. when the angle covers the entire torus, we recover the surface area formula for the torus, A = 4\pi^2rR.

Writing the area only in terms of the two radii,

A = 4\pi r\left(R \arcsin\left( \displaystyle \frac{r}{2R} \right)- \displaystyle  \frac{r^2}{2R}\right) .

The ratio, T to the total surface area is

T = \displaystyle  \frac{1}{\pi R} \left(R \arcsin\left( \displaystyle \frac{r}{2R} \right)- \displaystyle  \frac{r^2}{2R}\right)

We could also use the substitution \lambda = R/r and write

T(\lambda) = \displaystyle \frac{1}{\pi} \left(\arcsin\left( \displaystyle \frac{1}{2\lambda} \right)- \frac{1}{2 \lambda^2} \right)

When R=r, we get an exact value for the ratio, since \lambda = 1 and \arcsin(1/2) = \pi/6, so

T(1) = \displaystyle \frac{\pi/6 - 1/2}{\pi} = \displaystyle \frac{\pi-3}{6\pi} \approx 0.75\%

A comparison of the true ratio with the approximation.

As we can see from the plot, the percentage of the planet that has ocean above it is quite low (0.75%) when R=r, and goes to zero when R/r \rightarrow \infty. Between the two, there is a value of \lambda that maximises the ratio.

We can differentiate the function T(\lambda) and set it to zero (see the Appendix for details), and find that the maximum ratio is roughly 4.07%. This occurs when \lambda  = \sqrt{2+\sqrt{3}} \approx  1.93.

This means that the best we can hope for in terms of area of the planet with ocean directly above it is just over 4%. Without further ado, here is that planet.

The donut planet with the maximum surface area with direct view of the planet overhead.

As you can see below, we’ve covered the first two cases where the cross sections of our torus are separate or just touching.

The standard “tori” (yes that’s the plural of torus)

However, when the circles in the cross-section intersect we get something called a spindle torus. Clearly we begin to abuse the term “donut” at this point, and this case will require some extra attention, so we’ll save it for another time. Check out the next post in the series for the final result.

Until then, stay curious.

~

Justifying the maximum angle calculation

To find the angle for which the normal line is tangent to the other side of the donut, let’s make the following argument:

Let’s consider a general line going through the origin, these lines have the form y=mx. Now, for this line to intersect the other circle, which is defined by the formula (x-2R)^2 + y^2 = r^2, then

\begin{aligned} \displaystyle mx &= \sqrt{\displaystyle r^2 - (x-2R)^2} \\ \displaystyle m^2x^2 &= r^2 - (x-2R)^2 \\  \displaystyle m^2x^2 &= r^2 - (x^2-4Rx + 4R^2) \\ \displaystyle (m^2+1)x^2  - 4Rx + 4R^2 - r^2 &= 0\end{aligned}

This is a quadratic in x, which can have 0, 1, or 2 solutions. We want it to have exactly one solution, corresponding to one intersection, which will give us the gradient of the tangent line to the second circle.

To have one solution, we need the discriminant to be zero. The discriminant of a quadratic is b^2-4ac, so in this case,

16R^2 - 4(m^2+1)(4R^2-r^2) = 0

This gives us an equation to solve for m,

m =\displaystyle \frac{r}{\sqrt{4R^2-r^2}}

This is the gradient of the tangent line. To find the angle, we note that m=\tan \theta, and if

\tan \theta =\displaystyle \frac{r}{\sqrt{4R^2-r^2}}, \qquad \sin \theta = \frac{r}{2R}

(draw a right angle triangle with the appropriate sides to convince yourself of this). So we get that

\theta_{\max} = \arcsin \displaystyle \left(\frac{r}{2R}\right)

which is what we were trying to show.

Finding the centroid of the curve

For a curve \mathcal{C} with uniform density, its centroid is defined by

\bar x=\displaystyle \frac{1}{L}\int_{\mathcal{C}} x \ \mathrm{d}s,\qquad \bar y=\displaystyle \frac{1}{L}\int_{\mathcal{C}} y \ \mathrm{d}s

where L=\int_{\mathcal{C}} \mathrm{d}s is the total arc length.

For the circular arc of radius r centred at the origin, parameterised by \phi\in[-\theta,\theta] with

x=r\cos\phi,\quad y=r\sin\phi,\quad\mathrm{d}s=r \mathrm{d}\phi,

the length is L=\int_{-\theta}^{\theta} r \ \mathrm{d}\phi=2r\theta. By symmetry \bar y=0, and

\bar x=\displaystyle \frac{1}{2r\theta}\int_{-\theta}^{\theta} (r\cos\phi)(r \ \mathrm{d}\phi)=\displaystyle \frac{r\sin\theta}{\theta}.

Since the arc is revolved about the line x=R, the centroid’s distance to the axis is

d_{\text{axis}}=R-\bar x=R-\displaystyle \frac{r\sin\theta}{\theta}

Maximising the surface area

Recall

T(\lambda) = \displaystyle \frac{1}{\pi} \left(\arcsin\left( \displaystyle \frac{1}{2\lambda} \right)- \frac{1}{2 \lambda^2} \right)

Differentiate T(\lambda) using the chain rule, and set T'(\lambda)=0.

Using \displaystyle \frac{\mathrm{d}}{\mathrm{d}\lambda}\arcsin(u)=\displaystyle \frac{u'}{\sqrt{1-u^2}} with u=\displaystyle \frac{1}{2\lambda} gives

T'(\lambda)=\displaystyle \frac{1}{\pi}\left(-\displaystyle \frac{1}{2\lambda^2\sqrt{1-\frac{1}{4\lambda^2}}}+\displaystyle \frac{1}{\lambda^3}\right).

So T'(\lambda)=0 implies \displaystyle \sqrt{1-\frac{1}{4\lambda^2}}=\displaystyle \frac{\lambda}{2}.

Squaring and rearranging yields \displaystyle \lambda^4-4\lambda^2+1=0, which is a quadratic in \lambda^2. Hence \lambda^2=2\pm\sqrt{3}, so \lambda=\sqrt{2\pm\sqrt{3}}. Note that there are other solutions to this quartic equation but they will be complex, so we can safely ignore them.

In the torus regime we take \lambda\ge 1, so the maximising value is \lambda^*=\sqrt{2+\sqrt{3}}.

To evaluate the maximum neatly, set \alpha=\arcsin\left(\displaystyle \frac{1}{2\lambda}\right).

At the stationary point, \sin\alpha=\displaystyle \frac{1}{2\lambda} and from the original equation, \cos\alpha= \sqrt{1-\sin^2\alpha} = \displaystyle \frac{\lambda}{2},

\sin(2\alpha)=2\sin\alpha\cos\alpha=\displaystyle \frac{1}{2}.

With \lambda\ge 1 we have \alpha\in(0,\pi/6], hence \alpha=\pi/12 and \arcsin\left(\displaystyle \frac{1}{2\lambda^*}\right)=\displaystyle \frac{\pi}{12}.

Finally, using \lambda^2=2+\sqrt{3},

T(\lambda)=\displaystyle \frac{1}{\pi}\left(\displaystyle \frac{\pi}{12}-\displaystyle \frac{1}{2(2+\sqrt{3})}\right)=\displaystyle \frac{1}{\pi}\left(\displaystyle \frac{\pi}{12}-1+\displaystyle \frac{\sqrt{3}}{2}\right)\approx 0.04069,

i.e. about 4.07\%.



One response to “the earth is actually a donut: part i”

  1. […] our previous post we figured out how much of a donut planet had the planet directly overhead. This was done for the […]

    Like

Leave a reply to the earth is actually a donut: part ii – The Calculus of Explanations Cancel reply

Hi there! I’m a content creator with a background in maths education and a passion for making complicated ideas simple, with intuitive animations and visual explanations.

Whether you’re just entering high school or you’re a post-grad student, or just have an interest in maths in general, I aim to make content that can appeal to everyone, in the form of videos and blog posts.

You can find all my previous posts here.

Check out my YouTube channel for more maths education content.