Sub topic 11
Arithmetic, Geometric and Harmonic Means of Two Numbers
Assume you can simplify fractions, work with square roots, and manipulate basic algebra. These skills are enough to compare the three standard means of two positive numbers.
The three means
For positive numbers \(x\) and \(y\):
- The arithmetic mean (AM) is the ordinary average:
\[ \text{AM}=\frac{x+y}{2} \]
- The geometric mean (GM) is the square root of the product:
\[ \text{GM}=\sqrt{xy} \]
- The harmonic mean (HM) is the reciprocal of the average of the reciprocals:
\[ \text{HM}=\frac{2}{\frac1x+\frac1y} =\frac{2xy}{x+y} \]
| Mean | Formula | Common interpretation |
|---|---|---|
| Arithmetic | \(\frac{x+y}{2}\) | Ordinary average |
| Geometric | \(\sqrt{xy}\) | Multiplicative average |
| Harmonic | \(\frac{2xy}{x+y}\) | Useful for equal-distance rates |
For \(x=4\) and \(y=9\):
\[ \text{AM}=\frac{13}{2},\qquad \text{GM}=\sqrt{36}=6,\qquad \text{HM}=\frac{72}{13} \]
The AM-GM-HM relationship
For all positive \(x\) and \(y\),
\[ \text{AM}\geq \text{GM}\geq \text{HM} \]
Equality holds throughout only when \(x=y\).
For two numbers, there is also a useful identity:
\[ \text{AM}\times\text{HM}=\text{GM}^2 \]
Proof:
\[ \frac{x+y}{2}\times\frac{2xy}{x+y}=xy=(\sqrt{xy})^2 \]
The inequality can be visualised as a chain.
Using AM-GM for optimisation
The AM-GM inequality gives fast maximum and minimum results.
If \(x+y=S\), then:
\[ \frac{x+y}{2}\geq\sqrt{xy} \]
Squaring both sides gives:
\[ xy\leq\frac{S^2}{4} \]
Therefore, for a fixed sum, the product is maximum when \(x=y\).
For example, if \(x+y=20\), then:
\[ xy\leq\frac{20^2}{4}=100 \]
The maximum occurs at \(x=y=10\).
Similarly, if \(xy=P\), then:
\[ x+y\geq2\sqrt{P} \]
Thus, for a fixed positive product, the sum is minimum when \(x=y\).
from fractions import Fraction
from math import sqrt
x, y = 4, 9
am = Fraction(x + y, 2)
gm = sqrt(x * y)
hm = Fraction(2 * x * y, x + y)
print(am, gm, hm)
print(am >= gm >= hm)
print(am * hm == gm ** 2)The code confirms the ordering and the identity. In a CAT question, identify the fixed quantity first. A fixed sum suggests maximising a product; a fixed product suggests minimising a sum.
CAT checks
- Use \(x=y\) when an optimisation question asks for an extreme value under a symmetric condition.
- Check whether the question asks for AM, GM, or HM. Their formulas are different.
- If two means are known, use \(\text{AM}\times\text{HM}=\text{GM}^2\).
- Keep units in mind. The harmonic mean is often appropriate for rates, but only under the correct equal-distance or equal-work conditions.
Exercise
Two positive numbers have arithmetic mean 10 and geometric mean 8. Find their harmonic mean.
Show answer
Since AM × HM = GM², HM = 8² / 10 = 64/10 = 32/5.