# Who is our nearest planetary neighbor, on average?

Assume that the planets have circular orbits centered on the sun. Assume that the radius of the orbits is 0.39, 0.723, 1, and 1.524 for Mercury, Venus, Earth, and Mars.

Assume also that there are no resonances, in other words, that for a given position of planet A planet B will be in every other position over a long period of time.

What is the closest planet to Earth on average?

• Though this is a somewhat mathematical puzzle, the answer is a little surprising... – Dr Xorile Mar 13 at 5:10
• I assume you mean the closest planet besides Earth? – Deusovi Mar 13 at 5:31
• Didn't I see someone promoting their paper on this today? – Jay Mar 13 at 5:38
• @Deusovi It's not in the body of the question, but "neighbour" in the title clearly excludes the Earth. – yo' Mar 13 at 14:31
• A great puzzle for pi day – Strawberry Mar 14 at 12:02

The closest planet to Earth on average is:

Mercury

The other answers didn't give any calculations, so I'll provide some numbers. Hopefully they are correct!

As other answers suggested, we can leave Earth stationary and just have the other planets do their orbits. Actually we only need to do half an orbit, because the other half will be exactly like the first half and not change the average in any way.
By law of cosines, we can find the distance between the Earth and another planet by looking at the triangle that is formed when you connect the Earth with the other planet and the Sun. Obviously the distance to the Sun is the radius of the orbits and the angle will be $$\theta$$. The distance between the planets is then $$\sqrt{r^2+R^2-2*r*R*cos(\theta)}$$ where $$r$$ is the radius of Earth's orbit and $$R$$ is the radius of the other planet's orbit and $$\theta$$ is the angle between them.
Now just find the integral as $$\theta$$ goes from 0 to $$\pi$$ and divide by $$\pi$$.

Earth to Mars:

$$\frac{\int_0^\pi \sqrt{1^2+1.524^2-2*1*1.524*cos(\theta)} d\theta}{\pi} = 1.693AU$$

Earth to Venus:

$$\frac{\int_0^\pi \sqrt{1^2+0.723^2-2*1*0.723*cos(\theta)} d\theta}{\pi} = 1.136AU$$

Earth to Mercury:

$$\frac{\int_0^\pi \sqrt{1^2+0.39^2-2*1*.0.39*cos(\theta)} d\theta}{\pi} = 1.038AU$$

• The key in this calculation is “divide by pi”. Here you are assuming a uniform distribution of theta. That is, you assume the probability of the other planet being in any other theta is equal, and then you take the expected value. Depending on the other planets’ theta as a function of time, this need not be true. So here we are making the simplifying assumption that all planets travel at a constant speed. – darksky Mar 13 at 11:20
• @darksky Well, we are assuming the orbits are circles, so we are leaving Kepler out of it! Or, rather, we are leaving Kepler in it - “equal areas during equal intervals of time” in a circle would mean constant speed. – Amorydai Mar 13 at 14:27
• @darksky Yep, constant speed and circular orbits. Both are not true, but the corrections would be much less than 7% difference between Mercury and Venus – yo' Mar 13 at 14:27
• @Amorydai, how did you calculate the integrals? – Dr Xorile Mar 13 at 16:54
• How very dare you use the word "Obviously"?! When did puzzling start allowing witchcraft in answers? That formula is satanic... I mean, what sort of wizard-y demon-scratch is that un-figurable? Let's have a vote on a site-wide ban on pomped up NASA geniuses... (in English: "This made me feel dumb") – Brent Hackers Mar 14 at 11:39

I must admit, I'm a bit rusty at calculus. So here's an attempt at an answer free of calculations, but with some more visual reasoning.

First, let's draw out the orbits of the planets. Because there is no resonance, let's assume Earth is still and they all rotate at the same speed. Also, for reference we'll draw a circle of distance 1 AU around Earth.

Now, notice that:

I've drawn a few dotted lines here. If we imagine these circles as pie charts, the left part of the charts represent the time spent more than 1 AU away from the Earth.

So:

Let's plot the distance away from the Earth over time, which looks vaguely like this:

Here, you should note:

The arrows along the bottom, telling you the time spent above the green line (1AU still) and the arrows in the middle, telling you that for the Venus and Mercury, (maximum distance - 1AU) is equal to (1AU - minimum distance).
Also, Mars is clearly out of the question. Goodbye Mars.

So:

It's between Mercury and Venus. From calculus or intuition, we know that the average distance of the planet is proportional to the area under the curve. And now it gets a bit non-technical.
The area under the curve is equal to 2π AU·rad + (bit above the curve) - (bits below the curve). But the bit above the curve is approximately the same shape as the bit below the curve (if we shift the right bit under the curve to the left side of the graph), and since they are the same height their area is probably proportional to their width. And since Venus' width of bit above the curve to width of bit below the curve ratio is bigger than that of Mercury, and the fact that those bits are taller than Mercury's bits, I estimate Venus' total area is probably more than that of Mercury's.

So my guess is that:

Mercury is on average closest to the Earth. (I'd love to know how accurate this argument is, but that maths is beyond me.)

NB: Click on images for slightly higher quality if they're a bit fuzzy.

• Heck, I so love this one. If you wanna teach mathematical/physical intuition, this is the way! – yo' Mar 13 at 14:29
• Love this answer. Super helpful for gaining the intuition. – Dr Xorile Mar 13 at 16:48
• One of my favorite answers in this whole site. I would actually recommend reading this before reading the accepted answer so it's easier to digest the technical math. – yushi Mar 15 at 10:07

Mercury

Reasoning:

The average position of Earth (and indeed all planets in a circular orbit) is the middle of the Sun. Since Mercury's orbit is closest to the sun, it's the nearest on average to the Earth, and indeed all the other planets.

• Following that reasonning, wouldn't the answer be "All planets are equally close to the Earth on average, as all of their average positions fall at the same place (middle of the Sun)" ? – Soltius Mar 13 at 10:54
• By this logic, the average closest planet to our moon is also Mercury. – BlueRaja - Danny Pflughoeft Mar 13 at 17:30
• @BlueRaja That's only true if you assume that the orbits of the Moon and the Earth around the sun are independent, which they obviously aren't. – Matthew Barber Mar 13 at 21:32
• @Soltius No, that does not follow, as you cannot calculate average distances entirely from average positions. Averaging the position of the Earth won't help you calculate the distance either. It's just something that illustrates why the distance from the sun of the other planet is the only thing that matters in the ordering. – Matthew Barber Mar 13 at 22:03

Others have done all the necessary calculations, so here's some hairy maths. I assume as per the question that all orbits are circular and that the planets move in such a way that the average distance equals the average over all angular differences. Then it turns out that the average distance from earth to a planet whose orbit has radius $$r$$ astronomical units (i.e., $$r$$ times the radius of the earth's orbit) is $$\frac2\pi(1+r)E(\frac{4r}{1+r^2})$$ astronomical units, where E is the so-called complete elliptic integral of the second kind, what Mathematica calls EllipticE.

So what we'd like to be true is that this is an increasing function of $$r$$. This does appear to be true, but proving it is not so trivial.

Rather than looking at the average over the whole orbit, let's look at just two antipodal points. So, suppose the angle between earth's position and the other planet's position is $$\theta$$, so that the distance is $$\sqrt{(r-\cos\theta)^2+\sin^2\theta}$$; half-way around the orbit the other planet's position is $$\theta+\pi$$ and the distance is $$\sqrt{(r+\cos\theta)^2+\sin^2\theta}$$. The sum of these is $$f(r,\theta):=\sqrt{(r-\cos\theta)^2+\sin^2\theta}+\sqrt{(r+\cos\theta)^2+\sin^2\theta}$$, our average is the average of this over all values of $$\theta$$, and it will be an increasing function of $$r$$ if $$f$$ is for every $$\theta$$. This will be true if it's true when we consider instead $$g(r,u,v):=\sqrt{(r-u)^2+v^2}+\sqrt{(r+u)^2+v^2}$$ and allow $$u,v$$ to take any value at all. (Which just corresponds to letting the earth's distance from the sun be something other than 1 unit.)

The derivative of this thing is $$\frac{r+u}{\sqrt{(r+u)^2+v^2}}+\frac{r-u}{\sqrt{(r-u)^2+v^2}}$$. Obviously this is positive when $$r>u$$. When $$r it's $$h(u+r,v)-h(u-r,v)$$ where $$h(p,q)=\frac{p}{\sqrt{p^2+q^2}}=\cos\tan^{-1}\frac qp$$. But this is obviously a decreasing function of $$q/p$$, hence an increasing function of $$p$$, which means that $$h(u+r,v)>h(u-r,v)$$, which means that $$\frac{\partial g}{\partial r}>0$$, which means that $$\frac{\partial f}{\partial r}>0$$, which means that $$\frac{\partial\int f}{\partial r}>0$$, which means that indeed the average distance is an increasing function of $$r$$.

I suspect there may be an easier more purely geometrical way to do this.

• @boboquack gets at a nice intuition for why this is true. I think also looking at the pairs of points: in line with the earth they balance out (so 0 difference) and at right angles the further out the orbit the further out the distance. So a continuity argument says that the overall average is monotonic. – Dr Xorile Mar 13 at 16:52

It's

Mercury.

Because:

Fix the position of the Earth, and let the planets move in orbit. We want the average distance. If the Sun was an object to consider, the radius R would be the average. If there was another planet on Earth's orbit, it's average would be greater than R, as most of the orbit is at a further distance than R from the Earth (draw a circle radius R from the Earth - it cuts the other orbit before the halfway points).

As this is a continuous and monotonic increasing function, the planet closest on average is Mercury.

• Why is it continuous and monotonic? And how did you deal with Mars? – boboquack Mar 13 at 6:52
• @boboquack; the orbit moves continuously and so therefore does the average function, which is a quadratic, and therefore has a monotonic differential. Larger orbits just get bigger (monotonic increasing remember!). Also see en.wikipedia.org/wiki/Orbit. – JonMark Perry Mar 13 at 7:20
• Average distance to earth is not a quadratic function of orbit radius because for very large orbits it's approximately equal to the radius. – Gareth McCaughan Mar 13 at 8:49
• @GarethMcCaughan; this doesn't change my argument much though. the average function depends on R and only approximates R locally. – JonMark Perry Mar 13 at 9:07
• The function in question is monotone increasing, though. At least, I think it is, though I haven't tried to prove it; it's a pretty ugly function involving elliptic integrals. – Gareth McCaughan Mar 13 at 9:58

Here is another way to deduce the same result without any calculations.

First the inner planets.

Imagine that instead of the Earth, there is a wall at 1 AU from the sun. The average distance of any inner planet's orbit to the wall is easily seen to be exactly 1 AU.

This is because you can pair up points on the left and right sides of the orbit. The average distance of those two points to the wall is the same as the distance of their midpoint to the wall.

If you now go back to measuring the distance to the Earth itself, the distances get larger.

Crucially, the larger the orbit, the higher the slopes of the line segments we are measuring, and the further away the average distance is from 1 AU.

This shows that amongst the inner planets, the innermost planet (Mercury) has the smallest average distance to Earth.