In the chap­ter on pro­gres­sions we found for­mu­las such as 1+3+5+⋯+(2n−1)=n21 + 3 + 5 + \cdots + (2n - 1) = n^2. You can check them for n=1,2,3n = 1, 2, 3 and as many more val­ues as you like, but a for­mula is meant to hold for every nat­ural num­ber, and nobody can check infi­nitely many cases. Math­e­mat­i­cal induc­tion is the method that closes this gap. It proves a state­ment for all nat­ural num­bers with just two short argu­ments.

Why check­ing cases is not enough

Look at the expres­sion n2+n+41n^2 + n + 41.

nn 1 2 3 4 5 10 20
n2+n+41n^2 + n + 41 43 47 53 61 71 151 461

Every one of these is a prime num­ber. In fact the value is prime for every nn from 1 to 39. It would be very tempt­ing to say "n2+n+41n^2 + n + 41 is always prime". But for n=40n = 40:

402+40+41=1600+40+41=1681=41×4140^2 + 40 + 41 = 1600 + 40 + 41 = 1681 = 41 \times 41

which is not prime. Thirty-nine suc­cess­ful checks proved noth­ing. A pat­tern sug­gests what might be true; only a proof shows that it is true.

State­ments about n

A state­ment that depends on a nat­ural num­ber nn is writ­ten P(n)P(n). For exam­ple, let P(n)P(n) be the state­ment

1+3+5+⋯+(2n−1)=n21 + 3 + 5 + \cdots + (2n - 1) = n^2

Then P(1)P(1) says 1=121 = 1^2, P(2)P(2) says 1+3=221 + 3 = 2^2, P(3)P(3) says 1+3+5=321 + 3 + 5 = 3^2, and so on. Each P(n)P(n) is a sin­gle state­ment that is either true or false. Our aim is to show that every one of them is true.

The domi­noes

Imag­ine an end­less row of domi­noes stand­ing on end. Sup­pose you know two things:

  1. The first domino falls.
  2. When­ever any domino falls, it knocks over the next one.

Then every domino falls. The first one falls by fact 1; it knocks over the sec­ond by fact 2; the sec­ond knocks over the third; and so on with­out end. No domino can be left stand­ing.

The prin­ci­ple of math­e­mat­i­cal induc­tion

Let P(n)P(n) be a state­ment about nat­ural num­bers. If

  1. (Base step) P(1)P(1) is true, and
  2. (Induc­tive step) for every nat­ural num­ber kk, if P(k)P(k) is true then P(k+1)P(k + 1) is true,

then P(n)P(n) is true for every nat­ural num­ber nn.

In the induc­tive step we do not claim that P(k)P(k) is true. We assume it, only for the sake of the argu­ment, and show that P(k+1)P(k + 1) would fol­low. This assump­tion is called the induc­tion hypoth­e­sis. It is exactly fact 2 about the domi­noes: "if this one falls, the next one falls".

How to set out a proof

Every induc­tion proof has the same four parts:

  1. Base step: check that P(1)P(1) is true.
  2. Induc­tion hypoth­e­sis: assume P(k)P(k) is true for some nat­ural num­ber kk. Write out what this says.
  3. Induc­tive step: using the hypoth­e­sis, prove P(k+1)P(k + 1). Write out what P(k+1)P(k + 1) says first, so you know where you are head­ing.
  4. Con­clu­sion: by the prin­ci­ple of math­e­mat­i­cal induc­tion, P(n)P(n) is true for all nat­ural num­bers nn.

Exam­ple 1

Prove that 1+3+5+⋯+(2n−1)=n21 + 3 + 5 + \cdots + (2n - 1) = n^2 for every nat­ural num­ber nn.

Let P(n)P(n) be the state­ment 1+3+5+⋯+(2n−1)=n21 + 3 + 5 + \cdots + (2n - 1) = n^2.

Base step. For n=1n = 1, the left side is just the first term, 1, and the right side is 12=11^2 = 1. So P(1)P(1) is true.

Induc­tion hypoth­e­sis. Assume P(k)P(k) is true:

1+3+5+⋯+(2k−1)=k21 + 3 + 5 + \cdots + (2k - 1) = k^2

Induc­tive step. We must prove P(k+1)P(k + 1), which says

1+3+5+⋯+(2k−1)+(2k+1)=(k+1)21 + 3 + 5 + \cdots + (2k - 1) + (2k + 1) = (k + 1)^2

(The (k+1)(k + 1)th odd num­ber is 2(k+1)−1=2k+12(k + 1) - 1 = 2k + 1.) The left side is the sum of the first kk odd num­bers plus one more term. By the hypoth­e­sis the first kk terms add up to k2k^2, so

LHS=k2+(2k+1)=k2+2k+1=(k+1)2=RHS\text{LHS} = k^2 + (2k + 1) = k^2 + 2k + 1 = (k + 1)^2 = \text{RHS}

So P(k+1)P(k + 1) is true when­ever P(k)P(k) is true.

Con­clu­sion. By the prin­ci­ple of math­e­mat­i­cal induc­tion, the state­ment is true for every nat­ural num­ber nn.

Exam­ple 2

Prove that 2+4+6+⋯+2n=n(n+1)2 + 4 + 6 + \cdots + 2n = n(n + 1) for every nat­ural num­ber nn.

Base step. For n=1n = 1: LHS =2= 2, RHS =1×2=2= 1 \times 2 = 2. True.

Induc­tion hypoth­e­sis. Assume 2+4+⋯+2k=k(k+1)2 + 4 + \cdots + 2k = k(k + 1).

Induc­tive step. We must show 2+4+⋯+2k+2(k+1)=(k+1)(k+2)2 + 4 + \cdots + 2k + 2(k + 1) = (k + 1)(k + 2). Using the hypoth­e­sis,

LHS=k(k+1)+2(k+1)=(k+1)(k+2)=RHS\text{LHS} = k(k + 1) + 2(k + 1) = (k + 1)(k + 2) = \text{RHS}

Tak­ing out the com­mon fac­tor (k+1)(k + 1) is a step you will use again and again.

Con­clu­sion. By induc­tion, the result holds for all nat­ural num­bers nn.

Both steps are needed

Leav­ing out either step can "prove" some­thing false.

With­out the base step. Let P(n)P(n) be "n2+nn^2 + n is odd". Sup­pose k2+kk^2 + k is odd. Then

(k+1)2+(k+1)=k2+k+2(k+1)(k + 1)^2 + (k + 1) = k^2 + k + 2(k + 1)

which is an odd num­ber plus an even num­ber, so odd. The induc­tive step works. But P(1)P(1) says 1+1=21 + 1 = 2 is odd, which is false. In fact n2+n=n(n+1)n^2 + n = n(n + 1) is always even, because one of two con­sec­u­tive num­bers is even. The domi­noes would all fall if the first fell, but the first never falls.

With­out the induc­tive step. For n2+n+41n^2 + n + 41 the base step works (43 is prime), and so do the next 38 cases, but there is no argu­ment that each case leads to the next, and the state­ment fails at n=40n = 40.

Prac­tice

  1. Write out the state­ments P(1)P(1), P(2)P(2) and P(3)P(3) for P(n)P(n): 1+2+⋯+n=n(n+1)2\displaystyle 1 + 2 + \cdots + n = \frac{n(n + 1)}{2}, and check that each is true.
  2. Find the value of n2+n+41n^2 + n + 41 when n=41n = 41. Is it prime?
  3. In a proof of 5+10+⋯+5n=5n(n+1)2\displaystyle 5 + 10 + \cdots + 5n = \frac{5n(n + 1)}{2}, write out exactly what P(k+1)P(k + 1) says.
  4. Prove by induc­tion that 1+2+3+⋯+n=n(n+1)2\displaystyle 1 + 2 + 3 + \cdots + n = \frac{n(n + 1)}{2}.
  5. Prove by induc­tion that 5+10+15+⋯+5n=5n(n+1)2\displaystyle 5 + 10 + 15 + \cdots + 5n = \frac{5n(n + 1)}{2}.
  6. Prove by induc­tion that 1+5+9+⋯+(4n−3)=n(2n−1)1 + 5 + 9 + \cdots + (4n - 3) = n(2n - 1).
  7. Prove by induc­tion that 3+7+11+⋯+(4n−1)=n(2n+1)3 + 7 + 11 + \cdots + (4n - 1) = n(2n + 1).
  8. Let P(n)P(n) be "n2−n+1n^2 - n + 1 is even". Show that if P(k)P(k) is true then P(k+1)P(k + 1) is true. Is P(n)P(n) true for all nn? Explain.

Answers

Show answers
  1. P(1)P(1): 1=1×22\displaystyle 1 = \frac{1 \times 2}{2}. P(2)P(2): 1+2=2×32=3\displaystyle 1 + 2 = \frac{2 \times 3}{2} = 3. P(3)P(3): 1+2+3=3×42=6\displaystyle 1 + 2 + 3 = \frac{3 \times 4}{2} = 6. All true.
  2. 412+41+41=1763=41×4341^2 + 41 + 41 = 1763 = 41 \times 43, which is not prime.
  3. 5+10+⋯+5k+5(k+1)=5(k+1)(k+2)2\displaystyle 5 + 10 + \cdots + 5k + 5(k + 1) = \frac{5(k + 1)(k + 2)}{2}.
  4. Base: 1=1×22\displaystyle 1 = \frac{1 \times 2}{2}. Step: k(k+1)2+(k+1)=(k+1)(k+2)2\displaystyle \frac{k(k + 1)}{2} + (k + 1) = \frac{(k + 1)(k + 2)}{2}.
  5. Base: 5=5×22\displaystyle 5 = \frac{5 \times 2}{2}. Step: 5k(k+1)2+5(k+1)=5(k+1)(k+2)2\displaystyle \frac{5k(k + 1)}{2} + 5(k + 1) = \frac{5(k + 1)(k + 2)}{2}.
  6. Base: 1=1×11 = 1 \times 1. Step: k(2k−1)+(4k+1)=2k2+3k+1=(k+1)(2k+1)k(2k - 1) + (4k + 1) = 2k^2 + 3k + 1 = (k + 1)(2k + 1), which is (k+1)(2(k+1)−1)(k + 1)\left(2(k + 1) - 1\right).
  7. Base: 3=1×33 = 1 \times 3. Step: k(2k+1)+(4k+3)=2k2+5k+3=(k+1)(2k+3)k(2k + 1) + (4k + 3) = 2k^2 + 5k + 3 = (k + 1)(2k + 3), which is (k+1)(2(k+1)+1)(k + 1)\left(2(k + 1) + 1\right).
  8. (k+1)2−(k+1)+1=(k2−k+1)+2k(k + 1)^2 - (k + 1) + 1 = (k^2 - k + 1) + 2k, an even num­ber plus an even num­ber, so the step works. But P(1)P(1) says 1 is even, which is false; in fact n2−n+1=n(n−1)+1n^2 - n + 1 = n(n - 1) + 1 is always odd. So P(n)P(n) is false for every nn: the base step fails.