Proof for sum of squares formula ( statistics - related ) I'm new to the domain of statistics and i'm trying to accumulate as much info as i can right now. I've considered that this question should be asked here as it is related to mathematics. The problem is that from the get go most statistics books use the sum of squares formula : $SS= \sum{X^2} - \frac{(\sum(X))^2}{n} .$  
Where can i find a proof for this formula? I've tried to prove it myself from $SS= \sum{(X-m_x)} $ , where $m_x$ is the mean of the population $X$ but to no avail.

Let us begin with the first sum of $n$ terms:
\begin{equation}
\begin{split}
\Sigma{{\left({x}-{m}_{{x}} \right)}^{2}}&={{\left({x}_{1}-{m}_{{x}} \right)}^{2}}+{{\left({x}_{2}-{m}_{{x}} \right)}^{2}}+\cdots+{{\left({x}_{{n}}-{m}_{{x}} \right)}^{2}}\\ 
&={{x}_{1}^{2}}+{{x}_{2}^{2}}+\cdots+{{x}_{{n}}^{2}}+{n}{{m}_{{x}}^{2}}-2{m}_{{x}}{\left({x}_{1}+{x}_{2}+\cdots+{x}_{{n}} \right)} \\ 
&={{x}_{1}^{2}}+{{x}_{2}^{2}}+\cdots+{{x}_{{n}}^{2}}+{n}{{m}_{{x}}^{2}}-2{m}_{{x}}{n}{m}_{{x}} \\ 
&={{x}_{1}^{2}}+{{x}_{2}^{2}}+\cdots+{{x}_{{n}}^{2}}-{n}{{m}_{{x}}^{2}}
\end{split}
\end{equation}
Similarly, applying the second formula for $n$ terms yields
\begin{equation}
\begin{split}
\Sigma{\left({x}^{2} \right)}-{\frac{{\left(\Sigma{x} \right)}^{2}}{{n}}}
&={{x}_{1}^{2}}+{{x}_{2}^{2}}+\cdots+{{x}_{{n}}^{2}}-{\frac{{\left({x}_{1}+{x}_{2}+\cdots+{x}_{{n}} \right)}^{2}}{{n}}} \\ 
&={{x}_{1}^{2}}+{{x}_{2}^{2}}+\cdots+{{x}_{{n}}^{2}}-{\frac{{\left({n}{m}_{{x}} \right)}^{2}}{{n}}} \\ 
&={{x}_{1}^{2}}+{{x}_{2}^{2}}+\cdots+{{x}_{{n}}^{2}}-{n}{{m}_{{x}}^{2}}
\end{split}
\end{equation}
As seen above we obtained the same result.
