For positive numbers, the arithmetic mean is never less than the geometric mean, and the geometric mean is never less than the harmonic mean. Equality holds only when all the numbers are equal. For two numbers the proof is one square, (a−b)2≥0
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
find the arithmetic, geometric, harmonic and quadratic means of a list;
prove AM ≥ GM ≥ HM for two numbers and for n numbers;
say exactly when equality holds, and why the numbers must be positive.
A fence and a field
You have 20 m of fence for a rectangular pen. A pen of 9 m by 1 m has an area of 9m2. A pen of 6 m by 4 m has 24m2. The square of 5 m by 5 m gives 25m2, and nothing beats it. Why does the square win?
The two sides have a fixed sum, 10 m. Their arithmetic mean is 5 m. The side of a square with the same area is the geometric meanlw. The area is largest when the geometric mean reaches the arithmetic mean, and that happens only for equal sides.
You met this for two numbers in the chapter on Sequences and Series. Here we prove it for any number of terms and use it as a tool.
The four means
Take positive numbers a1,a2,…,an.
Arithmetic mean:A=na1+a2+⋯+an.
Geometric mean:G=na1a2⋯an.
Harmonic mean:H=a11+a21+⋯+an1n.
Quadratic mean (also called the root mean square): Q=na12+a22+⋯+an2.
The harmonic mean is the reciprocal of the average of the reciprocals. It is the right average for rates. If you drive equal distances at two speeds, your average speed is their harmonic mean, not their arithmetic mean.
The chain of means
Q≥A≥G≥H,
with equality in each place only when a1=a2=⋯=an. Olympiad books call the middle part the AM-GM inequality. Some textbooks write it in words: the arithmetic mean of positive numbers is not less than their geometric mean.
Two numbers first
For a,b>0 a square cannot be negative:
(a−b)2≥0.
Expand it: a−2ab+b≥0, so 2a+b≥ab. Equality needs a=b, which means a=b.
For two numbers the harmonic mean is H=a+b2ab. Multiply it by A: AH=2a+b⋅a+b2ab=ab=G2. So G is the geometric mean of A and H. Since A≥G, we get H=AG2≤G.
The semicircle below shows all of this. Its diameter is a+b. The radius is A, and the half-chord standing at the split point is G. A half-chord can never be longer than a radius.
A semicircle on a horizontal diameter of length a + b, with a = 9 and b = 1. The diameter is split at a point P, 9 units from the left end and 1 unit from the right end. From the centre O a vertical blue radius of length 5 is labelled AM. From P a vertical red half-chord rises to the circle and is labelled GM, of length 3. A green segment from the top of the red half-chord drops onto the slanted radius from O, and the part of that radius near the circle, of length 1.8, is labelled HM. A note says AM is at least GM, and GM is at least HM.
Any number of terms: smoothing
Let the numbers have arithmetic mean A and suppose they are not all equal. Then one of them, say a1, is below A and another, say a2, is above A.
Replacea1 by A and a2 by a1+a2−A. The sum does not change, so the mean is still A.
Compare the products. The new pair gives A(a1+a2−A) and the old pair gave a1a2. The difference is A(a1+a2−A)−a1a2=(A−a1)(a2−A), which is positive.
Repeat. Each step makes one more number equal to A and raises the product. After at most n−1 steps every number is A, and the product is An.
So the original product is less than An, which means G<A. When all the numbers are equal, G=A. This proves AM-GM for n numbers.
For HM ≤ GM, apply AM-GM to the reciprocals a11,…,an1: their average is at least G1, which turns into H≤G. For QM ≥ AM, use ∑(ai−A)2≥0, which gives ∑ai2≥nA2.
A worked example
The product of four positive numbers is 81. What is the least value of their sum?
Use AM-GM.4a+b+c+d≥4abcd=481=3.
Multiply by 4. The sum is at least 12.
Check equality.a=b=c=d=3 has product 81 and sum 12, so 12 is reached.
The last step matters. A bound is the least value only when some allowed numbers reach it.
Practise with new numbers
Try it in Python
The program draws many random lists of positive numbers and checks the chain A≥G≥H on each one. It then tries a list of equal numbers.
Common mistakes
Using AM-GM with negative numbers. For −4 and −1 the arithmetic mean is −2.5 and (−4)(−1)=2. The inequality fails. Every number must be positive (or zero).
Forgetting the equality check.x+x1≥2 for x>0, but for x≥3 the least value is 310, because x=1 is not allowed.
Averaging speeds the wrong way. Equal distances need the harmonic mean, and equal times need the arithmetic mean.
Mixing the order. It is H≤G≤A≤Q. The harmonic mean is the smallest.
Remember these
A≥G≥H for positive numbers, and Q≥A.
Equality in any of them holds only when all the numbers are equal.
For two numbers, G2=AH.
A bound is a least or greatest value only if equality can happen.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Find the arithmetic, geometric and harmonic means of 2 and 18.
A cyclist rides 12 km uphill at 6 km/h and the same 12 km back at 12 km/h. What is her average speed?
The product of three positive numbers is 64. What is the least value of their sum?
Why can we not use AM-GM on the numbers −2 and −8?
In the smoothing proof, the numbers 1 and 7 have mean 4. The step replaces them with 4 and 4. By how much does their product grow?
References
Hardy, Littlewood and Pólya, Inequalities, Chapter 2, on the means of positive numbers.
NCERT, Mathematics Textbook for Class XI, Chapter 8 (Sequences and Series), the section on the relation between the arithmetic and geometric means.
Enroll free in The AM-GM-HM Inequality and Power Means
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.