In geometry, calculating the area of a triangle is an elementary problem encountered often in many different situations. The best known and simplest formula is
T=bh/2,
Although simple, this formula is only useful if the height can be readily found, which is not always the case. For example, the land surveyor of a triangular field might find it relatively easy to measure the length of each side, but relatively difficult to construct a 'height'. Various methods may be used in practice, depending on what is known about the triangle. Other frequently used formulas for the area of a triangle use trigonometry, side lengths (Heron's formula), vectors, coordinates, line integrals, Pick's theorem, or other properties.
Heron of Alexandria found what is known as Heron's formula for the area of a triangle in terms of its sides, and a proof can be found in his book, Metrica, written around 60 CE. It has been suggested that Archimedes knew the formula over two centuries earlier,[3] 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. In 300 BCE Greek mathematician Euclid proved that the area of a triangle is half that of a parallelogram with the same base and height in his book Elements of Geometry.[4]
In 499 Aryabhata, a great mathematician-astronomer from the classical age of Indian mathematics and Indian astronomy, expressed the area of a triangle as one-half the base times the height in the Aryabhatiya (section 2.6).
A formula equivalent to Heron's was discovered by the Chinese independently of the Greeks. It was published in 1247 in Shushu Jiuzhang ("Mathematical Treatise in Nine Sections"), written by Qin Jiushao.
The height of a triangle can be found through the application of trigonometry.
T=\tfrac12bh
T=\tfrac12ab\sin\gamma=\tfrac12bc\sin\alpha=\tfrac12ca\sin\beta
(where α is the interior angle at A, β is the interior angle at B,
\gamma
Furthermore, since sin α = sin (π − α) = sin (β +
\gamma
T=\tfrac12ab\sin(\alpha+\beta)=\tfrac12bc\sin(\beta+\gamma)=\tfrac12ca\sin(\gamma+\alpha).
T=
b2(\sin\alpha)(\sin(\alpha+\beta)) | |
2\sin\beta |
,
and analogously if the known side is a or c.
T=
a2 | |
2(\cot\beta+\cot\gamma) |
=
a2(\sin\beta)(\sin\gamma) | |
2\sin(\beta+\gamma) |
,
and analogously if the known side is b or c.
See main article: Heron's formula.
The shape of the triangle is determined by the lengths of the sides. Therefore, the area can also be derived from the lengths of the sides. By Heron's formula:
T=\sqrt{s(s-a)(s-b)(s-c)}
where is the semiperimeter, or half of the triangle's perimeter.
Three other equivalent ways of writing Heron's formula are
T=\tfrac14\sqrt{(a2+b2+c2)2-2(a4+b4+c4)}
T=\tfrac14\sqrt{2(a2b2+a2c2+b2c2)-(a4+b4+c4)}
T=\tfrac14\sqrt{(a+b-c)(a-b+c)(-a+b+c)(a+b+c)}.
Three formulas have the same structure as Heron's formula but are expressed in terms of different variables. First, denoting the medians from sides a, b, and c respectively as ma, mb, and mc and their semi-sum as σ, we have[5]
T=\tfrac43\sqrt{\sigma(\sigma-ma)(\sigma-mb)(\sigma-mc)}.
Next, denoting the altitudes from sides a, b, and c respectively as ha, hb, and hc, and denoting the semi-sum of the reciprocals of the altitudes as
H=
-1 | |
(h | |
a |
+
-1 | |
h | |
b |
+
-1 | |
h | |
c |
)/2
T-1=4
-1 | |
\sqrt{H(H-h | |
a |
-1 | |
)(H-h | |
b |
-1 | |
)(H-h | |
c |
)}.
And denoting the semi-sum of the angles' sines as, we have[7]
T=D2\sqrt{S(S-\sin\alpha)(S-\sin\beta)(S-\sin\gamma)}
where D is the diameter of the circumcircle:
D=\tfrac{a}{\sin\alpha}=\tfrac{b}{\sin\beta}=\tfrac{c}{\sin\gamma}.
The area of triangle ABC is half of the area of a parallelogram:
\tfrac12|AB x AC|.
|AB x AC|,
which is the magnitude of the cross product of vectors AB and AC.
The area of triangle ABC can also be expressed in terms of dot products as follows:
\tfrac12\sqrt{(AB ⋅ AB)(AC ⋅ AC)-(AB ⋅ AC)2}=\tfrac12\sqrt{|AB|2|AC|2-(AB ⋅ AC)2}.
In two-dimensional Euclidean space, expressing vector AB as a free vector in Cartesian space equal to (x1,y1) and AC as (x2,y2), this can be rewritten as:
\tfrac12|x1y2-x2y1|.
If vertex A is located at the origin (0, 0) of a Cartesian coordinate system and the coordinates of the other two vertices are given by and, then the area can be computed as times the absolute value of the determinant
T=\tfrac12\left|\det\begin{pmatrix}xB&xC\ yB&yC\end{pmatrix}\right|=\tfrac12|xByC-xCyB|.
For three general vertices, the equation is:
T=\tfrac12\left|\det\begin{pmatrix}xA&xB&xC\ yA&yB&yC\ 1&1&1\end{pmatrix}\right|=\tfrac12|xAyB-xAyC+xByC-xByA+xCyA-xCyB|,
which can be written as
T=\tfrac12|(xA-xC)(yB-yA)-(xA-xB)(yC-yA)|.
If the points are labeled sequentially in the counterclockwise direction, the above determinant expressions are positive and the absolute value signs can be omitted.[8] The above formula is known as the shoelace formula or the surveyor's formula.
If we locate the vertices in the complex plane and denote them in counterclockwise sequence as,, and, and denote their complex conjugates as
\bara
\barb
\barc
T= | i |
4 |
\begin{vmatrix}a&\bara&1\ b&\barb&1\ c&\barc&1\end{vmatrix}
is equivalent to the shoelace formula.
In three dimensions, the area of a general triangle, and) is the Pythagorean sum of the areas of the respective projections on the three principal planes (i.e. x = 0, y = 0 and z = 0):
T=\tfrac12\sqrt{\begin{vmatrix}xA&xB&xC\ yA&yB&yC\ 1&1&1\end{vmatrix}2+ \begin{vmatrix}yA&yB&yC\ zA&zB&zC\ 1&1&1\end{vmatrix}2+ \begin{vmatrix}zA&zB&zC\ xA&xB&xC\ 1&1&1\end{vmatrix}2}.
The area within any closed curve, such as a triangle, is given by the line integral around the curve of the algebraic or signed distance of a point on the curve from an arbitrary oriented straight line L. Points to the right of L as oriented are taken to be at negative distance from L, while the weight for the integral is taken to be the component of arc length parallel to L rather than arc length itself.
This method is well suited to computation of the area of an arbitrary polygon. Taking L to be the x-axis, the line integral between consecutive vertices (xi,yi) and (xi+1,yi+1) is given by the base times the mean height, namely . The sign of the area is an overall indicator of the direction of traversal, with negative area indicating counterclockwise traversal. The area of a triangle then falls out as the case of a polygon with three sides.
While the line integral method has in common with other coordinate-based methods the arbitrary choice of a coordinate system, unlike the others it makes no arbitrary choice of vertex of the triangle as origin or of side as base. Furthermore, the choice of coordinate system defined by L commits to only two degrees of freedom rather than the usual three, since the weight is a local distance (e.g. in the above) whence the method does not require choosing an axis normal to L.
When working in polar coordinates it is not necessary to convert to Cartesian coordinates to use line integration, since the line integral between consecutive vertices (ri,θi) and (ri+1,θi+1) of a polygon is given directly by . This is valid for all values of θ, with some decrease in numerical accuracy when |θ| is many orders of magnitude greater than π. With this formulation negative area indicates clockwise traversal, which should be kept in mind when mixing polar and cartesian coordinates. Just as the choice of y-axis is immaterial for line integration in cartesian coordinates, so is the choice of zero heading immaterial here.
See Pick's theorem for a technique for finding the area of any arbitrary lattice polygon (one drawn on a grid with vertically and horizontally adjacent lattice points at equal distances, and with vertices on lattice points).
The theorem states:
T=I+\tfrac12B-1
where
I
Numerous other area formulas exist, such as
T=r ⋅ s,
where r is the inradius, and s is the semiperimeter (in fact, this formula holds for all tangential polygons), and[9]
T=ra(s-a)=rb(s-b)=rc(s-c)
where
ra,rb,rc
We also have
T=\tfrac12D2(\sin\alpha)(\sin\beta)(\sin\gamma)
and[10]
T=
abc | |
2D |
=
abc | |
4R |
for circumdiameter D; and[11]
T=\tfrac14(\tan\alpha)(b2+c2-a2)
for angle α ≠ 90°.
The area can also be expressed as[12]
T=\sqrt{rrarbrc}.
In 1885, Baker[13] gave a collection of over a hundred distinct area formulas for the triangle. These include:
T=\tfrac12\sqrt[3]{abchahbhc},
T=\tfrac12\sqrt{abhahb},
T=
a+b | |||||||||||||||
|
,
T=
Rhbhc | |
a |
for circumradius (radius of the circumcircle) R, and
T=
hahb | |
2\sin\gamma |
.
The area T of any triangle with perimeter p satisfies
T\le\tfrac{p2}{12\sqrt{3}},
with equality holding if and only if the triangle is equilateral.[14] [15]
Other upper bounds on the area T are given by[16]
4\sqrt{3}T\leqa2+b2+c2
and
4\sqrt{3}T\leq
9abc | |
a+b+c |
,
both again holding if and only if the triangle is equilateral.
There are infinitely many lines that bisect the area of a triangle.[17] Three of them are the medians, which are the only area bisectors that go through the centroid. Three other area bisectors are parallel to the triangle's sides.
Any line through a triangle that splits both the triangle's area and its perimeter in half goes through the triangle's incenter. There can be one, two, or three of these for any given triangle.