Spherical law of cosines 2026-10-14
For a nondegenerate convex minor spherical triangle, the spherical law of cosines relates two angular sides , their included interior angle , and the opposite angular side :Relabelling the vertices gives the corresponding formulas for and . As with the spherical law of sines, physical side lengths must first be divided by the sphere's radius. The spherical law of cosines determines uniquely from when the data describe such a spherical triangle. It also recovers each interior angle from three sides, for exampleUsing the cosine and the range selects a unique angle, avoiding the supplementary-angle ambiguity of an inverse sine calculation.
To derive the spherical law of cosines, let be the vertex unit vectors at , so , and . The outgoing unit tangent vectors at are and . Their dot product is both and , proving the identity. This gives a geometric explanation: spherical trigonometry compares angles in the tangent plane using vectors in the surrounding Euclidean space.
For a worked example on the unit sphere, take the verticesAt , the outgoing unit tangent vectors are and , so the interior angle is a right angle. The vertex dot products give . The spherical law of cosines then reduces to the right-angle identity , givingTo find , use the relabelled spherical law of cosines:The physical side lengths on a sphere of radius are and . For example, on a toy sphere with metres they are approximately , and metres; the interior angles stay the same. Applying the planar Pythagorean theorem directly to the angular sides would instead give . That flat right triangle calculation does not give the great-circle distance between and .
The familiar law of cosines reappears as a local approximation. With all small in radians, substitute the small-angle approximations and into the spherical law of cosines and keep terms through second order:Multiplication by gives the planar law of cosines for the physical side lengths. For a fixed small surface triangle on a progressively larger sphere, the angular sides shrink and this approximation improves. Thus the curved and flat formulas fit together: the Pythagorean theorem is recovered locally when is a right angle.
Spherical trigonometry 2026-10-14
Spherical trigonometry calculates the sides and interior angles of spherical triangles using trigonometric functions. Its sides must be shorter great circle arcs, which are geodesics on a round sphere. A curve at constant nonzero latitude does not qualify. The spherical law of sines and spherical law of cosines play the roles of the familiar flat-triangle rules, but account for the sphere's curvature.
Use uppercase both for the vertices and for their interior angles, and lowercase for the opposite angular sides. For example, is the central angle subtended by the arc from to . On a sphere of radius , its physical arc length is when is in radians; similarly and . Only on the unit sphere do the angular and physical side lengths have the same numerical values. See J. B. Tatum, Celestial Mechanics, chapter 3, section 3.5: great-circle sides and angular units.
One useful application of spherical trigonometry is finding great-circle distance from spherical coordinates. Write a unit vector as , where is latitude and is the equatorial azimuth, or longitude, measured from a chosen reference direction. The dot product of two such unit vectors givesHere is the central angle and is the great-circle distance. The same identity follows from the spherical law of cosines by adding the north pole as the third vertex, with angular sides and . This connects spherical geometry to position calculations in astronomy and to navigation on a spherical model of Earth. Choosing the surface model matters: Paula Neeley and Anthony Narkawicz, Map Projection Induced Variations in Locations of Polygon Geofence Edges, NASA/TM-2017-219675 (2017), sections 2-3 distinguishes spherical and ellipsoidal geodesics and gives this coordinate identity.
For a toy example, put two points at latitude , with equatorial azimuths and . The great-circle distance and the arc length along constant latitude areThe great circle takes a shorter route by bending towards the pole in these spherical coordinates. To locate its highest latitude, the endpoint unit vectors are and . Their great circle lies in the plane through the origin with . On its shorter arc, the maximum latitude occurs at and is . Thus a geodesic can change latitude substantially even when its endpoints have equal latitude. These are lengths on an ideal sphere; the example illustrates the geometry rather than specifying an actual flight route.
On an ideal sphere, two points at latitude and longitudes are joined by a shorter great-circle arc reaching latitude
. Details. Historically, spherical trigonometry was prominent in teaching as well as in astronomy. John Conway and Alex Ryba note its presence in early twentieth-century school textbooks in Remembering spherical trigonometry, The Mathematical Gazette 100(547), March 2016, pages 1-8, DOI 10.1017/mag.2016.3. Their introductory observation documents that teaching history; it does not identify a single inventor of the spherical law of sines or spherical law of cosines.

