Solution of triangles
Solution of triangles (Latin: solutio triangulorum) is the historical term for the solving of the main trigonometric problem: to find the characteristics of the triangle (three angles, the lengths of the three sides etc) when some (but not all) of this characteristics are given. The triangle can be located on a plane or on a sphere. This problem often occurs in various trigonometric applications, such as geodesy, astronomy, construction, navigation etc.
Solving plane triangles 
In a general form triangle, there are 6 main characteristics (see picture): 3 linear (side lengths ) and 3 angular (). The classical plane trigonometry problem is to specify 3 of the 6 characteristics and to determine the three others. Obviously, if we know only 2 or 3 angles, solution is undefined, because any triangle similar to a solution is the solution also, so we assume that at least one of the known values is linear.
- Three sides (SSS)
- Two sides and the included angle (SAS)
- Two sides and an angle not included between them (SSA)
- A side and the two angles adjacent to it (ASA)
- A side, the angle opposite to it and an angle adjacent to it (AAS).
Main theorems 
The standard method of solving the problem is to use fundamental relations.
- To find an unknown angle, law of cosines is safer than 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 , the angle can be equal either or . Using the law of cosines avoids this problem: within the interval from to the cosine value determines its angle unambiguously.
- We assume that the relative position of specified characteristics is known. If not, the mirror reflection of the triangle will be the solution also. For example, three side lengths uniquely define either a triangle or its reflection.
Three sides given (SSS) 
Then angle .
Some sources recommend to find angle from law of sines but (as Note 1 above states) there is a risk to confuse acute angle value with obtuse one.
Another method of calculating the angles from known sides is to apply the law of cotangents.
Two sides and the included angle given (SAS) 
Let we know the length of sides and the angle between this sides. The third side can be determined from the law of cosines:
Now we use law of cosines to find the second angle:
Two sides and non-included angle given (SSA) 
We denote further (equation's right side). There are 4 possible cases.
- If , no such triangle exists (the side «not reaches» to the line BC).
- If , unique solution exists: , i. e. the triangle is right-angled.
- If two alternatives are possible.
- If , the angle may be acute: or obtuse: . The picture on right shows the point , the side and the angle as the first solution, and the point , side and the angle as the second solution.
- If then (the larger side corresponds to a larger angle). Since no triangle can have two obtuse angles, is acute angle and the solution is unique.
The third angle . The third side can be found from law of sines:
A side and two adjacent angles given (ASA) 
Known characteristics are the side and the angles . The third angle
Two unknown side can be calculated from the law of sines:
A side, one adjacent angle and the opposite angle given (AAS) 
The procedure for solving an AAS triangle is same as that of 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.
Solving spherical triangles 
General form spherical triangle is fully determined by three of its six characteristics (3 sides and 3 angles). Note that the sides of a spherical triangle are usually measured rather by angular units than by linear, according to corresponding central angles.
Solution of triangles for non-Euclidean spherical geometry has some differences from the plane case. For example, the sum of the three angles depends on the triangle. In addition, there are no unequal similar triangles, and so the problem of constructing a triangle with specified three angles has a unique solution. Basic relations used to solve a problem are like to the planar case: see Law of cosines (spherical) and Law of sines (spherical).
Three sides given 
Known: the sides (in angular units). Triangle angles are defined from spherical law of cosines:
Two sides and the included angle given 
Known: the sides and the angle among it. The side can be found from the law of cosines:
The angles can be calculated as above, or by using Napier's analogies:
Two sides and non-included angle given 
Known: the sides and the angle not among it. Solution exists if the following condition takes place:
The angle can be found from the Law of sines (spherical):
As for the plane case, if then there are two solutions: and . Other characteristics we can find by using Napier's analogies:
A side and two adjacent angles given 
Known: the side and the angles . At first we determine the angle using the law of cosines:
Two unknown sides we can find from the law of cosines (using the calculated angle ):
or by using Napier's analogies:
A side, one adjacent angle and the opposite angle given 
Known: the side and the angles . The side can be found from the law of sines:
If the angle for the side is acute and , another solution exists:
Other characteristics we can find by using Napier's analogies:
Three angles given 
Known: the angles . From the law of cosines we infer:
Solving right-angled spherical triangles 
The above algorithms become much simpler if one of the angles of a triangle (for example, the angle ) is the right angle. Such spherical triangle is fully defined by its two elements, the other three can be calculated using Napier's Pentagon or the following relations.
- (from the Law of sines (spherical))
- (from the law of cosines (spherical))
- (also from the law of cosines)
Some applications 
Suppose you want to measure the distance from shore to remote ship. You must mark on the shore two points with known distance between them (base line). Let are the angles between base line and the direction to ship.
From the formulas above (ASA case) one can define the length of the triangle height:
This method is used in cabotage. The angles are defined by observations familiar landmarks from the ship.
Another example: you want to measure the height of a mountain or a high building. The angles from two ground points to the top are specified. Let be the distance between tis points. From the same ASA case formulas we obtain:
The distance between two points on the globe 
That's how to calculate the distance between two points on the globe.
- Point A: latitude longitude
- Point B: latitude longitude
We consider the spherical triangle, where is the north Pole. Some characteristics we know:
It's the case: Two sides and the included angle given. From its formulas we obtain:
Here is the Earth radius.
See also 
- "Solving Triangles". Maths is Fun. Retrieved 4 April 2012.
- "Solving Triangles". web.horacemann.org. Retrieved 4 April 2012.
- "Solving SSS Triangles". Maths is Fun. Retrieved 23 Jule 2012.
- "Solving SAS Triangles". Maths is Fun. Retrieved 24 Jule 2012.
- "Solving SSA Triangles". Maths is Fun. Retrieved 9 March 2013.
- "Solving ASA Triangles". Maths is Fun. Retrieved 24 Jule 2012.
- Napier's Analogies at MathWorld
- Euclid (1956) . In Sir Thomas Heath. The Thirteen Books of the Elements. Volume I. Translated with introduction and commentary. Dover. ISBN 0-486-60088-2.
- 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.
- 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 triangle problem with the minimum of input data. Drawing of the solved triangle.