***It’s recommended that you read this article on a computer or tablet. I apologize that the formatting isn’t great on a smartphone!***

One of my favorite theorems (inequalities) is the AM-GM inequality (or simply the AM-GM). “Why?” I hear you ask through the screen, it’s because there are so many wonderful proofs of the darn thing! From a beautiful geometric proof, to a creative `two steps forward, one step back‘ induction due to Cauchy, to a more analytic proof due to Pólya. I’m always pleasantly surprised by how many ways there are to prove the AM-GM. Today, we will cover these aforementioned proofs, so I hope that you have as much fun as I did when I learnt them!

Oh, and just so you know, and don’t get confused, I use the symbol below to denote the end of a proof.

Introduction

Each of the proofs we give will generalize our AM-GM inequality. This is one of the reasons why I find the AM-GM inequality to be so amazing. As we will see, each proof is creative and enlightening. However, each proof is also restrictive. For example, the geometric proof of the special case of the AM-GM won’t be very useful for proving the standard AM-GM inequality. And even though the proof we give for the standard AM-GM, due to Cauchy, can be generalized to get at the general AM-GM, the process is not that fun (in my opinion). Especially when we compare it to Pólya’s proof. So, as we climb the AM-GM ladder of generality, I hope you find some of the ideas enjoyable!

P.S. I apologize to my Master’s Thesis advisor (and Real Analysis 2 professor) Professor Joris Roos for breaking one of his rules, which is: do not use dots (\cdots) in proofs when trying to capture patterns. I will be doing a lot of this when writing a1++ana_1+\cdots + a_n instead of k=1nak\sum_{k=1}^na_k. Again, very sorry.

The Special Case AM-GM (by Geometry)

We begin with the following inequality:

Theorem (Special Case AM-GM): Let a,ba,b\in \R be non-negative. Then,

aba+b2.\sqrt{ab}\leq \frac{a + b}{2}.

A wonderful inequality that follows quickly from the algebraic fact that ab=12(a2+b2(ab)2).ab = \frac{1}{2}\Big(a^2 + b^2 -(a-b)^2\Big). However, there is a more geometric proof that is beautiful. This is our first proof.

Proof of Special Case AM-GM : (Click to see proof)

Our goal is to determine what hh is equal to in the following figure:

Note that the line (a+b)(a+b) is a diameter that shares an endpoint with the chords cc and dd. Also, the chords cc and dd share one endpoint.

I challenge you to try to figure it out! As a hint, you will need to prove something about some of the angles in the triangles…

Something about angles: (Click to see Lemma)

As it happens, we want to show that ch\angle ch is a right angle.

To do so, consider the following figure:

You might notice that we have two isosceles triangles (each has a radius as two of its legs). From this, we deduce: 2β+2θ=180°,2\beta+2\theta = 180\degree, which implies β+θ=90°.\beta+\theta = 90\degree.

Remark: We can also deduce the following as well: α+ϕ=180°,2θ+ϕ=180°.\alpha+ \phi = 180\degree,\;\;2\theta + \phi = 180\degree. From these equations, we can see that α=2θ,\alpha =2\theta, which you may recall comes from the inscribed angle theorem.

In summary we have:

Proof: (Click to see Full Proof)

Perfect, we have the following:

The key step is to notice that ahc\triangle ahc and hbd\triangle hbd are similar triangles (which follows from the fact that they both have the same internal angles, can you see why?). Thus, a/h=h/ba/h = h/b from which we deduce h=ab.h = \sqrt{ab}.

The final steps are to note that hradiush \leq radius, for any triangle that we draw, and that radius=a+b2.radius = \frac{a+b}{2}.

How nice is that proof?

Cauchy’s Induction and the Standard AM-GM

We now take our first step forward and prove what is usually called the AM-GM inequality:

Theorem (Standard AM-GM Inequality): Let a1,a2,,an0.a_1,a_2,\cdots,a_n\in \R_{\geq0}. Then,

a1a2anna1++ann.\sqrt[n]{a_1a_2\cdots a_n}\leq \frac{a_1 + \cdots +a_n}{n}.

This proof by induction is, in my opinion, striking the first time you see it. I hope you enjoy the two steps forward, one step back approach of this proof.

Scratch Work:

We know that we will use induction on n.n. The base case n=1n=1 is trivial, and we already showed the first nontrivial case n=2n=2 above. After some experimentation, we might get stuck on the inductive step because it is not easy to show that the AM-GM for nn implies the AM-GM for n+1.n+1. But, if we are lucky, we might notice that we can apply the n=2n=2 case twice to get the n=4n=4 case,

(a1a2a3a4)1/4=((a1a2)(a3a4))1/4(a1a2)1/2+(a3a4)1/22a1+a22+a3+a422=a1+a2+a3+a44.(a_1a_2a_3a_4)^{1/4} = ((a_1a_2)(a_3a_4))^{1/4} \\ \qquad\qquad\qquad\leq \frac{(a_1a_2)^{1/2}+(a_3a_4)^{1/2}}{2}\\ \qquad\qquad\qquad \leq \frac{\frac{a_1+a_2}{2}+\frac{a_3+a_4}{2}}{2}\\ \qquad\qquad\qquad = \frac{a_1+a_2+a_3+a_4}{4}.

As we will see, we can use this same idea in our induction to prove n=2k+1n=2^{k+1} using n=2k.n=2^k. However, this strategy only proves the AM-GM for nn equal to a power of two. How do you think we can get every nn from this?

The Proof
Proof of AM-GM: (Click to see proof)

We will first use induction to prove the AM-GM for powers of two. That is, we will induct on kk where n=2k.n=2^k. Our base case n=21=2n=2^1 = 2 has already been done above. Now assume that the AM-GM inequality holds for n=2kn=2^k and consider n=2k+1.n=2^{k+1}. Observe the following,

(a1a2a2ka2k+1a2k+1)1/2k+1(a1a2a2k)1/2k+(a2k+1a2k+2a2k+1)1/2k2a1++a2k+12k+1.(a_1a_2\cdots a_{2^k} a_{2^k +1}\cdots a_{2^{k+1}})^{1/2^{k+1}} \leq \frac{(a_1a_2\cdots a_{2^k})^{1/2^k} + (a_{2^{k}+1}a_{2^{k}+2}\cdots a_{2^{k+1}})^{1/2^k} }{2} \\\qquad\qquad \qquad \qquad\qquad\qquad\qquad\;\;\;\leq \frac{a_1 + \cdots +a_{2^{k+1}}}{2^{k+1}}.

Where we used both our n=2n= 2 base case and our induction hypothesis on (a1a2a2k)1/2k(a_1a_2\cdots a_{2^k})^{1/2^k} and (a2k+1a2k+2a2k+1)1/2k.(a_{2^k+1}a_{2^k+2}\cdots a_{2^{k+1}})^{1/2^k}. This closes the induction on our powers of two.

Before we move on, what did you come up with? If you got it, leave a comment!

We will show that the AM-GM inequality holds for all n.n. We do this by demonstrating that the 2k>n2^k>n case implies the nn case. How might we do this? Take a moment and see what you come up with!

The idea is to define a new sequence b1,b2,,b2kb_1,b_2,\cdots,b_{2^k} that is equal to

bi={ai,if1inA,ifn+1i2k.b_i = \begin{cases} a_i,\;\;\;\;\;\;\;\;\mathrm{if}\;1\leq i\leq n\\\;\; \;A,\;\;\;\;\mathrm{if}\;n+1\leq i\leq 2^k. \end{cases}

Where A:=a1+a2++ann.A:= \frac{a_1+a_2+\cdots+a_n}{n}. Now we can use the AM-GM for n=2kn=2^k to deduce,

(b1b2bnbn+1b2k)1/2kb1++b2k2k =a1++an+(2kn)A2k =2kA2k\begin{align} (b_1b_2\cdots b_{n} b_{n +1}\cdots b_{2^{k}})^{1/2^{k}} \leq \frac{b_1 + \cdots +b_{2^{k}}}{2^{k}} \\ \textit{ }\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\;\;=\frac{a_1 + \cdots +a_{n} + (2^k-n)A}{2^{k}}\\ \textit{ }\qquad\qquad\qquad\qquad\;\;\;=\frac{2^kA}{2^{k}} \end{align}

=A.()\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\;\;\;\;=A .\qquad\qquad\qquad\qquad\qquad\qquad(\char”2705)

Simplifying the (b1b2bnbn+1b2k)1/2k(b_1b_2\cdots b_{n} b_{n +1}\cdots b_{2^{k}})^{1/2^{k}} we get

(b1b2bnbn+1b2k)1/2k=(a1a2anA2kn)1/2k=(a1a2an)1/2kAAn/2k.()\begin{align} (b_1b_2\cdots b_{n} b_{n +1}\cdots b_{2^{k}})^{1/2^{k}} =(a_1a_2\cdots a_{n} A^{2^{k}-n})^{1/2^{k}} \\\qquad\qquad\qquad\;\qquad\qquad\qquad\;\qquad\qquad\qquad\;\;\;\;\;= \frac{(a_1a_2\cdots a_{n})^{1/2^{k}}A}{A^{n/2^k}} .\qquad\qquad\qquad\qquad(\char”26A1) \end{align}

It follows from ()(\char”2705) and ()(\char”26A1),

(a1a2an)1/2kAn/2k1.\begin{align} \frac{(a_1a_2\cdots a_{n})^{1/2^{k}}}{A^{n/2^k}} \leq 1. \end{align}

Moving An/2kA^{n/2^k} to the right we get

(a1a2an)1/2kAn/2k.(a_1a_2\cdots a_{n})^{1/2^{k}} \leq A^{n/2^k}.

Which we then raise to the 2k/n2^k/n th power to get our final result:

(a1a2an)1/nA=a1+a2++ann.(a_1a_2\cdots a_{n})^{1/n} \leq A = \frac{a_1+a_2+\cdots+a_n}{n}.

Concluding the proof.

A modest Generalization

Before moving on to George Pólya’s proof of the most general AM-GM inequality that we will discuss, we can actually generalize our result to the following,

Theorem (Modestly General AM-GM): Let a1,a2,,ana_1,a_2,\cdots,a_n \in \R be nonnegative and p1,p2,,pnp_1,p_2,\cdots,p_n\in \mathbb{Q} be positive rational numbers such that p1+p2++pn=1.p_1+p_2+\cdots+p_n=1. Then,

a1p1a2p2anpnp1a1+p2a2+pnan.a_1^{p_1}a_2^{p_2}\cdots a_n^{p_n}\leq p_1a_1 + p_2a_2\cdots +p_na_n.

Remark: Note that when p1=p2==pn=1/n,p_1=p_2 = \cdots = p_n = 1/n, we recover the standard AM-GM inequality.

Our most general AM-GM will allow for p1,p2,,pnp_1,p_2,\cdots,p_n to be any positive sequence of real numbers that satisfy p1+p2++pn=1.p_1+p_2+\cdots+p_n=1. However, we can already tackle the case where p1,p2,,pn.p_1,p_2,\cdots,p_n\in \mathbb{Q} . To do so, we will use a similar trick that we used in Cauchy’s proof. Namely, we will define a new sequence that contains multiple copies of elements from a1,a2,,an.a_1,a_2,\cdots,a_n.

Suppose that MM\in \N is large enough so that, for all ii, we have pi=qiMp_i = \frac{q_i}{M} for some qi.q_i\in \N. Now consider the product

((a11/Ma11/Ma11/M)q1times(an1/Man1/Man1/M)qntimes)1/M1M(q1a1+q2a2+qnan)=p1a1+p2a2+pnan.\Bigg(\underbrace{(a_1^{1/M} a_1^{1/M}\cdots a_1^{1/M})}_{q_1-\mathrm{times}} \cdots \underbrace{(a_n^{1/M} a_n^{1/M}\cdots a_n^{1/M})}_{q_n-\mathrm{times}} \Bigg)\,^{1/M} \leq \frac{1}{M}\Bigg( q_1a_1 + q_2a_2\cdots +q_na_n \Bigg) \\ \qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\;\;\;\;=p_1a_1 + p_2a_2\cdots +p_na_n.

BOOM!

George Pólya’s Proof

The proof we are going to give is one that the great mathematician George Pólya discovered. He said that this proof came to him in a dream, which is very impressive! This proof is like a good movie; there is suspense and a twist at the end. I hope you enjoy it!

Here we go!

This proof relies on the following observation/proposition:

Proposition: For any x,x\in \R, we have 1+xex.1+x \leq e^x.

However, we will require a quick lemma before “we” prove the above proposition.

Note: If you are okay with taking this proposition as a fact based on the graph above, then you can jump to the proof of the General AM-GM.

Lemma (Bernoulli’s Inequality): For all x[1,)x\in [-1,\infty) and nn\in \N we have

1+nx(1+x)n.1+nx \leq (1+x)^n.

Proof of Lemma: (Click to see proof)

Let x[1,).x\in [-1,\infty). We will prove Bernoulli’s inequality by induction on n.n. Our base case is immediate: 1+x(1+x)1.1+x \leq (1+x)^1. Now assume that 1+nx(1+x)n1+nx \leq (1+x)^n for some nn\in \N and consider 1+(n+1)x.1+(n+1)x. This induction step is one of those cases where we discover what we need to do by working backwards until we get what we want, and then when we type out the proof, we write it forwards, obscuring how we might have come up with the argument. However, I hope that you will allow me to simply give the tidy proof without the justification (in fact, it might be a fun challenge to see if you can figure out how you might come up with it!)

Observe the following steps:

1+(n+1)x1+(n+1)x+nx2becausenx20=1+nx+x+nx2=(1+nx)(1+x)(1+x)n(1+x)=(1+x)n+1.1+(n+1)x \leq 1+(n+1)x +nx^2\qquad \mathrm{because}\; nx^2\geq0 \\ \qquad\qquad\;\;\;\;\;= 1+nx+x +nx^2 \\ \qquad\qquad\;\;\;\;\;=(1+nx)(1+x)\\ \qquad\qquad\;\;\;\;\;\leq(1+x)^n(1+x)\\ \qquad\qquad\;\;\;\;\;=(1+x)^{n+1}.

Closing the induction and completing the proof.

*Where did we use the fact that x[1,)?x\in [-1,\infty)? We used it when we said: (1+x)n(1+x)(1+nx)(1+x).(1+x)^n (1+x) \geq (1+nx)(1+x). This is because x[1,)x\in [-1,\infty) implies 1+x0.1+x\geq 0.

Proof Idea of Proposition: (Click to see proof)

Let x.x\in \R. First, note that for x<1x\lt-1, we have 1+x<0<ex.1+x \lt0 \lt e^x. Next, for x1x\geq -1 we can use Bernoulli’s inequality. Recalling that exe^x (Euler’s number) is given by the following limit:

ex=limn(1+xn)n,e^x= \lim_{n\rightarrow \infty}{(1+\frac{x}{n})^n},

and noting that ((1+xn)n)n\Big((1+\frac{x}{n})^n\Big)\,_{n\in \N} is a monotone increasing sequence (or simply that (1+x/n)nex(1+x/n)^n \leq e^x for all nn and xx) while letting x/nxx/n \mapsto x in Bernoulli’s inequality, gives the desired result. So that you have something fun to do, I will leave the details of this proof to you! You’re welcome!

Proof of the AM-GM

Now on to the fun part!

Theorem (Generalized AM-GM): Let a1,a2,,ana_1,a_2,\cdots,a_n\in \R and p1,p2,,pnp_1,p_2,\cdots,p_n \in \R be nonnegative. If the sequence (pj)(p_j) are such that p1+p2++pn=1.p_1+p_2+\cdots+p_n=1. Then,

a1p1a2p2anpnp1a1+p2a2+pnan.a_1^{p_1}a_2^{p_2}\cdots a_n^{p_n}\leq p_1a_1 + p_2a_2\cdots +p_na_n.

Where we get equality if and only if ai=aja_i= a_j for all i,j.i,j.

Proof (Beginning): Let a1,a2,,ana_1,a_2,\cdots,a_n\in \R and p1,p2,,pnp_1,p_2,\cdots,p_n \in \R be nonnegative such that p1+p2++pn=1.p_1+p_2+\cdots+p_n=1.

First, consider the situation where a1,a2,,an=0.a_1,a_2,\cdots,a_n=0. Indeed, 000\leq0 (yup, that is the easiest inequality you will ever see), so the AM-GM is trivially satisfied.

With that out of the way, notice that xex1x\leq e^{x-1} by our proposition. Furthermore, xk(ex1)k=ekxk.x^k\leq (e^{x-1})^k = e^{kx-k}. Hence,

a1p1a2p2anpn(ep1a1p1)(ep2a2p2)(epnanpn)=ep1a1+p2a2+pnan(p1+p2+pn)=ep1a1+p2a2+pnan1sincep1+p2++pn=1.=e(i=1npiai)1a_1^{p_1}a_2^{p_2}\cdots a_n^{p_n}\leq (e^{p_1a_1-p_1})\;(e^{p_2a_2-p_2})\;\cdots (e^{p_na_n-p_n})\\\qquad \qquad \;\;\;\;\;\,=e^{p_1a_1+p_2a_2 + \cdots p_na_n-(p_1+p_2+ \cdots p_n)}\\ \qquad \qquad \;\;\;\;\;\,=e^{p_1a_1+p_2a_2 + \cdots p_na_n-1} \qquad \mathrm{since}\;p_1+p_2+\cdots+p_n=1.\\\qquad \qquad \;\;\;\;\;\,=e^{\Big(\sum_{i=1}^np_ia_i\Big)-1}

We now have an upper bound for a1p1a2p2anpn.a_1^{p_1}a_2^{p_2}\cdots a_n^{p_n}. How might we go on from here? This is where our twist comes in! We will normalize our sequence a1,,ana_1,\cdots,a_n to obtain the desired result. See what you might come up with before you continue reading!

Proof: (Click to see proof)

First, note that the inequality a1p1a2p2anpne(i=1npiai)1a_1^{p_1}a_2^{p_2}\cdots a_n^{p_n}\leq e^{\Big(\sum_{i=1}^np_ia_i\Big)-1} holds for any nonnegative sequence. This means we can use the result on a new sequence!

Let’s consider the sequence b1,b2,,bnb_1,b_2,\cdots,b_n \in \R where b1=a1/A0b_1 =a_1 /A\geq 0 and A=i=1npiai=p1a1+p2a2+pnan.A =\sum_{i=1}^np_ia_i= p_1a_1 + p_2a_2\cdots +p_na_n. Using what we’ve already established,

(a1A)p1(a2A)p2(anA)pn=b1p1b2p2bnpne(i=1npibi)1=e(i=1npiai)/A1=e11=e0=1.\Big(\frac{a_1}{A}\Big)\,^{p_1}\cdot \Big(\frac{a_2}{A}\Big)\;^{p_2}\cdots \,\Big(\frac{a_n}{A}\Big)\,^{p_n}={b}_1^{p_1}b_2^{p_2}\cdots b_n^{p_n} \\\qquad\qquad\qquad\qquad\qquad\qquad\;\leq e^{\Big(\sum_{i=1}^np_ib_i\Big)-1}\\\qquad\qquad\qquad\qquad\qquad\qquad\;=e^{\Big(\sum_{i=1}^np_ia_i\Big)/A-1} \\\qquad\qquad\qquad\qquad\qquad\qquad\;= e^{1-1} \\\qquad\qquad\qquad\qquad\qquad\qquad\;= e^0 \\\qquad\qquad\qquad\qquad\qquad\qquad\;= 1.

It follows that,

a1p1a2p2anpnAp1++pn1.\frac{a_1^{p_1}\cdot a_2^{p_2}\cdots a_n^{p_n}}{A^{p_1+\cdots + p_n}}\leq 1.

Recalling p1+p2++pn=1,p_1+p_2+\cdots+p_n=1,we deduce

a1p1a2p2anpnA=p1a1++pnan,a_1^{p_1}\cdot a_2^{p_2}\cdots a_n^{p_n}\leq A = p_1a_1 + \cdots +p_na_n,

almost concluding the proof. The last thing we need to do is argue why we have equality if and only if ai=aja_i= a_j for all i,j.i,j.

Note that aiA<eai/A1\frac{a_i}{A}\lt e^{a_i/A-1} unless aiA=1.\frac{a_i}{A} =1. Thus, we have a strict inequality unless ai=Aa_i=A for all i.i. Now we are done the proof.

How Wonderful!

I find all three proofs to be absolutely wonderful. Each requires some creativity, and each is completely different. In Cauchy’s proof, we can see how creative we can be when using induction. And in Pólya’s proof, we need to notice the key inequality 1+xex,1+x \leq e^x, as well as normalization. Pólya’s proof is the first place where I saw the idea of normalization used in such a crucial way. Normalization is a great tool to have in your mathematical toolbox, so I hope that Pólya’s proof thrilled you (and taught you about) the concept of normalization as much as it did for me when I first learnt it.

A gift for you

I hope that you had some fun with these today, but I can’t leave you empty-handed now, can I? So, in an effort to give you something to work on, I challenge you to prove the AM-GM-HM inequality:

Theorem (Standard AM-GM-HM Inequality): Let a1,a2,,an0.a_1,a_2,\cdots,a_n\in \R_{\geq0}. Then,

a1++anna1a2annn1a1++1an.\frac{a_1 + \cdots +a_n}{n} \geq \sqrt[n]{a_1a_2\cdots a_n}\geq \frac{n}{\frac{1}{a_1} + \cdots +\frac{1}{a_n}}.

Note that all you need to show is the right-most inequality with the harmonic mean (HM).

Click if you want a hint.

Use the standard AM-GM inequality with the sequence (1/ai)i.(1/a_i)_i.


P.S. Thank you for reading (at least part of) this long article! Please leave a comment if you notice any typos or if you have suggestions for how I can improve my writing! Thank you in advance!

Posted in

Leave a Reply

Discover more from billy-wehring.com

Subscribe now to keep reading and get access to the full archive.

Continue reading