impera Open Impera

IB Diploma Mathematics AA · Number and algebra

Proof by induction and contradiction (HL)

1Proof by induction

Mathematical induction proves that a statement is true for every positive integer $n$. It works like a row of dominoes: show the first one falls, and show that each one knocks over the next.

The structure of a proof by induction

Worked example

A sum

  1. Prove that $1 + 2 + 3 + \dots + n = \dfrac{n(n+1)}{2}$ for all positive integers $n$.
  2. Base case. For $n = 1$: LHS $= 1$. RHS $= \dfrac{1 \times 2}{2} = 1$. True.
  3. Assumption. Assume it is true for $n = k$: $1 + 2 + \dots + k = \dfrac{k(k+1)}{2}$.
  4. Inductive step. For $n = k + 1$: $1 + 2 + \dots + k + (k+1) = \dfrac{k(k+1)}{2} + (k+1)$.
  5. $= \dfrac{k(k+1) + 2(k+1)}{2} = \dfrac{(k+1)(k+2)}{2}$, which is the formula with $n = k + 1$.
  6. Conclusion. It is true for $n = 1$, and if true for $n = k$ it is true for $n = k + 1$. So by induction it is true for all positive integers $n$.
Worked example

Divisibility

  1. Prove that $7^n - 1$ is divisible by 6 for all positive integers $n$.
  2. Base case. $7^1 - 1 = 6$. True.
  3. Assumption. $7^k - 1 = 6m$ for some integer $m$, so $7^k = 6m + 1$.
  4. Inductive step. $7^{k+1} - 1 = 7 \times 7^k - 1 = 7(6m + 1) - 1 = 42m + 6 = 6(7m + 1)$.
  5. This is divisible by 6. Conclusion as before.
Check yourself

What is the first step of a proof by induction?

  • Draw a graph

  • Assume the statement is true for all n

  • Show the statement is true for n = 1

  • Find a counterexample

Show the answer

Show the statement is true for n = 1

This is the base case.

2Proof by contradiction

To prove a statement by contradiction:

  • assume the opposite of what you want to prove;
  • reason logically until you reach something impossible, a contradiction;
  • conclude that the assumption was false, so the original statement is true.
Worked example

√2 is irrational

  1. Assume the opposite: $\sqrt{2}$ is rational. Then $\sqrt{2} = \dfrac{p}{q}$, where $p$ and $q$ are integers with no common factor.
  2. Squaring: $2 = \dfrac{p^2}{q^2}$, so $p^2 = 2q^2$. So $p^2$ is even, which means $p$ is even.
  3. Write $p = 2k$. Then $4k^2 = 2q^2$, so $q^2 = 2k^2$. So $q$ is even too.
  4. Both $p$ and $q$ are even, so they share the factor 2. This contradicts step 1.
  5. So the assumption is false: $\sqrt{2}$ is irrational.
Worked example

There is no largest prime

  1. Assume there is a largest prime, so the list of primes $p_1, p_2, \dots, p_n$ is complete.
  2. Let $N = p_1 p_2 \dots p_n + 1$.
  3. Dividing $N$ by any prime on the list leaves remainder 1. So $N$ is not divisible by any of them.
  4. So $N$ is itself prime, or has a prime factor not on the list. Either way the list was not complete: a contradiction.
  5. So there are infinitely many primes.
Check yourself

How does a proof by contradiction begin?

  • By checking that the statement holds for n = 1

  • By assuming the opposite of what is to be proved

  • By giving an example where the statement holds

  • By assuming the statement is true and using it

Show the answer

By assuming the opposite of what is to be proved

The aim is to reach something impossible.

3Choosing a method of proof

Different statements suit different methods.

  • Direct proof: when you can reach the result by algebra from what is given. Identities and facts about odd and even numbers.
  • Induction: when the statement involves "for all positive integers $n$". Sums of series, divisibility, and formulas for the $n$th term or the $n$th derivative.
  • Contradiction: when the statement says something is impossible or does not exist. Irrationality, and "there is no largest…".
  • Counterexample: only to show that a statement is false.

Induction can start from a value other than 1. To prove a statement for all $n \geq 4$, the base case is $n = 4$.

Worked example

An inequality by induction

  1. Prove that $2^n > n + 1$ for all integers $n \geq 2$.
  2. Base case. $n = 2$: $2^2 = 4 > 3$. True.
  3. Assumption. $2^k > k + 1$.
  4. Inductive step. $2^{k+1} = 2 \times 2^k > 2(k + 1) = 2k + 2$. Since $k \geq 2$, $2k + 2 > k + 2$. So $2^{k+1} > (k + 1) + 1$.
  5. Conclusion. True for $n = 2$, and true for $k$ implies true for $k + 1$, so true for all $n \geq 2$.
Check yourself

Which method suits the statement "the sum of the first n odd numbers is n² for all positive integers n"?

  • Measuring

  • Induction

  • Counterexample

  • Contradiction

Show the answer

Induction

It is a statement about every positive integer.

4Induction with divisibility

Worked example

Prove $5^n - 1$ is divisible by 4 for all positive integers $n$

  1. Base case $n = 1$: $5 - 1 = 4$, divisible by 4.
  2. Assume true for $n = k$: $5^k - 1 = 4m$ for some integer $m$.
  3. Show for $n = k + 1$: $5^{k+1} - 1 = 5 \cdot 5^k - 1 = 5(4m + 1) - 1 = 20m + 4 = 4(5m + 1)$.
  4. This is divisible by 4.
  5. Conclusion: true for $n = 1$, and true for $n = k$ implies true for $n = k + 1$, so true for all positive integers $n$.
Check yourself

What must be shown in the base case of an induction proof?

  • The statement is false for $n = 0$ and every negative $n$

  • The statement is true for the first value, such as $n = 1$

  • Nothing at all, as the base case is optional in induction

  • The statement is true for every value of $n$ at once

Show the answer

The statement is true for the first value, such as $n = 1$

Starting point.

5The classic contradiction: $\sqrt{2}$ is irrational

  1. Assume $\sqrt{2} = \frac{p}{q}$, where $p$ and $q$ are integers with no common factor.
  2. Then $2q^2 = p^2$, so $p^2$ is even, so $p$ is even: $p = 2k$.
  3. $2q^2 = 4k^2$, so $q^2 = 2k^2$, so $q$ is even.
  4. Both $p$ and $q$ are even, contradicting "no common factor".
  5. So $\sqrt{2}$ is irrational.
Check yourself

In proving √2 is irrational, what is first assumed?

  • √2 is a whole number

  • p and q are both even integers

  • √2 = p/q in lowest terms

  • √2 = 1.414 exactly

Show the answer

√2 = p/q in lowest terms

Showing both p and q are even gives the contradiction.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera