⚔️ Proof by Contradiction

A Level Maths Year 2 · Proof

Level 3 · Ages 17–18

← Back to topic overview
1 The Method
A statement is either true or false. If assuming it is false leads, by correct logic, to something impossible, then it cannot be false — so it must be true. That is proof by contradiction.
  1. Assume the statement is false. Write down its negation clearly: "Assume, for contradiction, that…"
  2. Deduce consequences from that assumption using correct algebra and known facts.
  3. Contradict: reach something impossible — a number that is both even and odd, an integer equal to a fraction, a fraction not in lowest terms when you said it was.
  4. Conclude: "This is a contradiction, so the assumption was false and the statement is true."
The contradiction can be with anything you know is true — with the assumption itself, with a definition, or with an earlier result. Say exactly what has been contradicted.
2 Writing the Negation

The first line is worth a mark on its own, and getting it wrong wrecks the proof. The negation must be true in exactly the cases where the statement is false.

StatementAssume, for contradiction…
$\sqrt{2}$ is irrational$\sqrt{2}$ is rational, so $\sqrt{2} = \dfrac{a}{b}$ with $a, b$ integers with no common factor
There are infinitely many primesThere are finitely many primes, $p_1, p_2, \ldots, p_n$
There is no greatest even numberThere is a greatest even number, $N$
If $n^2$ is even then $n$ is even$n^2$ is even and $n$ is odd
There are no integers $a, b$ with $a^2 - 4b = 2$There are integers $a, b$ with $a^2 - 4b = 2$
For all $x > 0$, $x + \dfrac{1}{x} \geqslant 2$There is some $x > 0$ with $x + \dfrac{1}{x} < 2$
Negating "if P then Q". The negation is "P is true and Q is false" — not "if P then not Q". To disprove "if $n^2$ is even then $n$ is even" you would need one $n$ with $n^2$ even and $n$ odd.
"For all" becomes "there exists". The opposite of "every $x$ satisfies…" is "at least one $x$ does not". You only need to assume one bad case exists.
3 Even and Odd Arguments
Worked Example 1 — If $n^2$ is even, then $n$ is even

Prove that for any integer $n$, if $n^2$ is even then $n$ is even.

①Assume, for contradiction, that $n^2$ is even and $n$ is odd.
②Since $n$ is odd, $n = 2k + 1$ for some integer $k$.
③$n^2 = 4k^2 + 4k + 1 = 2(2k^2 + 2k) + 1$, which is odd.
④This contradicts $n^2$ being even.
⑤So if $n^2$ is even, $n$ must be even. $\blacksquare$
This result is the key lemma in the proof that $\sqrt{2}$ is irrational. Learn it, and its "multiple of $3$" cousin below.
Worked Example 2 — No greatest even number

Prove that there is no greatest even number.

①Assume there is a greatest even number, $N$. So $N = 2k$ for some integer $k$.
②Consider $N + 2 = 2k + 2 = 2(k+1)$. This is even.
③And $N + 2 > N$, contradicting the assumption that $N$ is the greatest even number.
④So there is no greatest even number. $\blacksquare$
Worked Example 3 — $a^2 - 4b \neq 2$

Prove that there are no integers $a$ and $b$ for which $a^2 - 4b = 2$.

①Assume there are integers $a, b$ with $a^2 - 4b = 2$. Then $a^2 = 4b + 2 = 2(2b + 1)$.
②So $a^2$ is even, and by Worked Example 1, $a$ is even: $a = 2m$.
③Substitute: $4m^2 - 4b = 2$, so $2m^2 - 2b = 1$, i.e. $2(m^2 - b) = 1$.
④The left side is even and the right side is odd — a contradiction.
⑤So no such integers exist. $\blacksquare$
Worked Example 4 — A difference of two squares

Prove that there are no positive integers $x$ and $y$ with $x^2 - y^2 = 10$.

①Assume positive integers $x, y$ satisfy $x^2 - y^2 = 10$, so $(x - y)(x + y) = 10$.
②$x + y$ and $x - y$ differ by $2y$, which is even, so they are both even or both odd.
③Both odd: their product is odd, but $10$ is even. Contradiction.
④Both even: their product is a multiple of $4$, but $10$ is not. Contradiction.
⑤Either way we have a contradiction, so no such integers exist. $\blacksquare$
4 Proving a Number Is Irrational
The standard opening
Assume $\sqrt{2} = \dfrac{a}{b}$ where $a, b$ are integers, $b \neq 0$, and the fraction is in its simplest form
Worked Example 5 — $\sqrt{2}$ is irrational

Prove that $\sqrt{2}$ is irrational.

①Assume $\sqrt{2}$ is rational: $\sqrt{2} = \dfrac{a}{b}$ with $a, b$ integers having no common factor.
②Square: $2 = \dfrac{a^2}{b^2}$, so $a^2 = 2b^2$. Hence $a^2$ is even, so $a$ is even.
③Write $a = 2c$. Then $4c^2 = 2b^2$, so $b^2 = 2c^2$.
④So $b^2$ is even, and therefore $b$ is even.
⑤Now $a$ and $b$ are both even, so they share the factor $2$. This contradicts "no common factor".
⑥So $\sqrt{2}$ is irrational. $\blacksquare$
Step ② relies on "$a^2$ even $\Rightarrow$ $a$ even". It is not obvious — it is Worked Example 1. In an exam, either quote it as a known result or prove it in a line.
The same proof for $\sqrt{3}$. Replace "even" with "a multiple of $3$". The lemma you need is: if $n^2$ is a multiple of $3$, then $n$ is a multiple of $3$. Proof: if $n = 3k+1$ then $n^2 = 3(3k^2 + 2k) + 1$; if $n = 3k + 2$ then $n^2 = 3(3k^2 + 4k + 1) + 1$. Neither is a multiple of $3$, so $n$ must be $3k$.
Worked Example 6 — $\log_2 3$ is irrational

Prove that $\log_2 3$ is irrational.

①Assume $\log_2 3 = \dfrac{p}{q}$ with $p, q$ integers. Since $\log_2 3 > 0$ we may take $p, q > 0$.
②Then $2^{p/q} = 3$, so raising to the power $q$: $2^p = 3^q$.
③$p \geqslant 1$, so $2^p$ is even. $3^q$ is a product of odd numbers, so it is odd.
④An even number cannot equal an odd number — a contradiction. So $\log_2 3$ is irrational. $\blacksquare$
Worked Example 7 — Rational plus irrational

Given that $\sqrt{2}$ is irrational, prove that $3 + 5\sqrt{2}$ is irrational.

①Assume $3 + 5\sqrt{2} = \dfrac{a}{b}$ with $a, b$ integers, $b \neq 0$.
②Rearrange: $\sqrt{2} = \dfrac{1}{5}\left(\dfrac{a}{b} - 3\right) = \dfrac{a - 3b}{5b}$.
③$a - 3b$ and $5b$ are integers and $5b \neq 0$, so $\sqrt{2}$ would be rational.
④This contradicts $\sqrt{2}$ being irrational, so $3 + 5\sqrt{2}$ is irrational. $\blacksquare$
5 Infinitely Many Primes
Worked Example 8 — Euclid's proof

Prove that there are infinitely many prime numbers.

①Assume there are finitely many primes, and list them all: $p_1, p_2, \ldots, p_n$.
②Let $N = p_1 p_2 \cdots p_n + 1$.
③Dividing $N$ by any $p_i$ leaves remainder $1$, so no prime on the list divides $N$.
④$N > 1$, so either $N$ is prime, or it has a prime factor. Either way there is a prime not on the list.
⑤This contradicts the list containing every prime. So there are infinitely many primes. $\blacksquare$
$N$ is not necessarily prime. $2 \times 3 \times 5 \times 7 \times 11 \times 13 + 1 = 30\,031 = 59 \times 509$. The argument only needs a prime factor outside the list, and $59$ and $509$ are not in $\{2, 3, 5, 7, 11, 13\}$.
6 Contradiction with Inequalities
Worked Example 9 — $x + \frac{1}{x} \geqslant 2$

Prove that for all positive real numbers $x$, $x + \dfrac{1}{x} \geqslant 2$.

①Assume there is some $x > 0$ with $x + \dfrac{1}{x} < 2$.
②Multiply by $x$ (positive, so the inequality is kept): $x^2 + 1 < 2x$.
③Rearrange: $x^2 - 2x + 1 < 0$, i.e. $(x - 1)^2 < 0$.
④A real square cannot be negative — a contradiction. So $x + \dfrac{1}{x} \geqslant 2$ for all $x > 0$. $\blacksquare$
Multiplying by $x$ is only safe because $x > 0$. Always say why the inequality sign does not change.
7 Quick Reference

Structure

Assume false $\to$ deduce $\to$ contradiction $\to$ conclude.

Rational

$\dfrac{a}{b}$, integers, $b \neq 0$, simplest form.

Key lemma

$n^2$ even $\Rightarrow n$ even.

Multiples of 3

$3 \mid n^2 \Rightarrow 3 \mid n$ (check $3k\pm1$).

Primes

Product of all of them, plus $1$.

Logs

$2^p = 3^q$: even $=$ odd, impossible.

Negating "if P then Q"

P and not Q.

Parity clash

Even $=$ odd, or integer $=$ fraction.

8 Practice Questions
Question 1

Write the opening assumption for a proof by contradiction of each statement.   (a) "$\sqrt{5}$ is irrational."   (b) "If $n^3$ is odd then $n$ is odd."   (c) "There is no largest multiple of $7$."

▶ Show solution

(a) Assume $\sqrt{5}$ is rational, so $\sqrt{5} = \dfrac{a}{b}$ with $a, b$ integers, $b \neq 0$, having no common factor.

(b) Assume $n^3$ is odd and $n$ is even.

(c) Assume there is a largest multiple of $7$, $M = 7k$.

Question 2

Prove by contradiction that there is no greatest odd number.

▶ Show solution

Assume there is a greatest odd number, $N = 2k + 1$.

Then $N + 2 = 2(k+1) + 1$ is odd and greater than $N$.

This contradicts $N$ being the greatest, so there is no greatest odd number. $\blacksquare$

Question 3

Prove that if $n^2$ is odd, then $n$ is odd.

▶ Show solution

Assume $n^2$ is odd and $n$ is even, so $n = 2k$.

Then $n^2 = 4k^2 = 2(2k^2)$, which is even.

This contradicts $n^2$ being odd, so $n$ is odd. $\blacksquare$

Question 4

Prove that there are no integers $a$ and $b$ such that $10a + 15b = 7$.

▶ Show solution

Assume integers $a, b$ satisfy $10a + 15b = 7$.

Then $5(2a + 3b) = 7$, so $2a + 3b = \dfrac{7}{5}$.

The left side is an integer but $\tfrac{7}{5}$ is not — a contradiction. So no such integers exist. $\blacksquare$

Question 5

Prove that $\sqrt{3}$ is irrational. You may use the result that if $n^2$ is a multiple of $3$ then $n$ is a multiple of $3$.

▶ Show solution

Assume $\sqrt{3} = \dfrac{a}{b}$ with $a, b$ integers, $b \neq 0$, and no common factor.

Then $a^2 = 3b^2$, so $a^2$ is a multiple of $3$, and hence so is $a$. Write $a = 3c$.

$9c^2 = 3b^2 \Rightarrow b^2 = 3c^2$, so $b^2$, and hence $b$, is a multiple of $3$.

So $3$ is a common factor of $a$ and $b$ — a contradiction. Hence $\sqrt{3}$ is irrational. $\blacksquare$

Question 6

Prove that there are no positive integers $x$ and $y$ with $x^2 - y^2 = 1$.

▶ Show solution

Assume positive integers $x, y$ satisfy $(x - y)(x + y) = 1$.

$x + y$ is a positive integer, so $x - y$ must be positive too, and the only way two positive integers multiply to $1$ is $x + y = 1$ and $x - y = 1$.

Adding: $2x = 2$, so $x = 1$ and $y = 0$. But $y$ was positive — a contradiction.

So there are no such positive integers. $\blacksquare$

Question 7

Given that $q$ is a non-zero rational number and $r$ is irrational, prove that $qr$ is irrational.

▶ Show solution

Write $q = \dfrac{a}{b}$ with $a, b$ non-zero integers.

Assume $qr$ is rational: $qr = \dfrac{c}{d}$ with $c, d$ integers, $d \neq 0$.

Then $r = \dfrac{c}{d} \div \dfrac{a}{b} = \dfrac{bc}{ad}$, and $ad \neq 0$, so $r$ is rational.

This contradicts $r$ being irrational. So $qr$ is irrational. $\blacksquare$

(Note that $q \neq 0$ is needed: $0 \times \sqrt{2} = 0$ is rational.)

Question 8

Prove that $\log_3 10$ is irrational.

▶ Show solution

Assume $\log_3 10 = \dfrac{p}{q}$ with $p, q$ integers. As $\log_3 10 > 0$, take $p, q > 0$.

Then $3^{p/q} = 10$, so $3^p = 10^q$.

$3^p$ is odd, but $10^q$ (with $q \geqslant 1$) is even — a contradiction.

So $\log_3 10$ is irrational. $\blacksquare$

Question 9

Prove by contradiction that for all real $x > 0$, $\;x + \dfrac{9}{x} \geqslant 6$.

▶ Show solution

Assume some $x > 0$ has $x + \dfrac{9}{x} < 6$.

Multiply by $x > 0$ (sign unchanged): $x^2 + 9 < 6x$, so $x^2 - 6x + 9 < 0$.

That is $(x - 3)^2 < 0$, impossible for real $x$ — a contradiction.

So $x + \dfrac{9}{x} \geqslant 6$ for all $x > 0$, with equality when $x = 3$. $\blacksquare$

Question 10

(a) Prove that if $n$ is not a multiple of $3$ then $n^2$ leaves remainder $1$ when divided by $3$.   (b) Hence prove by contradiction that there are no integers $a$ and $b$ with $a^2 = 3b + 2$.   (c) Prove that $\sqrt{6}$ is irrational.   (d) A student says: "$\sqrt{2}$ and $\sqrt{3}$ are irrational, and the product of two irrationals is irrational, so $\sqrt{6}$ is irrational." Show that the student's general rule is false.

▶ Show solution

(a) $n = 3k + 1 \Rightarrow n^2 = 9k^2 + 6k + 1 = 3(3k^2 + 2k) + 1$.

$n = 3k + 2 \Rightarrow n^2 = 9k^2 + 12k + 4 = 3(3k^2 + 4k + 1) + 1$. Both leave remainder $1$. $\blacksquare$

(b) Assume $a^2 = 3b + 2$. Then $a^2$ leaves remainder $2$ on division by $3$.

If $a$ is a multiple of $3$, $a^2$ leaves remainder $0$; if not, by (a) it leaves remainder $1$. Never $2$ — a contradiction. $\blacksquare$

(c) Assume $\sqrt{6} = \dfrac{a}{b}$ in simplest form. Then $a^2 = 6b^2$, so $a^2$ is even and $a$ is even: $a = 2c$.

$4c^2 = 6b^2 \Rightarrow b^2 = 2c^2$, so $b^2$ is even and $b$ is even.

Then $2$ is a common factor of $a$ and $b$ — a contradiction. So $\sqrt{6}$ is irrational. $\blacksquare$

(d) Counter-example: $\sqrt{2}$ is irrational but $\sqrt{2} \times \sqrt{2} = 2$ is rational. So "the product of two irrationals is irrational" is false, and the student's argument is not valid (even though the conclusion happens to be true).

Proof by Contradiction · A Level Maths Year 2 · Created with MathJax