Ma · Mathematics

How to Prove the Quadratic Mean–Arithmetic Mean Inequality

Published By the 9to5Science editorial team

At a glance

  1. 1. Define the means

    For numbers x₁,…,xₙ, the quadratic mean is the square root of their mean square.

  2. 2. Apply Cauchy–Schwarz

    Bound the square of the sum by n times the sum of the squares.

  3. 3. Take square roots

    Divide by n and take nonnegative square roots to obtain QM ≥ |AM|, hence QM ≥ AM.

  4. 4. Check equality

    For nonnegative inputs, equality holds exactly when all the numbers are equal.

The quadratic mean–arithmetic mean inequality says that the root mean square of a list of numbers is at least its arithmetic mean. The standard proof is a direct application of the Cauchy–Schwarz inequality. It works for any finite list of real numbers, and gives the slightly stronger statement that the quadratic mean is at least the absolute value of the arithmetic mean.

State the inequality

For real numbers x1,x2,…,xnx_1,x_2,\ldots,x_n, define the quadratic mean (QM) and arithmetic mean (AM) by

QM⁡=x12+x22+⋯+xn2n,AM⁡=x1+x2+⋯+xnn.\operatorname{QM}=\sqrt{\frac{x_1^2+x_2^2+\cdots+x_n^2}{n}}, \qquad \operatorname{AM}=\frac{x_1+x_2+\cdots+x_n}{n}.

Then

QM⁡≥∣AM⁡∣≥AM⁡.\operatorname{QM}\geq |\operatorname{AM}|\geq \operatorname{AM}.

When the inputs are nonnegative, this is usually written simply as QM⁡≥AM⁡\operatorname{QM}\geq\operatorname{AM}. Nonnegativity is often assumed in statements about means, but it is not needed for the inequality itself.

Proof using Cauchy–Schwarz

Apply Cauchy–Schwarz to the vectors (x1,x2,…,xn)(x_1,x_2,\ldots,x_n) and (1,1,…,1)(1,1,\ldots,1). It gives

(x1+x2+⋯+xn)2≤(x12+x22+⋯+xn2)(12+12+⋯+12).(x_1+x_2+\cdots+x_n)^2 \leq (x_1^2+x_2^2+\cdots+x_n^2)(1^2+1^2+\cdots+1^2).

The second factor on the right is nn, so

(x1+x2+⋯+xn)2≤n(x12+x22+⋯+xn2).(x_1+x_2+\cdots+x_n)^2 \leq n(x_1^2+x_2^2+\cdots+x_n^2).

Divide both sides by n2n^2:

(x1+x2+⋯+xnn)2≤x12+x22+⋯+xn2n.\left(\frac{x_1+x_2+\cdots+x_n}{n}\right)^2 \leq \frac{x_1^2+x_2^2+\cdots+x_n^2}{n}.

The left side is AM⁡2\operatorname{AM}^2 and the right side is QM⁡2\operatorname{QM}^2. Since QM⁡\operatorname{QM} is nonnegative, taking square roots yields

QM⁡≥∣AM⁡∣.\operatorname{QM}\geq |\operatorname{AM}|.

Finally, ∣AM⁡∣≥AM⁡|\operatorname{AM}|\geq\operatorname{AM} for every real number AM⁡\operatorname{AM}. Therefore QM⁡≥AM⁡\operatorname{QM}\geq\operatorname{AM}.

A proof by sums of squares

For nonnegative xix_i, there is also a useful proof that makes the gap between the two means visible. The identity

n∑i=1nxi2−(∑i=1nxi)2=∑1≤i<j≤n(xi−xj)2n\sum_{i=1}^n x_i^2-\left(\sum_{i=1}^n x_i\right)^2 =\sum_{1\leq i<j\leq n}(x_i-x_j)^2

has a nonnegative right side. Hence n∑xi2≥(∑xi)2n\sum x_i^2\geq(\sum x_i)^2. Dividing by n2n^2 and taking square roots gives QM⁡≥AM⁡\operatorname{QM}\geq\operatorname{AM}.

To verify the identity, expand each square on the right. Each xi2x_i^2 appears in exactly n−1n-1 pairs, while each product xixjx_ix_j appears with coefficient −2-2. The result is (n−1)∑xi2−2∑i<jxixj(n-1)\sum x_i^2-2\sum_{i<j}x_ix_j, which is also the expansion of the left side.

Worked example

Take the numbers 1,2,51,2,5. Their arithmetic mean is

AM⁡=1+2+53=83≈2.67.\operatorname{AM}=\frac{1+2+5}{3}=\frac{8}{3}\approx 2.67.

Their quadratic mean is

QM⁡=12+22+523=10≈3.16.\operatorname{QM}=\sqrt{\frac{1^2+2^2+5^2}{3}} =\sqrt{10}\approx 3.16.

Thus QM⁡>AM⁡\operatorname{QM}>\operatorname{AM}. The sum-of-squares identity also shows why equality fails here:

(1−2)2+(1−5)2+(2−5)2=1+16+9=26>0.(1-2)^2+(1-5)^2+(2-5)^2=1+16+9=26>0.

At the level of squared means, the difference is 10−(8/3)2=26/910-(8/3)^2=26/9, consistent with the identity after dividing by n2=9n^2=9.

When does equality hold?

Equality in Cauchy–Schwarz occurs when the two vectors are proportional. Here that means (x1,…,xn)(x_1,\ldots,x_n) is a constant multiple of (1,…,1)(1,\ldots,1), so all the inputs are equal.

For nonnegative inputs, all-equal inputs give equality: if each xi=c≥0x_i=c\geq0, then both means equal cc. For arbitrary real inputs, the stronger inequality QM⁡≥∣AM⁡∣\operatorname{QM}\geq|\operatorname{AM}| is an equality whenever all inputs are equal. Equality in the weaker statement QM⁡≥AM⁡\operatorname{QM}\geq\operatorname{AM} holds exactly when all inputs are equal to the same nonnegative number. If the arithmetic mean is negative, equality is impossible because QM⁡≥0>AM⁡\operatorname{QM}\geq0>\operatorname{AM}; if the arithmetic mean is zero, equality forces every input to be zero.

Common mistakes

  • Forgetting the absolute value for signed inputs. The direct Cauchy–Schwarz result is QM⁡≥∣AM⁡∣\operatorname{QM}\geq|\operatorname{AM}|. The usual AM statement follows because ∣AM⁡∣≥AM⁡|\operatorname{AM}|\geq\operatorname{AM}.
  • Taking square roots before dividing correctly. The inequality is between AM⁡2\operatorname{AM}^2 and QM⁡2\operatorname{QM}^2 only after dividing the sum-of-squares inequality by n2n^2.
  • Claiming equality for any list with the same average. Equality in Cauchy–Schwarz requires the entries themselves to be equal, not merely their average to have a particular value.
  • Mixing up QM with the mean of absolute values. The quadratic mean uses xi2x_i^2 inside the average and then takes one square root; it is not 1n∑∣xi∣\frac{1}{n}\sum |x_i|.

The same argument applies to weighted means when the weights are nonnegative and sum to one: the weighted quadratic mean is at least the weighted arithmetic mean. This follows by applying Cauchy–Schwarz to the vectors with components wixi\sqrt{w_i}x_i and wi\sqrt{w_i}.

References

  1. Inequalities

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.