Hero's formula
   HOME

TheInfoList



OR:

In geometry, Heron's formula (or Hero's formula) gives the area of a triangle in terms of the three side lengths , , . If s = \tfrac12(a + b + c) is the semiperimeter of the triangle, the area is, :A = \sqrt. 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 be the triangle with sides , and . This triangle’s semiperimeter is :s=\frac=\frac=16 and so the area is : \begin A &= \sqrt = \sqrt\\ &= \sqrt = \sqrt = 24. \end In this example, the side lengths and area are integers, making it a Heronian triangle. However, Heron's formula works equally well in cases where one or more of the side lengths are not integers.


Alternate expressions

Heron's formula can also be written in terms of just the side lengths instead of using the semiperimeter, in several ways, :\begin A &=\tfrac\sqrt \\ mu&=\tfrac\sqrt \\ mu&=\tfrac\sqrt \\ mu&=\tfrac\sqrt \\ mu&=\tfrac\sqrt. \end After expansion, the expression under the square root is a quadratic polynomial of the squared side lengths , , . The same relation can be expressed using the
Cayley–Menger determinant In linear algebra, geometry, and trigonometry, the Cayley–Menger determinant is a formula for the content, i.e. the higher-dimensional volume, of a n-dimensional simplex in terms of the squares of all of the distances between pairs of its v ...
, : -16A^2 = \begin 0 & a^2 & b^2 & 1 \\ a^2 & 0 & c^2 & 1 \\ b^2 & c^2 & 0 & 1 \\ 1 & 1 & 1 & 0 \end.


History

The formula is credited to Heron (or Hero) of Alexandria ( 60 AD), and a proof can be found in his book ''Metrica''. Mathematical historian Thomas Heath suggested that
Archimedes Archimedes of Syracuse (;; ) was a Greek mathematician, physicist, engineer, astronomer, and inventor from the ancient city of Syracuse in Sicily. Although few details of his life are known, he is regarded as one of the leading scientists ...
knew the formula over two centuries earlier, 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. A formula equivalent to Heron's, namely, : A = \frac1\sqrt was discovered by the Chinese. It was published in '' Mathematical Treatise in Nine Sections'' ( Qin Jiushao, 1247).


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, or as a special case of
De Gua's theorem __NOTOC__ In mathematics, De Gua's theorem is a three-dimensional analog of the Pythagorean theorem named after Jean Paul de Gua de Malves. It states that if a tetrahedron has a right-angle corner (like the corner of a cube), then the square of th ...
(for the particular case of acute triangles).


Trigonometric proof using the law of cosines

A modern proof, which uses algebra and is quite different from the one provided by Heron, follows. Let , , be the sides of the triangle and , , the angles opposite those sides. Applying the law of cosines we get :\cos \gamma = \frac From this proof, we get the algebraic statement that :\sin \gamma = \sqrt = \frac. The altitude of the triangle on base has length , and it follows : \begin A &= \tfrac12 (\mbox) (\mbox) \\ mu&= \tfrac12 ab\sin \gamma \\ mu&= \frac\sqrt \\ mu&= \tfrac14\sqrt \\ mu&= \tfrac14\sqrt \\ mu&= \sqrt \\ mu&= \sqrt. \end


Algebraic proof using the Pythagorean theorem

The following proof is very similar to one given by Raifaizen. By the
Pythagorean theorem In mathematics, the Pythagorean theorem or Pythagoras' theorem is a fundamental relation in Euclidean geometry between the three sides of a right triangle. It states that the area of the square whose side is the hypotenuse (the side opposite t ...
we have and according to the figure at the right. Subtracting these yields . This equation allows us to express in terms of the sides of the triangle: : d = \frac. For the height of the triangle we have that . By replacing with the formula given above and applying the difference of squares identity we get : \begin h^2 &= b^2-\left(\frac\right)^2 \\ &= \frac \\ &= \frac \\ &= \frac \\ &= \frac \\ &= \frac. \end We now apply this result to the formula that calculates the area of a triangle from its height: : \begin A &= \frac \\ &= \sqrt \\ &= \sqrt. \end


Trigonometric proof using the law of cotangents

If is the radius of the incircle of the triangle, then the triangle can be broken into three triangles of equal altitude and bases , , and . Their combined area is :A = \tfrac12ar + \tfrac12br + \tfrac12cr = rs, where s = \tfrac12(a + b + c) is the semiperimeter. The triangle can alternately be broken into six triangles (in congruent pairs) of altitude and bases , , and , of combined area (see
law of cotangents In trigonometry, the law of cotangentsThe Universal Encyclopaedia of Mathematics, Pan Reference Books, 1976, page 530. English version George Allen and Unwin, 1964. Translated from the German version Meyers Rechenduden, 1960. is a relationship am ...
) : \begin A &= r(s-a) + r(s-b) + r(s-c) \\ mu &= r^2\left(\frac + \frac + \frac\right) \\ mu &= r^2\left(\cot + \cot + \cot\right) \\ mu &= r^2\left(\cot \cot \cot\right)\\ mu &= r^2\left(\frac \cdot \frac \cdot \frac\right) \\ mu &= \frac. \end The middle step above is \cot + \cot + \cot = \cot\cot\cot, the triple cotangent identity, which applies because the sum of half-angles is \tfrac\alpha2 + \tfrac\beta2 + \tfrac\gamma2 = \tfrac\pi2. Combining the two, we get : A^2 = s(s - a)(s - b)(s - c), from which the result follows.


Numerical stability

Heron's formula as given above is
numerically unstable In the mathematical subfield of numerical analysis, numerical stability is a generally desirable property of numerical algorithms. The precise definition of stability depends on the context. One is numerical linear algebra and the other is algorit ...
for triangles with a very small angle when using
floating-point arithmetic In computing, floating-point arithmetic (FP) is arithmetic that represents real numbers approximately, using an integer with a fixed precision, called the significand, scaled by an integer exponent of a fixed base. For example, 12.345 can be ...
. A stable alternative involves arranging the lengths of the sides so that and computing : A = \frac \sqrt. The brackets in the above formula are required in order to prevent numerical instability 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 , , and are the
median In statistics and probability theory, the median is the value separating the higher half from the lower half of a data sample, a population, or a probability distribution. For a data set, it may be thought of as "the middle" value. The basic fe ...
s from sides , , and respectively, and their semi-sum is \sigma = \tfrac12(m_a + m_b + m_c), then :A = \frac \sqrt. Next, if , , and are the altitudes from sides , , and respectively, and semi-sum of their reciprocals is H = \tfrac12\bigl(h_a^ + h_b^ + h_c^\bigr), then :A^ = 4 \sqrt. Finally, if , , and are the three angle measures of the triangle, and the semi-sum of their
sine In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side that is oppo ...
s is S = \tfrac12(\sin\alpha + \sin\beta + \sin\gamma), then :\begin A &= D^ \sqrt \\ mu&= \tfrac12 D^ \sin \alpha\,\sin \beta\,\sin \gamma, \end where is the diameter of the circumcircle, D = \frac a = \frac b = \frac c . This last formula coincides with the standard Heron formula when the circumcircle has unit diameter.


Generalizations

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 of a cyclic quadrilateral whose sides have lengths , , , as : K=\sqrt where , the semiperimeter, is defined to be : s=\frac. Heron's formula is also a special case of the
formula In science, a formula is a concise way of expressing information symbolically, as in a mathematical formula or a ''chemical formula''. The informal use of the term ''formula'' in science refers to the general construct of a relationship betwee ...
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 linear algebra, geometry, and trigonometry, the Cayley–Menger determinant is a formula for the content, i.e. the higher-dimensional volume, of a n-dimensional simplex in terms of the squares of all of the distances between pairs of its v ...
in terms of the squares of the distances between the three given vertices, : A = \frac \sqrt 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 David Peter Robbins (12 August 1942 in Brooklyn – 4 September 2003 in Princeton) was an American mathematician. He is most famous for introducing alternating sign matrices.. He is also known for his work on generalizations of Heron's formula o ...
.


Heron-type formula for the volume of a tetrahedron

If , , , , , are lengths of edges of the tetrahedron (first three form a triangle; opposite to and so on), then : \text = \frac where : \begin a & = \sqrt \\ b & = \sqrt \\ c & = \sqrt \\ d & = \sqrt \\ X & = (w - U + v)\,(U + v + w) \\ x & = (U - v + w)\,(v - w + U) \\ Y & = (u - V + w)\,(V + w + u) \\ y & = (V - w + u)\,(w - u + V) \\ Z & = (v - W + u)\,(W + u + v) \\ z & = (W - u + v)\,(u - v + W). \end


Heron formulae in non-Euclidean geometries

There are also formulae for the area of a triangle in terms of its side lengths for triangles in the sphere or the
hyperbolic plane In mathematics, hyperbolic geometry (also called Lobachevskian geometry or Bolyai– Lobachevskian geometry) is a non-Euclidean geometry. The parallel postulate of Euclidean geometry is replaced with: :For any given line ''R'' and point ''P'' ...
. Page 66 in For a triangle in the sphere with side lengths a, b, c, half perimeter s=(a+b+c)/2 and area S such a formula is \tan^2 \frac S 4 = \tan \frac s2 \tan\frac2 \tan\frac2 \tan\frac2 while for the hyperbolic plane we have \tan^2 \frac S 4 = \tanh \frac s2 \tanh\frac2 \tanh\frac2 \tanh\frac2.


See also

*
Shoelace formula The shoelace formula, shoelace algorithm, or shoelace method (also known as Gauss's area formula and the surveyor's formula) is a mathematical algorithm to determine the area of a simple polygon whose vertices are described by their Cartesian c ...


References


External links


A Proof of the Pythagorean Theorem From Heron's Formula
at
cut-the-knot Alexander Bogomolny (January 4, 1948 July 7, 2018) was a Soviet-born Israeli-American mathematician. He was Professor Emeritus of Mathematics at the University of Iowa, and formerly research fellow at the Moscow Institute of Electronics and Math ...

Interactive applet and area calculator using Heron's Formula

J. H. Conway discussion on Heron's Formula
*


An alternative proof of Heron's Formula without words

Factoring Heron
{{DEFAULTSORT:Heron's Formula Theorems about triangles Articles containing proofs Area