Home › Non-Euclidean Geometry › Lesson 3

Spherical Trigonometry

Lesson 3 of 13

Key idea of this section

cos c = cos a cos b + sin a sin b cos γ          (first law of cosines)
cos γ = −cos α cos β + sin α sin β cos c          (second law of cosines)
sin α / sin a = sin β / sin b = sin γ / sin c     (law of sines)

Conventions

A spherical triangle on the unit sphere has vertices A, B, C (unit vectors), sides a = d(B, C), b = d(C, A), c = d(A, B), all in (0, π), and angles α, β, γ at A, B, C. The angle γ at C is the angle between the unit tangent vectors at C pointing along the sides towards A and towards B.

Theorem 3.1 (first law of cosines). cos c = cos a cos b + sin a sin b cos γ.

Proof. The unit tangent vector at C pointing towards A is u = (A − (A · C)C)/|A − (A · C)C| = (A − cos b · C)/sin b, since |A − cos b · C|² = 1 − 2cos²b + cos²b = sin²b. Similarly v = (B − cos a · C)/sin a. Then

cos γ = u · v = (A·B − cos a (A·C) − cos b (B·C) + cos a cos b) / (sin a sin b)
             = (cos c − cos a cos b) / (sin a sin b),

which rearranges to the stated formula. ∎

Theorem 3.2 (second law of cosines). cos γ = −cos α cos β + sin α sin β cos c.

Proof. Apply Theorem 3.1 to the polar triangle, whose sides are π − α, π − β, π − γ and whose angle opposite side π − γ is π − c: cos(π − γ) = cos(π − α)cos(π − β) + sin(π − α)sin(π − β)cos(π − c). Since cos(π − x) = −cos x and sin(π − x) = sin x, this is −cos γ = cos α cos β − sin α sin β cos c. ∎

The second law has no Euclidean analogue: it determines the sides from the angles, reflecting the fact that the angles of a spherical triangle determine it up to isometry.

Theorem 3.3 (law of sines). sin α / sin a = sin β / sin b = sin γ / sin c.

Proof. From Theorem 3.1, sin²γ = 1 − cos²γ = (sin²a sin²b − (cos c − cos a cos b)²)/(sin²a sin²b). Expanding, the numerator equals 1 − cos²a − cos²b − cos²c + 2 cos a cos b cos c, which is symmetric in a, b, c; call it Q. Hence sin²γ / sin²c = Q/(sin²a sin²b sin²c), which is symmetric, and all three ratios agree (all quantities are positive). In fact Q = det[A B C]², the squared volume of the parallelepiped spanned by A, B, C. ∎

Right triangles and the Euclidean limit

If γ = π/2 the first law gives the spherical Pythagorean theorem cos c = cos a cos b. On a sphere of radius R, with sides a, b, c measured as lengths, it reads cos(c/R) = cos(a/R) cos(b/R). Expanding cos x = 1 − x²/2 + x⁴/24 − ⋯ gives

1 − c²/(2R²) + c⁴/(24R⁴) = 1 − (a² + b²)/(2R²) + (a⁴ + 6a²b² + b⁴)/(24R⁴) + O(R⁻⁶),

so c² = a² + b² − a²b²/(3R²) + O(R⁻⁴). As R → ∞ the Euclidean theorem is recovered, and the leading correction shows that the hypotenuse is shorter than its Euclidean value — the spherical surface is "more cramped" than the plane. Similar expansions recover the Euclidean laws of sines and cosines.

Equilateral triangles

For an equilateral spherical triangle with side s and angle α, the first law gives cos s = cos²s + sin²s cos α, so cos α = (cos s − cos²s)/sin²s = cos s/(1 + cos s). As s → 0, cos α → 1/2 and α → π/3; as s → π/2, α → π/2 (the octant triangle); as s → 2π/3, cos α → −1, so α → π and the triangle degenerates to a great circle.

Application: great-circle navigation

On a sphere of radius R, points with latitude φ₁, φ₂ and longitude difference Δλ form, together with the North Pole, a triangle with sides π/2 − φ₁, π/2 − φ₂ and angle Δλ at the pole. The first law of cosines gives the great-circle distance d by

cos(d/R) = sin φ₁ sin φ₂ + cos φ₁ cos φ₂ cos Δλ.

Worked example. Two points on the parallel 60°N whose longitudes differ by 90°. Then cos(d/R) = (√3/2)² + (1/2)² · 0 = 3/4, so d/R = arccos(0.75) ≈ 0.7227 rad ≈ 41.41°. With R = 6371 km, d ≈ 4605 km. Travelling along the parallel instead covers an arc of radius R cos 60° = R/2 through 90°, a distance πR/4 ≈ 5004 km. The great-circle route is about 8% shorter; it bends poleward, which is why transatlantic and transpacific flights appear "curved" on Mercator charts. For numerical work at small distances the haversine form hav(d/R) = hav(Δφ) + cos φ₁ cos φ₂ hav(Δλ), with hav x = sin²(x/2), avoids the loss of precision of arccos near 1.

Spherical excess from sides

The area can be computed from the sides directly by L'Huilier's theorem: with s = (a + b + c)/2 and E = α + β + γ − π,

tan(E/4) = √( tan(s/2) tan((s − a)/2) tan((s − b)/2) tan((s − c)/2) ).

For the octant triangle a = b = c = π/2, s = 3π/4, and tan(E/4) = √(tan(3π/8) tan³(π/8)) = tan(π/8) since tan(3π/8) tan(π/8) = 1. So E = π/2, as before.

Exercise

  • (a)
    A right spherical triangle on the unit sphere has legs a = b = π/3. Find the hypotenuse c.
  • (b)
    Use the second law of cosines to find the side s of an equilateral spherical triangle all of whose angles are 2π/5. (Its vertices are adjacent vertices of the spherical icosahedron.)
  • (c)
    Find the great-circle distance on the unit sphere between two points on the equator whose longitudes differ by Δλ, and check your formula.
Show solution

Answers: (a) cos c = cos²(π/3) = 1/4, so c = arccos(1/4) ≈ 1.3181. (b) cos α = −cos²α + sin²α cos s gives cos s = (cos α + cos²α)/sin²α = cos α/(1 − cos α). With cos(2π/5) = (√5 − 1)/4 ≈ 0.30902, cos s ≈ 0.30902/0.69098 ≈ 0.44721 = 1/√5, so s = arccos(1/√5) ≈ 1.1071 rad ≈ 63.43°, the angle subtended by an edge of the regular icosahedron at its centre. (c) With φ₁ = φ₂ = 0, cos d = cos Δλ, so d = Δλ for Δλ ∈ [0, π], as expected since the equator is a great circle.

V.3.1