Spherical trigonometry explained

Spherical trigonometry is the branch of spherical geometry that deals with the metrical relationships between the sides and angles of spherical triangles, traditionally expressed using trigonometric functions. On the sphere, geodesics are great circles. Spherical trigonometry is of great importance for calculations in astronomy, geodesy, and navigation.

The origins of spherical trigonometry in Greek mathematics and the major developments in Islamic mathematics are discussed fully in History of trigonometry and Mathematics in medieval Islam. The subject came to fruition in Early Modern times with important developments by John Napier, Delambre and others, and attained an essentially complete form by the end of the nineteenth century with the publication of Todhunter's textbook Spherical trigonometry for the use of colleges and Schools.[1] Since then, significant developments have been the application of vector methods, quaternion methods, and the use of numerical methods.

Preliminaries

Spherical polygons

A spherical polygon is a polygon on the surface of the sphere. Its sides are arcs of great circles—the spherical geometry equivalent of line segments in plane geometry.

Such polygons may have any number of sides greater than 1. Two-sided spherical polygons—lunes, also called digons or bi-angles—are bounded by two great-circle arcs: a familiar example is the curved outward-facing surface of a segment of an orange. Three arcs serve to define a spherical triangle, the principal subject of this article. Polygons with higher numbers of sides (4-sided spherical quadrilaterals, 5-sided spherical pentagons, etc.) are defined in similar manner. Analogously to their plane counterparts, spherical polygons with more than 3 sides can always be treated as the composition of spherical triangles.

One spherical polygon with interesting properties is the pentagramma mirificum, a 5-sided spherical star polygon with a right angle at every vertex.

From this point in the article, discussion will be restricted to spherical triangles, referred to simply as triangles.

Notation

\pi < A + B + C < 3\pi(Todhunter,[1] Art.22,32). In particular, the sum of the angles of a spherical triangle is strictly greater than the sum of the angles of a triangle defined on the Euclidean plane, which is always exactly radians.

(Todhunter,[1] Art.22,32).

Polar triangles

The polar triangle associated with a triangle is defined as follows. Consider the great circle that contains the side . This great circle is defined by the intersection of a diametral plane with the surface. Draw the normal to that plane at the centre: it intersects the surface at two points and the point that is on the same side of the plane as is (conventionally) termed the pole of and it is denoted by . The points and are defined similarly.

The triangle is the polar triangle corresponding to triangle . A very important theorem (Todhunter,[1] Art.27) proves that the angles and sides of the polar triangle aregiven by\begin A' &= \pi - a, &\qquad B' &= \pi - b, &\qquad C' &= \pi - c, \\ a' &= \pi - A, & b' &= \pi - B, & c' &= \pi - C .\endTherefore, if any identity is proved for then we can immediately derive a second identity by applying the first identity to the polar triangle by making the above substitutions. This is how the supplemental cosine equations are derived from the cosine equations. Similarly, the identities for a quadrantal triangle can be derived from those for a right-angled triangle. The polar triangle of a polar triangle is the original triangle.

Cosine rules and sine rules

Cosine rules

See main article: Spherical law of cosines.

The cosine rule is the fundamental identity of spherical trigonometry: all other identities, including the sine rule, may be derived from the cosine rule:\begin \cos a &= \cos b \cos c + \sin b \sin c \cos A, \\[2pt] \cos b &= \cos c \cos a + \sin c \sin a \cos B, \\[2pt] \cos c &= \cos a \cos b + \sin a \sin b \cos C.\end

These identities generalize the cosine rule of plane trigonometry, to which they are asymptotically equivalentin the limit of small interior angles. (On the unit sphere, if

a,b,c0

set

\sinaa

and

(\cosa-\cosb)20

etc.; see Spherical law of cosines.)

Sine rules

The spherical law of sines is given by the formula\frac = \frac = \frac.These identities approximate the sine rule of plane trigonometry when the sides are much smaller than the radius of the sphere.

Derivation of the cosine rule

See main article: Spherical law of cosines.

The spherical cosine formulae were originally proved by elementary geometry and the planar cosine rule (Todhunter,[1] Art.37). He also gives a derivation using simple coordinate geometry and the planar cosine rule (Art.60). The approach outlined here uses simpler vector methods. (These methods are also discussed at Spherical law of cosines.)

Consider three unit vectors drawn from the origin to the vertices of the triangle (on the unit sphere). The arc subtends an angle of magnitude at the centre and therefore . Introduce a Cartesian basis with along the -axis and in the -plane making an angle with the -axis. The vector projects to in the -plane and the angle between and the -axis is . Therefore, the three vectors have components:

\begin \vec: &\quad (0,\,0,\,1) \\ \vec: &\quad (\sin c,\,0,\,\cos c) \\ \vec: &\quad (\sin b\cos A,\,\sin b\sin A,\,\cos b).\end

The scalar product in terms of the components is\vec \cdot \vec =\sin c \sin b \cos A + \cos c \cos b.Equating the two expressions for the scalar product gives\cos a = \cos b \cos c + \sin b \sin c \cos A.This equation can be re-arranged to give explicit expressions for the angle in terms of the sides:\cos A = \frac.

The other cosine rules are obtained by cyclic permutations.

Derivation of the sine rule

This derivation is given in Todhunter,[1] (Art.40). From the identity

\sin2A=1-\cos2A

and the explicit expression for given immediately above\begin \sin^2 A &= 1 - \left(\frac\right)^2 \\[5pt] &= \frac \\[5pt] \frac &= \frac.\endSince the right hand side is invariant under a cyclic permutation of,, and the spherical sine rule follows immediately.

Alternative derivations

There are many ways of deriving the fundamental cosine and sine rules and the other rules developed in the following sections. For example, Todhunter[1] gives two proofs of the cosine rule (Articles 37 and 60) and two proofs of the sine rule (Articles 40 and 42). The page on Spherical law of cosines gives four different proofs of the cosine rule. Text books on geodesy[2] and spherical astronomy[3] give different proofs and the online resources of MathWorld provide yet more. There are even more exotic derivations, such as that of Banerjee who derives the formulae using the linear algebra of projection matrices and also quotes methods in differential geometry and the group theory of rotations.

The derivation of the cosine rule presented above has the merits of simplicity and directness and the derivation of the sine rule emphasises the fact that no separate proof is required other than the cosine rule. However, the above geometry may be used to give an independent proof of the sine rule. The scalar triple product, evaluates to in the basis shown. Similarly, in a basis oriented with the -axis along, the triple product, evaluates to . Therefore, the invariance of the triple product under cyclic permutations gives which is the first of the sine rules. See curved variations of the law of sines to see details of this derivation.

Identities

Supplemental cosine rules

Applying the cosine rules to the polar triangle gives (Todhunter,[1] Art.47), i.e. replacing by, by etc.,\begin\cos A &= -\cos B \, \cos C + \sin B \, \sin C \, \cos a, \\\cos B &= -\cos C \, \cos A + \sin C \, \sin A \, \cos b, \\\cos C &= -\cos A \, \cos B + \sin A \, \sin B \, \cos c.\end

Cotangent four-part formulae

The six parts of a triangle may be written in cyclic order as . The cotangent, or four-part, formulae relate two sides and two angles forming four consecutive parts around the triangle, for example or). In such a set there are inner and outer parts: for example in the set the inner angle is, the inner side is, the outer angle is, the outer side is . The cotangent rule may be written as (Todhunter,[1] Art.44) \cos\!\Bigl(\begin\text \\ \text\end\Bigr) \cos\!\Bigl(\begin\text \\ \text\end\Bigr) = \cot\!\Bigl(\begin\text \\ \text\end\Bigr) \sin\!\Bigl(\begin\text \\ \text\end\Bigr) - \cot\!\Bigl(\begin\text \\ \text\end\Bigr) \sin\!\Bigl(\begin\text \\ \text\end\Bigr),and the six possible equations are (with the relevant set shown at right):\begin \text&& \qquad \cos b\,\cos C &= \cot a\,\sin b - \cot A \,\sin C \qquad&&(aCbA)\\[0ex] \text&& \cos b\,\cos A &= \cot c\,\sin b - \cot C \,\sin A &&(CbAc)\\[0ex] \text&& \cos c\,\cos A &= \cot b\,\sin c - \cot B \,\sin A &&(bAcB)\\[0ex] \text&& \cos c\,\cos B &= \cot a\,\sin c - \cot A \,\sin B &&(AcBa)\\[0ex] \text&& \cos a\,\cos B &= \cot c\,\sin a - \cot C \,\sin B &&(cBaC)\\[0ex] \text&& \cos a\,\cos C &= \cot b\,\sin a - \cot B \,\sin C &&(BaCb)\endTo prove the first formula start from the first cosine rule and on the right-hand side substitute for from the third cosine rule:\begin \cos a &= \cos b \cos c + \sin b \sin c \cos A \\ &= \cos b\ (\cos a \cos b + \sin a \sin b \cos C) + \sin b \sin C \sin a \cot A \\ \cos a \sin^2 b &= \cos b \sin a \sin b \cos C + \sin b \sin C \sin a \cot A.\endThe result follows on dividing by . Similar techniqueswith the other two cosine rules give CT3 and CT5. The other three equations follow by applying rules 1, 3 and 5 to the polar triangle.

Half-angle and half-side formulae

With

2s=(a+b+c)

and

2S=(A+B+C),

\begin \sinA &= \sqrt&\qquad\qquad \sina &= \sqrt \\[2ex] \cosA &= \sqrt & \cosa &= \sqrt \\[2ex] \tanA &= \sqrt & \tana &= \sqrt \end

Another twelve identities follow by cyclic permutation.

The proof (Todhunter,[1] Art.49) of the first formula starts from the identity

2\sin2\tfrac{A}{2}=1-\cosA,

using the cosine rule to express in terms of the sides and replacing the sum of two cosines by a product. (See sum-to-product identities.) The second formula starts from the identity

2\cos2\tfrac{A}{2}=1+\cosA,

the third is a quotient and the remainder follow by applying the results to the polar triangle.

Delambre analogies

The Delambre analogies (also called Gauss analogies) were published independently by Delambre, Gauss, and Mollweide in 1807–1809.[4]

\begin \frac =\frac &\qquad\qquad& \frac =\frac \\[2ex] \frac =\frac &\qquad& \frac =\frac \endAnother eight identities follow by cyclic permutation.

Proved by expanding the numerators and using the half angle formulae. (Todhunter,[1] Art.54 and Delambre[5])

Napier's analogies

\begin \tan\tfrac(A+B) = \frac \cot\tfracC&\qquad& \tan\tfrac(a+b) = \frac\tan\tfracc\\[2ex] \tan\tfrac(A-B) = \frac \cot\tfracC&\qquad& \tan\tfrac(a-b) =\frac \tan\tfracc\end

Another eight identities follow by cyclic permutation.

These identities follow by division of the Delambre formulae. (Todhunter,[1] Art.52)

Taking quotients of these yields the law of tangents, first stated by Persian mathematician Nasir al-Din al-Tusi (1201–1274),

\frac= \frac

Napier's rules for right spherical triangles

When one of the angles, say, of a spherical triangle is equal to /2 the various identities given above are considerably simplified. There are ten identities relating three elements chosen from the set,,,, and .

Napier[6] provided an elegant mnemonic aid for the ten independent equations: the mnemonic is called Napier's circle or Napier's pentagon (when the circle in the above figure, right, is replaced by a pentagon).

First, write the six parts of the triangle (three vertex angles, three arc angles for the sides) in the order they occur around any circuit of the triangle: for the triangle shown above left, going clockwise starting with gives . Next replace the parts that are not adjacent to (that is,, and) by their complements and then delete the angle from the list. The remaining parts can then be drawn as five ordered, equal slices of a pentagram, or circle, as shown in the above figure (right). For any choice of three contiguous parts, one (the middle part) will be adjacent to two parts and opposite the other two parts. The ten Napier's Rules are given by

The key for remembering which trigonometric function goes with which part is to look at the first vowel of the kind of part: middle parts take the sine, adjacent parts take the tangent, and opposite parts take the cosine.For an example, starting with the sector containing we have:\begin \sin a &= \tan(\tfrac - B)\,\tan b \\[2pt] &= \cos(\tfrac - c)\, \cos(\tfrac - A) \\[2pt] &= \cot B\,\tan b \\[4pt] &= \sin c\,\sin A. \endThe full set of rules for the right spherical triangle is (Todhunter,[1] Art.62)\begin &\text&\qquad \cos c&=\cos a\,\cos b,&\qquad\qquad &\text&\qquad \tan b&=\cos A\,\tan c,\\ &\text& \sin a &= \sin A\,\sin c,&&\text& \tan a &= \cos B\,\tan c,\\ &\text& \sin b &= \sin B\,\sin c,&&\text& \cos A &= \sin B\,\cos a,\\ &\text& \tan a &= \tan A\,\sin b,&&\text& \cos B &= \sin A\,\cos b,\\ &\text& \tan b &= \tan B\,\sin a,&&\text& \cos c &= \cot A\,\cot B.\end

Napier's rules for quadrantal triangles

A quadrantal spherical triangle is defined to be a spherical triangle in which one of the sides subtends an angle of /2 radians at the centre of the sphere: on the unit sphere the side has length /2. In the case that the side has length /2 on the unit sphere the equations governing the remaining sides and angles may be obtained by applying the rules for the right spherical triangle of the previous section to the polar triangle with sides such that, etc. The results are:\begin &\text&\qquad \cos C &= -\cos A\,\cos B,&\qquad\qquad &\text&\qquad \tan B &= -\cos a\,\tan C,\\ &\text& \sin A &= \sin a\,\sin C,&&\text& \tan A &= -\cos b\,\tan C,\\ &\text& \sin B &= \sin b\,\sin C,&&\text& \cos a &= \sin b\,\cos A,\\ &\text& \tan A &= \tan a\,\sin B,&&\text& \cos b &= \sin a\,\cos B,\\ &\text& \tan B &= \tan b\,\sin A,&&\text& \cos C &= -\cot a\,\cot b.\end

Five-part rules

Substituting the second cosine rule into the first and simplifying gives:\begin \cos a &= (\cos a \,\cos c + \sin a \,\sin c \,\cos B) \cos c + \sin b \,\sin c \,\cos A \\[4pt] \cos a \,\sin^2 c &= \sin a \,\cos c \,\sin c \,\cos B + \sin b \,\sin c \,\cos A\endCancelling the factor of gives\cos a \sin c = \sin a \,\cos c \,\cos B + \sin b \,\cos A

Similar substitutions in the other cosine and supplementary cosine formulae give a large variety of 5-part rules. They are rarely used.

Cagnoli's Equation

Multiplying the first cosine rule by gives\cos a \cos A = \cos b \,\cos c \,\cos A + \sin b \,\sin c - \sin b \,\sin c \,\sin^2 A.Similarly multiplying the first supplementary cosine rule by yields\cos a \cos A = -\cos B \,\cos C \,\cos a + \sin B \,\sin C - \sin B \,\sin C \,\sin^2 a.Subtracting the two and noting that it follows from the sine rules that

\sinb\sinc\sin2A=\sinB\sinC\sin2a

produces Cagnoli's equation\sin b \,\sin c + \cos b \,\cos c \,\cos A = \sin B \,\sin C - \cos B \,\cos C \,\cos awhich is a relation between the six parts of the spherical triangle.[7]

Solution of triangles

Oblique triangles

The solution of triangles is the principal purpose of spherical trigonometry: given three, four or five elements of the triangle, determine the others. The case of five given elements is trivial, requiring only a single application of the sine rule. For four given elements there is one non-trivial case, which is discussed below. For three given elements there are six cases: three sides, two sides and an included or opposite angle, two angles and an included or opposite side, or three angles. (The last case has no analogue in planar trigonometry.) No single method solves all cases. The figure below shows the seven non-trivial cases: in each case the given sides are marked with a cross-bar and the given angles with an arc. (The given elements are also listed below the triangle). In the summary notation here such as ASA, A refers to a given angle and S refers to a given side, and the sequence of A's and S's in the notation refers to the corresponding sequence in the triangle.

The solution methods listed here are not the only possible choices: many others are possible. In general it is better to choose methods that avoid taking an inverse sine because of the possible ambiguity between an angle and its supplement. The use of half-angle formulae is often advisable because half-angles will be less than /2 and therefore free from ambiguity. There is a full discussion in Todhunter. The article Solution of triangles#Solving spherical triangles presents variants on these methods with a slightly different notation.

There is a full discussion of the solution of oblique triangles in Todhunter.[1] See also the discussion in Ross.[8] Nasir al-Din al-Tusi was the first to list the six distinct cases (2-7 in the diagram) of a right triangle in spherical trigonometry.[9]

Solution by right-angled triangles

Another approach is to split the triangle into two right-angled triangles. For example, take the Case 3 example where,, and are given. Construct the great circle from that is normal to the side at the point . Use Napier's rules to solve the triangle : use and to find the sides and and the angle . Then use Napier's rules to solve the triangle : that is use and to find the side and the angles and . The angle and side follow by addition.

Numerical considerations

Not all of the rules obtained are numerically robust in extreme examples, for example when an angle approaches zero or . Problems and solutions may have to be examined carefully, particularly when writing code to solve an arbitrary triangle.

Area and spherical excess

See also: Solid angle.

Consider an -sided spherical polygon and let denote the -th interior angle. The area of such a polygon is given by (Todhunter,[1] Art.99) \equiv E_N = \left(\sum_^ A_\right) - (N-2)\pi.

For the case of a spherical triangle with angles,, and this reduces to Girard's theorem \equiv E = E_3 = A+B+C -\pi,where is the amount by which the sum of the angles exceeds radians, called the spherical excess of the triangle. This theorem is named after its author, Albert Girard.[10] An earlier proof was derived, but not published, by the English mathematician Thomas Harriot. On a sphere of radius both of the above area expressions are multiplied by . The definition of the excess is independent of the radius of the sphere.

The converse result may be written as

A+B+C = \pi + \frac.

Since the area of a triangle cannot be negative the spherical excess is always positive. It is not necessarily small, because the sum of the angles may attain 5 (3 for proper angles). For example,an octant of a sphere is a spherical triangle with three right angles, so that the excess is /2. In practical applications it is often small: for example the triangles of geodetic survey typically have a spherical excess much less than 1' of arc.[11] On the Earth the excess of an equilateral triangle with sides 21.3 km (and area 393 km2) is approximately 1 arc second.

There are many formulae for the excess. For example, Todhunter,[1] (Art.101—103) gives ten examples including that of L'Huilier:\tan\tfracE= \sqrtwhere

s=\tfrac{1}{2}(a+b+c)

Because some triangles are badly characterized bytheir edges (e.g., if a = b \approx \frac12c), it is often better to usethe formula for the excess in terms of two edges and their included angle\tan\tfrac12 E = \frac.

When triangle is a right triangle with right angle at, then and, so this reduces to\tan\tfrac12 E = \tan\tfrac12a\tan\tfrac12b.

Angle deficit is defined similarly for hyperbolic geometry.

From latitude and longitude

The spherical excess of a spherical quadrangle bounded by the equator, the two meridians of longitudes

λ1

and

λ2,

and the great-circle arc between two points with longitude and latitude

(λ1,\varphi1)

and

(λ2,\varphi2)

is\tan\tfrac12 E_4= \frac \tan\tfrac12(\lambda_2 - \lambda_1).

This result is obtained from one of Napier's analogies. In the limit where

\varphi1,\varphi2,λ2-λ1

are all small, this reduces to the familiar trapezoidal area, E_4 \approx \frac12 (\varphi_2 + \varphi_1) (\lambda_2 - \lambda_1).

The area of a polygon can be calculated from individual quadrangles of the above type, from (analogously) individual triangle bounded by a segment of the polygon and two meridians,[12] by a line integral with Green's theorem,[13] or via an equal-area projection as commonly done in GIS. The other algorithms can still be used with the side lengths calculated using a great-circle distance formula.

See also

External links

Notes and References

  1. Book: Todhunter , I. . Isaac Todhunter. Spherical Trigonometry. 1886. MacMillan. 5th. 2013-07-28. 2020-04-14. https://web.archive.org/web/20200414233849/http://www.gutenberg.org/ebooks/19770. live.
  2. Book: Clarke, Alexander Ross. 1880. Geodesy. Clarendon Press. Oxford. 2484948. the Internet Archive.
  3. Book: Smart, W.M.. 1977. Text-Book on Spherical Astronomy. Cambridge University Press. 6th. Chapter 1. the Internet Archive.
  4. Todhunter . Isaac . 1873 . Note on the history of certain formulæ in spherical trigonometry . The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science. 45 . 298 . 98–100. 10.1080/14786447308640820 .
  5. Book: Delambre , J. B. J. . Delambre. Connaissance des Tems 1809. 1807. 445. 2016-05-14. 2020-07-22. https://web.archive.org/web/20200722071420/https://books.google.com/books?id=M8Mi6hU5tR0C&pg=PA445. live.
  6. Book: Napier , J . John Napier. Mirifici Logarithmorum Canonis Constructio. 1614. 50. 2016-05-14. 2013-04-30. https://web.archive.org/web/20130430105056/http://books.google.com/books?id=VukHAQAAIAAJ. live. An 1889 translation The Construction of the Wonderful Canon of Logarithms is available as en e-book from Abe Books
  7. Book: Chauvenet , William . A Treatise on Plane and Spherical Trigonometry. J. B. Lippincott & Co.. Philadelphia. 1867. 165. 2021-07-11. 2021-07-11. https://web.archive.org/web/20210711194635/https://books.google.com/books?id=d8E8AAAAYAAJ. live.
  8. Ross, Debra Anne. Master Math: Trigonometry, Career Press, 2002.
  9. "One of al-Tusi's most important mathematical contributions was the creation of trigonometry as a mathematical discipline in its own right rather than as just a tool for astronomical applications. In Treatise on the quadrilateral al-Tusi gave the first extant exposition of the whole system of plane and spherical trigonometry. This work is really the first in history on trigonometry as an independent branch of pure mathematics and the first in which all six cases for a right-angled spherical triangle are set forth"
  10. Another proof of Girard's theorem may be found at http://math.rice.edu/~pcmi/sphere/gos4.html .
  11. This follows from Legendre's theorem on spherical triangles whenever the area of the triangle is small relative to the surface area of the entire Earth; see Book: Clarke , Alexander Ross . Clarke . Geodesy . 1880 . Clarendon Press. (Chapters 2 and 9).
  12. Chamberlain . Robert G. . Duquette . William H. . Some algorithms for polygons on a sphere. . 17 April 2007 . Association of American Geographers Annual Meeting . NASA JPL . 7 August 2020 . 22 July 2020 . https://web.archive.org/web/20200722072320/https://trs.jpl.nasa.gov/handle/2014/41271 . live .
  13. Web site: Surface area of polygon on sphere or ellipsoid – MATLAB areaint . www.mathworks.com . 2021-05-01 . 2021-05-01 . https://web.archive.org/web/20210501073522/https://www.mathworks.com/help/map/ref/areaint.html . live .