A geometric construction of the quadratic mean and the Pythagorean means (of two numbers a and b). Harmonic mean denoted by   H, geometric by   G, arithmetic by   A and quadratic mean (also known as root mean square) denoted by   Q.
Comparison of the arithmetic, geometric and harmonic means of a pair of numbers. The vertical dashed lines are asymptotes for the harmonic means.

In mathematics, the three classical Pythagorean means are the arithmetic mean (AM), the geometric mean (GM), and the harmonic mean (HM). These means were studied with proportions by Pythagoreans and later generations of Greek mathematicians[1] because of their importance in geometry and music.

## Definition

They are defined by:

{\displaystyle {\begin{aligned}\operatorname {AM} \left(x_{1},\;\ldots ,\;x_{n}\right)&={\frac {x_{1}+\;\cdots \;+x_{n)){n))\\[9pt]\operatorname {GM} \left(x_{1},\;\ldots ,\;x_{n}\right)&={\sqrt[{n}]{\left\vert x_{1}\times \,\cdots \,\times x_{n}\right\vert ))\\[9pt]\operatorname {HM} \left(x_{1},\;\ldots ,\;x_{n}\right)&={\frac {n}{\displaystyle {\frac {1}{x_{1))}+\;\cdots \;+{\frac {1}{x_{n))))}\end{aligned))}

## Properties

Each mean, ${\textstyle \operatorname {M} }$, has the following properties:

First order homogeneity
${\displaystyle \operatorname {M} (bx_{1},\,\ldots ,\,bx_{n})=b\operatorname {M} (x_{1},\,\ldots ,\,x_{n})}$
Invariance under exchange
${\displaystyle \operatorname {M} (\ldots ,\,x_{i},\,\ldots ,\,x_{j},\,\ldots )=\operatorname {M} (\ldots ,\,x_{j},\,\ldots ,\,x_{i},\,\ldots )}$
for any ${\displaystyle i}$ and ${\displaystyle j}$.
Monotonicity
${\displaystyle a
Idempotence
${\displaystyle \forall x,\;M(x,x,\ldots x)=x}$

Monotonicity and idempotence together imply that a mean of a set always lies between the extremes of the set.

${\displaystyle \min(x_{1},\,\ldots ,\,x_{n})\leq \operatorname {M} (x_{1},\,\ldots ,\,x_{n})\leq \max(x_{1},\,\ldots ,\,x_{n})}$

The harmonic and arithmetic means are reciprocal duals of each other for positive arguments:

${\displaystyle \operatorname {HM} \left({\frac {1}{x_{1))},\,\ldots ,\,{\frac {1}{x_{n))}\right)={\frac {1}{\operatorname {AM} \left(x_{1},\,\ldots ,\,x_{n}\right)))}$

while the geometric mean is its own reciprocal dual:

${\displaystyle \operatorname {GM} \left({\frac {1}{x_{1))},\,\ldots ,\,{\frac {1}{x_{n))}\right)={\frac {1}{\operatorname {GM} \left(x_{1},\,\ldots ,\,x_{n}\right)))}$

## Inequalities among means

Geometric proof without words that max (a,b) > root mean square (RMS) or quadratic mean (QM) > arithmetic mean (AM) > geometric mean (GM) > harmonic mean (HM) > min (a,b) of two distinct positive numbers a and b [2]

There is an ordering to these means (if all of the ${\displaystyle x_{i))$ are positive)

${\displaystyle \min \leq \operatorname {HM} \leq \operatorname {GM} \leq \operatorname {AM} \leq \max }$

with equality holding if and only if the ${\displaystyle x_{i))$ are all equal.

This is a generalization of the inequality of arithmetic and geometric means and a special case of an inequality for generalized means. The proof follows from the arithmetic-geometric mean inequality, ${\displaystyle \operatorname {AM} \leq \max }$, and reciprocal duality (${\displaystyle \min }$ and ${\displaystyle \max }$ are also reciprocal dual to each other).

The study of the Pythagorean means is closely related to the study of majorization and Schur-convex functions. The harmonic and geometric means are concave symmetric functions of their arguments, and hence Schur-concave, while the arithmetic mean is a linear function of its arguments, so both concave and convex.

## History

Almost everything that we know about the Pythagorean means came from arithmetic handbooks written in the first and second century. Nicomachus of Gerasa says that they were “acknowledged by all the ancients, Pythagoras, Plato and Aristotle.” Their earliest known use is a fragment of the Pythagorean philosopher Archytas of Tarentum:

There are three means in music: one is arithmetic, second is the geometric, third is sub-contrary, which they call harmonic. The mean is arithmetic when three terms are in proportion such that the excess by which the first exceeds the second is that by which the second exceeds the third. In this proportion it turns out that the interval of the greater terms is less, but that of the lesser terms greater. The mean is the geometric when they are such that as the first is to the second, so the second is to the third. Of these terms the greater and the lesser have the interval between them equal. Subcontrary, which we call harmonic, is the mean when they are such that, by whatever part of itself the first term exceeds the second, by that part of the third the middle term exceeds the third. It turns out that in this proportion the interval between the greater terms is greater and that between the lesser terms is less. [3]

The name "harmonic mean", according to Iamblichus, was coined by Archytas and Hippasus. The Pythagorean means also appear in Plato's Timaeus. Another evidence of their early use is a commentary by Pappus.

It was […] Theaetetus who distinguished the powers which are commensurable in length from those which are incommensurable, and who divided the more generally known irrational lines according to the different means, assigning the medial lines to geometry, the binomial to arithmetic, and the apotome to harmony, as is stated by Eudemus, the Peripatetic.[4]

The term "mean" (μεσότης, mesótēs in Ancient Greek) appears in the Neopythagorean arithmetic handbooks in connection with the term "proportion" (ἀναλογία, analogía in Ancient Greek).[citation needed]

## Trivia

The smallest pairs of different natural numbers for which the arithmetic, geometric and harmonic means are all also natural numbers are (5,45) and (10,40).