103. Mathematical induction
The positive integers contain some fascinating patterns. For example,
$$\begin{array}{ll} 1 = 1, & 1+3+5+7 = 16, \\ 1+3 = 4, & 1+3+5+7+9 = 25, \\ 1+3+5 = 9, & 1+3+5+7+9+11 = 36, \end{array}$$
In general it appears that the sum of the first $n$ odd positive integers is $n^{2}$. This is a statement $Q (n)$ about an infinite number of positive integers $n$.
The subject of this section is an inference rule allowing the proof of such statements. Before the rule is stated, we will reformulate $Q (n)$ and see why it is true.
Using summation notation, $Q (n)$ is the statement
$$\sum_{k=1}^{n} (2k- 1) =n^{2}$$
(You should check that $2k-1$ is indeed the $k$th odd positive integer.) Clearly $Q(1)$ is true: it says 1 = 1.
I will now prove that for any positive integer $n, Q (n )\Rightarrow Q (n+ 1)$, using the direct method. The direct method requires us to assume the hypothesis is true, so suppose we knew that $Q (n)$ is true, that is that the sum of the first $n$ odd integers is $n^{2}$. Then the sum of the first $n+ 1$ odd integers is
$$(\text{the sum of the first } n \text{ odd integers}) + (\text{the } n+1\text{st odd integer})$$
We know the left term is $n^{2}$ because we are assuming $Q (n)$, and the right term is $2n+ 1$. Hence the sum of the first $n+ 1$ odd integers is $n^{2} + 2n+ 1$. But $n^{2} + 2n+$ $1 = (n + 1)^{2}$, in other words the sum of the first $n+ 1$ odd integers is $(n + 1)^{2}$, so that $Q (n+ 1)$ is true. This proves that $Q (n )\Rightarrow Q (n+ 1)$.
Now we know these two things:
a) $Q$(1).
b) For any $n, Q (n )\Rightarrow Q (n+ 1)$.
Using these facts, you should be able to convince yourself that $Q (n)$ is true for any positive integer, since $Q$(1) is true, and the implication $Q (n) \Rightarrow Q (n+ 1)$ allows you to see that $Q$(2) is true, $Q$(3) is true,..., jacking the proof up, so to speak, until you get to any positive integer. You need to know both $Q$(1) and the implication $Q (n )\Rightarrow Q (n+ 1)$ for all $n$ to make this work.
This approach is the basis for the following rule of inference:
103.2 Theorem: The principle of mathematical induction
For any statement about the positive integers, this rule of inference is valid:
$$P(1),\ (\forall n{:}\mathrm{N}^{+})\bigl(P(n) \Rightarrow P(n+1)\bigr) \vdash (\forall n{:}\mathrm{N}^{+})P(n)$$
103.2.1 Usage A proof using the principle of mathematical induction is called an inductive proof. The proof that $P$(1) is true is the basis step and that $P (n )\Rightarrow P (n+ 1)$ is the induction step.
103.2.2 Remarks
a) The induction step is sometimes stated as $P (n- 1)\Rightarrow P (n)$, which must hold for all integers $>1$, but that is only a change in notation.
b) The proof of the induction step, which is an implication, may be carried out by the direct method as was done above, or by the contrapositive method. If it is carried out by the direct method, one assumes that $P (n)$ is true and deduces $P (n+ 1)$. In doing this, $P (n)$ is called the induction hypothesis.
c) The principle of mathematical induction gives you a scheme for proving a statement about all positive integers. You still have to be clever somewhere in the proof. In the example just given, algebraic cleverness was required in the induction step.
103.3 Other starting points for proofs by induction
We have formulated mathematical induction as a scheme for proving a statement about all positive integers. One can similarly prove statements about all nonnegative integers by starting the induction at 0 instead of at 1 (see Example 103.3.1 below). In that case you must prove $P$(0) and
$$(\forall n{:}\mathrm{N})\bigl(P(n) \Rightarrow P(n+1)\bigr)$$
Indeed, a proof by mathematical induction can be started at any integer, positive or negative. For example, if you prove $P (-47)$ and $P (n )\Rightarrow P (n+ 1)$ for $n\geq -47$, then $P (n)$ is true for all $n\geq -47$.
One could also go down instead of up, but we won’t do that in this text.
103.3.1 Example Let’s prove that for all nonnegative integers $n, 3|n^{3} + 2n$.
Basis step: We must show $3| 0^{3}+ 0$, which is obvious.
Induction step: assume $3\mid n^{3} + 2n$. (This is the induction hypothesis.) Then $n^{3} + 2n = 3k$ for some integer $k$. Then
$$\begin{aligned}(n + 1)^{3} + 2(n+ 1) &= n^{3} + 3n^{2} + 3n + 1 + 2n+ 2 \\ &= n^{3} + 2n + 3n^{2} + 3n+ 3 \\ &= 3(k +n^{2} +n+ 1)\end{aligned} \tag{103.1}$$
so is divisible by 3 as required.
103.3.2 Remark The statement $3\mid n^{3} + 2n$ is true of negative integers, too. Once you know it for positive integers, the proof for negative integers is easy: substitute $-n$ for $n$ in the statement and do a little algebra. This trick often works for proving things about all integers. However, the principle of mathematical induction by itself is not a valid method of proof for proving statements about all integers.
103.3.3 Example A statement about the value of a sum or product can often be proved by induction. Let us prove that
$$\sum_{k=1}^{n} k= \frac{1}{2}n (n+ 1)$$
Proof Basis step: $\sum_{k=1}^{1}k = 1 =\frac{1}{2} \cdot 1\cdot 2$, as required.
Induction step:
$$\begin{aligned}\sum_{k=1}^{n+1}k &= n+ 1 +\sum_{k=1}^{n}k \\ &= n + 1 +\tfrac{1}{2}n (n+ 1) \quad \text{(by the induction hypothesis)} \\ &= (\tfrac{1}{2}n + 1)(n+ 1) \\ &= \tfrac{1}{2} (n + 1)(n + 2) \quad \text{(by algebra)}\end{aligned}$$
This proof uses a basic trick: separate out the term in the sum (or product) of highest index, in this case $n+ 1$. Then the rest of the sum can be evaluated using the induction hypothesis.
103.3.4 Remark In all proofs by induction you should label the basis step, the induction step and the induction hypothesis. If you find yourself writing “and so on...” or “continuing in this way...” or anything like that, you are not doing an inductive proof.
103.4 Exercise set
Prove the statements in Exercises 103.4.1 through 103.4.8 by induction.
103.4.1 $\sum_{k=1}^{n}\frac{1}{k(k+1)} =\frac{n}{n+1}$. (Answer on page 248.)
103.4.2
$$\sum_{k=1}^{n}(- 1)^{k}k=\begin{cases}\dfrac{n}{2} & (n \text{ even}) \\[1ex] \dfrac{-(n+1)}{2} & (n \text{ odd})\end{cases}$$
(Answer on page 249.)
103.4.3 $\sum_{k=1}^{n}k (k + 1) =\frac{1}{3}n (n + 1)(n + 2)$.
103.4.4 $\sum_{k=1}^{n}k^{2} =\frac{1}{6}n (n + 1)(2n + 1)$.
103.4.5 $\sum_{k=1}^{n} 2^{k} = 2^{n+1} - 2$.
103.4.6 $\sum_{k=1}^{n}k 2^{k} = (n- 1)2^{n+1} + 2$.
103.4.7 $\sum_{k=1}^{n}k^{3}=\left(\frac{1}{2}n (n+ 1)\right)^{2}$.
103.4.8 $\sum_{k=1}^{n} (- 1)^{k}k^{2} =\frac{(-1)^{n}}{2} n (n + 1)$.
103.4.9 Exercise Prove the following inequalities by induction.
a) $2^{n} > 2n+ 1$ for $n \geq 3$.
b) $2^{n} \geq n^{2}$ for $n \geq 4$.
Pages 151–154 of the book (PDF).