There's three particular optimization problems I see quite often(in various applications). They seem to me to be specific cases of a more general problem, for which there perhaps exists a technique with which they can be solved.
1) Suppose $x_{1}...x_{n}$ are positive reals such that $x_{1}+...+x_{n} = K$. Then maximize the product $x_{1}*x_{2}*...*x_{n}$.
2) Suppose $x_{1}...x_{n}$ are positive reals such that $x_{1}*...*x_{n} = K$. Then minimize the sum $x_{1}+x_{2}+...+x_{n}$.
3) Suppose $p_{1}...p_{n}$ are positive reals, each less than or equal to 1, i.e. $ 0 < p_{i} \leq 1 \ $. Then minimize $ p_{1}*log(p_{1})+...+p_{n}*log(p_{n}) $ (this number is going to be negative, so make it as negative as possible.)
How could I solve these three problems? I'm versed in calculus, and also analysis, but can't seem to think of an appropriate technique.
I was reading about convex functions, what bearing do they have on the problem? What about techniques from elementary calculus?