Spherical trigonometry

Definitions

Great circle

Great and small circles on the sphere
A circle on the sphere that has the same centre as the sphere (an intersection of the sphere and any plane through the sphere centre). On the globe, all meridians (longitude lines) and the Equator is a great circle. Great circles are the geodesics of the sphere, i. e. the shortest way between two points.
Small circle
Any other circle on the sphere is a small circle. On the globe, all parallel circles (latitude lines) except the Equator are small circles.
Spherical triangle

Spherical triangle
A spherical shape delimited by three great circle arcs. On a unit sphere the length of the arcs numerically equals to the respective central angle in radians, therefore, length of the sides of a spherical triangle is often denoted by angles.

Cosine rules

Using the denotations on the figure, the following identities apply to all spherical triangles:

Derivations can be found e.g. here.

Applications of cosine rules

Calculating spherical distance


A spherical triangle for calculating distance of two points

Let's find the spherical distance between points P11, λ1) and P22, λ2)! Considering the spherical triangle of P1, P1 and the North Pole (see figure) and using the cosine rule for the side δ, we get the following formula:

cos δ = cos(90°-φ1) cos(90°-φ2) + sin(90°-φ1) sin(90°-φ2) cos(λ2-λ1)

As cos(90°-x) = sin x and sin(90°-x) = cos x, we can use a simplified form:

cos δ = sin φ1 sin φ2 + cos φ1 cos φ2 cos(λ2-λ1),

where δ is the spherical distance of the two points on a unit sphere.

Calculating metacoordinates


A spherical triangle for calculating metacoordinates

Let's define a meta coordinate system with meta pole at the point NP* (φ0, λ0), having the geodesic towards the true North Pole (NP) as prime meridian. The (φ*, λ*) metacoordinates of any P (φ, λ) point can be calculated by considering the spherical triangle P NP NP* (see figure):

sin φ* = sin φ sin φ0 + cos φ cos φ0 cos(λ0-λ),

sin φ = sin φ* sin φ0 + cos φ* cos φ0 cos λ*, from which cos λ* can be expressed:

cos λ* = ( sin φ - sin φ* sin φ0 ) / ( cos φ* cos φ0 )