Solution of triangles

From testwiki
Revision as of 10:43, 25 October 2024 by imported>Monkbot (Task 20: replace {lang-??} templates with {langx|??} ‹See Tfd› (Replaced 1);)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description

Solution of triangles (Template:Langx) 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

Error creating thumbnail:
Template:Center

A general form triangle has six main characteristics (see picture): three linear (side lengths Template:Mvar) and three angular (Template:Mvar). 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

File:Beliebiges Dreieck cen.png
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 cosinesa2=b2+c22bccosαb2=a2+c22accosβc2=a2+b22abcosγ
Law of sinesasinα=bsinβ=csinγ
Sum of angles
α+β+γ=180
Law of tangentsaba+b=tan12(αβ)tan12(α+β).

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

Notes

  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 Template:Math, the angle Template:Mvar 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)

File:Resolve triangle with a b c.png
Template:Center

Let three side lengths Template:Mvar be specified. To find the angles Template:Mvar, the law of cosines can be used:[3] α=arccosb2+c2a22bcβ=arccosa2+c2b22ac.

Then angle Template:Math.

Some sources recommend to find angle Template:Mvar 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(sa)(sb)(sc) where s=a+b+c2

Heron's formula without using the semiperimeter: A=(a+b+c)(b+ca)(a+cb)(a+bc)4

Two sides and the included angle given (SAS)

Error creating thumbnail:
Template:Center

Here the lengths of sides Template:Mvar and the angle Template:Mvar between these sides are known. The third side can be determined from the law of cosines:[4] c=a2+b22abcosγ. Now we use law of cosines to find the second angle: α=arccosb2+c2a22bc. Finally, Template:Math.

Two sides and non-included angle given (SSA)

File:Resolve triangle with b c beta.png
Template:Center
Template:Center

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 Template:Mvar and the angle Template:Mvar are known. The equation for the angle Template:Mvar can be implied from the law of sines:[5] sinγ=cbsinβ. We denote further Template:Math (the equation's right side). There are four possible cases:

  1. If Template:Math, no such triangle exists because the side Template:Mvar does not reach line Template:Mvar. For the same reason a solution does not exist if the angle Template:Math and Template:Math.
  2. If Template:Math, a unique solution exists: Template:Math, i.e., the triangle is right-angled.
  3. If Template:Math two alternatives are possible.
    1. If Template:Math, then Template:Math (the larger side corresponds to a larger angle). Since no triangle can have two obtuse angles, Template:Math is an acute angle and the solution Template:Math is unique.
    2. If Template:Math, the angle Template:Math may be acute: Template:Math or obtuse: Template:Math. The figure on right shows the point Template:Math, the side Template:Math and the angle Template:Math as the first solution, and the point Template:Math, side Template:Math and the angle Template:Math as the second solution.

Once Template:Math is obtained, the third angle Template:Math.

The third side can then be found from the law of sines: a=b sinαsinβ

or from the law of cosines: a=ccosβ±b2c2sin2β

A side and two adjacent angles given (ASA)

Template:Center

The known characteristics are the side Template:Mvar and the angles Template:Mvar. The third angle Template:Math.

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(α+β)

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

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

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

Template:Center

The general spherical triangle is fully determined by three of its six characteristics (3 sides and 3 angles). The lengths of the sides Template:Mvar 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 Template:Math 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] tan12ccos12(αβ)=tan12(a+b)cos12(α+β)tan12csin12(αβ)=tan12(a b)sin12(α+β)cot12γ cos12(a b)=tan12(α+β)cos12(a+b)cot12γsin12(a b)=tan12(αβ)sin12(a+b).

File:Solve spherical triangle with a b c.png
Template:Center

Three sides given (spherical SSS)

Known: the sides Template:Math (in angular units). The triangle's angles are computed using the spherical law of cosines: α=arccoscosacosb coscsinb sinc,β=arccoscosbcosc cosasinc sina,γ=arccoscosccosa cosbsina sinb.

Template:Clear

Template:Center

Two sides and the included angle given (spherical SAS)

Known: the sides Template:Mvar and the angle Template:Mvar between them. The side Template:Mvar can be found from the spherical law of cosines: c=arccos(cosacosb+sinasinbcosγ).

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

α=arctan 2sinatan12γsin(b+a)+cot12γsin(ba),β=arctan 2sinbtan12γsin(a+b)+cot12γsin(ab).

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(sinacosbcosasinbcosγ)2+(sinbsinγ)2cosacosb+sinasinbcosγ,α=arctansinasinγsinbcosacosbsinacosγ,β=arctansinbsinγsinacosbcosasinbcosγ, where the signs of the numerators and denominators in these expressions should be used to determine the quadrant of the arctangent.

Template:Clear

File:Solve spherical triangle with b c beta.png
Template:Center

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

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 Template:Mvar and the angle Template:Mvar not between them. A solution exists if the following condition holds: b>arcsin(sincsinβ). The angle Template:Mvar can be found from the spherical law of sines: γ=arcsinsincsinβsinb. As for the plane case, if Template:Math then there are two solutions: Template:Mvar and Template:Math.

We can find other characteristics by using Napier's analogies: a=2arctan[tan12(bc) sin12(β+γ)sin12(βγ)],α=2arccot[tan12(βγ) sin12(b+c)sin12(bc)].

File:Solve spherical triangle with c alpha beta.png
Template:Center

A side and two adjacent angles given (spherical ASA)

Known: the side Template:Mvar and the angles Template:Mvar. First we determine the angle Template:Mvar using the spherical law of cosines: γ=arccos(sinαsinβcosccosαcosβ).

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

a=arccoscosα+cosβcosγsinβsinγ,b=arccoscosβ+cosαcosγsinαsinγ,

or by using Napier's analogies: a=arctan2sinαcot12csin(β+α)+tan12csin(βα),b=arctan2sinβcot12csin(α+β)+tan12csin(αβ).

Template:Clear

File:Solve spherical triangle with a alpha beta.png
Template:Center

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

Known: the side Template:Mvar and the angles Template:Mvar. The side Template:Mvar can be found from the spherical law of sines: b=arcsinsinasinβsinα.

If the angle for the side Template:Math is acute and Template:Math, another solution exists: b=πarcsinsinasinβsinα.

We can find other characteristics by using Napier's analogies: c=2arctan[tan12(ab) sin12(α+β)sin12(αβ)],γ=2arccot[tan12(αβ) sin12(a+b)sin12(ab)].

Template:Clear

Error creating thumbnail:
Template:Center

Three angles given (spherical AAA)

Known: the angles Template:Mvar. From the spherical law of cosines we infer: a=arccoscosα+cosβcosγsinβsinγ,b=arccoscosβ+cosγcosαsinγsinα,c=arccoscosγ+cosαcosβsinαsinβ.

Solving right-angled spherical triangles

The above algorithms become much simpler if one of the angles of a triangle (for example, the angle Template:Mvar) 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.

sina=sincsinA (from the spherical law of sines)
tana=sinbtanA
cosc=cosacosb (from the spherical law of cosines)
tanb=tanccosA
cosA=cosasinB (also from the spherical law of cosines)
cosc=cotAcotB

Some applications

Triangulation

Template:Center

Template:Main If one wants to measure the distance Template:Mvar from shore to a remote ship via triangulation, one marks on the shore two points with known distance Template:Mvar between them (the baseline). Let Template:Mvar 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β.

For the spherical case, one can first compute the length of side from the point at Template:Mvar to the ship (i.e. the side opposite to Template:Mvar) via the ASA formula tanb=2sinβcot12sin(α+β)+tan12sin(αβ), and insert this into the AAS formula for the right subtriangle that contains the angle Template:Mvar and the sides Template:Mvar and Template:Mvar: sind=sinbsinα=tanb1+tan2bsinα. (The planar formula is actually the first term of the Taylor expansion of Template:Mvar of the spherical solution in powers of Template:Mvar.)

This method is used in cabotage. The angles Template:Mvar are defined by observation of familiar landmarks from the ship. Template:Clear

Error creating thumbnail:
Template:Center

As another example, if one wants to measure the height Template:Mvar of a mountain or a high building, the angles Template:Mvar from two ground points to the top are specified. Let Template:Math be the distance between these points. From the same ASA case formulas we obtain: h=sinαsinβsin(βα)=tanαtanβtanβtanα.

The distance between two points on the globe

Template:Main

Error creating thumbnail:

To calculate the distance between two points on the globe,

Point A: latitude Template:Mvar, longitude Template:Mvar, and
Point B: latitude Template:Mvar, longitude Template:Mvar

we consider the spherical triangle Template:Mvar, where Template:Mvar is the North Pole. Some characteristics are: a=90λB,b=90λA,γ=LALB. If two sides and the included angle given, we obtain from the formulas AB=Rarccos[sinλAsinλB+cosλAcosλBcos(LALB)]. Here Template:Mvar is the Earth's radius.

See also

References

Template:Reflist

de:Dreieck#Berechnung eines beliebigen Dreiecks

  1. Template:Cite web
  2. Template:Cite web
  3. Template:Cite web
  4. Template:Cite web
  5. Template:Cite web
  6. Template:Cite web
  7. Alfred S. Posamentier and Ingmar Lehmann, The Secrets of Triangles, Prometheus Books, 2012: pp. 201–203.
  8. Napier's Analogies at MathWorld