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
A sum
- Prove that $1 + 2 + 3 + \dots + n = \dfrac{n(n+1)}{2}$ for all positive integers $n$.
- Base case. For $n = 1$: LHS $= 1$. RHS $= \dfrac{1 \times 2}{2} = 1$. True.
- Assumption. Assume it is true for $n = k$: $1 + 2 + \dots + k = \dfrac{k(k+1)}{2}$.
- Inductive step. For $n = k + 1$: $1 + 2 + \dots + k + (k+1) = \dfrac{k(k+1)}{2} + (k+1)$.
- $= \dfrac{k(k+1) + 2(k+1)}{2} = \dfrac{(k+1)(k+2)}{2}$, which is the formula with $n = k + 1$.
- 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$.
Divisibility
- Prove that $7^n - 1$ is divisible by 6 for all positive integers $n$.
- Base case. $7^1 - 1 = 6$. True.
- Assumption. $7^k - 1 = 6m$ for some integer $m$, so $7^k = 6m + 1$.
- Inductive step. $7^{k+1} - 1 = 7 \times 7^k - 1 = 7(6m + 1) - 1 = 42m + 6 = 6(7m + 1)$.
- This is divisible by 6. Conclusion as before.
Check yourself
What is the first step of a proof by induction?
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.
√2 is irrational
- Assume the opposite: $\sqrt{2}$ is rational. Then $\sqrt{2} = \dfrac{p}{q}$, where $p$ and $q$ are integers with no common factor.
- Squaring: $2 = \dfrac{p^2}{q^2}$, so $p^2 = 2q^2$. So $p^2$ is even, which means $p$ is even.
- Write $p = 2k$. Then $4k^2 = 2q^2$, so $q^2 = 2k^2$. So $q$ is even too.
- Both $p$ and $q$ are even, so they share the factor 2. This contradicts step 1.
- So the assumption is false: $\sqrt{2}$ is irrational.
There is no largest prime
- Assume there is a largest prime, so the list of primes $p_1, p_2, \dots, p_n$ is complete.
- Let $N = p_1 p_2 \dots p_n + 1$.
- Dividing $N$ by any prime on the list leaves remainder 1. So $N$ is not divisible by any of them.
- So $N$ is itself prime, or has a prime factor not on the list. Either way the list was not complete: a contradiction.
- So there are infinitely many primes.
Check yourself
How does a proof by contradiction begin?
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$.
An inequality by induction
- Prove that $2^n > n + 1$ for all integers $n \geq 2$.
- Base case. $n = 2$: $2^2 = 4 > 3$. True.
- Assumption. $2^k > k + 1$.
- 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$.
- 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"?
Show the answer
Induction
It is a statement about every positive integer.
4Induction with divisibility
Prove $5^n - 1$ is divisible by 4 for all positive integers $n$
- Base case $n = 1$: $5 - 1 = 4$, divisible by 4.
- Assume true for $n = k$: $5^k - 1 = 4m$ for some integer $m$.
- Show for $n = k + 1$: $5^{k+1} - 1 = 5 \cdot 5^k - 1 = 5(4m + 1) - 1 = 20m + 4 = 4(5m + 1)$.
- This is divisible by 4.
- 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?
Show the answer
The statement is true for the first value, such as $n = 1$
Starting point.
5The classic contradiction: $\sqrt{2}$ is irrational
- Assume $\sqrt{2} = \frac{p}{q}$, where $p$ and $q$ are integers with no common factor.
- Then $2q^2 = p^2$, so $p^2$ is even, so $p$ is even: $p = 2k$.
- $2q^2 = 4k^2$, so $q^2 = 2k^2$, so $q$ is even.
- Both $p$ and $q$ are even, contradicting "no common factor".
- So $\sqrt{2}$ is irrational.
Check yourself
In proving √2 is irrational, what is first assumed?
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