Consider multivariable functions of the form: $$\left(\sum_{i=1}^n a_ix_i\right)^2$$ Can they only have minima points? If so, why?
I tried to plot some functions on Desmos and it looks like my hypothesis is correct, but maybe I'm missing something.
Edit: I removed the first question, as I realized it was too naïve.
No. One example is constant functions : every point is simultaneously a global maximum and a global minimum. A less degenerate example is
having a local maximum at $x = 0$. Another isYes or maybe, depending on your definitions. Compute the various first partial derivatives to discover that the only possible critical point is at the origin, $x = (0,\dots, 0)$. Here, the function is $0$, so there is both a local minimum and a global minimum at the origin. However, note that if all the $a_i = 0$ then every point is simultaneously a global minimum and a global maximum.