Spherical Triangles Equations


BlogMathematics of the Celestial SphereSpherical Geometry
Spherical Triangles Equations

May 7, 2024, 9:24 p.m. Alexey Borealis 3 min. to read


This article will derive fundamental equations for a spherical triangle. These equations express the ratio between the angles and curved sides of the triangle drawn on a celestial sphere. We will need these formulas for calculating the primary directions.

[toc]

Consider a right-angled triangle on a sphere with sides $\alpha$, $\beta$, and $\gamma$, as well as interior angles $A$, $B$, and $C$.

How will its sides and angles be related to each other?

A B α γ β

Rotated Coordinate Systems

First, we introduce a cartesian vector $\vec{v}$ in $\textbf{XYZ}$ coordinate system.

B α γ β X Z v X' Y'

From the conversion equation (1) it follows that $\vec{v}$ has coordinates

$$ \vec{v} = \left( \begin{aligned} & x = R\cos\beta \\ & y = 0 \\ & z = R\sin\beta \end{aligned} \right) $$

Now, let's use the rotation matrix to rotate $\textbf{XYZ}$ by angle $\alpha$ along $\textbf{XY}$ and express this vector in $\textbf X' \textbf Y' \textbf Z'$ axis. As a result, we have the following:

$$ \begin{aligned} \vec{v} & = R \cos\alpha \cos\beta~ \textbf X' \\ & - R \sin\alpha \cos\beta~ \textbf Y' \\ & + R\sin\beta~ \textbf Z' \\ \end{aligned} $$

But on the other hand, the same $x'$ component of the vector $\vec{v}$ is just a projection of that vector to the $\textbf X'$-axis in the $\gamma$-angle plane.

b α γ β X Z v X' Y'

$$ x' = R\cos{\gamma} $$

It gives us the first equation:

$$ \cos\gamma = \cos\alpha\cos\beta\tag{1} $$

Now we move to the next step and introduce a new coordinate system $\textbf X'' \textbf Y'' \textbf Z''$, which is $\textbf X' \textbf Y' \textbf Z'$, rotated by angle $-B$ (minus B) in $\textbf Y' \textbf Z'$ plane.

B α β Z v X'' Y' Z'' Y''

If we apply rotation matrix to $\textbf X' \textbf Y' \textbf Z'$ coordinate system, we will have a $z''$-component of the vector $\vec{v}$ to be equal to

$$ \begin{aligned} z'' & = \sin B~ y' + \cos B~ z' = \\ & - R \sin B \sin\alpha \cos\beta \\ & + R \cos B \sin \beta \end{aligned} $$

On the other hand, $z''$-component of vector $\vec{v}$ is equal to zero. It means that

$$ \sin\alpha = \frac{\tan\beta}{\tan B} \tag{2} $$

The exact ratio applies to $\beta$ angle:

B α β A γ B α β A γ

$$ \sin \beta = \frac{\tan \alpha} {\tan A }\tag{3} $$

Other Equations

We have set the main equations for spherical triangles:

$$ \begin{cases} \cos \gamma = \cos \alpha \cos\beta \\ \sin \alpha = \tan\beta/ \tan B \\ \sin \beta = \tan\alpha/ \tan A \end{cases} $$

All the rest is just a consequence of these three equations.

First, let's multiply $(1)$ by $(2)$, and we will get

$$ \cos \gamma = \frac{1} {\tan A\tan B} \tag{4} $$

Now, let's consider $\sin^2 \gamma$:

$$ \begin{aligned} \sin^2 \gamma & = 1 - \cos^2 \gamma \\\ & = \cos^2\alpha + \sin^2\alpha - \cos^2\alpha \cos^2\beta \\\ & = \sin^2\alpha + \cos^2\alpha \sin^2\beta \end{aligned} $$

Similarly, we can write

$$ \sin^2\gamma = \sin^2\beta + \cos^2\alpha \sin^2\beta\tag{5} $$

Now, let's divide both sides of the equation by $\cos^2(\gamma)$:

$$ \begin{aligned} \tan^2\gamma & = \tan^2\alpha \frac {1} {\cos^2\beta} + \tan^2\beta \\ & = \tan^2\beta \tan^2A + \sin^2\alpha\tan^2B \\ & = \sin^2\alpha\tan^2B \left[ \tan^2A + 1\right] \\ & = \frac{\sin\alpha \tan B } {\cos A} \end{aligned} $$

which gives

$$ \sin\gamma = \frac{\sin\alpha} {\sin A}\tag{6} $$

With the same approach, we get from the equation $(5)$

$$ \sin\gamma = \frac{\sin\beta} {\sin B}\tag{7} $$

This equality

$$ \frac{\sin\alpha} {\sin A} = \frac{\sin\beta} {\sin B} $$

is also called the sine theorem.

Now from $(3)$ it follows

$$ \sin A = \frac{\tan\alpha} {\sin\beta}\cos A $$

If we sunstitude $\sin A$ from $(6)$ we will get

$$ \cos A = \frac{\cos\alpha\sin\beta}{\sin\gamma}\tag{8} $$

or

$$ \cos A = \frac{\tan\beta} {\tan\gamma}\tag{9} $$

In a similar manner from (2) follows that

$$ \cos B = \frac{\tan\alpha} {\tan\gamma}\tag{10} $$

If we substitute (8) with (7), we will get

$$ \cos A = \sin B \cos\alpha\tag{11} $$

Similarly,

$$ \cos B = \sin A \cos\beta\tag{12} $$

Bottom Line

We have derived a set of handy equations necessary for calculating the primary directions. Here is the recap of what we got

B α β A γ B α β A γ

Spherical triangle.

$$ \begin{gather} \gamma, \alpha, \beta: & \cos\gamma = \cos\alpha\cos\beta\tag{1}\\\ \alpha, \beta, B: & \tan\beta = \sin\alpha \tan B\tag{2}\\\ \beta, \alpha, A: & \tan \alpha = \sin \beta \tan A \tag{3}\\\ \gamma, A, B: & \cos \gamma = \frac{1} {\tan A\tan B} \tag{4}\\\ \gamma, \alpha, A: & \sin\alpha = \sin\gamma \sin A\tag{6}\\\ \gamma, \beta, B: & \sin\beta = \sin\gamma \sin B\tag{7}\\\ A, \beta, \gamma: & \tan\beta = \cos A \tan\gamma\tag{9}\\\ B, \alpha, \gamma: & \tan\alpha = \cos B \tan\gamma\tag{10}\\\ A, B, \alpha: & \cos A = \sin B \cos\alpha\tag{11}\\\ B, A, \beta: & \cos B = \sin A \cos\beta\tag{12} \end{gather} $$

Alexey Borealis

Alexey Borealis

Master of Science in Physics, Professional astrologer (QHC, DMA). About the author