Find the max of a function $$f(x_1, x_2,...,x_m)=x_1 x_2 \cdots x_m$$ when $x_1^2+x_2^2+ \cdots +x_m^2=1$
I am looking for unique solutions. So far I've tried two different ways.
One of them was with Lagrange multiplier but there seem to be quite too many variables and I couldn't express $x_1,...,x_m$ separately.
The second one solution is with the Inequality of arithmetic and geometric means.
$$\frac{x_1^2+...+x_m^2}{m}\ge \sqrt[m]{x_1^2 \cdots x_m^2} \implies \frac{1}{m} \ge \sqrt[m]{x_1^2 \cdots x_m^2}=(x_1 \cdots x_m)^{\frac{2}{m}} \implies $$ $$x_1 \cdots x_m \le \frac{1}{m^{\frac{m}{2}}}$$ So we can assume that $$\max f(x_1, x_2,...,x_m)=\frac{1}{m^{\frac{m}{2}}} \quad \forall x_i=\frac{1}{\sqrt m}, \quad i=1,2,...,m.$$
I'd love to know if somebody solved this exercise with Langrange multiplier or in other way. Thanks in advance!
$$x_1x_2...x_m\neq\sqrt{x_1^2x_2^2...x_m^2}$$
The right way it's the following:
By AM-GM $$x_1x_2...x_m\leq\sqrt{x_1^2x_2^2...x_m^2}\leq\sqrt{\left(\frac{x_1^2+x_2^2+...+x_m^2}{m}\right)^m}=\frac{1}{m^{\frac{m}{2}}}$$ The equality occurs for $x_1=x_2=...=x_m=\frac{1}{\sqrt{m}},$ which says that we got a maximal value.