Overview of Post
This post will be a quick derivation of the formulas for the sums of the first n numbers and the first n squares, followed by a more detailed derivation of the sum of the first n cubes.
The trick here is to write each number twice.
Since there are columns in the above addition, there are copies of in the resulting sum. So, . This gives us our final answer of
For this sum, I am just going to point to the derivation of it that is the best I have seen. This author explains it really nicely.
For this sum, I am going to cheat a little. Most derivations of an explicit formula for this sum that I have seen use the fact that and then expand the summand of the left and do algebra until they end up with a solution. That method works, but I will use a different one that, unfortunately, asks a different question.
What is ?
From earlier in this post, we know that the answer is , but can we come up with another formula? Let’s start by writing this product out explicitly:
All of algebra is basically rewriting expressions, so let’s rewrite this expression. For each number from to , we will figure out its “coefficient” 1 and then the expression will just be the sum of all the ’s multiplied by their coefficient. To keep things simple, ’s coefficient will be the sum of all the numbers less than or equal to that it get’s multiplied by. As examples, ’s coefficient is , ’s coefficient is , and 3’s coefficient is .
To figure out ’s coefficient in general, first consider the on the left. It get’s multiplied by all the numbers from to , so the numbers less than or equal to that is get’s multplied by are just the numbers from to . The same logic applies to the on the right. So, the coefficient of is ? Close. If you follow the logic closely, you will notice that we count twice instead of one so the true coefficient of is . Simplifying this expression yields as the coefficient of .
Now that we know each ’s coefficient, we can write
At this point, we could be done. We’ve answered our question, but our answer is very algebraic. It would be nice if we could have a visual way of explaining some of this math2, so, with this hope in mind, we continue our investigation. Still considering the coefficient of , from our earlier discussion, it should not be to head to realize that ’s coefficient can be written as . This, as the picture below shows, is where we can begin to visualize. Thinking of each term in the sum as a diagonal in a square grid, it is easy to see that this sum is .
The nice part about having this visualization is that it does not require us knowing the sum of the first n numbers. The motivation for this invetigation was that we wanted to find an expression equal to the square of the sum of the first n numbers other than the explicit formula we already knew. If you already know an explicit formula for something, then it is hard to justify trying to find another (non-explicit) formula for it. However, even if we did not have an explicit formula, using this visual trick, we could still investigate this problem and gain a useful result (even if it does not give us an explicit formula). Finally, the following is the fruit of our efforts here: