My question is: Prove-
If $a,b$ are two positive real numbers such that their sum is $a+b=k$. Then the product $ab$ is maximum if and only if $a=b=\displaystyle\frac{k}{2}$.
I proved the above theorem above using $(a+b)^2$ but I want to know how can it be proved using A.M. G.M. inequality.