How far can you see?
Note: this article makes use of MathML, the standard XML markup for math formulas. Sadly, this is not properly supported on some allegedly ‘modern’ and ‘feature-rich’ browsers. If the formulas don't make sense in your browser, consider reporting the issue to the respective developers and/or switching to a standard-compliant browser.
Something that everybody (but the staunchiest believer in a Flat Earth) can agree on is that you can see farther by climbing higher. Indeed, getting to a higher place not only helps you see beyond any obstacles that might be in your line of sight, but it actually helps you see farther along the surface of the Earth even if there are no other obstacles than Earth's own curvature: it's the reason why ships have a Crow's nest.
So the obvious question is: how much farther can you see by climbing higher? And people that follow me will surely have already caught on: yes, we're trying to solve the inverse problem to how high do you have to go. In fact, we'll recycle the figure:
Again, we assume we're dealing with a spherical Earth of known radius . This time, however, we assume known (how far high we are), and we want to know , the distance along the geodetic to the farthest point we can see1. Equivalently, we want to know the angle subtending the geodetic, since by definition of radian its amplitude in radians is just , hence . And again, of course, we know that it will be for sure , i.e. .
In fact, from our study on the direct problem we know that the relationship between and can be expressed as
which we can invert rather easily; divide by :
add on both sides:
and take the reciprocals, swapping the two sides:
Given our range of existence for , we can use the inverse function of the cosine, , to get the final formula for
and from this get
As a quick check, for we have , while for growing to infinity we get , as we would expect.
Approximation?
As with the previous problem we would like to devise a formula that can be applied easily under the assumption that the angle is small. The most obvious approach would be to use the first term(s) of the Taylor expansion of the arc cosine, as it's usually done for small-angle approximations. However, Taylor series for these functions are usually developed around 0, whereas we would like to develop them around 1, since a small angle, in our case, leads to an argument of 1 for the arc cosine.
(In fact, we can see that better if we focus on the argument to the arc cosine:
assuming .)
From a mathematical perspective, writing a Taylor expansion of around 1 is not recommended, since some assumptions needed to ensure good convergence behavior for the series cannot be guaranteed (in particular, the fact that 1 is at the boundary of the domain of the arc cosine rather than inside it is a no-no).
Worse, if we opt to disrergard the warning, we find out that we can't even do what we want, since the derivative of the arc cosine is
which isn't even defined for .
We could try leveraging the nice relationship between the arc cosine and the arc secant:
but that barely helps us, since the arc secant's first derivative is
for so that again, for , we would have a degenerate case.
Look ma, no inverse functions!
To work around this conundrum, let's take a step back, to:
and let's use the small-angle approximation for the cosine; we get
or
which gives us a much more approachable
and finally, with an ugly square root,
In fact, there's two horrible things in this formula: the division of a (potentially) very small number by a very large number, and a square root.
For the ratio, we can rewrite things with our friend under the assumption that (sensible, since otherwise , which isn't very interesting):
with large (in fact, potentially tending to ).
As it turns out, ignoring for a moment the factor, the rest has a power series expansion, in the form of a Puiseux series that can be written in an acceptable form in terms of :
Curiously (but unsurprisingly) the first order term is what we get if we just ignore the 1 in the non-expanded formula.
More in general, we shouldn't be surprised by the need to compute with a square root, given that in the other direction we used . But then again, if we have to compute a square root, why even bother doing it for when we can do it directly for ?
So, shall we just stop at
or can we do something more interesting?
(Aside for local manipulations, such as:
of course.)
Another rollback
To find a better formula, let's roll back to
and work on the right-hand side, which we can write as . For small (compared to ) this has a curiously nice expansion:
so that our equation for becomes:
and truncating:
but also
The nice thing about these formulas is that we can rewrite the right-hand side in terms of , giving us
which comes in very handy if we don't stop at , but actually go and compute :
that is interesting since it expresses the distance in terms of “the height, multiplied by something” rather than “the radius of the planet, multiplied by something”.
In fact, in this case we can even try pulling out the 2 from under the square root:
(well, sort of; but at least it has some symmetry to it).
A different approach
Remember that we could also express as the exterior secant, that could be expressed in terms of the tangent function, giving us
Can we try inverting this instead? Let us proceed by expressing the tangent in terms of :
and let's solve for :
We can go for a direct solution now, with
The good news is that, in contrast to the situation with the arc cosine, we would need to go now for the expansion of the arc tangent for small values of the tangent, which is just its argument, giving us the following approximation:
or
If instead we wanted to use small-angle approximation for , giving us , we'd get
or finally
Would you look at that, it's the same formula! That's good news, like the fact that the 2 is already out of the square root (well, at least one of them!) and when we go for :
we have the same nice symmetry that we had with the previous approach —but no outside of the square root.
Going crazy
As an alternative, we could leverage that fact that , so that we are in the range where
which would give us
that we can manipulate to
And assuming (which for us would only be the case if ) we can actually simplify this to
Going for the small-angle approximation (that, as we've seen, gives us the same result regardless if we go first for the arc tangent), we finally get:
and for the distance that we're interested in:
with an amazing similarity to the we had found before. (Of course, for small enough i.e. large enough , the extra term, be it or , doesn't really matter, prevails.)
(As someone might have noticed, this approximation is nothing more than the length of the segment, i.e. the distance from the observation point «as the crow flies» rather than along the geodetic1.)
TL;DR
Pick your poison (as usual, ). The exact formula is:
And several possible approximations:
Oh, and do you know how you can tell that this is the inverse problem? Because the formulas are uglier.
Example
How far can a human being with their eyes 2 meters from the ground (yes, it's a tall human being) see? Let's pretend that is 6,400 km (yes, it's a larger-than-ours planet). We have (how convenient, the 2 simplifies with !), so its square root is marginally (less than 0.2) smaller than 2530 (damn, one would hope that with that nice 64 … but no, we went and had an odd number of zeroes!). We multiply that by the 2 meters of height, and it turns out that the tall man can see over 5 km in the distance, marginally less than 5,060 m. The exact solution would be 5,059.64… m —not bad, not bad at all!
Let's say you managed to climb up to the top of Mt Everest: then would be something less than 1,500, and its square root around 38. If not for the weather and the mountains and everything else, you could se things nearly 340 km away —336 km and counting, which is still just as good as the exact solution, within less than a meter.
It's interesting to see what happens if we push the boundaries of these approximations: assume equal to , i.e. . Then the exact formula gives us , i.e. around . What about the rest?
| Formula | Result for i.e. | Quality |
|---|---|---|
| Not that bad | ||
| Could be better | ||
| Losing it … | ||
| Oh, come on! |
Overall, the situation isn't even that bad: only one formula completely misses the target, and for two out of three of the others the error is relatively small (5% to 10%). Sadly, but unsurprisingly, the worst behaving approximations are the ones expressed for rather than : the extra benefit in their simplification comes more strongly from the “small ” assumptions, and that's why they fail the hardest.
The extra mile
A slightly different question that we might be interested in is: how much more can you see by going to higher ground? In other words, if we have two different heights and (say, ), and the corresponding distances and (for which it will still be , since the arc cosine is nondecreasing), what would be, for example, the ratio compared to the ratio , or the difference compared to the difference?
For the ratio, I'm not aware of a formula, but for the difference there's actually a way to express the difference of the arc cosines, giving us
which is quite the mouthful that offers only a little bit of possibility for simplification, if it can be called that way:
or possibly even
Of course, if we couldn't easily reason (or simplify) the analytical formula for the geodetic distance visible from a certain height, much less so we can hope to do derive any interesting information from the present formula.
A bit of insight on the other hand can be derived by looking at the derivative of as a function of , in particular using the expression for the arc secant.
From
and the arc secant derivative for positive arguments, we get
(interestingly enough, the on the numerator cancels with the coming from the derivative of ). We can work on simplifying this
and finally
(and we can rejoyce in the knowledge that even well-known software tools with strong analytical capbilities have issues trying to integrate that, while we know the result from the previously computed ) that tells us pretty clearly how quickly the rate of growth decreases as increases.
We can still massage the expression to give
or even
which is a bit improper (we're expressing a derivative with respect to using ), but it makes life easier for us if we want to know how small variations in height affect how far you can see.
Let's pretend for example that humans, on average have their eyes about 1.6 m from the ground; then assuming our usual , and the rate of change of with respect to is about 1,414: a centimeter of difference alters your perspective by about 14 m.
Let's linearize this too!
Of course, the expression we have for the derivative isn't that nice either. It would be better if we could approximate that one with something more manageable. And there is, in fact an expansion for the formula assuming small (or large):
and our previous example works perfectly if we stop at the first order, since .
And now that we have it easy, we can see what happens around 2 m of baseline (yes, we can still use the first-order approximation for the derivative): : a centimeter of difference alters your perspective by less than 13 m.
(Notice how moving our baseline up by 40 cm has reduced the effect of fluctuations by over 1 m per cm.)
we're picking the distance along the geodetic because we're looking at this issue as the inverse to the previous problem, but we could also look at this in a slightly different manner, i.e. considering the distance «as the crow flies»: this is in fact different, since we'd be talking about the distance instead of the arc.
Curiously, the formula for the crow's flight interpretation is actually simpler, since we're looking at a leg of the right triangle with hypothenuse and other leg : the crow's flight is then , which is, in fact, one of the approximations we'll find for . ↩ ↩