Solution of triangles

Problem of finding unknown lengths and angles of a triangle

Solution of triangles (Latin: solutio triangulorum) is the main trigonometric problem of finding the characteristics of a triangle (angles and lengths of sides), when some of these are known. The triangle can be located on a plane or on a sphere. Applications requiring triangle solutions include geodesy, astronomy, construction, and navigation.

## Solving plane triangles

[edit]

Standard notation for a triangle

A general form triangle has six main characteristics (see picture): three linear (side lengths a, b, c) and three angular (α, β, γ). The classical plane trigonometry problem is to specify three of the six characteristics and determine the other three. A triangle can be uniquely determined in this sense when given any of the following:[1][2]

* Three sides (SSS)
* Two sides and the included angle (SAS, side-angle-side)
* Two sides and an angle not included between them (SSA), if the side length adjacent to the angle is shorter than the other side length.
* A side and the two angles adjacent to it (ASA)
* A side, the angle opposite to it and an angle adjacent to it (AAS).

For all cases in the plane, at least one of the side lengths must be specified. If only the angles are given, the side lengths cannot be determined, because any similar triangle is a solution.

### Trigonomic relations

[edit]

Overview of particular steps and tools used when solving plane triangles

The standard method of solving the problem is to use fundamental relations.

Law of cosines a 2 = b 2 + c 2 − 2 b c cos ⁡ α b 2 = a 2 + c 2 − 2 a c cos ⁡ β c 2 = a 2 + b 2 − 2 a b cos ⁡ γ {\displaystyle {\begin{aligned}a^{2}&=b^{2}+c^{2}-2bc\cos \alpha \\\b^{2}&=a^{2}+c^{2}-2ac\cos \beta \\\c^{2}&=a^{2}+b^{2}-2ab\cos \gamma \end{aligned}}}

Law of sines a sin ⁡ α = b sin ⁡ β = c sin ⁡ γ {\displaystyle {\frac {a}{\sin \alpha }}={\frac {b}{\sin \beta }}={\frac {c}{\sin \gamma }}}
Sum of angles
α + β + γ = 180 ∘ {\displaystyle \alpha +\beta +\gamma =180^{\circ }}
Law of tangents a − b a + b = tan ⁡ 1 2 ( α − β ) tan ⁡ 1 2 ( α + β ) . {\displaystyle {\frac {a-b}{a+b}}={\frac {\tan {\frac {1}{2}}(\alpha -\beta )}{\tan {\tfrac {1}{2}}(\alpha +\beta )}}.}

There are other (sometimes practically useful) universal relations: the law of cotangents and Mollweide's formula.

#### Notes

[edit]

1. To find an unknown angle, the law of cosines is safer than the law of sines. The reason is that the value of sine for the angle of the triangle does not uniquely determine this angle. For example, if sin β = 0.5, the angle β can equal either 30° or 150°. Using the law of cosines avoids this problem: within the interval from 0° to 180° the cosine value unambiguously determines its angle. On the other hand, if the angle is small (or close to 180°), then it is more robust numerically to determine it from its sine than its cosine because the arc-cosine function has a divergent derivative at 1 (or −1).
2. We assume that the relative position of specified characteristics is known. If not, the mirror reflection of the triangle will also be a solution. For example, three side lengths uniquely define either a triangle or its reflection.

### Three sides given (SSS)

[edit]

Three sides given

Let three side lengths a, b, c be specified. To find the angles α, β, the law of cosines can be used:[3] α = arccos ⁡ b 2 + c 2 − a 2 2 b c β = arccos ⁡ a 2 + c 2 − b 2 2 a c . {\displaystyle {\begin{aligned}\alpha &=\arccos {\frac {b^{2}+c^{2}-a^{2}}{2bc}}\\\\[4pt]\beta &=\arccos {\frac {a^{2}+c^{2}-b^{2}}{2ac}}.\end{aligned}}}

Then angle γ = 180° − α − β.

Some sources recommend to find angle β from the law of sines but (as Note 1 above states) there is a risk of confusing an acute angle value with an obtuse one.

Another method of calculating the angles from known sides is to apply the law of cotangents.

Area using Heron's formula:  A = s ( s − a ) ( s − b ) ( s − c ) {\displaystyle A={\sqrt {s(s-a)(s-b)(s-c)}}} where  s = a + b + c 2 {\displaystyle s={\frac {a+b+c}{2}}}

Heron's formula without using the semiperimeter:  A = ( a + b + c ) ( b + c − a ) ( a + c − b ) ( a + b − c ) 4 {\displaystyle A={\frac {\sqrt {(a+b+c)(b+c-a)(a+c-b)(a+b-c)}}{4}}}

### Two sides and the included angle given (SAS)

[edit]

Two sides and the included angle given

Here the lengths of sides a, b and the angle γ between these sides are known. The third side can be determined from the law of cosines:[4] c = a 2 + b 2 − 2 a b cos ⁡ γ . {\displaystyle c={\sqrt {a^{2}+b^{2}-2ab\cos \gamma }}.} Now we use law of cosines to find the second angle:  α = arccos ⁡ b 2 + c 2 − a 2 2 b c . {\displaystyle \alpha =\arccos {\frac {b^{2}+c^{2}-a^{2}}{2bc}}.} Finally, β = 180° − α − γ.

### Two sides and non-included angle given (SSA)

[edit]

Two sides and a non-included angle given

Two solutions for the triangle

This case is not solvable in all cases; a solution is guaranteed to be unique only if the side length adjacent to the angle is shorter than the other side length. Assume that two sides b, c and the angle β are known. The equation for the angle γ can be implied from the law of sines:[5] sin ⁡ γ = c b sin ⁡ β . {\displaystyle \sin \gamma ={\frac {c}{b}}\sin \beta .} We denote further D = ⁠c/b⁠ sin β (the equation's right side). There are four possible cases:

1. If D > 1, no such triangle exists because the side b does not reach line BC. For the same reason a solution does not exist if the angle β ≥ 90° and b ≤ c.
2. If D = 1, a unique solution exists: γ = 90°, i.e., the triangle is right-angled.
3. If D < 1 two alternatives are possible.
1. If b ≥ c, then β ≥ γ (the larger side corresponds to a larger angle). Since no triangle can have two obtuse angles, γ is an acute angle and the solution γ = arcsin D is unique.
2. If b < c, the angle γ may be acute: γ = arcsin D or obtuse: γ′ = 180° − γ. The figure on right shows the point C, the side b and the angle γ as the first solution, and the point C′, side b′ and the angle γ′ as the second solution.

Once γ is obtained, the third angle α = 180° − β − γ.

The third side can then be found from the law of sines:  a = b   sin ⁡ α sin ⁡ β {\displaystyle a=b\ {\frac {\sin \alpha }{\sin \beta }}}

or from the law of cosines:  a = c cos ⁡ β ± b 2 − c 2 sin 2 ⁡ β {\displaystyle a=c\cos \beta \pm {\sqrt {b^{2}-c^{2}\sin ^{2}\beta }}}

### A side and two adjacent angles given (ASA)

[edit]

One side and two adjacent angles given

The known characteristics are the side c and the angles α, β. The third angle γ = 180° − α − β.

Two unknown sides can be calculated from the law of sines:[6] a = c   sin ⁡ α sin ⁡ γ = c   sin ⁡ α sin ⁡ ( α + β ) b = c   sin ⁡ β sin ⁡ γ = c   sin ⁡ β sin ⁡ ( α + β ) {\displaystyle {\begin{aligned}a&=c\ {\frac {\sin \alpha }{\sin \gamma }}=c\ {\frac {\sin \alpha }{\sin(\alpha +\beta )}}\\\\[4pt]b&=c\ {\frac {\sin \beta }{\sin \gamma }}=c\ {\frac {\sin \beta }{\sin(\alpha +\beta )}}\end{aligned}}}

### A side, one adjacent angle and the opposite angle given (AAS)

[edit]

The procedure for solving an AAS triangle is same as that for an ASA triangle: First, find the third angle by using the angle sum property of a triangle, then find the other two sides using the law of sines.

### Other given lengths

[edit]

In many cases, triangles can be solved given three pieces of information some of which are the lengths of the triangle's medians, altitudes, or angle bisectors. Posamentier and Lehmann[7] list the results for the question of solvability using no higher than square roots (i.e., constructibility) for each of the 95 distinct cases; 63 of these are constructible.

## Solving spherical triangles

[edit]

Spherical triangle

The general spherical triangle is fully determined by three of its six characteristics (3 sides and 3 angles). The lengths of the sides a, b, c of a spherical triangle are their central angles, measured in angular units rather than linear units. (On a unit sphere, the angle (in radians) and length around the sphere are numerically the same. On other spheres, the angle (in radians) is equal to the length around the sphere divided by the radius.)

Spherical geometry differs from planar Euclidean geometry, so the solution of spherical triangles is built on different rules. For example, the sum of the three angles α \+ β \+ γ depends on the size of the triangle. In addition, similar triangles cannot be unequal, so the problem of constructing a triangle with specified three angles has a unique solution. The basic relations used to solve a problem are similar to those of the planar case: see Spherical law of cosines and Spherical law of sines.

Among other relationships that may be useful are the half-side formula and Napier's analogies:[8] tan ⁡ 1 2 c cos ⁡ 1 2 ( α − β ) = tan ⁡ 1 2 ( a + b ) cos ⁡ 1 2 ( α + β ) tan ⁡ 1 2 c sin ⁡ 1 2 ( α − β ) = tan ⁡ 1 2 ( a   − b ) sin ⁡ 1 2 ( α + β ) cot ⁡ 1 2 γ   cos ⁡ 1 2 ( a   − b ) = tan ⁡ 1 2 ( α + β ) cos ⁡ 1 2 ( a + b ) cot ⁡ 1 2 γ sin ⁡ 1 2 ( a   − b ) = tan ⁡ 1 2 ( α − β ) sin ⁡ 1 2 ( a + b ) . {\displaystyle {\begin{aligned}\tan {\tfrac {1}{2}}c\,\cos {\tfrac {1}{2}}(\alpha -\beta )&=\tan {\tfrac {1}{2}}(a+\,b)\cos {\tfrac {1}{2}}(\alpha +\beta )\\\\\tan {\tfrac {1}{2}}c\,\sin {\tfrac {1}{2}}(\alpha -\beta )&=\tan {\tfrac {1}{2}}(a\ \\!-\,b)\sin {\tfrac {1}{2}}(\alpha +\beta )\\\\\cot {\tfrac {1}{2}}\gamma \ \\!\cos {\tfrac {1}{2}}(a\ \\!-\,b)&=\tan {\tfrac {1}{2}}(\alpha +\beta )\cos {\tfrac {1}{2}}(a+b)\\\\\cot {\tfrac {1}{2}}\gamma \,\sin {\tfrac {1}{2}}(a\ \\!-\,b)&=\tan {\tfrac {1}{2}}(\alpha -\beta )\sin {\tfrac {1}{2}}(a+b).\end{aligned}}}

Three sides given

### Three sides given (spherical SSS)

[edit]

Known: the sides a, b, c (in angular units). The triangle's angles are computed using the spherical law of cosines:  α = arccos ⁡ cos ⁡ a − cos ⁡ b   cos ⁡ c sin ⁡ b   sin ⁡ c , β = arccos ⁡ cos ⁡ b − cos ⁡ c   cos ⁡ a sin ⁡ c   sin ⁡ a , γ = arccos ⁡ cos ⁡ c − cos ⁡ a   cos ⁡ b sin ⁡ a   sin ⁡ b . {\displaystyle {\begin{aligned}\alpha &=\arccos {\frac {\cos a-\cos b\ \cos c}{\sin b\ \sin c}},\\\\[4pt]\beta &=\arccos {\frac {\cos b-\cos c\ \cos a}{\sin c\ \sin a}},\\\\[4pt]\gamma &=\arccos {\frac {\cos c-\cos a\ \cos b}{\sin a\ \sin b}}.\end{aligned}}}

Two sides and the included angle given

### Two sides and the included angle given (spherical SAS)

[edit]

Known: the sides a, b and the angle γ between them. The side c can be found from the spherical law of cosines:  c = arccos ⁡ ( cos ⁡ a cos ⁡ b + sin ⁡ a sin ⁡ b cos ⁡ γ ) . {\displaystyle c=\arccos \left(\cos a\cos b+\sin a\sin b\cos \gamma \right).}

The angles α, β can be calculated as above, or by using Napier's analogies:

α = arctan ⁡   2 sin ⁡ a tan ⁡ 1 2 γ sin ⁡ ( b + a ) + cot ⁡ 1 2 γ sin ⁡ ( b − a ) , β = arctan ⁡   2 sin ⁡ b tan ⁡ 1 2 γ sin ⁡ ( a + b ) + cot ⁡ 1 2 γ sin ⁡ ( a − b ) . {\displaystyle {\begin{aligned}\alpha &=\arctan \ {\frac {2\sin a}{\tan {\frac {1}{2}}\gamma \,\sin(b+a)+\cot {\frac {1}{2}}\gamma \,\sin(b-a)}},\\\\[4pt]\beta &=\arctan \ {\frac {2\sin b}{\tan {\frac {1}{2}}\gamma \,\sin(a+b)+\cot {\frac {1}{2}}\gamma \,\sin(a-b)}}.\end{aligned}}}

This problem arises in the navigation problem of finding the great circle between two points on the earth specified by their latitude and longitude; in this application, it is important to use formulas which are not susceptible to round-off errors. For this purpose, the following formulas (which may be derived using vector algebra) can be used:  c = arctan ⁡ ( sin ⁡ a cos ⁡ b − cos ⁡ a sin ⁡ b cos ⁡ γ ) 2 + ( sin ⁡ b sin ⁡ γ ) 2 cos ⁡ a cos ⁡ b + sin ⁡ a sin ⁡ b cos ⁡ γ , α = arctan ⁡ sin ⁡ a sin ⁡ γ sin ⁡ b cos ⁡ a − cos ⁡ b sin ⁡ a cos ⁡ γ , β = arctan ⁡ sin ⁡ b sin ⁡ γ sin ⁡ a cos ⁡ b − cos ⁡ a sin ⁡ b cos ⁡ γ , {\displaystyle {\begin{aligned}c&=\arctan {\frac {\sqrt {(\sin a\cos b-\cos a\sin b\cos \gamma )^{2}+(\sin b\sin \gamma )^{2}}}{\cos a\cos b+\sin a\sin b\cos \gamma }},\\\\[4pt]\alpha &=\arctan {\frac {\sin a\sin \gamma }{\sin b\cos a-\cos b\sin a\cos \gamma }},\\\\[4pt]\beta &=\arctan {\frac {\sin b\sin \gamma }{\sin a\cos b-\cos a\sin b\cos \gamma }},\end{aligned}}} where the signs of the numerators and denominators in these expressions should be used to determine the quadrant of the arctangent.

Two sides and a non-included angle given

### Two sides and non-included angle given (spherical SSA)

[edit]

This problem is not solvable in all cases; a solution is guaranteed to be unique only if the side length adjacent to the angle is shorter than the other side length. Known: the sides b, c and the angle β not between them. A solution exists if the following condition holds:  b > arcsin ( sin ⁡ c sin ⁡ β ) . {\displaystyle b>\arcsin \\!{\bigl (}\sin c\,\sin \beta {\bigr )}.} The angle γ can be found from the spherical law of sines:  γ = arcsin ⁡ sin ⁡ c sin ⁡ β sin ⁡ b . {\displaystyle \gamma =\arcsin {\frac {\sin c\,\sin \beta }{\sin b}}.} As for the plane case, if b < c then there are two solutions: γ and 180° - γ.

We can find other characteristics by using Napier's analogies:  a = 2 arctan ⁡ [ tan ⁡ 1 2 ( b − c )   sin ⁡ 1 2 ( β + γ ) sin ⁡ 1 2 ( β − γ ) ] , α = 2 arccot ⁡ [ tan ⁡ 1 2 ( β − γ )   sin ⁡ 1 2 ( b + c ) sin ⁡ 1 2 ( b − c ) ] . {\displaystyle {\begin{aligned}a&=2\arctan \left[\tan {\tfrac {1}{2}}(b-c)\ {\frac {\sin {\tfrac {1}{2}}(\beta +\gamma )}{\sin {\tfrac {1}{2}}(\beta -\gamma )}}\right],\\\\[4pt]\alpha &=2\operatorname {arccot} \left[\tan {\tfrac {1}{2}}(\beta -\gamma )\ {\frac {\sin {\tfrac {1}{2}}(b+c)}{\sin {\tfrac {1}{2}}(b-c)}}\right].\end{aligned}}}

One side and two adjacent angles given

### A side and two adjacent angles given (spherical ASA)

[edit]

Known: the side c and the angles α, β. First we determine the angle γ using the spherical law of cosines:  γ = arccos ( sin ⁡ α sin ⁡ β cos ⁡ c − cos ⁡ α cos ⁡ β ) . {\displaystyle \gamma =\arccos \\!{\bigl (}\sin \alpha \sin \beta \cos c-\cos \alpha \cos \beta {\bigr )}.\,}

We can find the two unknown sides from the spherical law of cosines (using the calculated angle γ):

a = arccos ⁡ cos ⁡ α + cos ⁡ β cos ⁡ γ sin ⁡ β sin ⁡ γ , b = arccos ⁡ cos ⁡ β + cos ⁡ α cos ⁡ γ sin ⁡ α sin ⁡ γ , {\displaystyle {\begin{aligned}a&=\arccos {\frac {\cos \alpha +\cos \beta \cos \gamma }{\sin \beta \sin \gamma }},\\\\[4pt]b&=\arccos {\frac {\cos \beta +\cos \alpha \cos \gamma }{\sin \alpha \sin \gamma }},\end{aligned}}}

or by using Napier's analogies:  a = arctan ⁡ 2 sin ⁡ α cot ⁡ 1 2 c sin ⁡ ( β + α ) + tan ⁡ 1 2 c sin ⁡ ( β − α ) , b = arctan ⁡ 2 sin ⁡ β cot ⁡ 1 2 c sin ⁡ ( α + β ) + tan ⁡ 1 2 c sin ⁡ ( α − β ) . {\displaystyle {\begin{aligned}a&=\arctan {\frac {2\sin \alpha }{\cot {\frac {1}{2}}c\,\sin(\beta +\alpha )+\tan {\frac {1}{2}}c\,\sin(\beta -\alpha )}},\\\\[4pt]b&=\arctan {\frac {2\sin \beta }{\cot {\frac {1}{2}}c\,\sin(\alpha +\beta )+\tan {\frac {1}{2}}c\,\sin(\alpha -\beta )}}.\end{aligned}}}

One side, one adjacent angle and the opposite angle given

### A side, one adjacent angle and the opposite angle given (spherical AAS)

[edit]

Known: the side a and the angles α, β. The side b can be found from the spherical law of sines:  b = arcsin ⁡ sin ⁡ a sin ⁡ β sin ⁡ α . {\displaystyle b=\arcsin {\frac {\sin a\,\sin \beta }{\sin \alpha }}.}

If the angle for the side a is acute and α > β, another solution exists:  b = π − arcsin ⁡ sin ⁡ a sin ⁡ β sin ⁡ α . {\displaystyle b=\pi -\arcsin {\frac {\sin a\,\sin \beta }{\sin \alpha }}.}

We can find other characteristics by using Napier's analogies:  c = 2 arctan ⁡ [ tan ⁡ 1 2 ( a − b )   sin ⁡ 1 2 ( α + β ) sin ⁡ 1 2 ( α − β ) ] , γ = 2 arccot ⁡ [ tan ⁡ 1 2 ( α − β )   sin ⁡ 1 2 ( a + b ) sin ⁡ 1 2 ( a − b ) ] . {\displaystyle {\begin{aligned}c&=2\arctan \left[\tan {\tfrac {1}{2}}(a-b)\ {\frac {\sin {\tfrac {1}{2}}(\alpha +\beta )}{\sin {\frac {1}{2}}(\alpha -\beta )}}\right],\\\\[4pt]\gamma &=2\operatorname {arccot} \left[\tan {\tfrac {1}{2}}(\alpha -\beta )\ {\frac {\sin {\tfrac {1}{2}}(a+b)}{\sin {\frac {1}{2}}(a-b)}}\right].\end{aligned}}}

Three angles given

### Three angles given (spherical AAA)

[edit]

Known: the angles α, β, γ. From the spherical law of cosines we infer:  a = arccos ⁡ cos ⁡ α + cos ⁡ β cos ⁡ γ sin ⁡ β sin ⁡ γ , b = arccos ⁡ cos ⁡ β + cos ⁡ γ cos ⁡ α sin ⁡ γ sin ⁡ α , c = arccos ⁡ cos ⁡ γ + cos ⁡ α cos ⁡ β sin ⁡ α sin ⁡ β . {\displaystyle {\begin{aligned}a&=\arccos {\frac {\cos \alpha +\cos \beta \cos \gamma }{\sin \beta \sin \gamma }},\\\\[4pt]b&=\arccos {\frac {\cos \beta +\cos \gamma \cos \alpha }{\sin \gamma \sin \alpha }},\\\\[4pt]c&=\arccos {\frac {\cos \gamma +\cos \alpha \cos \beta }{\sin \alpha \sin \beta }}.\end{aligned}}}

### Solving right-angled spherical triangles

[edit]

The above algorithms become much simpler if one of the angles of a triangle (for example, the angle C) is the right angle. Such a spherical triangle is fully defined by its two elements, and the other three can be calculated using Napier's Pentagon or the following relations.

sin ⁡ a = sin ⁡ c ⋅ sin ⁡ A {\displaystyle \sin a=\sin c\cdot \sin A} (from the spherical law of sines)
tan ⁡ a = sin ⁡ b ⋅ tan ⁡ A {\displaystyle \tan a=\sin b\cdot \tan A}
cos ⁡ c = cos ⁡ a ⋅ cos ⁡ b {\displaystyle \cos c=\cos a\cdot \cos b} (from the spherical law of cosines)
tan ⁡ b = tan ⁡ c ⋅ cos ⁡ A {\displaystyle \tan b=\tan c\cdot \cos A}
cos ⁡ A = cos ⁡ a ⋅ sin ⁡ B {\displaystyle \cos A=\cos a\cdot \sin B} (also from the spherical law of cosines)
cos ⁡ c = cot ⁡ A ⋅ cot ⁡ B {\displaystyle \cos c=\cot A\cdot \cot B}

## Some applications

[edit]

### Triangulation

[edit]

Distance measurement by triangulation

Main article: Triangulation

If one wants to measure the distance d from shore to a remote ship via triangulation, one marks on the shore two points with known distance l between them (the baseline). Let α, β be the angles between the baseline and the direction to the ship.

From the formulae above (ASA case, assuming planar geometry) one can compute the distance as the triangle height:  d = sin ⁡ α sin ⁡ β sin ⁡ ( α + β ) ℓ = tan ⁡ α tan ⁡ β tan ⁡ α + tan ⁡ β ℓ . {\displaystyle d={\frac {\sin \alpha \,\sin \beta }{\sin(\alpha +\beta )}}\ell ={\frac {\tan \alpha \,\tan \beta }{\tan \alpha +\tan \beta }}\ell .}

For the spherical case, one can first compute the length of side from the point at α to the ship (i.e. the side opposite to β) via the ASA formula  tan ⁡ b = 2 sin ⁡ β cot ⁡ 1 2 ℓ sin ⁡ ( α + β ) + tan ⁡ 1 2 ℓ sin ⁡ ( α − β ) , {\displaystyle \tan b={\frac {2\sin \beta }{\cot {\frac {1}{2}}\ell \,\sin(\alpha +\beta )+\tan {\frac {1}{2}}\ell \,\sin(\alpha -\beta )}},} and insert this into the AAS formula for the right subtriangle that contains the angle α and the sides b and d:  sin ⁡ d = sin ⁡ b sin ⁡ α = tan ⁡ b 1 + tan 2 ⁡ b sin ⁡ α . {\displaystyle \sin d=\sin b\sin \alpha ={\frac {\tan b}{\sqrt {1+\tan ^{2}b}}}\sin \alpha .} (The planar formula is actually the first term of the Taylor expansion of d of the spherical solution in powers of ℓ.)

This method is used in cabotage. The angles α, β are defined by observation of familiar landmarks from the ship.

How to measure a mountain's height

As another example, if one wants to measure the height h of a mountain or a high building, the angles α, β from two ground points to the top are specified. Let ℓ be the distance between these points. From the same ASA case formulas we obtain:  h = sin ⁡ α sin ⁡ β sin ⁡ ( β − α ) ℓ = tan ⁡ α tan ⁡ β tan ⁡ β − tan ⁡ α ℓ . {\displaystyle h={\frac {\sin \alpha \,\sin \beta }{\sin(\beta -\alpha )}}\ell ={\frac {\tan \alpha \,\tan \beta }{\tan \beta -\tan \alpha }}\ell .}

### The distance between two points on the globe

[edit]

Main article: Great-circle distance

To calculate the distance between two points on the globe,

Point A: latitude λA, longitude LA, and
Point B: latitude λB, longitude LB

we consider the spherical triangle ABC, where C is the North Pole. Some characteristics are:  a = 90 ∘ − λ B , b = 90 ∘ − λ A , γ = L A − L B . {\displaystyle {\begin{aligned}a&=90^{\circ }-\lambda _{B},\\\b&=90^{\circ }-\lambda _{A},\\\\\gamma &=L_{A}-L_{B}.\end{aligned}}} If two sides and the included angle given, we obtain from the formulas  A B ¯ = R arccos [ sin ⁡ λ A sin ⁡ λ B + cos ⁡ λ A cos ⁡ λ B cos ⁡ ( L A − L B ) ] . {\displaystyle {\overline {AB}}=R\arccos \\!{\Bigr [}\sin \lambda _{A}\sin \lambda _{B}+\cos \lambda _{A}\cos \lambda _{B}\cos(L_{A}-L_{B}){\Bigr ]}.} Here R is the Earth's radius.

## See also

[edit]

* Congruence
* Hansen's problem
* Hinge theorem
* Lénárt sphere
* Snellius–Pothenot problem

## References

[edit]

1. ^ "Solving Triangles". Maths is Fun. Retrieved 4 April 2012.
2. ^ "Solving Triangles". web.horacemann.org. Archived from the original on 7 January 2014. Retrieved 4 April 2012.
3. ^ "Solving SSS Triangles". Maths is Fun. Retrieved 13 January 2015.
4. ^ "Solving SAS Triangles". Maths is Fun. Retrieved 13 January 2015.
5. ^ "Solving SSA Triangles". Maths is Fun. Retrieved 9 March 2013.
6. ^ "Solving ASA Triangles". Maths is Fun. Retrieved 13 January 2015.
7. ^ Alfred S. Posamentier and Ingmar Lehmann, The Secrets of Triangles, Prometheus Books, 2012: pp. 201–203.
8. ^ Napier's Analogies at MathWorld

* Euclid (1956) [1925]. Sir Thomas Heath (ed.). The Thirteen Books of the Elements. Volume I. Translated with introduction and commentary. Dover. ISBN 0-486-60088-2. `{{cite book}}`: ISBN / Date incompatibility (help)

## External links

[edit]

* Trigonometric Delights, by Eli Maor, Princeton University Press, 1998. Ebook version, in PDF format, full text presented.
* Trigonometry by Alfred Monroe Kenyon and Louis Ingold, The Macmillan Company, 1914. In images, full text presented. Google book.
* Spherical trigonometry on Math World.
* Intro to Spherical Trig. Includes discussion of The Napier circle and Napier's rules
* Spherical Trigonometry — for the use of colleges and schools by I. Todhunter, M.A., F.R.S. Historical Math Monograph posted by Cornell University Library.
* Triangulator – Triangle solver. Solve any plane triangle problem with the minimum of input data. Drawing of the solved triangle.
* TriSph – Free software to solve the spherical triangles, configurable to different practical applications and configured for gnomonic.
* Spherical Triangle Calculator – Solves spherical triangles.
* TrianCal – Triangles solver by Jesus S.