Femtobytes
Problem type

Proof by induction for a sum

What it solves
Find the closed formula for a sum such as 1 + 4 + 9 + ... + n squared, and prove it for every natural number n by mathematical induction, with every expansion in the inductive step written out.
Subject
Real Analysis
Topic
Proof by induction
Also called
mathematical induction, prove by induction, sum formula
Your problem

Find a closed formula for this sum and prove it for every natural number nn by induction.

∑i=1ni2\sum_{i=1}^{n} i^{2}
Invent a new one:
The problem

Find a closed formula for this sum and prove it for every natural number nn by induction.

∑i=1ni2\sum_{i=1}^{n} i^{2}
The result
∑i=1ni2=n(n+1)(2n+1)6\sum_{i=1}^{n} i^{2} = \frac{n \left( n + 1 \right) \left( 2 n + 1 \right)}{6}

Proved by mathematical induction: the formula holds for every natural number nn.

checked 16 lines of this solution were evaluated with exact arithmetic before it was shown to you. A solution with a false line is never served.
Picture 1 of 7Step 1: Say exactly what is claimed, and for which n
sum up to the term beforethe newest termthe formula112531443055569171408204928510385n, the number of terms addedvalue of the sum
Each bar is the sum so far; the bright cap on top of it is the newest term, the one the inductive step adds. The dots are the formula. Every dot sits exactly on top of its bar.
1

Say exactly what is claimed, and for which n

Why this step

A formula with an nn in it is not one statement. It is an endless list of statements, one for each natural number, and no amount of checking examples can reach the end of an endless list. Before choosing a method we must see the claim for what it is: infinitely many claims wearing one coat.

The symbol ∑\sum (capital sigma) means "add up". ∑i=1ni2\sum_{i=1}^{n} i^{2} says: let ii run through 1,2,3,…,n1, 2, 3, \ldots, n, work out i2i^{2} for each, and add the results. The first few terms are 1+4+9+16+⋯1 + 4 + 9 + 16 + \cdots.

Sn:∑i=1ni2=n(n+1)(2n+1)6S_n: \qquad \sum_{i=1}^{n} i^{2} = \frac{n \left( n + 1 \right) \left( 2 n + 1 \right)}{6}
Call this statement SnS_n. We must prove S1,S2,S3,…S_1, S_2, S_3, \ldots, every one of them.
nnterm addedsum so farformula
11111111
22445555
339914141414
44161630303030
55252555555555
66363691919191
The sum added up by hand against the formula, for the first six n. They agree, which is encouraging and proves nothing about n = 7.
2

Basis step: check the first statement

Why this step

The inductive step alone proves nothing: a chain of perfectly sound links hanging from no hook holds nothing up. There are famous false formulas whose inductive step works and whose first case fails. So we knock the first domino over by hand. With n=1n = 1 the sum has a single term, so both sides are plain arithmetic.

∑i=11i2\displaystyle \sum_{i=1}^{1} i^{2}==12\displaystyle 1^{2}
With n=1n = 1 the only value of ii is 11, so the sum is its first term alone. checked
==1\displaystyle 1
Work it out. checked
formula at n=1\displaystyle \text{formula at } n = 1==1(1+1)(2⋅1+1)6\displaystyle \frac{1 \left( 1 + 1 \right) \left( 2 \cdot 1 + 1 \right)}{6}
Put n=1n = 1 into the formula. checked
==1⋅2⋅36\displaystyle \frac{1 \cdot 2 \cdot 3}{6}
Work out each bracket. checked
==1\displaystyle 1
Multiply, then divide. checked
3

Inductive hypothesis: suppose one statement holds

Why this step

We now build the link between neighbouring dominoes. To do that we pick ONE unspecified natural number kk and suppose its statement holds. We use the letter kk rather than nn on purpose: nn belongs to the claim we are proving for all numbers, while kk is a single fixed number we are standing on.

Sk:∑i=1ki2=k(k+1)(2k+1)6S_k: \qquad \sum_{i=1}^{k} i^{2} = \frac{k \left( k + 1 \right) \left( 2 k + 1 \right)}{6}
Suppose this is true for some natural number k≥1k \ge 1. This is the inductive hypothesis. From here to the end of the inductive step we may use it freely.
Sk+1:∑i=1k+1i2=(k+1)((k+1)+1)(2(k+1)+1)6S_{k+1}: \qquad \sum_{i=1}^{k+1} i^{2} = \frac{\left( k + 1 \right) \left( \left( k + 1 \right) + 1 \right) \left( 2 \left( k + 1 \right) + 1 \right)}{6}
This is what we must now DERIVE. It is SnS_n with every nn replaced by k+1k + 1. We are not allowed to use it, only to arrive at it.
4

Work out the new term that statement k + 1 adds

Why this step

The sum up to k+1k + 1 is the sum up to kk plus exactly one more term, the one with i=k+1i = k + 1. Everything in the inductive step turns on that single extra term, so we put it in a usable form first, as a polynomial in kk.

(k+1)2\displaystyle \left( k + 1 \right)^{2}==k2+2k+1\displaystyle k^{2} + 2 k + 1
Multiply out the square: (k+1)2=k2+2k+1(k + 1)^2 = k^2 + 2k + 1. checked
5

Inductive step, left side: start from the longer sum

Why this step

We must reach Sk+1S_{k+1}, whose left side is the sum up to k+1k + 1. The only fact we own is about the sum up to kk. So the first move is forced: split the longer sum into the part we know about plus the new term. That is the doorway through which the hypothesis enters.

∑i=1k+1i2\displaystyle \sum_{i=1}^{k+1} i^{2}==(∑i=1ki2)+(k+1)2\displaystyle \left( \sum_{i=1}^{k} i^{2} \right) + \left( k + 1 \right)^{2}
Peel off the last term, the one with i=k+1i = k + 1. What is left is exactly the sum up to kk. checked
==k(k+1)(2k+1)6+(k+1)2\displaystyle \frac{k \left( k + 1 \right) \left( 2 k + 1 \right)}{6} + \left( k + 1 \right)^{2}
The inductive hypothesis SkS_k: replace the sum up to kk by the formula. THIS is the only place the hypothesis is used, and without it the proof could not move. checked
==k(k+1)(2k+1)6+k2+2k+1\displaystyle \frac{k \left( k + 1 \right) \left( 2 k + 1 \right)}{6} + k^{2} + 2 k + 1
The new term in the form found in the previous step. checked
==k(k+1)(2k+1)+6(k2+2k+1)6\displaystyle \frac{k \left( k + 1 \right) \left( 2 k + 1 \right) + 6 \left( k^{2} + 2 k + 1 \right)}{6}
Give both parts the bottom 66: multiply the new term top and bottom by 66, then add the tops. checked
==(k2+k)(2k+1)+6k2+12k+66\displaystyle \frac{\left( k^{2} + k \right) \left( 2 k + 1 \right) + 6 k^{2} + 12 k + 6}{6}
Multiply the new term's bracket by 66. Multiply the first two factors together. checked
==2k3+3k2+k+6k2+12k+66\displaystyle \frac{2 k^{3} + 3 k^{2} + k + 6 k^{2} + 12 k + 6}{6}
Multiply out what remains of the product. checked
==2k3+9k2+13k+66\displaystyle \frac{2 k^{3} + 9 k^{2} + 13 k + 6}{6}
Collect like powers of kk. checked
6

Inductive step, right side: multiply out the target

Why this step

We are aiming at the formula with k+1k + 1 in place of nn. Rather than guess how to factor our long expression into that, we walk toward it from the other end: multiply the target out completely. If the two walks meet at the same polynomial, the two sides are equal. Meeting in the middle is honest and it never requires a lucky guess.

(k+1)((k+1)+1)(2(k+1)+1)6\displaystyle \frac{\left( k + 1 \right) \left( \left( k + 1 \right) + 1 \right) \left( 2 \left( k + 1 \right) + 1 \right)}{6}==(k+1)(k+2)(2k+3)6\displaystyle \frac{\left( k + 1 \right) \left( k + 2 \right) \left( 2 k + 3 \right)}{6}
Tidy each bracket: for example (k+1)+1=k+2(k + 1) + 1 = k + 2. checked
==(k2+3k+2)(2k+3)6\displaystyle \frac{\left( k^{2} + 3 k + 2 \right) \left( 2 k + 3 \right)}{6}
Multiply the first two factors together and collect like powers. checked
==2k3+9k2+13k+66\displaystyle \frac{2 k^{3} + 9 k^{2} + 13 k + 6}{6}
Multiply out what remains and collect like powers. checked
7

Conclusion

Why this step

We have the two ingredients the principle of induction asks for, and nothing else is needed. It is worth saying plainly what each one contributed, because a proof by induction that skips this sentence has not finished.

The basis step showed S1S_1 is true. The inductive step showed that for every natural number kk, if SkS_k is true then Sk+1S_{k+1} is true. So S1S_1 gives S2S_2, which gives S3S_3, which gives S4S_4, and so on without end: by the principle of mathematical induction, SnS_n is true for every natural number nn.