# AM-GM Inequality

In mathematics, the **inequality of arithmetic and geometric means**, or more briefly the **AM–GM inequality**, states that the arithmetic mean of a list of non-negative real numbers is greater than or equal to the geometric mean of the same list; and further, that the two means are equal if and only if every number in the list is the same (in which case they are both that number).

The simplest non-trivial case – i.e., with more than one variable – for two non-negative numbers x and y, is the statement that

with equality if and only if *x* = *y*.
This case can be seen from the fact that the square of a real number is always non-negative (greater than or equal to zero) and from the elementary case (*a* ± *b*)^{2} = *a*^{2} ± 2*ab* + *b*^{2} of the binomial formula:

Hence (*x* + *y*)^{2} ≥ 4*xy*, with equality precisely when (*x* − *y*)^{2} = 0, i.e. *x* = *y*. The AM–GM inequality then follows from taking the positive square root of both sides and then dividing both sides by *2*.

For a geometrical interpretation, consider a rectangle with sides of length x and y, hence it has perimeter 2*x* + 2*y* and area xy. Similarly, a square with all sides of length √*xy* has the perimeter 4√*xy* and the same area as the rectangle. The simplest non-trivial case of the AM–GM inequality implies for the perimeters that 2*x* + 2*y* ≥ 4√*xy* and that only the square has the smallest perimeter amongst all rectangles of equal area.

The simplest case is implicit in Euclid's Elements, Book 5, Proposition 25.^{[2]}

Extensions of the AM–GM inequality are available to include weights or generalized means.

## Background[edit]

The *arithmetic mean*, or less precisely the *average*, of a list of n numbers *x*_{1}, *x*_{2}, . . . , *x _{n}* is the sum of the numbers divided by n:

The *geometric mean* is similar, except that it is only defined for a list of *nonnegative* real numbers, and uses multiplication and a root in place of addition and division:

If *x*_{1}, *x*_{2}, . . . , *x _{n}* > 0, this is equal to the exponential of the arithmetic mean of the natural logarithms of the numbers:

## The inequality[edit]

Restating the inequality using mathematical notation, we have that for any list of n nonnegative real numbers *x*_{1}, *x*_{2}, . . . , *x _{n}*,

and that equality holds if and only if *x*_{1} = *x*_{2} = · · · = *x _{n}*.

## Geometric interpretation[edit]

In two dimensions, 2*x*_{1} + 2*x*_{2} is the perimeter of a rectangle with sides of length *x*_{1} and *x*_{2}. Similarly, 4√*x*_{1}*x*_{2} is the perimeter of a square with the same area, *x*_{1}*x*_{2}, as that rectangle. Thus for *n* = 2 the AM–GM inequality states that a rectangle of a given area has the smallest perimeter if that rectangle is also a square.

The full inequality is an extension of this idea to n dimensions. Every vertex of an n-dimensional box is connected to n edges. If these edges' lengths are *x*_{1}, *x*_{2}, . . . , *x _{n}*, then

*x*

_{1}+

*x*

_{2}+ · · · +

*x*is the total length of edges incident to the vertex. There are 2

_{n}^{n}vertices, so we multiply this by 2

^{n}; since each edge, however, meets two vertices, every edge is counted twice. Therefore, we divide by 2 and conclude that there are 2

^{n−1}

*n*edges. There are equally many edges of each length and n lengths; hence there are 2

^{n−1}edges of each length and the total of all edge lengths is 2

^{n−1}(

*x*

_{1}+

*x*

_{2}+ · · · +

*x*). On the other hand,

_{n}is the total length of edges connected to a vertex on an n-dimensional cube of equal volume, since in this case *x*_{1}=...=*x*_{n}. Since the inequality says

it can be restated by multiplying through by *n*2^{n–1} to obtain

with equality if and only if
*x*_{1} = *x*_{2} = · · · = *x _{n}*.

Thus the AM–GM inequality states that only the n-cube has the smallest sum of lengths of edges connected to each vertex amongst all n-dimensional boxes with the same volume.^{[3]}

## Examples[edit]

### Example 1[edit]

If , then the A.M.-G.M. tells us that

### Example 2[edit]

A simple upper bound for can be found. AM-GM tells us

and so

with equality at .

Equivalently,

### Example 3[edit]

Consider the function

for all positive real numbers x, y and z. Suppose we wish to find the minimal value of this function. It can be rewritten as:

with

Applying the AM–GM inequality for *n* = 6, we get

Further, we know that the two sides are equal exactly when all the terms of the mean are equal:

All the points (*x*, *y*, *z*) satisfying these conditions lie on a half-line starting at the origin and are given by

## Applications[edit]

An important practical application in financial mathematics is to computing the rate of return: the annualized return, computed via the geometric mean, is less than the average annual return, computed by the arithmetic mean (or equal if all returns are equal). This is important in analyzing investments, as the average return overstates the cumulative effect.

## Proofs of the AM–GM inequality[edit]

### Proof using Jensen's inequality[edit]

Jensen's inequality states that the value of a concave function of an arithmetic mean is greater than or equal to the arithmetic mean of the function's values. Since the logarithm function is concave, we have

Taking antilogs of the far left and far right sides, we have the AM–GM inequality.

### Proof by successive replacement of elements[edit]

We have to show that

with equality only when all numbers are equal.

If not all numbers are equal, then there exist such that . Replacing x_{i} by and x_{j} by will leave the arithmetic mean of the numbers unchanged, but will increase the geometric mean because

If the numbers are still not equal, we continue replacing numbers as above. After at most such replacement steps all the numbers will have been replaced with while the geometric mean strictly increases at each step. After the last step, the geometric mean will be , proving the inequality.

It may be noted that the replacement strategy works just as well from the right hand side. If any of the numbers is 0 then so will the geometric mean thus proving the inequality trivially. Therefore we may suppose that all the numbers are positive. If they are not all equal, then there exist such that . Replacing by and by leaves the geometric mean unchanged but strictly decreases the arithmetic mean since

- . The proof then follows along similar lines as in the earlier replacement.

### Induction proofs[edit]

#### Proof by induction #1[edit]

Of the non-negative real numbers *x*_{1}, . . . , *x _{n}*, the AM–GM statement is equivalent to

with equality if and only if *α* = *x _{i}* for all

*i*∈ {1, . . . ,

*n*}.

For the following proof we apply mathematical induction and only well-known rules of arithmetic.

**Induction basis:** For *n* = 1 the statement is true with equality.

**Induction hypothesis:** Suppose that the AM–GM statement holds for all choices of n non-negative real numbers.

**Induction step:** Consider *n* + 1 non-negative real numbers *x*_{1}, . . . , *x*_{n+1}, . Their arithmetic mean α satisfies

If all the x_{i} are equal to α, then we have equality in the AM–GM statement and we are done. In the case where some are not equal to α, there must exist one number that is greater than the arithmetic mean α, and one that is smaller than α. Without loss of generality, we can reorder our x_{i} in order to place these two particular elements at the end: *x _{n}* >

*α*and

*x*

_{n+1}<

*α*. Then

Now define *y* with

and consider the n numbers *x*_{1}, . . . , *x*_{n–1}, *y* which are all non-negative. Since

Thus, α is also the arithmetic mean of n numbers *x*_{1}, . . . , *x*_{n–1}, *y* and the induction hypothesis implies

Due to (*) we know that

hence

in particular *α* > 0. Therefore, if at least one of the numbers *x*_{1}, . . . , *x*_{n–1} is zero, then we already have strict inequality in (**). Otherwise the right-hand side of (**) is positive and strict inequality is obtained by using the estimate (***) to get a lower bound of the right-hand side of (**). Thus, in both cases we can substitute (***) into (**) to get

which completes the proof.

#### Proof by induction #2[edit]

First of all we shall prove that for real numbers *x*_{1} < 1 and *x*_{2} > 1 there follows

Indeed, multiplying both sides of the inequality *x*_{2} > 1 by 1 – *x*_{1}, gives

whence the required inequality is obtained immediately.

Now, we are going to prove that for positive real numbers *x*_{1}, . . . , *x*_{n} satisfying
*x*_{1} . . . *x*_{n} = 1, there holds

The equality holds only if *x*_{1} = ... = *x*_{n} = 1.

**Induction basis:** For *n* = 2 the statement is true because of the above property.

**Induction hypothesis:** Suppose that the statement is true for all natural numbers up to *n* – 1.

**Induction step:** Consider natural number *n*, i.e. for positive real numbers *x*_{1}, . . . , *x*_{n}, there holds *x*_{1} . . . *x*_{n} = 1. There exists at least one *x _{k}* < 1, so there must be at least one

*x*> 1. Without loss of generality, we let

_{j}*k*=

*n*– 1 and

*j*=

*n*.

Further, the equality *x*_{1} . . . *x*_{n} = 1 we shall write in the form of (*x*_{1} . . . *x*_{n–2}) (*x*_{n–1} *x*_{n}) = 1. Then, the induction hypothesis implies

However, taking into account the induction basis, we have

which completes the proof.

For positive real numbers *a*_{1}, . . . , *a*_{n}, let's denote

The numbers *x*_{1}, . . . , *x*_{n} satisfy the condition *x*_{1} . . . *x*_{n} = 1. So we have

whence we obtain

with the equality holding only for *a*_{1} = ... = *a*_{n}.

### Proof by Cauchy using forward–backward induction[edit]

The following proof by cases relies directly on well-known rules of arithmetic but employs the rarely used technique of forward-backward-induction. It is essentially from Augustin Louis Cauchy and can be found in his *Cours d'analyse*.^{[4]}

#### The case where all the terms are equal[edit]

If all the terms are equal:

then their sum is *nx*_{1}, so their arithmetic mean is *x*_{1}; and their product is *x*_{1}^{n}, so their geometric mean is *x*_{1}; therefore, the arithmetic mean and geometric mean are equal, as desired.

#### The case where not all the terms are equal[edit]

It remains to show that if *not* all the terms are equal, then the arithmetic mean is greater than the geometric mean. Clearly, this is only possible when *n* > 1.

This case is significantly more complex, and we divide it into subcases.

##### The subcase where *n* = 2[edit]

If *n* = 2, then we have two terms, *x*_{1} and *x*_{2}, and since (by our assumption) not all terms are equal, we have:

hence

as desired.

##### The subcase where *n* = 2^{k}[edit]

Consider the case where *n* = 2^{k}, where k is a positive integer. We proceed by mathematical induction.

In the base case, *k* = 1, so *n* = 2. We have already shown that the inequality holds when *n* = 2, so we are done.

Now, suppose that for a given *k* > 1, we have already shown that the inequality holds for *n* = 2^{k−1}, and we wish to show that it holds for *n* = 2^{k}. To do so, we apply the inequality twice for 2^{k-1} numbers and once for 2 numbers to obtain:

where in the first inequality, the two sides are equal only if

and

(in which case the first arithmetic mean and first geometric mean are both equal to *x*_{1}, and similarly with the second arithmetic mean and second geometric mean); and in the second inequality, the two sides are only equal if the two geometric means are equal. Since not all 2^{k} numbers are equal, it is not possible for both inequalities to be equalities, so we know that:

as desired.

##### The subcase where *n* < 2^{k}[edit]

If n is not a natural power of 2, then it is certainly *less* than some natural power of 2, since the sequence 2, 4, 8, . . . , 2^{k}, . . . is unbounded above. Therefore, without loss of generality, let m be some natural power of 2 that is greater than n.

So, if we have n terms, then let us denote their arithmetic mean by α, and expand our list of terms thus:

We then have:

so

and

as desired.

### Proof by induction using basic calculus[edit]

The following proof uses mathematical induction and some basic differential calculus.

**Induction basis**: For *n* = 1 the statement is true with equality.

**Induction hypothesis**: Suppose that the AM–GM statement holds for all choices of n non-negative real numbers.

**Induction step**: In order to prove the statement for *n* + 1 non-negative real numbers *x*_{1}, . . . , *x _{n}*,

*x*

_{n+1}, we need to prove that

with equality only if all the *n* + 1 numbers are equal.

If all numbers are zero, the inequality holds with equality. If some but not all numbers are zero, we have strict inequality. Therefore, we may assume in the following, that all *n* + 1 numbers are positive.

We consider the last number *x*_{n+1} as a variable and define the function

Proving the induction step is equivalent to showing that *f*(*t*) ≥ 0 for all *t* > 0, with *f*(*t*) = 0 only if *x*_{1}, . . . , *x _{n}* and t are all equal. This can be done by analyzing the critical points of f using some basic calculus.

The first derivative of f is given by

A critical point *t*_{0} has to satisfy *f′*(*t*_{0}) = 0, which means

After a small rearrangement we get

and finally

which is the geometric mean of *x*_{1}, . . . , *x _{n}*. This is the only critical point of f. Since

*f′′*(

*t*) > 0 for all

*t*> 0, the function f is strictly convex and has a strict global minimum at

*t*

_{0}. Next we compute the value of the function at this global minimum:

where the final inequality holds due to the induction hypothesis. The hypothesis also says that we can have equality only when *x*_{1}, . . . , *x _{n}* are all equal. In this case, their geometric mean

*t*

_{0}has the same value, Hence, unless

*x*

_{1}, . . . ,

*x*,

_{n}*x*

_{n+1}are all equal, we have

*f*(

*x*

_{n+1}) > 0. This completes the proof.

This technique can be used in the same manner to prove the generalized AM–GM inequality and Cauchy–Schwarz inequality in Euclidean space **R**^{n}.

### Proof by Pólya using the exponential function[edit]

George Pólya provided a proof similar to what follows. Let *f*(*x*) = e^{x–1} – *x* for all real x, with first derivative *f′*(*x*) = e^{x–1} – 1 and second derivative *f′′*(*x*) = e^{x–1}. Observe that *f*(1) = 0, *f′*(1) = 0 and *f′′*(*x*) > 0 for all real x, hence f is strictly convex with the absolute minimum at *x* = 1. Hence *x* ≤ e^{x–1} for all real x with equality only for *x* = 1.

Consider a list of non-negative real numbers *x*_{1}, *x*_{2}, . . . , *x _{n}*. If they are all zero, then the AM–GM inequality holds with equality. Hence we may assume in the following for their arithmetic mean

*α*> 0. By n-fold application of the above inequality, we obtain that

with equality if and only if *x _{i}* =

*α*for every

*i*∈ {1, . . . ,

*n*}. The argument of the exponential function can be simplified:

Returning to (*),

which produces *x*_{1} *x*_{2} · · · *x _{n}* ≤

*α*, hence the result

^{n}^{[5]}

### Proof by Lagrangian multipliers[edit]

If any of the are , then there is nothing to prove. So we may assume all the are strictly positive.

Because the arithmetic and geometric means are homogeneous of degree 1, without loss of generality assume that . Set , and . The inequality will be proved (together with the equality case) if we can show that the minimum of subject to the constraint is equal to , and the minimum is only achieved when . Let us first show that the constrained minimization problem has a global minimum.

Set . Since the intersection is compact, the extreme value theorem guarantees that the minimum of subject to the constraints and is attained at some point inside . On the other hand, observe that if any of the , then , while , and . This means that the minimum inside is in fact a global minimum, since the value of at any point inside is certainly no smaller than the minimum, and the value of at any point not inside is strictly bigger than the value at , which is no smaller than the minimum.

The method of Lagrange multipliers says that the global minimum is attained at a point where the gradient of is times the gradient of , for some . We will show that the only point at which this happens is when and

Compute and

along the constraint. Setting the gradients proportional to one another therefore gives for each that and so Since the left-hand side does not depend on , it follows that , and since , it follows that and , as desired.

## Generalizations[edit]

### Weighted AM–GM inequality[edit]

There is a similar inequality for the weighted arithmetic mean and weighted geometric mean. Specifically, let the nonnegative numbers *x*_{1}, *x*_{2}, . . . , *x _{n}* and the nonnegative weights

*w*

_{1},

*w*

_{2}, . . . ,

*w*be given. Set

_{n}*w*=

*w*

_{1}+

*w*

_{2}+ · · · +

*w*. If

_{n}*w*> 0, then the inequality

holds with equality if and only if all the x_{k} with *w _{k}* > 0 are equal. Here the convention 0

^{0}= 1 is used.

If all *w _{k}* = 1, this reduces to the above inequality of arithmetic and geometric means.

One stronger version of this, which also gives strengthened version of the unweighted version, is due to Aldaz. In particular,
There is a similar inequality for the weighted arithmetic mean and weighted geometric mean. Specifically, let the nonnegative numbers *x*_{1}, *x*_{2}, . . . , *x _{n}* and the nonnegative weights

*w*

_{1},

*w*

_{2}, . . . ,

*w*be given. Assume further that the sum of the weights is 1. Then .

_{n}^{[6]}

#### Proof using Jensen's inequality[edit]

Using the finite form of Jensen's inequality for the natural logarithm, we can prove the inequality between the weighted arithmetic mean and the weighted geometric mean stated above.

Since an x_{k} with weight *w _{k}* = 0 has no influence on the inequality, we may assume in the following that all weights are positive. If all x

_{k}are equal, then equality holds. Therefore, it remains to prove strict inequality if they are not all equal, which we will assume in the following, too. If at least one x

_{k}is zero (but not all), then the weighted geometric mean is zero, while the weighted arithmetic mean is positive, hence strict inequality holds. Therefore, we may assume also that all x

_{k}are positive.

Since the natural logarithm is strictly concave, the finite form of Jensen's inequality and the functional equations of the natural logarithm imply

Since the natural logarithm is strictly increasing,

### Matrix arithmetic–geometric mean inequality[edit]

Most matrix generalizations of the arithmetic geometric mean inequality apply on the level of unitarily invariant norms, owing to the fact that even if the matrices and are positive semi-definite the matrix may not be positive semi-definite and hence may not have a canonical square root. In ^{[7]} Bhatia and Kittaneh proved that for any unitarily invariant norm and positive semi-definite matrices and it is the case that

Later, in ^{[8]} the same authors proved the stronger inequality that

Finally, it is known for dimension that the following strongest possible matrix generalization of the arithmetic-geometric mean inequality holds, and it is conjectured to hold for all

This conjectured inequality was shown by Stephen Drury in 2012. Indeed, he proved^{[9]}

### Other generalizations[edit]

Other generalizations of the inequality of arithmetic and geometric means include:

- Muirhead's inequality,
- Maclaurin's inequality,
- Generalized mean inequality,
- Means of complex numbers.
^{[10]}

## See also[edit]

## Notes[edit]

**^**If AC =*a*and BC =*b*. OC =**AM**of*a*and*b*, and radius*r*= QO = OG.

Using Pythagoras' theorem, QC² = QO² + OC² ∴ QC = √QO² + OC² =**QM**.

Using Pythagoras' theorem, OC² = OG² + GC² ∴ GC = √OC² − OG² =**GM**.

Using similar triangles, HC/GC = GC/OC ∴ HC = GC²/OC =**HM**.

## References[edit]

**^**Hoffman, D. G. (1981), "Packing problems and inequalities", in Klarner, David A. (ed.),*The Mathematical Gardner*, Springer, pp. 212–225, doi:10.1007/978-1-4684-6686-7_19**^**"Euclid's Elements, Book V, Proposition 25".**^**Steele, J. Michael (2004).*The Cauchy-Schwarz Master Class: An Introduction to the Art of Mathematical Inequalities*. MAA Problem Books Series. Cambridge University Press. ISBN 978-0-521-54677-5. OCLC 54079548.**^**Cauchy, Augustin-Louis (1821).*Cours d'analyse de l'École Royale Polytechnique, première partie, Analyse algébrique,*Paris. The proof of the inequality of arithmetic and geometric means can be found on pages 457ff.**^**Arnold, Denise; Arnold, Graham (1993).*Four unit mathematics*. Hodder Arnold H&S. p. 242. ISBN 978-0-340-54335-1. OCLC 38328013.**^**Aldaz, J.M. (2009). "Self-Improvement of the Inequality Between Arithmetic and Geometric Means".*Journal of Mathematical Inequalities*.**3**(2): 213-216. doi:10.7153/jmi-03-21. Retrieved 11 January 2023.**^**Bhatia, Rajendra; Kittaneh, Fuad (1990). "On the singular values of a product of operators".*SIAM Journal on Matrix Analysis and Applications*.**11**(2): 272–277. doi:10.1137/0611018.**^**Bhatia, Rajendra; Kittaneh, Fuad (2000). "Notes on matrix arithmetic-geometric mean inequalities".*Linear Algebra and Its Applications*.**308**(1–3): 203–211. doi:10.1016/S0024-3795(00)00048-3.**^**S.W. Drury, On a question of Bhatia and Kittaneh, Linear Algebra Appl. 437 (2012) 1955–1960.**^**cf. Iordanescu, R.; Nichita, F.F.; Pasarescu, O. Unification Theories: Means and Generalized Euler Formulas. Axioms 2020, 9, 144.

## External links[edit]

- Arthur Lohwater (1982). "Introduction to Inequalities". Online e-book in PDF format.