# Spherical Law of Cosines

## Description

In spherical trigonometry, the law of cosines (also called the cosine rule for sides) is a theorem relating the sides and angles of spherical triangles, analogous to the ordinary law of cosines from plane trigonometry.

Spherical triangle solved by the law of cosines.

Given a unit sphere, a “spherical triangle” on the surface of the sphere is defined by the great circles connecting three points u, v, and w on the sphere (shown at right). If the lengths of these three sides are a (from u to v), b (from u to w), and c (from v to w), and the angle of the corner opposite c is C, then the (first) spherical law of cosines is as shown here.

Since this is a unit sphere, the lengths a, b, and c are simply equal to the angles (in radians) subtended by those sides from the center of the sphere (for a non-unit sphere, they are the distances divided by the radius).

Related formulas## Variables

c | length of side c (m) |

a | length of side a (m) |

b | length of side b (m) |

C | angle C (rad) |