Heron's formula

From testwiki
Jump to navigation Jump to search

Template:Short description Template:About

A triangle with sides a, b, and c

In geometry, Heron's formula (or Hero's formula) gives the area of a triangle in terms of the three side lengths Template:Tmath Template:Tmath Template:Tmath Letting Template:Tmath be the semiperimeter of the triangle, s=12(a+b+c), the area Template:Tmath is[1]

A=s(sa)(sb)(sc).

It is named after first-century engineer Heron of Alexandria (or Hero) who proved it in his work Metrica, though it was probably known centuries earlier.

Example

Let Template:Tmath be the triangle with sides Template:Tmath, Template:Tmath, and Template:Tmath. This triangle's semiperimeter is s=12(a+b+c)=12(4+13+15)=16 therefore Template:Tmath, Template:Tmath, Template:Tmath, and the area is A=s(sa)(sb)(sc)=161231)=24.

In this example, the triangle's side lengths and area are integers, making it a Heronian triangle. However, Heron's formula works equally well when the side lengths are real numbers. As long as they obey the strict triangle inequality, they define a triangle in the Euclidean plane whose area is a positive real number.

Alternate expressions

Heron's formula can also be written in terms of just the side lengths instead of using the semiperimeter, in several ways,

A=14(a+b+c)(a+b+c)(ab+c)(a+bc)=142(a2b2+a2c2+b2c2)(a4+b4+c4)=14(a2+b2+c2)22(a4+b4+c4)=144(a2b2+a2c2+b2c2)(a2+b2+c2)2=144a2b2(a2+b2c2)2.

After expansion, the expression under the square root is a quadratic polynomial of the squared side lengths Template:Tmath, Template:Tmath, Template:Tmath.

The same relation can be expressed using the Cayley–Menger determinant,[3]

16A2=|0a2b21a20c21b2c2011110|.

History

The formula is credited to Heron (or Hero) of Alexandria (Template:Fl. 60 AD),[4] and a proof can be found in his book Metrica. Mathematical historian Thomas Heath suggested that Archimedes knew the formula over two centuries earlier,[5] and since Metrica is a collection of the mathematical knowledge available in the ancient world, it is possible that the formula predates the reference given in that work.[6]

A formula equivalent to Heron's was discovered by Chinese mathematician Qin Jiushao:

A=12a2c2(a2+c2b22)2,

published in Mathematical Treatise in Nine Sections (Qin Jiushao, 1247).[7]

Proofs

There are many ways to prove Heron's formula, for example using trigonometry as below, or the incenter and one excircle of the triangle,[8] or as a special case of De Gua's theorem (for the particular case of acute triangles),[9] or as a special case of Brahmagupta's formula (for the case of a degenerate cyclic quadrilateral).

Trigonometric proof using the law of cosines

A modern proof, which uses algebra and is quite different from the one provided by Heron, follows.[10] Let Template:Tmath Template:Tmath Template:Tmath be the sides of the triangle and Template:Tmath Template:Tmath Template:Tmath the angles opposite those sides. Applying the law of cosines we get

cosγ=a2+b2c22ab

A triangle with sides Template:Mvar, Template:Mvar and Template:Mvar

From this proof, we get the algebraic statement that

sinγ=1cos2γ=4a2b2(a2+b2c2)22ab.

The altitude of the triangle on base Template:Tmath has length Template:Tmath, and it follows

A=12(base)(altitude)=12absinγ=ab4ab4a2b2(a2+b2c2)2=14a4b4c4+2a2b2+2a2c2+2b2c2=14(a+b+c)(a+b+c)(ab+c)(a+bc)=(a+b+c2)(a+b+c2)(ab+c2)(a+bc2)=s(sa)(sb)(sc).

Algebraic proof using the Pythagorean theorem

Triangle with altitude Template:Mvar cutting base Template:Mvar into Template:Math

The following proof is very similar to one given by Raifaizen.[11] By the Pythagorean theorem we have b2=h2+d2 and a2=h2+(cd)2 according to the figure at the right. Subtracting these yields a2b2=c22cd. This equation allows us to express Template:Tmath in terms of the sides of the triangle: d=a2+b2+c22c. For the height of the triangle we have that h2=b2d2. By replacing Template:Tmath with the formula given above and applying the difference of squares identity we get h2=b2(a2+b2+c22c)2=(2bca2+b2+c2)(2bc+a2b2c2)4c2=((b+c)2a2)(a2(bc)2)4c2=(b+ca)(b+c+a)(a+bc)(ab+c)4c2=2(sa)2s2(sc)2(sb)4c2=4s(sa)(sb)(sc)c2.

We now apply this result to the formula that calculates the area of a triangle from its height: A=ch2=c244s(sa)(sb)(sc)c2=s(sa)(sb)(sc).

Trigonometric proof using the law of cotangents

Geometrical significance of Template:Math, Template:Math, and Template:Math. See the law of cotangents for the reasoning behind this.

If Template:Tmath is the radius of the incircle of the triangle, then the triangle can be broken into three triangles of equal altitude Template:Tmath and bases Template:Tmath Template:Tmath and Template:Tmath Their combined area is A=12ar+12br+12cr=rs, where s=12(a+b+c) is the semiperimeter.

The triangle can alternately be broken into six triangles (in congruent pairs) of altitude Template:Tmath and bases Template:Tmath Template:Tmath and Template:Tmath of combined area (see law of cotangents) A=r(sa)+r(sb)+r(sc)=r2(sar+sbr+scr)=r2(cotα2+cotβ2+cotγ2)=r2(cotα2cotβ2cotγ2)=r2(sarsbrscr)=(sa)(sb)(sc)r.

The middle step above is cotα2+cotβ2+cotγ2=cotα2cotβ2cotγ2, the triple cotangent identity, which applies because the sum of half-angles is α2+β2+γ2=π2.

Combining the two, we get A2=s(sa)(sb)(sc), from which the result follows.

Numerical stability

Heron's formula as given above is numerically unstable for triangles with a very small angle when using floating-point arithmetic. A stable alternative involves arranging the lengths of the sides so that abc and computing[12][13] A=14(a+(b+c))(c(ab))(c+(ab))(a+(bc)). The extra brackets indicate the order of operations required to achieve numerical stability in the evaluation.

Similar triangle-area formulae

Three other formulae for the area of a general triangle have a similar structure as Heron's formula, expressed in terms of different variables.

First, if Template:Tmath Template:Tmath and Template:Tmath are the medians from sides Template:Tmath Template:Tmath and Template:Tmath respectively, and their semi-sum is σ=12(ma+mb+mc), then[14] A=43σ(σma)(σmb)(σmc).

Next, if Template:Tmath, Template:Tmath, and Template:Tmath are the altitudes from sides Template:Tmath Template:Tmath and Template:Tmath respectively, and semi-sum of their reciprocals is H=12(ha1+hb1+hc1), then[15] A1=4H(Hha1)(Hhb1)(Hhc1).

Finally, if Template:Tmath Template:Tmath and Template:Tmath are the three angle measures of the triangle, and the semi-sum of their sines is S=12(sinα+sinβ+sinγ), then[16][17] A=D2S(Ssinα)(Ssinβ)(Ssinγ)=12D2sinαsinβsinγ,

where Template:Tmath is the diameter of the circumcircle, D=a/sinα=b/sinβ=c/sinγ. This last formula coincides with the standard Heron formula when the circumcircle has unit diameter.

Generalizations

Cyclic Quadrilateral

Heron's formula is a special case of Brahmagupta's formula for the area of a cyclic quadrilateral. Heron's formula and Brahmagupta's formula are both special cases of Bretschneider's formula for the area of a quadrilateral. Heron's formula can be obtained from Brahmagupta's formula or Bretschneider's formula by setting one of the sides of the quadrilateral to zero.

Brahmagupta's formula gives the area Template:Tmath of a cyclic quadrilateral whose sides have lengths Template:Tmath Template:Tmath Template:Tmath Template:Tmath as

K=(sa)(sb)(sc)(sd)

where s=12(a+b+c+d) is the semiperimeter.

Heron's formula is also a special case of the formula for the area of a trapezoid or trapezium based only on its sides. Heron's formula is obtained by setting the smaller parallel side to zero.

Expressing Heron's formula with a Cayley–Menger determinant in terms of the squares of the distances between the three given vertices, A=14|0a2b21a20c21b2c2011110| illustrates its similarity to Tartaglia's formula for the volume of a three-simplex.

Another generalization of Heron's formula to pentagons and hexagons inscribed in a circle was discovered by David P. Robbins.[18]

Degenerate and imaginary triangles

If one of three given lengths is equal to the sum of the other two, the three sides determine a degenerate triangle, a line segment with zero area. In this case, the semiperimeter will equal the longest side, causing Heron's formula to equal zero.

If one of three given lengths is greater than the sum of the other two, then they violate the triangle inequality and do not describe the sides of a Euclidean triangle. In this case, Heron's formula gives an imaginary result. For example if Template:Tmath and Template:Tmath, then Template:Tmath. This can be interpreted using a triangle in the complex coordinate plane Template:Tmath, where "area" can be a complex-valued quantity, or as a triangle lying in a pseudo-Euclidean plane with one space-like dimension and one time-like dimension.[19]

Volume of a tetrahedron

If Template:Tmath Template:Tmath Template:Tmath Template:Tmath Template:Tmath Template:Tmath are lengths of edges of the tetrahedron (first three form a triangle; Template:Tmath opposite to Template:Tmath and so on), then[20] volume=(a+b+c+d)(ab+c+d)(a+bc+d)(a+b+cd)192uvw where a=xYZb=yZXc=zXYd=xyzX=(wU+v)(U+v+w)x=(Uv+w)(vw+U)Y=(uV+w)(V+w+u)y=(Vw+u)(wu+V)Z=(vW+u)(W+u+v)z=(Wu+v)(uv+W).

Spherical and hyperbolic geometry

L'Huilier's formula relates the area of a triangle in spherical geometry to its side lengths. For a spherical triangle with side lengths Template:Tmath Template:Tmath and Template:Tmath, semiperimeter Template:Tmath, and area Template:Tmath,[21] tan2S4=tans2tansa2tansb2tansc2

For a triangle in hyperbolic geometry the analogous formula is tan2S4=tanhs2tanhsa2tanhsb2tanhsc2.

See also

Notes and references

Template:Ancient Greek mathematics