I want to prove that for all $x, y > 0$, $$\cfrac{x+y}{2} \geq \sqrt{xy}$$ Particularly, I want to show that the minimum of $(x+y)/2$ is exactly $\sqrt{xy}$.
This is my attempt:
$\textbf{Proof}$ (Contradiction). Assume if $x, y > 0$, then $(x+y)/2 < \sqrt{xy}$. But \begin{align*} x+y &< 2\sqrt{xy} \\ x^2+2xy+y^2 &< 4xy \\ x^2-2xy+y^2 &< 0 \\ (x-y)^2 &< 0 \end{align*} gives us a contradiction since for all $x, y > 0$, we know $(x-y)^2 > 0$. Therefore there exists no positive reals $x$ and $y$ such that $(x+y)/2 < \sqrt{xy}$, or $\min\bigg(\cfrac{x+y}{2}\bigg) = \sqrt{xy}$. $\qquad \square$