Perhaps by using Lagrange multipliers. It is often one of the simplies way to do it, but not always. In case of sum of squares, I think, it works pretty good.
Case of three dimension can also be proven by using geometric of sphere, or more generally, ellipsoid.
Problem:
Given three numbers, x, y, z we know that they sum up to a certain number, say 12. Is there a way to prove that to minimize x^2+y^2+z^2, you have to set x=y=z=4? It's simple doing it with 2 numbers, that's just substitution, but with 3 or more variables it seems trickier. Any ideas?
As a generalization, given n variables, a(1), a(2), a(3), ..., a(n), that sum to S, show that to minimize [a(1)]^2+[a(2)]^2+[a(3)]^2+...+[a(n)]^2, all a(1), a(2), a(3)..., a(n) must equal S/n.
Thanxx!