The QM–AM–GM–HM inequalities for two positive numbers
Define and prove the chain of four means and apply it to fractions, reciprocal sums, and powers with exact equality conditions.
Content updated: October 22, 2026
Means compare different ways of combining the same two positive numbers. Each step in the chain has its own assumptions and equality condition; an example may apply one step directly or combine several.
Learning goals: define the four means, prove their chain of inequalities, and apply it to fractions and powers.
Prerequisites: positive numbers, square roots, and sums of squares.
On this page: Definition · Method · Examples · Practice · Further learning
1. Definitions of the four means
Let $a,b>0$. The quadratic, arithmetic, geometric, and harmonic means, respectively, are
The abbreviations stand for quadratic mean, arithmetic mean, geometric mean, and harmonic mean. Every denominator here is positive. We have $QM\ge AM\ge GM\ge HM$; on the domain $a,b>0$, equality at any step is equivalent to $a=b$.
The inequality $AM\ge GM$ is the arithmetic mean–geometric mean inequality, or AM–GM; many Vietnamese school lessons also use the name Cauchy for it. When applying it, specify the two nonnegative or positive quantities being compared.
2. Proving each step
Since $QM,AM$ are nonnegative, comparing their squares is equivalent. The difference of their squares is $QM^2-AM^2=(a-b)^2/4\ge0$, with equality when $a=b$.
We have
Hence $AM\ge GM$. Equality is equivalent to $\sqrt a=\sqrt b$, or $a=b$.
Finally, since $a+b$ and $\sqrt{ab}$ are positive, $GM\ge HM$ is equivalent to $a+b\ge2\sqrt{ab}$, already proved. Also $AM\cdot HM=GM^2$, so $AM\ge GM>0$ implies $HM\le GM$.
3. Six worked examples
Example 1. Two reciprocal fractions
For $a,b>0$, apply $AM\ge GM$ to $a/b$ and $b/a$:
Equality holds when $a/b=b/a$; since the numbers are positive, this is equivalent to $a=b$.
Example 2. A sum of three fractions
For $a,b,c>0$, expand and group three reciprocal pairs:
For the sum to equal $6$, all three pairs must equal $2$. Thus equality holds exactly when $a=b=c$.
Example 3. A sum of two reciprocals
From $AM\ge HM$, we obtain
Multiplying by the positive denominators gives
Equality holds when $a=b$. The difference $(a-b)^2/[ab(a+b)]\ge0$ provides a check.
Example 4. Third powers
For $a,b>0$, the inequality $a^2+b^2\ge2ab$ implies
Equality occurs at $a=b$. The difference of the two sides is also $(a+b)(a-b)^2$.
Example 5. An expression that is always positive
For $a,b>0$, we have $a^2+ab+b^2=(a+b/2)^2+3b^2/4>0$. The non-strict inequality $a^2+ab+b^2\ge0$ is therefore true but never equality on the positive domain. On the extended domain $a,b\in\mathbb R$, the expression is nonnegative and equals $0$ exactly when $a=b=0$.
Example 6. Fourth powers
For $a,b>0$, factor as
The second factor is positive by Example 5, so equality holds exactly when $a=b$. The conclusion is $a^4+b^4\ge a^3b+ab^3$; the two terms on its right side must remain distinct.
4. Practice
- Compute the four means for $a=1,b=4$ and check their order.
- For $x>0$, find the minimum value of $x+9/x$.
- Let $a,b>0$ and $a+b=10$. Find the maximum values of $ab$ and $HM$.
Hints and answers
- $QM=\sqrt{17/2}$, $AM=5/2$, $GM=2$, and $HM=8/5$. Every step is strict because $1\ne4$.
- $x+9/x\ge2\sqrt9=6$, with equality when $x=9/x$, or $x=3$.
- $ab\le((a+b)/2)^2=25$. Since $HM=2ab/10$, we have $HM\le5$. Both maxima are attained at $a=b=5$.
5. Common mistakes
Check the domain before using square roots or the harmonic mean. Do not include an equality case lying outside the domain. When multiplying an estimate by another expression, determine that expression’s sign. In the fourth-degree inequality, do not copy the term $a^3b$ twice.
6. Further learning
Basic properties of inequalities (English lesson) · Basic inequalities (English lesson) · The QM–AM–GM–HM inequalities for three numbers (English lesson).
Leave a Reply