Heron's formula

From Free net encyclopedia

In geometry, Heron's formula (also called Hero's formula) states that the area of a triangle whose sides have lengths a, b and c is

<math>\mathrm{area} = \sqrt{s\left(s-a\right)\left(s-b\right)\left(s-c\right)}\,</math>

where s is the triangle's semiperimeter:

<math>s=\frac{a+b+c}{2}</math>

(see also square root). Heron's formula can also be written

<math>\mathrm{area}={\ \sqrt{(a+b+c)(a+b-c)(b+c-a)(c+a-b)\,}\ \over 4}.\,</math>

Contents

History

The formula is credited to Heron of Alexandria in the 1st century, and a proof can be found in his book Metrica. It is now believed that Archimedes already knew the formula, and it is of course possible that it has been known long before.

Proof

A modern proof, which uses algebra and trigonometry and is quite unlike the one provided by Heron, follows. Let a, b, c be the sides of the triangle and A, B, C the angles opposite those sides. We have

<math>\cos(C) = \frac{a^2+b^2-c^2}{2ab}</math>

by the law of cosines. From this we get with some algebra

<math>\sin(C) = \sqrt{1-\cos^2(C)} = \frac{\sqrt{4a^2 b^2 -(a^2 +b^2 -c^2)^2 }}{2ab}</math>.

The altitude of the triangle on base a has length bsin(C), and it follows

<math>S\,</math> <math>= \frac{1}{2} (\mbox{base}) (\mbox{altitude})</math>
<math>= \frac{1}{2} ab\sin(C)</math>
<math>= \frac{1}{4}\sqrt{4a^2 b^2 -(a^2 +b^2 -c^2)^2}</math>
<math>=\sqrt{s\left(s-a\right)\left(s-b\right)\left(s-c\right)}.</math>

Here the simple algebra in the last step was omitted.

Numerical stability

Heron's formula as given above is numerically unstable for triangles with a very small angle. A stable alternative involves arranging the lengths of the sides so that: abc and computing

<math>S = \frac{1}{4}\sqrt{(a+(b+c)) (c-(a-b)) (c+(a-b)) (a+(b-c))}</math>

The brackets in the above formula are required in order to prevent numerical instability in the evaluation.

Generalizations

The formula is in fact a special case of Brahmagupta's formula for the area of a cyclic quadrilateral; both of which are special cases of Bretschneider's formula for the area of a quadrilateral.

Expressing Heron's formula with a determinant in terms of the squares of the distances between the three given vertices,

<math> S = \frac{1}{4} \sqrt{ \begin{vmatrix}
 0 & a^2 & b^2 & 1 \\

a^2 & 0 & c^2 & 1 \\ b^2 & c^2 & 0 & 1 \\

 1 &   1 &   1 & 0

\end{vmatrix} } </math> illustrates its similarity to Tartaglia's formula for the volume of a four-simplex.

See also

External links

References

  • {{cite book

| author=Heath, Thomas L. | title=A History of Greek Mathematics (Vol II) | publisher=Oxford University Press | year=1921 | pages=321-323}}ar:معادلة هيرون da:Herons formel de:Satz des Heron es:Fórmula de Herón fr:Formule de Héron ko:헤론의 공식 it:Formula di Erone he:נוסחת הרון nl:Formule van Heron ja:ヘロンの公式 pl:Wzór Herona ru:Формула Герона fi:Heronin kaava sv:Herons formel zh:海伦公式