Well, that was how the formula was originally derived; the lower-left corners of the squares of a common size are themselves arranged in a square....
Oh, I see what you mean: you can prove that the sum of consecutive squares starting from 1 is such-and-such, but how did you know that it such-and-such in the first place?
Hang on, might have to be a few minutes before I get back to you on that; this board doesn't do MathML embedding 🙂
Hokay....
A standard tactic used to find sums of sequences is called the method of differences. Something to try just to see if it works. If the sum is
u +u +u ...+u
1 2 3 n
You look around for a sequence v[r] such that u[r]=v[r]-v[r-1].
Replacing u[r] by v[r]-v[r-1] in the sum produces
v -v +v -v +v -v +v -v ...v -v
1 0 2 1 3 2 4 3 n n-1
The nice thing about this is that it is a lot simpler than it looks: most of the term cancel out, and you're left with v[n]-v[0].
All well and good. Now to apply it. u[r]=r2. What should the v[r] be? We need v[r]-v[r-1]=r2. It's a guess that v[r] will involve cubes: a guess suggested by the way squares stack to form a pyramid, and for that matter the way the natural numbers themselves stack to form a triangle (with T[n]=n(n+1)/2 which is a quadratic.) Let's try something simple. v[r]=(r+1)3. Do that and
3 3 2
v -v = (r+1) -r = 3r +3r+1.
r r-1
Now we know what happens on the left if we sum from r=1..n - most of the terms cancel out and we're left with v[n]-v[0] - which in this case would be (n+1)3-1. What happens on the right?
3
(n+1) -1
=
2 2 2 2
3(1 )+3(1)+1 + 3(2 )+3(2)+1 + 3(3 )+3(3)+1 + ... 3(n )+3(n)+1
=
2 2 2 2
3(1 +2 +3 +...n ) + 3(1+2+3+...+n) + 1+1+1+...+1 (n of those)
And just like that we're pretty much sweet - there's the sum of squares and I presume we already know how to simplify 1+2+...+n: now we just need to isolate the bit we really want by moving bits over to the other side of that equals sign:
3 2 2 2 2 n(n+1)
(n+1) -1 = 3(1 +2 +3 +...n ) + 3------ + n
2
3 2 2 2 2 n(n+1)
(n+1) -1 - n = 3(1 +2 +3 +...n ) + 3------
2
3 n(n+1) 2 2 2 2
(n+1) - 1 - n - 3------ = 3(1 +2 +3 +...n )
2
3 n(n+1) 2 2 2 2
(n+1) - 1 - n - 3------ = 1 +2 +3 +...n
2
-----------------------
3
And there's the formula; now it's just a matter of tidying up:
3 n(n+1)
(n+1) - 1 - n - 3------
2
-----------------------
3
3
2(n+1) - 2 - 2n - 3n(n+1)
-------------------------
6
3 2 2
2(n +3n +3n+1) - 2 - 2n - 3(n +n)
--------------------------------
6
3 2 2
2n + 6n + 6n + 2 - 2 - 2n - 3n - 3n
-------------------------------------
6
3 2
2n + 3n + n
-------------
6
2
n(2n + 3n + 1)
---------------
6
n(n+1)(2n+1)
------------
6
And as Gaspode the Wonder Dog would say, "Et Woller".