Sums of Squares & Cubes
A telescoping trick extends the natural-number formula to squares and cubes — and the cube-sum formula hides a beautifully unexpected pattern.
The sum of squares
$$\sum_{r=1}^{n}r^2=\frac{n(n+1)(2n+1)}{6}$$
The sum of cubes
$$\sum_{r=1}^{n}r^3=\left[\frac{n(n+1)}{2}\right]^2=\left(\sum_{r=1}^nr\right)^2$$ Remarkably, the sum of the first $n$ cubes equals the square of the sum of the first $n$ natural numbers.
This result can be proved by the same telescoping technique applied to $(r+1)^4-r^4=4r^3+6r^2+4r+1$, substituting the now-known formulae for $\sum r^2$ and $\sum r$, then simplifying — a longer but structurally identical argument to the proof of Theorem 9.1. It is also a standard target for proof by induction (see the Proof topic).
$\dfrac{15(16)(31)}{6}=\dfrac{7440}{6}=1240$.
$\displaystyle\sum_{r=8}^{20}r^2=\sum_{r=1}^{20}r^2-\sum_{r=1}^{7}r^2=\frac{20(21)(41)}{6}-\frac{7(8)(15)}{6}=2870-140=2730$.
$\displaystyle\sum_{r=1}^nr(r-1)=\sum_{r=1}^n(r^2-r)=\frac{n(n+1)(2n+1)}{6}-\frac{n(n+1)}{2}$
$=\dfrac{n(n+1)}{6}\big[(2n+1)-3\big]=\dfrac{n(n+1)(2n-2)}{6}=\dfrac{n(n+1)(n-1)}{3}$.
Combining all three standard results
Sigma notation stays linear no matter how many standard results are involved: a series like $\sum(ar^3+br^2+cr+d)$ splits term by term into separate multiples of $\sum r^3$, $\sum r^2$, $\sum r$ and $\sum 1$, each evaluated from its own formula and then recombined. The only new skill beyond Examples 1–3 is keeping track of three formulas at once instead of one or two — the algebra is otherwise identical.
Split into three separate sums using linearity:
$\displaystyle\sum_{r=1}^n(2r^3-r^2+3r)=2\sum_{r=1}^nr^3-\sum_{r=1}^nr^2+3\sum_{r=1}^nr$
$=2\left[\frac{n(n+1)}{2}\right]^2-\frac{n(n+1)(2n+1)}{6}+3\cdot\frac{n(n+1)}{2}$
$=\dfrac{n^2(n+1)^2}{2}-\dfrac{n(n+1)(2n+1)}{6}+\dfrac{3n(n+1)}{2}$
Every term has a factor of $n(n+1)$, so take that out and put everything over a common denominator of 6:
$=\dfrac{n(n+1)}{6}\Big[3n(n+1)-(2n+1)+9\Big]=\dfrac{n(n+1)}{6}\Big[3n^2+3n-2n-1+9\Big]$
$=\dfrac{n(n+1)(3n^2+n+8)}{6}$, as required.
As a quick check, substitute $n=1$: the left side is $2(1)^3-1^2+3(1)=4$, and the right side gives $\dfrac{1(2)(3+1+8)}{6}=\dfrac{24}{6}=4$ ✓.
$(2r-1)^3=8r^3-12r^2+6r-1$.
$\displaystyle\sum_{r=1}^n(2r-1)^3=8\sum r^3-12\sum r^2+6\sum r-n$
$=8\left[\frac{n(n+1)}{2}\right]^2-12\cdot\frac{n(n+1)(2n+1)}{6}+6\cdot\frac{n(n+1)}{2}-n$
$=2n^2(n+1)^2-2n(n+1)(2n+1)+3n(n+1)-n$
Take out the common factor $n$: $=n\Big[2n(n+1)^2-2(n+1)(2n+1)+3(n+1)-1\Big]$
Expand each bracketed term separately: $2n(n+1)^2=2n(n^2+2n+1)=2n^3+4n^2+2n$; $\ 2(n+1)(2n+1)=2(2n^2+3n+1)=4n^2+6n+2$; $\ 3(n+1)=3n+3$.
So the bracket becomes $2n^3+4n^2+2n-4n^2-6n-2+3n+3-1=2n^3-n$.
Therefore $\displaystyle\sum_{r=1}^n(2r-1)^3=n(2n^3-n)=2n^4-n^2=n^2(2n^2-1)$, as required.
Always factor out the highest common factor (usually $n(n+1)$ or $n$) as early as possible when simplifying combinations of $\sum r$, $\sum r^2$, $\sum r^3$ — leaving everything over a common denominator of 6 until the final step keeps the algebra far more manageable than expanding early. When a target answer is given (a "show that" question), substituting a small value of $n$ into both your working and the target is a fast way to catch an arithmetic slip before it costs marks.
Exam-style questions
Question 1 6 marks
(a) State the formula for $\displaystyle\sum_{r=1}^nr^3$. (b) Find $\displaystyle\sum_{r=1}^{12}r^3$. (c) Hence find $\displaystyle\sum_{r=1}^{12}(r^3+r)$.
(a) $\left[\dfrac{n(n+1)}{2}\right]^2$ (B1)
(b) $\left[\dfrac{12(13)}{2}\right]^2=78^2=6084$ (M1, A1)
(c) $\sum r=\dfrac{12(13)}{2}=78$; total $=6084+78=6162$ (M1, A1, A1)
Question 2 7 marks
Show that $\displaystyle\sum_{r=1}^{n}(r^3-r^2)=\frac{n(n+1)(n-1)(3n+2)}{12}$.
$\displaystyle\sum(r^3-r^2)=\left[\frac{n(n+1)}{2}\right]^2-\frac{n(n+1)(2n+1)}{6}$ (M1, A1)
$=\dfrac{n(n+1)}{12}\big[3n(n+1)-2(2n+1)\big]=\dfrac{n(n+1)}{12}\big[3n^2+3n-4n-2\big]$ (M1, A1)
$=\dfrac{n(n+1)(3n^2-n-2)}{12}=\dfrac{n(n+1)(3n+2)(n-1)}{12}$ (M1, A1, A1)
Question 3 6 marks
Find $\displaystyle\sum_{r=10}^{25}r^3$.
$\displaystyle\sum_{r=1}^{25}r^3=\left[\frac{25(26)}{2}\right]^2=325^2=105625$ (M1, A1)
$\displaystyle\sum_{r=1}^{9}r^3=\left[\frac{9(10)}{2}\right]^2=45^2=2025$ (M1, A1)
$\displaystyle\sum_{r=10}^{25}r^3=105625-2025=103600$ (M1, A1)