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.
Consider a right-angled triangle on a sphere with sides α, β, and γ, as well as interior angles A, B, and C.
How will its sides and angles be related to each other?
Rotated Coordinate Systems
First, we introduce a cartesian vectorv in XYZ coordinate system.
From the conversion equation (1) it follows that v has coordinates
v=x=Rcosβy=0z=Rsinβ
Now, let’s use the rotation matrix to rotate XYZ by angle α along XY and express this vector in X′Y′Z′ axis. As a result, we have the following:
v=RcosαcosβX′−RsinαcosβY′+RsinβZ′
But on the other hand, the same x′ component of the vector v is just a projection of that vector to the X′-axis in the γ-angle plane.
x′=Rcosγ
It gives us the first equation:
cosγ=cosαcosβ(1)
Now we move to the next step and introduce a new coordinate system X′′Y′′Z′′, which is X′Y′Z′, rotated by angle −B (minus B) in Y′Z′ plane.
If we apply rotation matrix to X′Y′Z′ coordinate system, we will have a z′′-component of the vector v to be equal to
z′′=sinBy′+cosBz′=−RsinBsinαcosβ+RcosBsinβ
On the other hand, z′′-component of vector v is equal to zero. It means that
sinα=tanBtanβ(2)
The exact ratio applies to β angle:
sinβ=tanAtanα(3)
Other Equations
We have set the main equations for spherical triangles:
⎩⎨⎧cosγ=cosαcosβsinα=tanβ/tanBsinβ=tanα/tanA
All the rest is just a consequence of these three equations.