Sub topic 15
AM-GM for Maximum and Minimum Problems
This chapter assumes you can solve linear and quadratic inequalities and use the rules for multiplying inequalities from earlier chapters.
The Inequality
For non-negative numbers a1, a2, ..., an:
- The arithmetic mean (AM) is (a1 + a2 + ... + an)/n.
- The geometric mean (GM) is the nth root of a1 × a2 × ... × an.
- AM ≥ GM always holds, and the two are equal only when every term is the same.
For two terms this reads (a + b)/2 ≥ √(ab). AM-GM gives quick answers to two kinds of CAT question:
| Given | Asked | Result |
|---|---|---|
| Fixed product | Minimum sum | Sum is smallest when the terms are equal |
| Fixed sum | Maximum product | Product is largest when the terms are equal |
Worked Example 1: Fixed Product
Find the minimum of x + 9/x for x > 0.
The product x × (9/x) = 9 is constant. So x + 9/x ≥ 2√9 = 6. Equality needs x = 9/x, which gives x = 3. The minimum is 6.
Worked Example 2: Splitting Terms
If x + y = 6 with x, y > 0, find the maximum of x²y.
Applying AM-GM to x and y directly does not work, because x²y is not the product of x and y. Split x into two equal parts so the terms x/2, x/2, y still have a constant sum of 6:
- AM = 6/3 = 2, so (x/2)(x/2)(y) ≤ 2³ = 8.
- That gives x²y ≤ 32.
- Equality holds when x/2 = y, so x = 4 and y = 2.
The split should match the exponents: a term raised to the power k is broken into k equal pieces.
grid = [i / 100 for i in range(1, 1001)]
print(round(min(x + 9 / x for x in grid), 4)) # 6.0, at x = 3
xs = [i / 100 for i in range(0, 601)]
print(round(max(x * x * (6 - x) for x in xs), 4)) # 32.0, at x = 4Common Errors
- Equality cannot be reached. For x ≥ 5, x + 9/x has no value equal to 6 because x = 3 lies outside the range. The minimum then sits at the boundary: 5 + 9/5 = 6.8.
- Nothing is constant. If neither the sum nor the product is fixed, AM-GM only gives a bound that depends on x. Rewrite or split the terms until one of them is constant.
- Wrong split. Use equal pieces whose total stays constant, as in the x/2, x/2, y split above.
Exercise
Find the minimum value of 4x + 1/x for x > 0, and the value of x where it occurs.
Show answer
The product 4x × (1/x) = 4 is constant, so 4x + 1/x ≥ 2√4 = 4. Equality needs 4x = 1/x, so x = 1/2. The minimum is 4.
Exercise
Positive numbers a, b, c satisfy a + b + c = 12. What is the maximum of abc?
Show answer
AM = 4, so abc ≤ 4³ = 64. Equality holds at a = b = c = 4, so the maximum is 64.