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.
Substituting $a + b = k$ and taking squares gives us $$\frac{k^2}{4} \geq ab.$$ So the product $ab$ is bounded from above by a constant, and this upper bound can be achieved only by taking $a = b = \frac{k}{2}$.