HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
The AM-GM-HM Inequality and Power Means
  1. 1Arithmetic, geometric and harmonic means
  2. 2Weighted means, power means and Bernoulli
  3. 3Greatest and least values with the means
  1. Mathematics
  2. /The AM-GM-HM Inequality and Power Means
  3. /Greatest and least values with the means

Course 29.1·Lesson 3 of 3

Greatest and least values with the means

AM-GM turns a fixed sum into a greatest product and a fixed product into a least sum. When the terms do not fit at once, split them so that their product, or their sum, becomes a constant and all parts can be equal. Always find the point of equality: a bound that no allowed numbers reach is not the answer.

about 25 min1 simulation1 practice question
Lesson 3 of 3Show all lessonsHide
The AM-GM-HM Inequality and Power Means
  1. 1Arithmetic, geometric and harmonic means
  2. 2Weighted means, power means and Bernoulli
  3. 3Greatest and least values with the means

Try the code and the simulations beside the lesson.

What you will be able to do

  • find greatest products from a fixed sum and least sums from a fixed product;
  • split terms so that AM-GM gives a constant bound;
  • check the equality case, and handle constraints that rule it out.

Two rules from one inequality

From a1+⋯+ann≥a1⋯ann\dfrac{a_1 + \dots + a_n}{n} \ge \sqrt[n]{a_1 \cdots a_n}na1​+⋯+an​​≥na1​⋯an​​ for positive numbers:

  • Fixed sum SSS: the product is at most (Sn)n\left(\dfrac{S}{n}\right)^n(nS​)n, reached when every number is Sn\dfrac{S}{n}nS​.
  • Fixed product PPP: the sum is at least nPnn\sqrt[n]{P}nnP​, reached when every number is Pn\sqrt[n]{P}nP​.

Calculus gives the same answers. AM-GM gets there in one line, and it also tells you that the answer is the best possible for any number of variables.

The splitting trick

Find the least value of f(x)=x2+16xf(x) = x^2 + \dfrac{16}{x}f(x)=x2+x16​ for x>0x > 0x>0.

The product x2⋅16x=16xx^2 \cdot \dfrac{16}{x} = 16xx2⋅x16​=16x is not a constant, so plain AM-GM on two terms fails. Split 16x\dfrac{16}{x}x16​ into two equal halves:

x2+8x+8x ≥ 3x2⋅8x⋅8x3=3643=12.\displaystyle x^2 + \dfrac{8}{x} + \dfrac{8}{x} \ \ge\ 3\sqrt[3]{x^2 \cdot \dfrac{8}{x} \cdot \dfrac{8}{x}} = 3\sqrt[3]{64} = 12.x2+x8​+x8​ ≥ 33x2⋅x8​⋅x8​​=3364​=12.

Now the product is 646464, a constant. Equality needs x2=8xx^2 = \dfrac{8}{x}x2=x8​, that is x3=8x^3 = 8x3=8 and x=2x = 2x=2. Then f(2)=4+8=12f(2) = 4 + 8 = 12f(2)=4+8=12. So the least value is 121212.

How do we know to split into halves? The power of xxx must cancel. With x2x^2x2 once and 1x\dfrac{1}{x}x1​ twice, the powers are 2−1−1=02 - 1 - 1 = 02−1−1=0.

The graph of y = x squared + 16/x for x from 0.5 to 5, in blue. It falls steeply, reaches its lowest point at x = 2, where y = 12, and then rises. A dashed orange horizontal line at y = 12 is labelled AM-GM bound, and it touches the curve at that one point, marked with a red dot labelled (2, 12).

A box from a sheet

A square sheet of side 121212 cm has a square of side xxx cm cut from each corner. The sides are folded up to make an open box of volume V=x(12−2x)2 cm3V = x(12 - 2x)^2\ \text{cm}^3V=x(12−2x)2 cm3.

  1. Make the sum constant. The factors xxx, 12−2x12 - 2x12−2x, 12−2x12 - 2x12−2x have a sum that depends on xxx. Use 4x4x4x instead: 4x+(12−2x)+(12−2x)=244x + (12 - 2x) + (12 - 2x) = 244x+(12−2x)+(12−2x)=24.
  2. Use AM-GM. 4V=4x(12−2x)(12−2x)≤(243)3=5124V = 4x(12 - 2x)(12 - 2x) \le \left(\dfrac{24}{3}\right)^3 = 5124V=4x(12−2x)(12−2x)≤(324​)3=512, so V≤128 cm3V \le 128\ \text{cm}^3V≤128 cm3.
  3. Equality. 4x=12−2x4x = 12 - 2x4x=12−2x gives x=2x = 2x=2 cm, and V=2×64=128 cm3V = 2 \times 64 = 128\ \text{cm}^3V=2×64=128 cm3.

When equality is out of reach

Find the least value of g(x)=x+4xg(x) = x + \dfrac{4}{x}g(x)=x+x4​ for x≥3x \ge 3x≥3.

AM-GM gives g(x)≥4g(x) \ge 4g(x)≥4, with equality at x=2x = 2x=2. But x=2x = 2x=2 is not allowed. On x≥3x \ge 3x≥3 the function only rises (the difference g(y)−g(x)=(y−x)(1−4xy)g(y) - g(x) = (y - x)\left(1 - \dfrac{4}{xy}\right)g(y)−g(x)=(y−x)(1−xy4​) is positive for y>x≥3y > x \ge 3y>x≥3). So the least value is g(3)=3+43=133g(3) = 3 + \dfrac{4}{3} = \dfrac{13}{3}g(3)=3+34​=313​.

Constraints with several letters

Positive a,b,ca, b, ca,b,c satisfy abc=1abc = 1abc=1. Show that (1+a)(1+b)(1+c)≥8(1 + a)(1 + b)(1 + c) \ge 8(1+a)(1+b)(1+c)≥8.

Each factor obeys 1+a≥2a1 + a \ge 2\sqrt{a}1+a≥2a​. Multiply the three: (1+a)(1+b)(1+c)≥8abc=8(1 + a)(1 + b)(1 + c) \ge 8\sqrt{abc} = 8(1+a)(1+b)(1+c)≥8abc​=8. Equality at a=b=c=1a = b = c = 1a=b=c=1. Multiplying inequalities like this is safe because every side is positive.

Practise with new numbers

Try it in Python

The program searches a fine grid of xxx values for the least value of x2+16xx^2 + \dfrac{16}{x}x2+x16​, and compares it with the AM-GM answer.

Read it first. Then run it. Does the grid search agree with the bound of 12?

1. Change the function to x ** 2 + 54 / x. Predict the least value with AM-GM first. Then run it.

2. Change lo = 0.1 to lo = 3. Where is the least value now, and why is the AM-GM bound no longer reached?

Common mistakes

  • A bound that depends on xxx. x2+16x≥216xx^2 + \dfrac{16}{x} \ge 2\sqrt{16x}x2+x16​≥216x​ is true, but the right side is not a number. It gives no least value.
  • Skipping the equality check. Always solve for the point where the parts are equal and make sure it is allowed.
  • Multiplying inequalities with negative sides. Only multiply when every side is positive.
  • Forgetting to undo a scaling. In the box, AM-GM bounds 4V4V4V, not VVV.

Remember these

  • Fixed sum gives a greatest product; fixed product gives a least sum.
  • Split terms so the powers cancel and all parts can be equal.
  • If the equality point is not allowed, look at the ends of the allowed range.
  • Scale a factor (like 4x4x4x) to make the sum constant.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. Find the least value of 9x+1x9x + \dfrac{1}{x}9x+x1​ for x>0x > 0x>0.
  1. Find the least value of x3+3xx^3 + \dfrac{3}{x}x3+x3​ for x>0x > 0x>0.
  1. Three positive numbers have sum 151515. What is their greatest product?
  1. Find the least value of x+1xx + \dfrac{1}{x}x+x1​ for x≥4x \ge 4x≥4.
  1. A rectangle has area 49 cm249\ \text{cm}^249 cm2. What is the least possible perimeter?

References

  • Engel, Problem-Solving Strategies, Chapter 7, on inequalities and the AM-GM method.
  • Steele, The Cauchy-Schwarz Master Class, Chapter 2.

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.
No payment. You can leave at any time.

Problems (4)

A workshop makes open trays from square aluminium sheets of side 30 cm…Hard · High School (11–12) · by StemPy Lab
An engineer models the cost of a cylindrical tank by C(x) = x² + 54/x, in thousands of rupees…Hard · High School (11–12) · by StemPy Lab
This problem is in the style of an admission test for a mathematics degree…Advanced · High School (11–12) · by StemPy Lab
That was the last lessonBack to the course: take the test
← The AM-GM-HM Inequality and Power Means
← Weighted means, power means and BernoulliNext →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Positive real numbers x, y and z satisfy xyz = 1…Advanced · High School (11–12) · by StemPy Lab

Python Labs (1)

Least values by search and by AM-GMPython Lab · by StemPy Lab

Question Sets (1)

Means and AM-GM: Check Your Understanding10 questions · by StemPy Lab

Notes (1)

Means and the AM-GM Inequality: Quick RevisionNote · by StemPy Lab