Spherical Law of Cosines: Theorem
Spherical Law of Cosines: Theorem
We will develop a formula simlar to the Euclidean Law of Cosines. Let XYZ be a triangle, with
angles α, β, γ and opposite side lengths a, b, c as shown in the figure.
X
α c
β Y
b
a
γ
Z
b
1
B
O
We assume that the point Z is at the north pole of our sphere. Consider the plane P tangent
to the sphere at point Z. Extend a ray from the center O of the sphere through point X to the
plane P; call U the point of intersection between the ray and the plane. Similarly, extend a
ray from O through Y to P; call W the point of intersection.
plane P Z
γ U
W
Y X
O C
1
Next calculate the length of the segment UW in the plane P using the Euclidean Law of Cosines
applied to the triangle UZW. To do this, you need the length of the segments ZU and ZW. Note
that the angle of UZW is γ.
Finally, apply the Euclidean Law of Cosines to the triangle OWU. Note that the angle of UOW
is C, which is our goal. You will need the length of the segments OU and OW. Simplify the
expression (the Pythagorean identity (tan θ)2 + 1 = (sec θ)2 may be helpful).
Theorem (Spherical Law of Cosines). cos C = (cos A) (cos B) + (sin A) (sin B) cos γ.
1. from Seattle (48°N, 2°E) to Paris (48°N, 122°W). What is the distance if traveling due
east?
Question 3. What is the “Pythagorean theorem” for right triangles on the sphere? Does it
work for triangles with more than one right angle?
2
We next calculate the length of the segment UW in the plane P using the Euclidean Law of
Cosines applied to the triangle UZW.
Z U
γ
plane P W
First, we need the length of the segments ZU and ZW. The length of ZU can be calculated by
looking at the cross section of the sphere containing O, Z, and U.
Z U
b
1 X
B
O
Hence, the length of ZU is tan B and similarly, the length of ZW is tan A. Thus,
(tan B)2 + (tan A)2 − 2 (tan B) (tan A) cos γ = (sec B)2 + (sec A)2 − 2 (sec B) (sec A) cos C
= (tan B)2 + (tan A)2 + 2 − 2 (sec B) (sec A) cos C,
where we used the Pythagorean identity (tan θ)2 + 1 = (sec θ)2 for the last step. Simplifying,
we have
(tan B) (tan A) cos γ = (sec B) (sec A) cos C − 1,
and cross-multiplying by (cos A)(cos B), we obtain
3
Calculation of Distance on the Earth using Latitude and Longitude
Suppose that we wish to calculate the distance between two points on the surface of the Earth.
Let the starting point S have latitude φS and longitude λS , and the finish point have latitude
φF and longitude λF . We consider the triangle SNF, where N is the North Pole. The angle
SNF is γ = λF − λS . The angular length of NS is A = 90◦ − φS , and the angular length of NF
is B = 90◦ − φF . Thus, by the Spherical Law of Cosines, the angular distance C from S to F
satisfies
cos C = (cos A) (cos B) + (sin A) (sin B) cos γ.
The actual distance from S to F can be computed using the radius of the Earth, 6371 km.
Example. Seattle is at 47.6◦ N, 122.3◦ W, and Paris is at 48.8◦ N, 2.7◦ E. We compute γ = 122.3+
2.7 = 125◦ , A = 90 − 47.6 = 42.4, and B = 90 − 48.8 = 41.2◦ . Thus, cos C = .3009, C = 1.2652
(in radians), and the distance is C(6371) = 8061 km.
polar point
X Y
The dual triangle of XYZ is the triangle whose vertices are the polar points of the sides of XYZ.
Draw several triangles on the Lénárt sphere and their duals.
Proposition. Given a triangle with side lengths A, B, C (measured as central angles) and oppo-
site angles α, β, γ, the dual triangle formed from the polar points has side lengths ] − α, ] − β, ] − γ
(measured as central angles) and angles ] − A, ] − B, ] − C. Moreover, the dual of the dual tri-
angle is the original triangle.
Applying the Spherical Law of Cosines to the dual triangle, we obtain
Theorem (Spherical Law of Cosines for Angles). cos γ = (cos α) (cos β) + (sin α) (sin β) cos C.