Sub topic 3
Triangles: Area Formulas and Heron's Formula
Prerequisites and the basic formula
Assume you can substitute values into formulas, simplify fractions, use square roots, and apply the Pythagorean theorem. In mensuration, the area of a triangle is the amount of flat space inside it. The base is the chosen bottom side, and the height is the perpendicular distance from that base to the opposite vertex.
\[ \text{Area}=\frac{1}{2}\times \text{base}\times \text{height} \]
The height must meet the base at a right angle. It is not always a sloping side.
| Triangle type | Useful area formula |
|---|---|
| Any triangle | \(\frac{1}{2}bh\) |
| Right-angled triangle | \(\frac{1}{2}(\text{leg}_1)(\text{leg}_2)\) |
| Equilateral triangle | \(\frac{\sqrt{3}}{4}a^2\) |
| Triangle with sides \(a,b,c\) | \(\sqrt{s(s-a)(s-b)(s-c)}\) |
Special triangle formulas
For a right-angled triangle, the two perpendicular legs can act as base and height. If the legs are 6 cm and 8 cm:
\[ \text{Area}=\frac{1}{2}\times6\times8=24\text{ cm}^2 \]
For an equilateral triangle, all three sides have length \(a\). Its height is \(\frac{\sqrt3}{2}a\), so:
\[ \text{Area}=\frac{1}{2}\times a\times\frac{\sqrt3}{2}a =\frac{\sqrt3}{4}a^2 \]
A triangle can also be expressed using its inradius. The inradius \(r\) is the radius of the circle touching all three sides. If \(s\) is the semiperimeter, then:
\[ \text{Area}=rs \]
Heron's formula
Use Heron's formula when the three side lengths are known but the height is not. First calculate the semiperimeter, which is half the perimeter:
\[ s=\frac{a+b+c}{2} \]
Then calculate:
\[ \text{Area}=\sqrt{s(s-a)(s-b)(s-c)} \]
For sides 13, 14, and 15:
\[ s=\frac{13+14+15}{2}=21 \]
\[ \text{Area}=\sqrt{21(8)(7)(6)} =\sqrt{7056}=84 \]
Therefore, the area is 84 square units.
import math
def heron_area(a, b, c):
s = (a + b + c) / 2
return math.sqrt(s * (s - a) * (s - b) * (s - c))
print(heron_area(13, 14, 15)) # 84.0Exercise
Find the area of a triangle with side lengths 5, 5, and 6.
Show answer
The semiperimeter is 8. Heron's formula gives √(8 × 3 × 3 × 2) = √144 = 12 square units.