# The sum of squares

Although it is entirely possible to prove that

without any kind of visual aid, it is certainly useful to also prove it visually.

# The visual aid

The sum of squares can be visually represented as follows:

Now, if additional squares are added so that every group of squares is the same height, then the visualization becomes that of four times the series of integers:

This means that the series of squares may be described as n times the series of integers minus the number of red squares, where n is the upper bound of the summation: Relationship between the sum of squares and the sum of integers

However, how is the number of red squares determined? Fortunately, each row of red squares are simply sums of integers:

What this means is that the number of red squares is actually the sum of the sum of integers:

This series is mathematically described as follows:

Recalling that the sum of integers (derived by Gauss) is determined by

it follows that the sum of the sum of integers is given by

Thus, the number of red squares is determined by

Here, the upper bound needs to be n -1 because it is the limit of the red squares’ reach:

Consequently, the sum of squares is mathematically described as The sum of squares in terms of the sum of integers and the sum of the sum of integers

The last remaining endeavor is how to simplify the above expression. First, the right hand side left sum is solved:

With this simplification, the sum of squares can now be expressed as

Second, by realizing that

the sum of squares is now

Furthermore, the last sum can be modified again such that

and so, the sum of squares is modified accordingly:

--

--

Undergraduate student in Robotics and Digital Systems at ITESM. 💙 Math, science, and robotics. Lifelong learner.