Warm-up · Negations for proofs
Write each of these.
(a) The contrapositive of: if is odd, then is odd.
Show answerHide answer
Answer
If is even, then is even.
Why
The contrapositive of is : negate both statements and swap them.
(b) The negation of: is rational.
Show answerHide answer
Answer
is irrational.
Why
For a real number, “not rational” means irrational.
(c) The definition: is rational means …
Show answerHide answer
Answer
with , . We may also take in lowest terms ( and coprime).
Why
Cancelling any common factor gives lowest terms. This is the key fact used in proofs of irrationality.
(d) The negation of: there are finitely many primes.
Show answerHide answer
Answer
There are infinitely many primes.
Why
The negation of “finitely many” is “infinitely many”.
Proof by contrapositive
Key idea
To prove by contrapositive- Write the contrapositive .
- Prove directly.
- Conclude: an implication is logically equivalent to its contrapositive, so is true.
When? When gives you something concrete to work with (“ is odd” gives ) but does not.
Example 1
Prove that if is even, then is even.
Show answerHide answer
Answer
Contrapositive: if is odd, then is odd.
Let , . Then , which is odd.
Hence if is even, then is even.
Let , . Then , which is odd.
Hence if is even, then is even.
Why
A direct proof is awkward: “” gives no handle on . The contrapositive starts from “ is odd”, which gives a usable form. We will use this result as a lemma later in the lesson.
Example 2 · Proof by contrapositive
For integers , prove that if is even, then is odd.
Show answerHide answer
Answer
Contrapositive: if is even, then is odd.
Let . Then , which is odd.
Hence if is even, then is odd.
Let . Then , which is odd.
Hence if is even, then is odd.
Why
The negation of “ is odd” is “ is even”, which gives to substitute.
Example 3 · Contrapositive with “or”
(a) For integers and , prove that if is even, then is even or is even.
Show answerHide answer
Answer
Contrapositive: if and are both odd, then is odd. This was proved in Lesson 3, Example 1: .
Why
Negating “or” gives “and”: . So the negation of “ is even or is even” is “ is odd and is odd”.
(b) For , prove that if is irrational, then is irrational.
Show answerHide answer
Answer
Contrapositive: if is rational, then is rational.
Let with , . Then , a ratio of integers with , so is rational.
Let with , . Then , a ratio of integers with , so is rational.
Why
The negation of “irrational” is “rational”, and a rational number has a concrete form to work with. That is why the contrapositive is easier.
HSC practice · Proof by contrapositive
Adapted from 2022 HSC Q13(a)Let be an integer. Prove by contrapositive that if is prime, then is odd.
Show answerHide answer
Answer
Contrapositive: if is even, then is not prime.
Let with . Then .
Since , and , so is a product of two integers greater than 1, and is not prime.
Hence if is prime, then is odd.
Let with . Then .
Since , and , so is a product of two integers greater than 1, and is not prime.
Hence if is prime, then is odd.
Why
The difference of two squares factorises when is even. Discussion: why ? For , is prime, so the result would fail.
Proof by contradiction
Key idea
To prove by contradiction- Suppose, for contradiction, that is true.
- Reason logically from this assumption.
- Reach something impossible (it contradicts a known fact or the assumption).
- Conclude is false, so is true.
Lemma we use: if is even, then is even (Example 1).
Example 4
Prove that is irrational.
Show answerHide answer
Answer
Suppose, for contradiction, that with , , in lowest terms (no common factor).
Then , so is even and hence is even (lemma). Let .
Then , so , which is even, so is even.
Both and are even, contradicting lowest terms. Hence is irrational.
Then , so is even and hence is even (lemma). Let .
Then , so , which is even, so is even.
Both and are even, contradicting lowest terms. Hence is irrational.
Why
Markers look for the explicit assumption (“Suppose, for contradiction, that …”) and an explicit statement of the contradiction. Lowest terms is what makes “both even” impossible.
Example 5 · Proof by contradiction
(a) Prove that there are no integers and such that .
Show answerHide answer
Answer
Suppose, for contradiction, that such integers exist. Then is even, but 13 is odd. This is a contradiction, so no such integers exist.
Why
Whenever the claim is “there are no …”, assume that there is one and see what goes wrong.
(b) For positive reals and , prove that if , then or .
Show answerHide answer
Answer
Suppose, for contradiction, that and and . Since , . This contradicts . Hence if , then or .
Why
To contradict we assume (Lesson 1). Here is “ and ”. Positivity is needed to multiply the inequalities.
Example 6 · A logarithm
Prove that is irrational.
Show answerHide answer
Answer
Suppose, for contradiction, that with positive integers (valid since ).
Then , so .
The left side is even and the right side is odd. This is a contradiction, so is irrational.
Then , so .
The left side is even and the right side is odd. This is a contradiction, so is irrational.
Why
Rewrite the logarithm as a power and raise both sides to the power to remove the fraction. Any positive power of 2 is even and any power of 5 is odd.
HSC practice · Irrational logarithms
2020 HSC Q14(d)Let be an integer. Prove that is irrational.
Show answerHide answer
Answer
Since , . Suppose, for contradiction, that with positive integers.
Then , so .
One of and is even and the other is odd. Any positive power of an even number is even and of an odd number is odd, so one side is even and the other is odd. This is a contradiction.
Hence is irrational.
Then , so .
One of and is even and the other is odd. Any positive power of an even number is even and of an odd number is odd, so one side is even and the other is odd. This is a contradiction.
Hence is irrational.
Why
You must say why and can be taken positive: the logarithm is positive. This step is often missed. Then the parity argument is the same as in Example 6.
HSC practice · Another surd
2023 HSC Q12(a)Prove by contradiction that is irrational.
Show answerHide answer
Answer
Suppose, for contradiction, that with , , coprime.
Then , so . Since 23 is prime, . Let .
Then , so and , so .
Then 23 divides both and , contradicting that they are coprime. Hence is irrational.
Then , so . Since 23 is prime, . Let .
Then , so and , so .
Then 23 divides both and , contradicting that they are coprime. Hence is irrational.
Why
The step “” uses that 23 is prime. Compare Example 8(a) for 3, where the same fact was proved by contrapositive.
Example 7 · Infinitely many primes (Euclid)
Suppose, for contradiction, that there are finitely many primes . Let .
(a) Explain why is not divisible by any of .
Show answerHide answer
Answer
Dividing by any leaves remainder 1.
Why
The product is divisible by each , so adding 1 leaves remainder 1.
(b) Explain why this gives a contradiction, and complete the proof.
Show answerHide answer
Answer
, so has a prime factor (or is itself prime). That prime is not in the list, contradicting the assumption that the list contains all the primes. Hence there are infinitely many primes.
Why
Common error: claiming itself must be prime. For example, . What matters is that has a prime factor outside the list.
Example 8 · Combining methods
(a) Prove by contrapositive that if , then . (Use , .)
Show answerHide answer
Answer
Contrapositive: if , then . If then or .
.
.
Neither is divisible by 3. Hence if , then .
.
.
Neither is divisible by 3. Hence if , then .
Why
An integer not divisible by 3 leaves remainder 1 or 2, which gives exactly the two cases.
(b) Hence prove by contradiction that is irrational.
Show answerHide answer
Answer
Suppose in lowest terms, , . Then , so and, by (a), . Let . Then , so , so and . This contradicts lowest terms. Hence is irrational.
Why
The proof follows the pattern of Example 4, with part (a) acting as the lemma in place of “ even even”.
(c) Given that is irrational, prove that is irrational.
Show answerHide answer
Answer
Suppose, for contradiction, that with rational. Squaring, , so , which is rational. This contradicts the fact that is irrational. Hence is irrational.
Why
Squaring produces the surd , which is the quantity we are given information about. Rational numbers are closed under addition, multiplication and division by non-zero rationals.
HSC practice · Converse by contrapositive
2020 HSC Q15(a)(ii)–(iii)Let be an integer. In Lesson 3 you proved: if , then .
(i) Write the contrapositive of this statement.
(ii) Write the converse, and prove it is true by proving its contrapositive.
(i) Write the contrapositive of this statement.
(ii) Write the converse, and prove it is true by proving its contrapositive.
Show answerHide answer
Answer
(i) If is not divisible by 3, then is not divisible by 3.
(ii) Converse: if , then . Its contrapositive: if , then .
If , then or .
Case 1, : , so .
Case 2, : , so .
Neither is divisible by 3, so the converse is true. Hence .
(ii) Converse: if , then . Its contrapositive: if , then .
If , then or .
Case 1, : , so .
Case 2, : , so .
Neither is divisible by 3, so the converse is true. Hence .
Why
The contrapositive of the converse is the inverse of the original statement. Take care to work with the expression , not : the quantity that must be shown not divisible by 3 is .
Spot the flaw · Contradiction
A student wrote this. Find the flaw, explain why it matters, then write a correct version.
Claim
is irrational.
- Suppose, for contradiction, that is rational.
- But and are both irrational, and the sum of two irrational numbers is irrational.
- So is irrational, which contradicts line 1.
Task Find the flaw, explain why it matters, and write a correct version.
Show answerHide answer
Answer
Flaw 1: “the sum of two irrational numbers is irrational” is false: .
Flaw 2: the assumption in line 1 is never used. Line 2 simply asserts the result, so there is no real contradiction.
Correct version (Example 8(c)): suppose . Then , so , contradicting that is irrational.
Flaw 2: the assumption in line 1 is never used. Line 2 simply asserts the result, so there is no real contradiction.
Correct version (Example 8(c)): suppose . Then , so , contradicting that is irrational.
Why
A proof by contradiction must use the assumption to reach something impossible. Here the final line only restates the claim, and it relies on a false general statement.
Exit ticket
(a) Prove by contradiction that there is no largest even integer.
Show answerHide answer
Answer
Suppose, for contradiction, that is the largest even integer. Then is even and larger than . This is a contradiction, so there is no largest even integer.
Why
State the assumption, produce a larger even integer, and state the contradiction.
(b) Prove by contrapositive that for integers , if , then is even.
Show answerHide answer
Answer
Contrapositive: if is odd, then . Let . Then , which leaves remainder 1 on division by 4. Hence , and the original statement is true.
Why
Assume is odd and write . The remainder of 1 shows is not a multiple of 4.