Let $x_{1},\ldots,x_{n}$ be nonnegative numbers such that $m \leq x_{i} \leq M$. Let $$ S=\sum_{i=1}^{n}{x_{i}} $$ and $$ Q=\sum_{i=1}^{n}{x_{i}^{2}}. $$
Then $$ Q \leq S(M+m)-nMm. $$
This has been recently discovered by at least two different people (including myself) but I am sure that it has come up many times before. Does it have a standard name or reference?