Great-circle distance

From Free net encyclopedia

The great-circle distance is the shortest distance between any two points on the surface of a sphere measured along a path on the surface of the sphere (as opposed to going through the sphere's interior). Because spherical geometry is rather different from ordinary Euclidean geometry, the equations for distance take on a different form. The distance between two points in Euclidean space is the length of a straight line from one point to the other. On the sphere, however, there are no straight lines. In non-Euclidean geometry, straight lines are replaced with geodesics. Geodesics on the sphere are the great circles (circles on the sphere whose centers are coincident with the center of the sphere).

Between any two points on a sphere which are not directly opposite each other, there is a unique great circle. The two points separate the great circle into two arcs. The length of the shorter arc is the great-circle distance between the points. Between two points which are directly opposite each other (called antipodal points) there infinitely many great circles, but all have the same length, equal to half the circumference of the circle, or <math>\pi r</math>, where r is the radius of the sphere.

Because the Earth is approximately spherical (see spherical Earth), the equations for great-circle distance are important for finding the shortest distance between points on the surface of the Earth, and so have important applications in navigation.

Contents

The formula

Let <math>\phi_1,\lambda_1;\ \phi_2,\lambda_2\,\!</math> be the latitude and longitude of two points, respectively, <math>\Delta\lambda\,\!</math> the longitude difference and <math>\Delta\sigma\,\!</math> the angular difference/distance can be determined from the spherical law of cosines as:

<math>\Delta\sigma=\arccos\left\{\sin\phi_1\sin\phi_2+\cos\phi_1\cos\phi_2\cos\Delta\lambda\right\}</math>

This arccosine form can have large rounding errors for the common case where the distance is small, however, so it is not normally used. Instead, a simpler equation known historically as the haversine formula was preferred, which is much more accurate for small distances:

<math>\Delta\sigma

=2\arcsin\left\{\sqrt{\sin^2\left(\frac{\phi_2-\phi_1}{2}\right)+\cos{\phi_1}\cos{\phi_2}\sin^2\left(\frac{\Delta\lambda}{2}\right)}\right\}.\!</math>

(Historically, the use of this formula was simplified by the availability of tables for the haversine function: hav(θ)=sin2(θ/2).) Although this formula is accurate for most distances, it too suffers from rounding errors for the special (and somewhat unusual) case of antipodal points (on opposite ends of the sphere). A more complicated formula that is accurate for all distances is:

<math>\Delta\sigma=\arctan\left\{\frac{\sqrt{\left[\cos\phi_2\sin\Delta\lambda\right]^2+\left[\cos\phi_1\sin\phi_2-\sin\phi_1\cos\phi_2\cos\Delta\lambda\right]^2}}{\sin\phi_1\sin\phi_2+\cos\phi_1\cos\phi_2\cos\Delta\lambda}\right\}</math>

(On a computer, one should use atan2 rather than the ordinary arctangent function, in order to correctly handle the case where the denominator is zero.)

If r is the great-circle radius of the sphere, then the great-circle distance is <math>r\,\Delta\sigma\,\!</math>.

Note: above, accuracy refers to rounding errors only; all formulas themselves are exact (for a sphere).

Spherical distance on the Earth

The shape of the Earth more closely resembles a flattened spheroid with extreme values for the radius of curvature, or arcradius, of 6335.437 km at the equator (vertically) and 6399.592 km at the poles, and having an average great-circle radius of 6372.795 km.

Using a sphere with a radius of 6372.795 km thus results in an error of up to about 0.5%.

A worked example

In order to use this formula for anything practical you will need two sets of coordinates. For example, the latitude and longitude of two airports:

  • Nashville International Airport (BNA) in Nashville, TN, USA: N 36°7.2', W 86°40.2
  • Los Angeles International Airport (LAX) in Los Angeles, CA, USA: N 33°56.4', W 118°24.0'

You will first have to convert these coordinates to whole degrees and radians before you can use them effectively in a formula. After conversion, the coordinates become:

  • BNA:<math>\phi_1= 36.12^\circ\approx 0.6304\mbox{ rad},\ \ \lambda_1=-86.67^\circ\approx -1.5127\mbox{ rad};\,\!</math>
  • LAX:<math>\phi_2= 33.94^\circ\approx 0.5924\mbox{ rad},\ \ \lambda_2=-118.40^\circ\approx -2.0665\mbox{ rad};\,\!</math>

Using these values in the angular distance equation:

<math>r\,\Delta\sigma\approx 6372.795\times0.45306 \approx 2887.259\mbox{ km}.\,\!</math>

Thus the distance between LAX and BNA is about 2887 km or 1794 miles.

Spherical coordinates

In the spherical coordinates used by mathematicians and physicists, usually when considering other spheres than the Earth's surface, the great-circle distance is found as follows. If <math>\varphi\,\!</math> is the azimuthal angle and <math>\theta\,\!</math> the colatitude, then the spherical distance is given by

<math>r\,\Delta\sigma

=2r\arcsin\left\{\sqrt{\sin^2\left(\frac{\theta_2-\theta_1}{2}\right) +\sin{\theta_1}\sin{\theta_2}\sin^2\left(\frac{\Delta\varphi}{2}\right)}\right\}.\!</math>

<math>=r\arctan\left\{\frac{\sqrt{\left[\sin\theta_2\sin\Delta\varphi\right]^2+\left[\sin\theta_1\cos\theta_2-\cos\theta_1\sin\theta_2\cos\Delta\varphi\right]^2}}{\cos\theta_1\cos\theta_2+\sin\theta_1\sin\theta_2\cos\Delta\varphi}\right\};\,\!</math>


Note that if <math>\varphi_1=\varphi_2\,\!</math> then <math>\Delta\sigma=|\theta_2-\theta_1|\,\!</math> and the distance formula reduces to

<math>r\,\Delta\sigma=r|\theta_2-\theta_1|.\,\!</math>

The notation above is that used in the physical sciences. Pure mathematicians, by contrast, conventionally interchange the roles of the letters <math>\varphi\,\!</math> and <math>\theta\,\!</math>.

See also

External links

et:Ortodroom fr:Distance du grand cercle pl:Ortodroma