Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Viviani's Theorem

How to use
  1. ▶ Play runs the proof, Next → and ← Back step one scene at a time, Reset restores the opening scene and the original figure. Learn more about the controls
  2. Drag PP inside the triangle, or AA or BB to turn and resize it; the readout under the canvas shows the sum of the distances and the height. Learn more about why it holds
  3. Labels toggles the point names, Measures writes each marked angle's size beside its arc. The Step explanations log keeps every step so far. Learn more about reading a scene
Proof?P is any point inside the equilateral triangle ABC with side a, and PD, PE, PF are the perpendiculars from P to the sides. The triangles PBC, PCA and PAB fill ABC; each has a side a as its base and a perpendicular from P as its height, so ½a·PD + ½a·PE + ½a·PF = ½a·h. Dividing by ½a: PD + PE + PF = h, whatever the position of P. Drag P, A or B.Viviani's theorem
Display
Drag P inside the triangle, or A or B to turn and resize it
hABPCDEF
PD + PE + PF = 3.75, h = 3.75
Step 1 / 5

Step explanations

1A point inside an equilateral triangle
Given
ABC is equilateral with side a (one tick on each side) and height h, drawn beside it. P is any point inside, and PD, PE, PF are the perpendiculars from P to the sides BC, CA and AB. To prove: PD + PE + PF = h.
Drag P: the sum stays equal to h. Learn more about the statement




Getting Started with the Visualizer

DemoA run through the proof player
Step 0 of 6
Step through the proof, then drag PP around inside the triangle, or AA or BB to turn and resize it, and watch the readout: the three distances change but their sum always equals the height hh. The picture below is the player with its parts numbered; the other tabs list what can be dragged, what each control does and what the step log shows.
Opening scene: the controls
1234567
1Proof — the theorem loaded in the player; the ? gives its idea in one line
2Display — Labels shows the point names, Measures writes each marked angle's size beside its arc
3Draggable points — P moves freely inside the triangle; A and B turn and resize it, and the hollow points C, D, E and F follow
4Readout — the line under the figure: PD + PE + PF and the height h, live while you drag
5Back, Play, Next, Reset — step through the proof or run it; Reset returns to step 1 and restores the original figure
6Speed and step counter — how fast Play advances, and which of the 5 steps is on screen
7Step explanations — every step reached so far, with its justification tag and a link to the section that explains it; click an entry to jump back to it
Proof complete: step 5 of 5
12345
1The perpendiculars — PD, PE and PF from P to the sides
2The three triangles — shaded, filling ABC
3The height h — a bar beside the triangle, up to the level of C
4Justification tags — Given, Area addition, Triangle area, Combining
5Replay — at the last step Play becomes Replay and Next is off

The Statement

Let ABCABC be an equilateral triangle with side aa and height hh, and let PP be any point inside it. Drop the perpendiculars PDPD, PEPE and PFPF from PP to the sides BCBC, CACA and ABAB; each is the shortest way from PP to that side, as on the perpendicular is shortest page. Viviani's theorem says

PD+PE+PF=hPD + PE + PF = h


so the sum of the three distances is the same for every point inside the triangle.

In the player PP, AA and BB can be dragged, CC is computed so that the triangle stays equilateral, and the feet DD, EE, FF are computed. The height is drawn as a bar beside the triangle, from the line ABAB up to the level of CC. The readout shows the sum of the three distances and the height, in units of 6060 pixels.
hABPCDEF
Opening scene, frozen

P inside the triangle with the perpendiculars PD, PE, PF and the height h.


Three Triangles

Join PP to the three vertices. The triangles PBCPBC, PCAPCA and PABPAB meet at PP and together fill the triangle ABCABC without overlapping, so their areas add up to its area. Writing [XYZ][XYZ] for the area of a triangle XYZXYZ:

[ABC]=[PBC]+[PCA]+[PAB][ABC] = [PBC] + [PCA] + [PAB]
hABPCDEF
Three triangles, frozen

PBC, PCA and PAB shaded: they fill ABC.


The Small Triangles

Each small triangle has a side of ABCABC as its base and the perpendicular from PP to that side as its height. All three sides have the same length aa, so

[PBC]=12a⋅PD,[PCA]=12a⋅PE,[PAB]=12a⋅PF[PBC] = \frac{1}{2}a \cdot PD, \qquad [PCA] = \frac{1}{2}a \cdot PE, \qquad [PAB] = \frac{1}{2}a \cdot PF
hABPCDEF
The small triangles, frozen

Base a, heights PD, PE and PF.


The Whole Triangle

The whole triangle has the base AB=aAB = a and the height hh:

[ABC]=12a⋅h[ABC] = \frac{1}{2}a \cdot h
hABPCDEF
The whole triangle, frozen

Base a, height h.


Why It Holds

Put the four areas together:

12a⋅PD+12a⋅PE+12a⋅PF=12a⋅h\frac{1}{2}a \cdot PD + \frac{1}{2}a \cdot PE + \frac{1}{2}a \cdot PF = \frac{1}{2}a \cdot h


and divide both sides by 12a\frac{1}{2}a:

PD+PE+PF=hPD + PE + PF = h


The end-of-proof mark ∎ in the log closes the argument. The tags name the facts used: the given figure, area addition, the area of a triangle (twice) and combining.

The equal sides are what make it work: they let the common factor 12a\frac{1}{2}a come out of all three areas. Nothing in the proof depends on where PP is, as long as it is inside.
hABPCDEF
The conclusion, frozen

PD + PE + PF = h.


Dragging the Figure

Drag PP: the perpendiculars change length, one growing as others shrink, and the readout keeps their sum equal to hh. Drag AA or BB to turn or resize the triangle; the height changes and the sum follows it.

The player keeps PP inside the triangle with some room to each side so that every mark stays readable, keeps ABAB close to level and of a fair size, and keeps the figure in the frame; a drag that would break one of these is refused.
hABPCDEF
After dragging P, frozen

P moved right and down: three new distances, the same sum.


Consequences

• The centre. At the centre of the triangle the three distances are equal, so each is h3\frac{h}{3}: the radius of the inscribed circle is one third of the height, as the incentre and centroid pages agree, since in an equilateral triangle these centres coincide.
• The height itself. Moving PP to the vertex CC makes PDPD and PEPE zero and PFPF the height, the extreme case of the formula.
• Other triangles. For a triangle with sides aa, bb, cc the same area argument gives a⋅PD+b⋅PE+c⋅PF=2[ABC]a \cdot PD + b \cdot PE + c \cdot PF = 2[ABC]; only when the sides are equal does this become a fixed plain sum.
• Regular polygons. The proof works for any polygon with equal sides, such as a square or a regular hexagon: splitting it into triangles from PP shows that the distances to the sides always have the same sum.
• Equidistant points. The points equally far from two sides lie on the angle bisector between them, which is another way to find the centre where all three distances agree.