Skip to main content
ExamExplained
NSW · Maths Extension 2
Maths Extension 2 study scene
§-Syllabus dot point
NSWMaths Extension 2Syllabus dot point

How do rigorous logical arguments such as proof by contradiction and counterexample establish or refute mathematical statements?

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

A focused answer to the HSC Maths Extension 2 dot point on the nature of proof. Logical language, implication and equivalence, if and only if, direct proof, proof by contradiction, the contrapositive, disproof by counterexample, and the common logical fallacies, with rigorous worked examples.

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

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

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.

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.

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.

Exam-style practice questions

Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

2023 HSC3 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 HSC3 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 HSC2 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.

ExamExplained