The nature of proof in HSC Mathematics Extension 2: direct proof, proof by contradiction, contrapositive and disproof by counterexample
“Use the language of proof, prove results by contradiction and contrapositive, and disprove statements by counterexample”
A proof is a sequence of logically valid steps from accepted assumptions to a conclusion. Direct proof argues forward from the hypothesis. Proof by contradiction assumes the negation and derives an impossibility. A contrapositive proof of "if then " proves the equivalent "if not then not ". The converse is a different statement and does not follow. One counterexample disproves a universal statement.
Jump to a section
What this dot point is asking
NESA wants you to write and read mathematical arguments with precision. You must use logical language correctly (implication, converse, contrapositive, equivalence, "for all", "there exists"), construct direct proofs, prove statements by contradiction and by the contrapositive, disprove false statements with a single counterexample, and recognise the standard logical fallacies that turn a plausible-looking argument into an invalid one. This dot point is the grammar of the whole Proof module: every later technique, including induction and inequality proofs, is written in the language set up here.
The language of proof
A statement (or proposition) is a sentence that is definitely either true or false. An implication ("if then ") asserts that whenever holds, holds. Here is the hypothesis (the assumption) and the conclusion. The implication says nothing about what happens when is false; in that case it is automatically counted as true (it is "vacuously true"), which is why a single example with false can never test an implication.
Three related statements are built from , and keeping them apart is the most common source of error in the whole module:
- Converse: . The converse is a genuinely different claim and is not logically equivalent to the original. "If it is raining then the ground is wet" is true; its converse "if the ground is wet then it is raining" is false (someone may have used a hose).
- Contrapositive: . The contrapositive is logically equivalent to : the two are true in exactly the same situations, so proving one proves the other.
- Negation: is true exactly when is true and is false. This is the statement you assume at the start of a proof by contradiction.
The quantifiers "for all" () and "there exists" () bind variables and tell you the scope of a claim. Negation swaps them: the negation of is , and the negation of is . Knowing how to negate a quantified statement is essential, because it is precisely the negation you must establish to disprove the original or to run a contradiction argument.
If and only if (equivalence)
If both and hold, we write (" if and only if ", often abbreviated "iff"), and say and are equivalent. An "if and only if" statement is really two statements bundled together, and a complete proof must establish both directions separately. A common shorthand to keep them straight: is the "only if" direction ( holds only if does) and is the "if" direction.
The danger is doing half the work. Proving "" by only checking that gives proves just one direction; the other direction is in fact false, because also satisfies . Always prove forwards and backwards, and watch for the direction that quietly fails.
Direct proof
A direct proof of assumes and deduces through valid algebraic or logical steps. For example, to prove that the sum of two even integers is even: let and for integers . Then , which is a multiple of , hence even. The skill is to translate the words into algebra you can manipulate ("even" becomes " integer"), do the algebra, then translate back.
Proof by contradiction
To prove a statement by contradiction, assume and derive a logical impossibility, a contradiction such as , or a number that is simultaneously even and odd, or a fraction in lowest terms whose numerator and denominator share a factor. Since the assumption forces an impossibility, cannot hold, so is true.
The classic example is the irrationality of . Suppose, for contradiction, that is rational. Then where are integers with no common factor (the fraction is in lowest terms) and . Squaring gives
So is even, which forces to be even (if were odd, would be odd). Write . Then , so , meaning is even and hence is even. But then and share the factor , contradicting the assumption that is in lowest terms. The assumption is impossible, so is irrational.
Notice the two features that make a contradiction proof work: you must assume the exact negation of what you want, and you must reach a genuine impossibility, not merely a surprising fact.
Proof by contrapositive
Because is equivalent to , you may prove the contrapositive instead. This is the right move whenever assuming gives you something concrete to compute with while assuming gives you very little.
For example, prove: if is odd then is odd. Arguing directly from " is odd" is awkward, but the contrapositive, "if is even then is even", is immediate. Let . Then , which is even. The contrapositive holds, so the original statement holds. The general signpost: if the hypothesis is a statement of the form "something is not nice" or "something is prime", the contrapositive often turns it into a friendlier "something is nice" or "something is composite".
Contradiction versus contrapositive
The two are close cousins and students often blur them. A contrapositive proof of assumes and derives by a direct chain, ending cleanly with no contradiction. A contradiction proof of the same implication assumes and together and derives any impossibility at all. The contrapositive is usually tidier when it applies; reach for full contradiction when the statement is not an implication (for example " is irrational" is not naturally "if ... then ...") or when assuming both halves gives you more to work with.
Disproof by counterexample
A statement of the form "for all , " is false if even one value violates it. To disprove it you supply a single explicit counterexample; you do not need, and should not attempt, a general argument. For an implication "for all , if then ", the counterexample must be a value that satisfies the hypothesis and fails the conclusion . An example that fails proves nothing, because the implication is vacuously true there.
For example, the claim "every odd number is prime" fails because is odd but is composite. A single value settles it. By contrast, to disprove "for all primes , is prime" you cannot use (not prime, so it does not test the claim); you need , where is composite.
Common logical fallacies
Markers are trained to spot a handful of recurring invalid moves. Knowing them by name helps you avoid them under pressure:
- Affirming the consequent. From and , concluding . This is just using the converse; it is invalid.
- Denying the antecedent. From and , concluding . Also invalid; only the contrapositive (from conclude ) is valid.
- Circular reasoning (begging the question). Using the statement you are trying to prove as one of your steps. Common when an "iff" is half-assumed.
- Proving the converse by mistake. Setting out to prove but actually arguing .
- Generalising from examples. Checking the claim for and declaring it true for all . Examples can disprove a universal claim but never prove one; that is what induction or a general argument is for.
- Dividing by a quantity that might be zero, or taking a square root that introduces a spurious sign. Both can manufacture a "proof" of a false statement.
The contrapositive is logically equivalent to , so proving it proves the original. The converse is a different statement and does not follow. To disprove a universal statement "for all , " you need exactly one counterexample; to disprove an implication, that counterexample must satisfy the hypothesis and fail the conclusion. To prove an "if and only if" you must prove both directions separately.
How exam questions ask about the nature of proof
- "Prove that ... is irrational" or "Prove that there are infinitely many ...": classic proof by contradiction. Assume the negation (it is rational; there are finitely many) and reach an impossibility.
- "Prove that if then " where assuming is awkward: try the contrapositive, especially when involves "prime", "not", or "odd/even".
- "Show that there is no integer / no real number such that ...": a non-existence claim; assume one exists and derive a contradiction, often via a parity or divisibility argument.
- "Disprove the statement ..." or "Is it true that ...? Justify.": hunt for a counterexample first; only switch to a proof if no counterexample exists. State clearly that one counterexample suffices.
- "Prove that ... if and only if ...": two separate proofs, one for each direction. Label them.
- "Explain why the following argument is invalid": name the fallacy (usually affirming the consequent or generalising from examples) and give the step where it breaks.
State your method in the first line: "Assume, for contradiction, that ..." or "We prove the contrapositive: ..." or "A counterexample is ...". For a contradiction proof, write down the exact negation before doing any algebra, and end by naming the contradiction explicitly ("this contradicts that and are coprime"). When you use that a prime divides implies , say so, because it is the load-bearing step and markers look for it. For an "iff", prove both directions under separate headings so each can be ticked. To disprove, give one explicit value and verify it satisfies the hypothesis but fails the conclusion; do not write a general argument when a single example is wanted. Keep parity arguments organised in two clear cases ( even, odd).
Prove that there is no smallest positive rational number
This example pairs a clean contradiction proof with a counterexample, the two skills the dot point centres on, so you can see how each is laid out.
- Set up the contradiction
- We want to prove the statement : "there is no smallest positive rational number." Assume the negation : that there is a smallest positive rational number, and call it . By assumption and is rational, and every positive rational is .
- Construct a smaller positive rational
- Since is rational and positive, the number is also rational (a rational divided by is rational) and positive. So is a positive rational number.
- Derive the contradiction
- Because , dividing by makes it strictly smaller: . So is a positive rational strictly less than , which contradicts the assumption that was the smallest positive rational.
- Conclude and sanity-check
- The assumption forces a contradiction, so is false and is true: there is no smallest positive rational number. A quick check of the key step: if , then , confirming the strict inequality for every positive .
Disprove that is prime for all positive integers
Now disprove the tempting claim "for all positive integers , is prime." This is a universal statement, so one counterexample is enough. The formula does give primes for small , which is exactly the trap. Take : then , which is composite. The single value satisfies the hypothesis (it is a positive integer) and fails the conclusion (the output is not prime), so the claim is false. This is why "it works for " never amounts to a proof.
Final answer: there is no smallest positive rational number (by contradiction), and "for all positive integers , is prime" is false, disproved by .
Edge cases and what-ifs
- Vacuous truth. "If then " is automatically true whenever is false. So an example with false can neither prove nor disprove an implication; to disprove, you must satisfy .
- Negating compound statements. The negation of " and " is " or "; the negation of " or " is " and ". Getting these right matters when you set up a contradiction.
- A "surprising" result is not a contradiction. A contradiction proof must reach a genuine impossibility (such as ), not merely an unexpected or ugly statement.
- One direction of an iff can be false. When a question asks you to prove or test an "if and only if", check each direction independently; it is common for one to hold and the other to fail.
- Existence versus universal. To prove "there exists" you exhibit one example; to disprove "for all" you exhibit one counterexample. To prove "for all" you need a general argument, and to disprove "there exists" you need a general argument that no example works.
- Confusing converse with contrapositive
- The contrapositive is equivalent to ; the converse is not. Proving the converse does not prove the original.
- A counterexample that does not satisfy the hypothesis
- To disprove "if then ", your example must satisfy and fail . An example failing proves nothing.
- Stopping a contradiction proof too early
- You must reach an actual logical impossibility. An "unusual" or "surprising" result is not a contradiction.
- Proving only one direction of an iff
- "If and only if" needs both and . One direction is half a proof.
- Assuming what you are proving
- Circular reasoning, where the conclusion is used as a step, is invalid.
Exam-style questions
Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.
2023 HSC-style3 marksProve that sqrt(23) is irrational.Show worked answer →
Use proof by contradiction.
Assume, for contradiction, that sqrt(23) is rational. Then sqrt(23) = p/q for integers p, q with q not 0, and we may take p/q in lowest terms (p and q coprime).
Squaring: 23 = p^2/q^2, so p^2 = 23 q^2.
Then 23 divides p^2. Since 23 is prime, 23 must divide p. Write p = 23m for some integer m.
Substitute: (23m)^2 = 23 q^2, so 529 m^2 = 23 q^2, giving q^2 = 23 m^2.
Then 23 divides q^2, and since 23 is prime, 23 divides q.
But now 23 divides both p and q, contradicting that they are coprime.
The assumption is false, so sqrt(23) is irrational.
Mark notes: 1 mark for setting up the contradiction with a coprime fraction, 1 mark for deducing 23 divides p (using that 23 is prime), 1 mark for the symmetric step on q and stating the contradiction.
2022 HSC-style3 marksProve that for all integers n with n >= 3, if 2^n - 1 is prime, then n cannot be even.Show worked answer →
Prove the contrapositive: if n is even (and n >= 3, so n >= 4), then 2^n - 1 is not prime.
Suppose n is even, say n = 2m where m is an integer with m >= 2. Then
2^n - 1 = 2^(2m) - 1 = (2^m)^2 - 1 = (2^m - 1)(2^m + 1),
using the difference of two squares.
Both factors are integers greater than 1: since m >= 2, 2^m - 1 >= 3 and 2^m + 1 >= 5.
So 2^n - 1 is a product of two integers each greater than 1, hence composite, so it is not prime.
This proves the contrapositive, which is logically equivalent to the original statement: for n >= 3, if 2^n - 1 is prime then n cannot be even.
Mark notes: 1 mark for setting up the contrapositive with n = 2m, 1 mark for the factorisation (2^m - 1)(2^m + 1), 1 mark for showing both factors exceed 1 so the number is composite.
2024 HSC-style2 marksExplain why there is no integer n such that (n + 1)^41 - 79 n^40 = 2.Show worked answer →
Argue using parity (whether numbers are odd or even), splitting into two cases.
Case 1: n is even. Then n + 1 is odd, so (n + 1)^41 is odd. Also 79 n^40 is even (it has the even factor n^40). So (n + 1)^41 - 79 n^40 = odd - even = odd. An odd number cannot equal 2.
Case 2: n is odd. Then n + 1 is even, so (n + 1)^41 is even. Also 79 n^40 is odd (79 is odd and n^40 is odd). So the expression = even - odd = odd, which again cannot equal 2.
In both cases (n + 1)^41 - 79 n^40 is odd, but 2 is even. Therefore no integer n satisfies the equation.
Mark notes: 1 mark for recognising a parity (odd/even) argument is needed, 1 mark for showing the expression is always odd and so cannot equal the even number 2.