Skip to main content

Combinatorial estimates

In this section, we will learn a few tricks to prove inequality relations. The following inequality shows up a lot in analysis of algorithms and it is worth remembering.

Lemma 12 (Arithmetic-Geometric mean inequality (AM-GM))

For any two positive reals a,ba,b, their geometric mean is no bigger than their arithmetic mean.

Proof:

We know that the square of any real number is non-negative, so let us try 0(ab)2=a+b2ab0 \leq (\sqrt{a} - \sqrt{b})^2 = a + b - 2\sqrt{ab}. Moving things around we get (a+b)/2ab(a+b)/2 \geq \sqrt{ab}. The left-hand-side and right-hand-side are the arithmetic and geometric means respectively.

Exercise 75

For which pairs of positive reals (a,b)(a,b) do we have equality ab=(a+b)/2\sqrt{ab} = (a+b)/2? Justify your answer.

Exercise 76

Let x1,,xnx_1,\ldots, x_n be positive reals. We will prove the following statement:

AMGM(n):(i=1nxi)/n(i=1nxi)1/nAMGM(n): (\sum_{i=1}^n x_i)/n \geq (\prod_{i=1}^n x_i)^{1/n}

Notice that we already proved the case when n=2n=2. Here you will see an application of a rather weird mathematical induction.

  1. Prove AMGM(n)    AMGM(2n)AMGM(n) \implies AMGM(2n) for all n2n\ge 2.
  2. Prove that AMGM(n)    AMGM(n1)AMGM(n) \implies AMGM(n-1) for all n4n\ge 4.
  3. Explain why the first and second parts together imply that the inequality holds for all nn.
Exercise 77

The Harmonic Mean (HM) of two positive reals a,ba,b is defined by 2/(1/a+1/b)2/(1/a+1/b). What is the relation between AM, GM, and HM? Prove your answer.

The following lemma is of extreme importance to computer scientists.1

Lemma 13

Let xx be any real number. Then 1+xex1+x \leq e^x.

We will not see a proof of this fact, but instead show a plot of both curves to convince ourselves. (Figure 14).

Comparison between two curves y= 1+x and y = e^x.

Figure 14: Comparison between two curves y=1+xy= 1+x and y=exy = e^x.

Exercise 78 (Bernoulli's inequality)

Prove: For all x1x \geq -1 and nNn \in {\mathbb N}, we have (1+x)n1+nx(1+x)^n \geq 1+nx.

Footnotes

  1. In the pre-tablet days, we would tell my students to cut out a piece of the lemma statement in paper and attach it to their bedroom's door. It is really super important ☺️