In mathematics, the HM-GM-AM-QM inequalities state the relationship between the harmonic mean, geometric mean, arithmetic mean, and quadratic mean (aka root mean square or RMS for short). Suppose that [math]\displaystyle{ x_1, x_2, \ldots, x_n }[/math] are positive real numbers. Then
These inequalities often appear in mathematical competitions and have applications in many fields of science.
There are three inequalities between means to prove. There are various methods to prove the inequalities, including mathematical induction, the Cauchy–Schwarz inequality, Lagrange multipliers, and Jensen's inequality. For several proofs that GM ≤ AM, see Inequality of arithmetic and geometric means.
From the Cauchy–Schwarz inequality on real numbers, setting one vector to (1, 1, ...):
The reciprocal of the harmonic mean is the arithmetic mean of the reciprocals [math]\displaystyle{ 1/x_1, \dots, 1/x_n }[/math], and it exceeds [math]\displaystyle{ 1/\sqrt[n]{x_1 \dots x_n} }[/math] by the AM-GM inequality. [math]\displaystyle{ x_i \gt 0 }[/math] implies the inequality:
When n = 2, the inequalities become
which can be visualized in a semi-circle whose diameter is [AB] and center D.
Suppose AC = x1 and BC = x2. Construct perpendiculars to [AB] at D and C respectively. Join [CE] and [DF] and further construct a perpendicular [CG] to [DF] at G. Then the length of GF can be calculated to be the harmonic mean, CF to be the geometric mean, DE to be the arithmetic mean, and CE to be the quadratic mean. The inequalities then follow easily by the Pythagorean theorem.
To infer the correct order, the four expressions can be evaluated with two small numbers.
For [math]\displaystyle{ x_1=10 }[/math] and [math]\displaystyle{ x_2=40 }[/math] in particular, this results in [math]\displaystyle{ 16 \lt 20 \lt 25 \lt 30 \sqrt{1 - \tfrac{1}{18}} }[/math].