Prove $(x_1x_2\cdots x_n)^{\frac{1}{n}} \leq \frac{1}{n}(x_1+x_2+\cdots+x_n)$
for all $x_1,\ldots, x_n > 0$.
To prove this we are supposed to use the fact that the maximum of $(x_1x_2\cdots x_n)^2$, for all $x$ with $||x||^2 =1$,
is achieved in the point $a= (\frac{1}{\sqrt{n}}, ... , \frac{1}{\sqrt{n}})$, with the maximum equal to $\frac{1}{n^n}$. The value of point $a$ I calculated using the theorem of lagrange multipliers, however I do not know how to prove the statement with which I started the question.
Big thanks
This inequality is known as the inequality of arithmetic and geometric means, or the AM-GM inequality for short.
There are many many ways to prove it and I think you can easily find such proofs on the internet (such as on this website). Though it seems to me that you want a proof that uses the following fact that you are able to prove yourself:
Indeed, applying the above result for $$y_i = \sqrt{\frac{x_i}{x_1+\dots + x_n}}, \quad i=1,2,\dots,n,$$ (notice that $\|y\|^2=1$), we see that the maximum of $\frac{x_1\dots x_n}{(x_1+\dots + x_n)^n}$ is $1/n^n$, which means $$\frac{x_1\dots x_n}{(x_1+\dots + x_n)^n} \le \frac{1}{n^n},$$ or equivalently $$(x_1\dots x_n)^{1/n} \le \frac{x_1+\dots + x_n}{n},$$ achieved when $\sqrt{\frac{x_i}{x_1+\dots + x_n}} = \frac{1}{\sqrt{n}} \ \forall i$, i.e., $x_1=x_2=\dots=x_n$.
P/s: The technique for reducing the original unconstrained inequality over $x$ to the above constrained inequality over $y$ is called normalization.