The AM-GM inequality states that for x1,x2,...,xn>0x_1, x_2, ..., x_n >0 and λ1,λ2,...,λn≥0\lambda_1, \lambda_2, ..., \lambda_n \ge 0, such that ∑i=1nλi=1\sum_{i = 1}^n \lambda_i = 1, we have

∏ixiλi≤∑iλixi \prod_{i} x_i^{\lambda_i} \le \sum_i \lambda_i x_i

If particular, when λi=1n\lambda_i = \frac{1}{n}, the inequality becomes

∏ixin≤∑ixin \sqrt[^n]{\prod_i x_i} \le \frac{\sum_i x_i}{n}

Replaying xi=1yix_i = \frac{1}{y_i}, we obtain

n∑i1yi≤∏iyin \frac{n}{\sum_i \frac{1}{y_i}} \le \sqrt[^n]{\prod_i y_i}

Another famous case is n=2n = 2 and λ1=1p\lambda_1 = \frac{1}{p}, λ2=1q\lambda_2 = \frac{1}{q} and x1=xpx_1 = x^p, x2=yqx_2 = y^q, we get the Young's inequality

xy=(xp)1p(yq)1q≤xpp+yqq xy = (x^p)^\frac{1}{p} (y^q)^\frac{1}{q} \le \frac{x^p}{p} + \frac{y^q}{q}

The proof of AM-GM inequality is rather simple and follows immediately from the concavity of log⁡\log function:

∑iλilog⁡xi≤log⁡∑iλixi \sum_i \lambda_i \log x_i \le \log \sum_i \lambda_i x_i