I'm working on a proof of AM-GM inequality, but for now I would like to prove more basic propositions.
Prove that the arithmetic-geometric mean inequality holds for lists of numbers of length $2$. In other words, prove that for all positive real numbers $a$ and $b$ $$\frac{a+b}{2}≥\sqrt{ab}$$
My attempt:
We know that $(a-b)^2 ≥ 0 $
Expanding
$$a^2 - 2ab + b^2 ≥ 0$$
Adding $4ab$ to both sides
$$a^2 + 2ab + b^2 ≥ 4ab \implies $$ $$(a+b)^2 ≥ 4ab \implies $$ $$a+b ≥ 2\sqrt{ab} \implies $$ $$\frac{a+b}{2} ≥ \sqrt{ab}$$
$\Box$
Is it correct?
