I apologize upfront for any spelling mistakes, I'm not used to writing math in english! I tried searching for this question in here already but was not sure I used the best tags while doing so. Anyway, to the question:
It was taken from a brazilian textbook on Basic Statistics (Bussab & Morettin, 2013). It basically justs asks me to show that:
$${\sum\limits_{i = 1}^n {\left( {{x_i} - \overline x } \right)} ^2} = \sum\limits_{i = 1}^n {{x_i}^2 - n{{\overline x }^2} = \sum\limits_{i = 1}^n {{x_i}^2 - {{{{\left( {\Sigma {x_i}} \right)}^2}} \over n}} } $$
Now, I didn't really know where to start or if there's an official recommended approach to such proofs, but I just tried to start it by opening the first term:
$$\eqalign{ & {\sum\limits_{i = 1}^n {\left( {{x_i} - \overline x } \right)} ^2} = {\left( {{x_1} - \overline x } \right)^2} + {\left( {{x_2} - \overline x } \right)^2} + ... + {\left( {{x_n} - \overline x } \right)^2} \cr & {\sum\limits_{i = 1}^n {\left( {{x_i} - \overline x } \right)} ^2} = \left( {{x_1}^2 - 2{x_1}\overline x + {{\overline x }^2}} \right) + \left( {{x_2}^2 - 2{x_2}\overline x + {{\overline x }^2}} \right) + ...\left( {{x_n}^2 - 2{x_n}\overline x + {{\overline x }^2}} \right) \cr} $$
At which point I felt I was close enough to start regrouping the pieces:
$$\eqalign{ & {\sum\limits_{i = 1}^n {\left( {{x_i} - \overline x } \right)} ^2} = \left( {{x_1}^2 + {x_2}^2 + ...{x_n}^2} \right) + \left( {{{\overline x }^2} + {{\overline x }^2} + ... + {{\overline x }^2}} \right) - 2\overline x \left( {{x_1} + {x_2} + ... + {x_n}} \right) \cr & {\sum\limits_{i = 1}^n {\left( {{x_i} - \overline x } \right)} ^2} = \sum\limits_{i = 1}^n {{x_i}^2} + n{\overline x ^2} - 2\overline x \left( {{x_1} + {x_2} + ... + {x_n}} \right) \cr} $$
And that's where I stuck. I can get the $ + n{\overline x ^2}$ to be $ - n{\overline x ^2}$, and I don't know how to "get rid" of the third term.
You are almost done. Just write $$ \begin{align} {\sum\limits_{i = 1}^n {\left( {{x_i} - \overline x } \right)} ^2} &= \sum\limits_{i = 1}^n {{x_i}^2} + n{\overline x ^2} - 2\overline x \left( {{x_1} + {x_2} + ... + {x_n}} \right)\\&=\sum\limits_{i = 1}^n {{x_i}^2} + n{\overline x ^2} - 2\overline x \overline xn\\&=\sum\limits_{i = 1}^n {{x_i}^2} + n{\overline x ^2} - 2n\overline x^2\\&=\sum\limits_{i = 1}^n {{x_i}^2} - n{\overline x ^2}. \end{align}$$