Sub topic 15
AM-GM for Maximum and Minimum Problems
This chapter assumes you can apply the inequality sign rules from earlier chapters, handle exponents and roots, and solve simple equations. CAT often asks for the largest or smallest value of an expression under a constraint. Calculus is slow for these questions, and many students have not learned it well. The AM-GM inequality usually gives the answer in two or three lines.
The Statement and Its Equality Condition
For non-negative numbers a₁, a₂, ..., aₙ:
- The arithmetic mean (AM) is (a₁ + a₂ + ... + aₙ)/n.
- The geometric mean (GM) is the nth root of a₁a₂...aₙ.
- AM ≥ GM always holds, and equality holds exactly when all the numbers are equal.
For two numbers this reads (a + b)/2 ≥ √(ab). To prove it, expand (√a − √b)² ≥ 0, which gives a + b ≥ 2√(ab).
The harmonic mean (HM) completes the chain AM ≥ GM ≥ HM. For two numbers, HM = 2ab/(a + b). Equality again holds only when the numbers are equal.
The Two Core Uses
| What is fixed | What AM-GM gives | Extreme reached when |
|---|---|---|
| Sum a + b + ... | Maximum of the product ab... | all terms equal |
| Product ab... | Minimum of the sum a + b + ... | all terms equal |
For example, if x + y = 20 with x, y > 0, then xy ≤ (20/2)² = 100, with the maximum at x = y = 10. If xy = 36, then x + y ≥ 2√36 = 12, with the minimum at x = y = 6.
A standard case is x + 1/x ≥ 2 for x > 0. The product x · (1/x) = 1 is fixed, so the sum is at least 2, with equality at x = 1.
Splitting Terms to Make Something Constant
Real questions rarely hand you a fixed sum or product directly. You have to rewrite the expression so that one of them becomes constant. The usual trick is to split a term into equal parts.
Maximising a product with unequal powers
Problem: x, y > 0 and x + y = 12. Find the maximum of x²y.
Applying AM-GM to x and y gives a bound on xy, which is the wrong product. Split x into two halves instead, so the sum stays fixed and the product contains x²:
x/2 + x/2 + y = 12
Applying AM-GM to these three terms:
(x/2 + x/2 + y)/3 ≥ ∛((x/2)(x/2)y)
4 ≥ ∛(x²y/4), so x²y/4 ≤ 64 and x²y ≤ 256.
Equality holds when x/2 = y. Combined with x + y = 12, this gives y = 4 and x = 8, and 8² · 4 = 256 checks out.
The general rule: to maximise xᵐyⁿ with x + y fixed, split x into m equal parts and y into n equal parts. The maximum occurs at x : y = m : n.
Minimising a sum where the product is not constant
Problem: find the minimum of x² + 16/x for x > 0.
The product x² · 16/x = 16x still depends on x. Split 16/x into two equal halves so that x cancels:
x² + 8/x + 8/x ≥ 3∛(x² · 8/x · 8/x) = 3∛64 = 12
Equality needs x² = 8/x, so x³ = 8 and x = 2. Substituting gives 4 + 8 = 12. The minimum is 12.
The split works because the power of x in the product becomes 2 − 1 − 1 = 0. Choose your split so that the variable's exponents in the product add up to zero.
Matching coefficients in the constraint
Problem: a, b > 0 and 3a + 2b = 12. Maximise ab.
Apply AM-GM to the terms 3a and 2b, because their sum is the fixed quantity:
3a · 2b ≤ ((3a + 2b)/2)² = 36, so ab ≤ 6.
Equality holds when 3a = 2b = 6, which gives a = 2 and b = 3.
Common Errors and Edge Cases
Negative terms
AM-GM requires non-negative terms. For x < 0, x + 1/x is not at least 2. Write x = −t with t > 0. Then x + 1/x = −(t + 1/t) ≤ −2, so for negative x the expression has a maximum of −2 at x = −1 and no minimum.
Equality outside the allowed range
Problem: minimise x + 1/x for x ≥ 3.
AM-GM gives a lower bound of 2, but that needs x = 1, which is not allowed. The bound is true but never reached. Because x + 1/x increases for x ≥ 1, the minimum is at the boundary: 3 + 1/3 = 10/3. When the equality point is excluded, check the boundary.
Integer constraints
Problem: a, b, c are positive integers with a + b + c = 10. Maximise abc.
Equality would need a = b = c = 10/3, which is not an integer. Make the values as close to each other as possible: 3, 3, 4 gives a product of 36. Any less balanced choice, such as 2, 4, 4 (product 32), gives less.
A constant that is not truly constant
If you write x + 1/x² ≥ 2√(x · 1/x²) = 2/√x, you have not found a minimum, because the bound still depends on x. Split as x/2 + x/2 + 1/x² instead. The product is 1/4, so the sum is at least 3∛(1/4).
Verifying Numerically
A quick brute-force search confirms the worked answers:
# Maximum of x^2 * y with x + y = 12, over a fine grid of x
best = max((x * x * (12 - x), x) for x in [i / 100 for i in range(1, 1200)])
print(best) # (256.0, 8.0)
# Minimum of x^2 + 16/x for x > 0
low = min((x * x + 16 / x, x) for x in [i / 100 for i in range(1, 1001)])
print(low) # (12.0, 2.0)
# Positive integers a + b + c = 10, maximise abc
prod = max(a * b * (10 - a - b) for a in range(1, 9) for b in range(1, 10 - a))
print(prod) # 36Exercises
Exercise
a and b are positive with a + 2b = 8. Find the maximum value of ab.
Show answer
Apply AM-GM to a and 2b: a · 2b ≤ ((a + 2b)/2)² = 16, so ab ≤ 8. Equality holds when a = 2b = 4, which gives a = 4 and b = 2. The maximum is 8.
Exercise
Find the minimum value of 9x + 1/x for x > 0, and the x at which it occurs.
Show answer
The product 9x · (1/x) = 9 is constant, so 9x + 1/x ≥ 2√9 = 6. Equality holds when 9x = 1/x, which gives x = 1/3. The minimum is 6.
Exercise
Find the minimum value of x + 1/x for x ≥ 4.
Show answer
AM-GM gives 2, but only at x = 1, which is not allowed. The expression increases for x ≥ 1, so the minimum is at x = 4: 4 + 1/4 = 17/4.
Exercise
Positive integers a, b, c, d satisfy a + b + c + d = 14. What is the largest possible value of abcd?
Show answer
Equal values would be 3.5 each, which is not an integer. Use values as close as possible: 3, 3, 4, 4. The product is 144.