QM-AM-GM-HM inequalities

In mathematics, the QM-AM-GM-HM inequalities, also known as the mean inequality chain, state the relationship between the harmonic mean, geometric mean, arithmetic mean, and quadratic mean (also known as root mean square). Suppose that $$x_1, x_2, \ldots, x_n$$ are positive real numbers. Then


 * $$0<\frac{n}{\frac{1}{x_1}+\frac{1}{x_2}+\cdots+\frac{1}{x_n}}\leq\sqrt[n]{x_1x_2\cdots x_n}\leq\frac{x_1+x_2+\cdots+x_n}{n} \leq\sqrt{\frac{x_1^2+x_2^2+\cdots+x_n^2}{n}}.$$

These inequalities often appear in mathematical competitions and have applications in many fields of science.

Proof
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.

AM-QM inequality
From the Cauchy–Schwarz inequality on real numbers, setting one vector to $(1, 1, ...)$:


 * $$\left( \sum_{i=1}^n x_i \cdot 1 \right)^2 \leq \left( \sum_{i=1}^n x_i^2 \right) \left( \sum_{i=1}^n 1^2 \right) = n \,\sum_{i=1}^n x_i^2,$$ hence $$\left( \frac{\sum_{i=1}^n x_i}{n} \right)^2 \leq \frac{\sum_{i=1}^n x_i^2}{n}$$. For positive $$x_i$$ the square root of this gives the inequality.

HM-GM inequality
The reciprocal of the harmonic mean is the arithmetic mean of the reciprocals $$1/x_1, \dots, 1/x_n$$, and it exceeds $$1/\sqrt[n]{x_1 \dots x_n}$$ by the AM-GM inequality. $$x_i > 0$$ implies the inequality:


 * $$ \frac{n}{\frac{1}{x_1} + \dots + \frac{1}{x_n}} \leq \sqrt[n]{x_1\dots x_n}. $$

The n&thinsp;=&thinsp;2 case
When n&thinsp;=&thinsp;2, the inequalities become
 * $$\frac 2 {\frac{1}{x_1}+\frac{1}{x_2}} \leq \sqrt{x_1 x_2} \leq \frac{x_1+x_2}{2}\leq\sqrt{\frac{x_1^2+x_2^2}{2}}$$ for all $$x_1, x_2 > 0,$$

which can be visualized in a semi-circle whose diameter is [AB] and center D.

Suppose AC&thinsp;=&thinsp;x1 and BC&thinsp;=&thinsp;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.



Tests
To infer the correct order, the four expressions can be evaluated with two positive numbers.

For $$x_1=10$$ and $$x_2=40$$ in particular, this results in $$16 < 20 < 25 < 5 \sqrt{34} $$.