Video 3, chapter 13

Viviani's Theorem, Three Distances and One Total

Why the perpendicular distances from any point inside an equilateral triangle to its three sides always add up to its height, explained by Viviani's theorem and an area decomposition.

  • Video 3, chapter 13
  • Geometry that keeps something unchanged

Pick a point inside an equilateral triangle and measure how far it is from each of the three sides. Move the point straight toward one side and that distance shrinks while the other two grow, and wherever the point goes, the three distances add up to the same number, the height of the triangle. This page explains why by cutting the triangle into three smaller triangles and counting area, and it shows what goes wrong in other triangles and for points outside.

Key terms

Viviani’s theorem

Definition Let TT be an equilateral triangle with side length ss and height hh. Take any point PP inside TT or on its boundary, and let d1d_1, d2d_2 and d3d_3 be the perpendicular distances from PP to the three sides. Viviani’s theorem says that

d1+d2+d3=hd_1 + d_2 + d_3 = h

for every such point PP. The reason is an area count. The segments from PP to the three corners cut TT into three triangles. Each of them has one side of TT as its base, of length ss, and one of the distances as its height, so together they have area

12s (d1+d2+d3).\tfrac12 s\,(d_1 + d_2 + d_3).

These three triangles fill TT exactly, so this is also the area 12sh\tfrac12 s h of TT, and dividing both by the positive number 12s\tfrac12 s gives the theorem. The distances must be measured to the sides along perpendiculars, not to the corners. For a point outside the triangle the three distances add up to more than hh. In a triangle whose sides are not all equal the sum is not the same at every point, and among all triangles only the equilateral ones have a constant sum. The theorem is named after the seventeenth-century Italian mathematician Vincenzo Viviani.

In plain words Whenever the point moves, whatever distance it gains from some sides it loses from the others, and the gains and losses cancel exactly. A point at a corner shows the total plainly, because it touches two sides and is a full height away from the third.

Example Take the triangle with corners A=(−1,0)A = (-1, 0), B=(1,0)B = (1, 0) and C=(0,3)C = (0, \sqrt3), so that s=2s = 2 and h=3≈1.732h = \sqrt3 \approx 1.732. At the center (0,3/3)(0, \sqrt3/3) the three distances are equal by symmetry, each 3/3\sqrt3/3, and they add up to 3\sqrt3. The point P=(1/2,3/4)P = (1/2, \sqrt3/4) is off center. Its distance to the bottom side ABAB is its yy-coordinate, 3/4\sqrt3/4, and the formula in the perpendicular distance card gives 3/8\sqrt3/8 to the side BCBC and 53/85\sqrt3/8 to the side CACA. As fractions of the height these are

h4+h8+5h8=h.\frac{h}{4} + \frac{h}{8} + \frac{5h}{8} = h .

At the corner CC the distances are 00, 00 and 3\sqrt3, again a total of hh.

Equilateral triangle

Definition A triangle is equilateral when its three sides have the same length ss. Its three angles are then all 60∘60^\circ. Its height hh is the perpendicular distance from a corner to the line through the opposite side, and it is the same from every corner. By symmetry the perpendicular from a corner meets the opposite side at its midpoint, so the Pythagorean theorem gives h2+(s/2)2=s2h^2 + (s/2)^2 = s^2, and therefore

h=32 s,Area=12sh=34 s2.\begin{gathered} h = \frac{\sqrt3}{2}\, s, \\[0.4em] \text{Area} = \frac12 s h = \frac{\sqrt3}{4}\, s^2 . \end{gathered}

In plain words All sides are equal, all angles are equal, and the triangle looks the same from each corner. Viviani’s theorem uses exactly this sameness, since every side can serve as a base of the same length.

Example For side s=2s = 2 the height is 3≈1.732\sqrt3 \approx 1.732 and the area is 3\sqrt3. For side s=6s = 6 the height is 33≈5.1963\sqrt3 \approx 5.196 and the area is 93≈15.599\sqrt3 \approx 15.59.

Perpendicular distance

Definition The perpendicular distance from a point PP to a line ℓ\ell is the length of the shortest segment from PP to a point of ℓ\ell. That shortest segment meets ℓ\ell at a right angle, at a point called the foot of the perpendicular. When the line has the equation ax+by+c=0ax + by + c = 0, with aa and bb not both 00, and P=(x0,y0)P = (x_0, y_0), the distance is

∣ax0+by0+c∣a2+b2.\frac{\lvert a x_0 + b y_0 + c \rvert}{\sqrt{a^2 + b^2}} .

In Viviani’s theorem the distance to a side means the distance to the line through that side. For a point inside an equilateral triangle or on its boundary, the foot always lies on the side itself, because every angle of the triangle is smaller than a right angle.

In plain words It is how far you would walk to reach the line if you headed straight for it. The distance to an end of the side, or to the line along any slanted direction, is a different quantity and is never shorter.

Example In the triangle with corners A=(−1,0)A = (-1, 0), B=(1,0)B = (1, 0) and C=(0,3)C = (0, \sqrt3), the side BCBC lies on the line 3 x+y−3=0\sqrt3\, x + y - \sqrt3 = 0. For P=(1/2,3/4)P = (1/2, \sqrt3/4) the formula gives

d=∣3/2+3/4−3∣3+1=3/42=38.\begin{aligned} d &= \frac{\lvert \sqrt3/2 + \sqrt3/4 - \sqrt3 \rvert}{\sqrt{3 + 1}} \\[0.4em] &= \frac{\sqrt3/4}{2} = \frac{\sqrt3}{8} . \end{aligned}

Distances to the corners do not share Viviani’s property. From the center (0,3/3)(0, \sqrt3/3) each corner is 23/3≈1.1552\sqrt3/3 \approx 1.155 away, for a total of 23≈3.4642\sqrt3 \approx 3.464. From the corner CC the three corners are 00, 22 and 22 away, for a total of 44.

Area decomposition

Definition If a region is cut into finitely many pieces that cover it and overlap only along their edges, then the area of the region is the sum of the areas of the pieces. Edges have no area, so it does not matter which piece they are counted in. The area of a triangle is half a base times the height, where the height is the perpendicular distance from the opposite corner to the line through the base. In Viviani’s argument the segments from PP to the corners cut the triangle ABCABC into the triangles PBCPBC, PCAPCA and PABPAB. When PP lies on the boundary, one or two of them are flat with area 00, and the count still works. In any triangle with side lengths aa, bb and cc and area KK, the same decomposition gives

a da+b db+c dc=2Ka\, d_a + b\, d_b + c\, d_c = 2K

for every point inside the triangle or on its boundary, where dad_a is the distance to the side of length aa, and likewise for dbd_b and dcd_c. Only when a=b=ca = b = c can the common length be divided out to leave a plain sum of distances.

In plain words One region counted in two ways must give the same area. Here one way is the whole triangle and the other is three slices meeting at the point. Moving the point shifts area from one slice to another but never changes the total.

Example Take the right triangle with corners (0,0)(0, 0), (4,0)(4, 0) and (0,3)(0, 3). Its sides have lengths 44 along the bottom, 33 along the left and 55 along the slanted side 3x+4y=123x + 4y = 12, and its area is 66. At the point (1,1)(1, 1) the distances to these three sides are 11, 11 and 11, with sum 33. At the point (2,1/2)(2, 1/2) they are 1/21/2, 22 and 4/54/5, with sum 3.33.3. The plain sum has changed, but the weighted sums agree,

4⋅1+3⋅1+5⋅1=12,4⋅12+3⋅2+5⋅45=12,\begin{aligned} 4 \cdot 1 + 3 \cdot 1 + 5 \cdot 1 &= 12, \\[0.4em] 4 \cdot \tfrac12 + 3 \cdot 2 + 5 \cdot \tfrac45 &= 12, \end{aligned}

and both equal 2K2K. At the corners the plain sum is the height from that corner, which is 12/5=2.412/5 = 2.4 at (0,0)(0, 0), 44 at (4,0)(4, 0) and 33 at (0,3)(0, 3).

Check yourself

  1. A point inside an equilateral triangle with side 66 is 11 unit from one side and 22 units from another. How far is it from the third side?
Show the answer

The height of the triangle is

h=32⋅6=33,h = \frac{\sqrt3}{2} \cdot 6 = 3\sqrt3,

about 5.1965.196. By Viviani’s theorem the three distances add up to hh, so the third distance is 33−3≈2.1963\sqrt3 - 3 \approx 2.196. The answer does not depend on where exactly the point sits, only on the two distances given.

  1. Change a rule and move the point outside. In the triangle with corners A=(−1,0)A = (-1, 0), B=(1,0)B = (1, 0) and C=(0,3)C = (0, \sqrt3), take P=(0,−1)P = (0, -1), below the bottom side. Add up its perpendicular distances to the three lines through the sides. Why does the area argument give a different total?
Show the answer

The distance to the bottom line y=0y = 0 is 11. The line through BB and CC is 3 x+y−3=0\sqrt3\, x + y - \sqrt3 = 0, so the distance to it is

∣0−1−3∣2=1+32,\frac{\lvert 0 - 1 - \sqrt3 \rvert}{2} = \frac{1 + \sqrt3}{2},

and by symmetry the distance to the line through CC and AA is the same. The total is 1+(1+3)=2+3≈3.7321 + (1 + \sqrt3) = 2 + \sqrt3 \approx 3.732, more than the height 3≈1.732\sqrt3 \approx 1.732.

The three triangles PABPAB, PBCPBC and PCAPCA no longer fill ABCABC without overlap. The triangles PBCPBC and PCAPCA together cover ABCABC and also the triangle PABPAB that sticks out below it, so the area of ABCABC is the area of PBCPBC plus the area of PCAPCA minus the area of PABPAB. Here s=2s = 2, so each of these triangles has area 12⋅2⋅d=d\tfrac12 \cdot 2 \cdot d = d, the distance that serves as its height, and the area count reads

2⋅1+32−1=3.2 \cdot \frac{1 + \sqrt3}{2} - 1 = \sqrt3 .

So the distance to the bottom side has to be subtracted, not added. If a distance gets a minus sign whenever its side’s line separates the point from the triangle, the total is hh for every point of the plane. The plain total is therefore larger than hh at every point outside the triangle, here by 2⋅1=22 \cdot 1 = 2.

  1. Extend the pattern to a regular hexagon with side 22. Show that the perpendicular distances from any point inside it to its six sides always add up to the same total, and find that total.
Show the answer

Join the point to the six corners. This cuts the hexagon into six triangles that fill it without overlap, each with one side of the hexagon, of length 22, as its base and one of the distances as its height. Their areas add up to

12⋅2⋅(d1+⋯+d6)=d1+⋯+d6.\begin{aligned} &\tfrac12 \cdot 2 \cdot (d_1 + \dots + d_6) \\[0.4em] &= d_1 + \dots + d_6 . \end{aligned}

The segments from the center to the corners cut the hexagon into six equilateral triangles of side 22, each of area 3\sqrt3, so the hexagon has area 636\sqrt3. Hence the six distances always add up to 63≈10.396\sqrt3 \approx 10.39. Two checks agree. At the center each distance is the height 3\sqrt3 of one of those small triangles, and six of them make 636\sqrt3. Also, opposite sides are parallel and 232\sqrt3 apart, and the distances from a point between two parallel lines add up to the gap between them, so the three pairs give 3⋅233 \cdot 2\sqrt3. The argument needs equal side lengths, not equal angles, so it works in every convex polygon whose sides all have the same length.