Skip to main content

The nature of proof in HSC Mathematics Extension 2: direct proof, proof by contradiction, contrapositive and disproof by counterexample

Syllabus dot point

“Use the language of proof, prove results by contradiction and contrapositive, and disprove statements by counterexample”

HSCMaths Extension 2Proof (MEX-P1)12 min read

Quick answer

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 PP then QQ" proves the equivalent "if not QQ then not PP". The converse Q  ⟹  PQ \implies P is a different statement and does not follow. One counterexample disproves a universal statement.

Jump to a section
  1. What this dot point is asking
  2. The language of proof
  3. If and only if (equivalence)
  4. Direct proof
  5. Proof by contradiction
  6. Proof by contrapositive
  7. Disproof by counterexample
  8. Common logical fallacies
  9. How exam questions ask about the nature of proof
  10. Exam-style questions

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 P  ⟹  QP \implies Q ("if PP then QQ") asserts that whenever PP holds, QQ holds. Here PP is the hypothesis (the assumption) and QQ the conclusion. The implication says nothing about what happens when PP is false; in that case it is automatically counted as true (it is "vacuously true"), which is why a single example with PP false can never test an implication.

Three related statements are built from P  ⟹  QP \implies Q, and keeping them apart is the most common source of error in the whole module:

  • Converse: Q  ⟹  PQ \implies P. 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: ¬Q  ⟹  ¬P\lnot Q \implies \lnot P. The contrapositive is logically equivalent to P  ⟹  QP \implies Q: the two are true in exactly the same situations, so proving one proves the other.
  • Negation: ¬(P  ⟹  Q)\lnot(P \implies Q) is true exactly when PP is true and QQ is false. This is the statement you assume at the start of a proof by contradiction.

The quantifiers "for all" (∀\forall) and "there exists" (∃\exists) bind variables and tell you the scope of a claim. Negation swaps them: the negation of ∀x P(x)\forall x\, P(x) is ∃x ¬P(x)\exists x\, \lnot P(x), and the negation of ∃x P(x)\exists x\, P(x) is ∀x ¬P(x)\forall x\, \lnot P(x). 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 P  ⟹  QP \implies Q and Q  ⟹  PQ \implies P hold, we write P  ⟺  QP \iff Q ("PP if and only if QQ", often abbreviated "iff"), and say PP and QQ 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: P  ⟹  QP \implies Q is the "only if" direction (PP holds only if QQ does) and Q  ⟹  PQ \implies P is the "if" direction.

The danger is doing half the work. Proving "x2=4  ⟺  x=2x^2 = 4 \iff x = 2" by only checking that x=2x = 2 gives x2=4x^2 = 4 proves just one direction; the other direction is in fact false, because x=−2x = -2 also satisfies x2=4x^2 = 4. Always prove forwards and backwards, and watch for the direction that quietly fails.

Direct proof

A direct proof of P  ⟹  QP \implies Q assumes PP and deduces QQ through valid algebraic or logical steps. For example, to prove that the sum of two even integers is even: let a=2ma = 2m and b=2nb = 2n for integers m,nm, n. Then a+b=2m+2n=2(m+n)a + b = 2m + 2n = 2(m + n), which is a multiple of 22, hence even. The skill is to translate the words into algebra you can manipulate ("even" becomes "2×2 \times integer"), do the algebra, then translate back.

Proof by contradiction

To prove a statement SS by contradiction, assume ¬S\lnot S and derive a logical impossibility, a contradiction such as 1=01 = 0, 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, ¬S\lnot S cannot hold, so SS is true.

The classic example is the irrationality of 2\sqrt{2}. Suppose, for contradiction, that 2\sqrt{2} is rational. Then 2=pq\sqrt{2} = \dfrac{p}{q} where p,qp, q are integers with no common factor (the fraction is in lowest terms) and q≠0q \neq 0. Squaring gives

2=p2q2⟹p2=2q2.2 = \frac{p^2}{q^2} \quad\Longrightarrow\quad p^2 = 2 q^2.

So p2p^2 is even, which forces pp to be even (if pp were odd, p2p^2 would be odd). Write p=2kp = 2k. Then p2=4k2=2q2p^2 = 4k^2 = 2q^2, so q2=2k2q^2 = 2k^2, meaning q2q^2 is even and hence qq is even. But then pp and qq share the factor 22, contradicting the assumption that pq\dfrac{p}{q} is in lowest terms. The assumption is impossible, so 2\sqrt{2} 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 P  ⟹  QP \implies Q is equivalent to ¬Q  ⟹  ¬P\lnot Q \implies \lnot P, you may prove the contrapositive instead. This is the right move whenever assuming ¬Q\lnot Q gives you something concrete to compute with while assuming PP gives you very little.

For example, prove: if n2n^2 is odd then nn is odd. Arguing directly from "n2n^2 is odd" is awkward, but the contrapositive, "if nn is even then n2n^2 is even", is immediate. Let n=2mn = 2m. Then n2=4m2=2(2m2)n^2 = 4m^2 = 2(2m^2), 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 P  ⟹  QP \implies Q assumes ¬Q\lnot Q and derives ¬P\lnot P by a direct chain, ending cleanly with no contradiction. A contradiction proof of the same implication assumes PP and ¬Q\lnot Q 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 "2\sqrt 2 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 xx, P(x)P(x)" 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 xx, if P(x)P(x) then Q(x)Q(x)", the counterexample must be a value that satisfies the hypothesis P(x)P(x) and fails the conclusion Q(x)Q(x). An example that fails P(x)P(x) proves nothing, because the implication is vacuously true there.

For example, the claim "every odd number is prime" fails because 99 is odd but 9=3×39 = 3 \times 3 is composite. A single value settles it. By contrast, to disprove "for all primes pp, 2p−12^p - 1 is prime" you cannot use p=4p = 4 (not prime, so it does not test the claim); you need p=11p = 11, where 211−1=2047=23×892^{11} - 1 = 2047 = 23 \times 89 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 P  ⟹  QP \implies Q and QQ, concluding PP. This is just using the converse; it is invalid.
  • Denying the antecedent. From P  ⟹  QP \implies Q and ¬P\lnot P, concluding ¬Q\lnot Q. Also invalid; only the contrapositive (from ¬Q\lnot Q conclude ¬P\lnot P) 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 P  ⟹  QP \implies Q but actually arguing Q  ⟹  PQ \implies P.
  • Generalising from examples. Checking the claim for n=1,2,3n = 1, 2, 3 and declaring it true for all nn. 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.
Key fact

The contrapositive ¬Q  ⟹  ¬P\lnot Q \implies \lnot P is logically equivalent to P  ⟹  QP \implies Q, so proving it proves the original. The converse Q  ⟹  PQ \implies P is a different statement and does not follow. To disprove a universal statement "for all xx, P(x)P(x)" 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 PP then QQ" where assuming PP is awkward: try the contrapositive, especially when PP 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.
Exam technique

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 pp and qq are coprime"). When you use that a prime pp divides p∣a2p \mid a^2 implies p∣ap \mid a, 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 (nn even, nn odd).

Prove that there is no smallest positive rational number, then disprove a related claim

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 SS: "there is no smallest positive rational number." Assume the negation ¬S\lnot S: that there is a smallest positive rational number, and call it rr. By assumption r>0r > 0 and rr is rational, and every positive rational is ≥r\ge r.
Construct a smaller positive rational
Since rr is rational and positive, the number r2\dfrac{r}{2} is also rational (a rational divided by 22 is rational) and positive. So r2\dfrac{r}{2} is a positive rational number.
Derive the contradiction
Because r>0r > 0, dividing by 22 makes it strictly smaller: r2<r\dfrac{r}{2} < r. So r2\dfrac{r}{2} is a positive rational strictly less than rr, which contradicts the assumption that rr was the smallest positive rational.
Conclude and sanity-check
The assumption ¬S\lnot S forces a contradiction, so ¬S\lnot S is false and SS is true: there is no smallest positive rational number. A quick check of the key step: if r=0.001r = 0.001, then r2=0.0005<0.001\dfrac{r}{2} = 0.0005 < 0.001, confirming the strict inequality for every positive rr.

Disprove that n2+n+41n^2 + n + 41 is prime for all positive integers nn

Now disprove the tempting claim "for all positive integers nn, n2+n+41n^2 + n + 41 is prime." This is a universal statement, so one counterexample is enough. The formula does give primes for small nn, which is exactly the trap. Take n=40n = 40: then n2+n+41=1600+40+41=1681=412n^2 + n + 41 = 1600 + 40 + 41 = 1681 = 41^2, which is composite. The single value n=40n = 40 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 n=1,…,39n = 1, \dots, 39" never amounts to a proof.

Final answer: there is no smallest positive rational number (by contradiction), and "for all positive integers nn, n2+n+41n^2 + n + 41 is prime" is false, disproved by n=40n = 40.

Edge cases and what-ifs

  • Vacuous truth. "If PP then QQ" is automatically true whenever PP is false. So an example with PP false can neither prove nor disprove an implication; to disprove, you must satisfy PP.
  • Negating compound statements. The negation of "PP and QQ" is "¬P\lnot P or ¬Q\lnot Q"; the negation of "PP or QQ" is "¬P\lnot P and ¬Q\lnot Q". 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 1=01 = 0), 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.
Common traps
Confusing converse with contrapositive
The contrapositive ¬Q  ⟹  ¬P\lnot Q \implies \lnot P is equivalent to P  ⟹  QP \implies Q; the converse Q  ⟹  PQ \implies P is not. Proving the converse does not prove the original.
A counterexample that does not satisfy the hypothesis
To disprove "if PP then QQ", your example must satisfy PP and fail QQ. An example failing PP 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 P  ⟹  QP \implies Q and Q  ⟹  PQ \implies P. 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 marks
Prove 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 marks
Prove 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 marks
Explain 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.

Practise this

Sources & how we know this

ExamExplained