Geometric mean theorem



In Euclidean geometry, the geometric mean theorem or right triangle altitude theorem is a relation between the altitude on the hypotenuse in a right triangle and the two line segments it creates on the hypotenuse. It states that the geometric mean of the two segments equals the altitude.

Theorem and applications
If $\sqrt p$ denotes the altitude in a right triangle and $q$ and $h$ the segments on the hypotenuse then the theorem can be stated as:
 * $$h=\sqrt{pq} $$

or in term of areas:
 * $$h^2=pq.$$

The latter version yields a method to square a rectangle with ruler and compass, that is to construct a square of equal area to a given rectangle. For such a rectangle with sides $p$ and $q$ we denote its top left vertex with $p$. Now we extend the segment $q$ to its left by $D$ (using arc $q$ centered on $p$) and draw a half circle with endpoints $\overline{AE}$ and $D$ with the new segment $p + q$ as its diameter. Then we erect a perpendicular line to the diameter in $A$ that intersects the half circle in $B$. Due to Thales' theorem $D$ and the diameter form a right triangle with the line segment $C$ as its altitude, hence $C$ is the side of a square with the area of the rectangle. The method also allows for the construction of square roots (see constructible number), since starting with a rectangle that has a width of 1 the constructed square will have a side length that equals the square root of the rectangle's length.

Another application of provides a geometrical proof of the AM–GM inequality in the case of two numbers. For the numbers $\overline{DC}$ and $\overline{DC}$ one constructs a half circle with diameter $p + q$. Now the altitude represents the geometric mean and the radius the arithmetic mean of the two numbers. Since the altitude is always smaller or equal to the radius, this yields the inequality.

The theorem can also be thought of as a special case of the intersecting chords theorem for a circle, since the converse of Thales' theorem ensures that the hypotenuse of the right angled triangle is the diameter of its circumcircle.

The converse statement is true as well. Any triangle, in which the altitude equals the geometric mean of the two line segments created by it, is a right triangle.

History
The theorem is usually attributed to Euclid (ca. 360–280 BC), who stated it as a corollary to proposition 8 in book VI of his Elements. In proposition 14 of book II Euclid gives a method for squaring a rectangle, which essentially matches the method given here. Euclid however provides a different slightly more complicated proof for the correctness of the construction rather than relying on the geometric mean theorem.

Based on similarity
Proof of theorem:

The triangles $△ADC, △ BCD$ are similar, since:
 * consider triangles $△ABC, △ACD$; here we have $$\angle ACB=\angle ADC=90^\circ, \quad \angle BAC=\angle CAD;$$ therefore by the AA postulate $$\triangle ABC \sim \triangle ACD .$$
 * further, consider triangles $△ABC, △BCD$; here we have $$\angle ACB=\angle BDC= 90^\circ, \quad \angle ABC=\angle CBD;$$ therefore by the AA postulate $$\triangle ABC \sim \triangle BCD.$$

Therefore, both triangles $△ACD, △BCD$ are similar to $△ABC$ and themselves, i.e. $$\triangle ACD \sim \triangle ABC \sim \triangle BCD.$$

Because of the similarity we get the following equality of ratios and its algebraic rearrangement yields the theorem:
 * $$ \frac{h}{p}=\frac{q}{h}\,\Leftrightarrow\,h^2=pq\,\Leftrightarrow\,h=\sqrt{pq}\qquad (h,p,q> 0)$$

Proof of converse:

For the converse we have a triangle $△ABC$ in which $$h^2=pq$$ holds and need to show that the angle at $p$ is a right angle. Now because of $$h^2=pq$$ we also have $$\tfrac{h}{p}=\tfrac{q}{h}.$$ Together with $$\angle ADC=\angle CDB $$ the triangles $△ADC, △BDC$ have an angle of equal size and have corresponding pairs of legs with the same ratio. This means the triangles are similar, which yields:
 * $$\begin{align}

\angle ACB &= \angle ACD +\angle DCB \\ &= \angle ACD+(90^\circ-\angle DBC) \\ &= \angle ACD+(90^\circ-\angle ACD) \\ &= 90^\circ \end{align}$$

Based on trigonometric ratio
$$ \tan\alpha\cdot\tan\beta =\frac{h}{p}\cdot\frac{h}{q}\,\implies \tan\alpha\cdot\cot\alpha =\frac{h}{pq} \implies 1=\frac{h^2}{pq}\implies h=\sqrt{pq}$$

Based on the Pythagorean theorem
In the setting of the geometric mean theorem there are three right triangles $△ABC$, $△ADC$ and $△DBC$ in which the Pythagorean theorem yields:
 * $$\begin{align}

h^2 &= a^2-q^2 \\ h^2 &= b^2-p^2 \\ c^2 &= a^2+b^2 \end{align}$$ Adding the first 2 two equations and then using the third then leads to:
 * $$\begin{align}

2h^2 &= a^2+b^2-p^2-q^2 \\ &= c^2-p^2-q^2 \\ &= (p+q)^2-p^2-q^2 \\ &= 2pq \\ \therefore \ h^2 &= pq. \end{align}$$ which finally yields the formula of the geometric mean theorem.

Based on dissection and rearrangement


Dissecting the right triangle along its altitude $q$ yields two similar triangles, which can be augmented and arranged in two alternative ways into a larger right triangle with perpendicular sides of lengths $p + h$ and $q + h$. One such arrangement requires a square of area $h^{2}$ to complete it, the other a rectangle of area $C$. Since both arrangements yield the same triangle, the areas of the square and the rectangle must be identical.

Based on shear mappings
The square of the altitude can be transformed into an rectangle of equal area with sides $h$ and $pq$ with the help of three shear mappings (shear mappings preserve the area):