Skip to main content

ProofsPath · 10 min

Proof by Contradiction

Important
For:GeneralResearch

Proof by Contradiction

Why This Matters

Proof by contradiction (Latin: reductio ad absurdum) is the most flexible non-constructive technique a proof writer has. The structure:

To prove PP, assume ¬P\neg P and derive a contradiction. Conclude PP.

The technique works because, classically, ¬¬PP\neg \neg P \Leftrightarrow P. You exploit the negation by extracting concrete consequences of ¬P\neg P, then push those consequences until two of them collide.

Recognize proof by contradiction when:

  • The conclusion is a non-existence statement ("there is no rational rr with r2=2r^2 = 2", "there are no integer solutions to ...").
  • The conclusion is an infinitude statement ("there are infinitely many primes").
  • A direct proof requires constructing a witness you cannot see, but a contradiction witness is easy to manipulate.
  • The negation has more structure than the original statement. Negating "for all xx, P(x)P(x)" yields "there exists xx with ¬P(x)\neg P(x)", an existential witness you can then chase.

Proof by contradiction is closely related to proof by contrapositive (PQP \Rightarrow Q is equivalent to ¬Q¬P\neg Q \Rightarrow \neg P) and infinite descent (a particular shape of contradiction that produces an infinite decreasing sequence in N\mathbb{N}). They are three faces of the same non-constructive impulse.

The Irrationality of 2\sqrt{2}

Theorem

Irrationality of the Square Root of Two (Pythagoreans, c. 500 BCE)

Statement

There is no rational number pq\frac{p}{q} such that (pq)2=2\left(\frac{p}{q}\right)^2 = 2.

Intuition

The proof is the canonical introduction to contradiction: assume 2\sqrt{2} is rational, write it in lowest terms, extract a parity contradiction. The argument is clean because the negation ("2\sqrt{2} is rational") gives you a concrete fraction to manipulate, while a direct proof would have to work with the whole real line.

Proof Sketch

Suppose, for contradiction, that 2=pq\sqrt{2} = \frac{p}{q} with p,qZp, q \in \mathbb{Z}, q0q \ne 0, and gcd(p,q)=1\gcd(p, q) = 1 (this last assumption is the load-bearing setup move; without it the argument loops).

Then p2=2q2p^2 = 2 q^2, so p2p^2 is even, so pp is even. Write p=2mp = 2m. Then 4m2=2q24 m^2 = 2 q^2, so q2=2m2q^2 = 2 m^2, so q2q^2 is even, so qq is even.

But pp even and qq even contradicts gcd(p,q)=1\gcd(p, q) = 1. Hence no such p,qp, q exist, and 2\sqrt{2} is irrational.

Why It Matters

The Pythagoreans famously hid this result because it broke their philosophical commitment to ratios of whole numbers. The proof became the template for all subsequent irrationality proofs: assume rationality, write in lowest terms, extract a divisibility contradiction. The same shape proves n\sqrt{n} irrational whenever nn is not a perfect square, and similar arguments handle ee and π\pi (with much more work).

Failure Mode

The proof relies on "p2p^2 even \Rightarrow pp even", which in turn relies on unique prime factorization. Over rings that lack unique factorization (some number-theoretic settings), the parity step does not transfer cleanly and the argument must be adapted.

Also: the lowest-terms hypothesis is essential. Without it the descent loops forever, extracting factors of 2 but never close the contradiction.

Euclid's Infinitude of Primes

Example

Euclid, Elements Book IX Proposition 20

Problem. Show that there are infinitely many prime numbers.

Solution. Suppose, for contradiction, that the set of primes is finite, say {p1,p2,,pn}\{p_1, p_2, \ldots, p_n\}.

Consider the integer N=p1p2pn+1N = p_1 p_2 \cdots p_n + 1. Either NN is prime, or NN has a prime factor pp. In the first case NN is a prime not in the original list (since N>piN > p_i for every ii), contradicting the assumption that the list was exhaustive. In the second case, pp divides NN but also divides p1pnp_1 \cdots p_n, so pp divides Np1pn=1N - p_1 \cdots p_n = 1, which is impossible.

Either way we reach a contradiction, so the set of primes is infinite.

A frequent confusion: NN in Euclid's argument is not always prime (the smallest counterexample is 23571113+1=30031=595092 \cdot 3 \cdot 5 \cdot 7 \cdot 11 \cdot 13 + 1 = 30031 = 59 \cdot 509). The proof does not claim NN is prime; it claims NN has a prime factor not on the list. This is a standard misreading.

The Logical Structure

A proof by contradiction has three parts:

  1. Setup. State the negation cleanly. "Suppose, for contradiction, that ¬P\neg P." Make the negation concrete: if PP is "for all xx, φ(x)\varphi(x)", then ¬P\neg P is "there exists x0x_0 with ¬φ(x0)\neg \varphi(x_0)"; fix that x0x_0 explicitly.
  2. Derivation. Use the assumption to derive consequences, typically two consequences that can be combined into a contradiction. The cleanest contradictions look like 0=10 = 1, gcd(p,q)>1\gcd(p, q) > 1 contradicting gcd(p,q)=1\gcd(p, q) = 1, or "n<nn < n" derived in some auxiliary structure.
  3. Closure. State the contradiction explicitly and conclude PP. Do not leave the contradiction implicit.

The setup move, naming the negation precisely, is where beginners stumble. Negating quantified statements is a mechanical operation but the mechanics are easy to forget under problem-solving pressure.

Worked Example: log23\log_2 3 is Irrational

Example

$\log_2 3$ is irrational

Problem. Show that log23\log_2 3 is not a rational number.

Solution. Suppose, for contradiction, that log23=pq\log_2 3 = \frac{p}{q} with p,qp, q positive integers (positive because log23>0\log_2 3 > 0).

Then 2p/q=32^{p/q} = 3, so 2p=3q2^p = 3^q. The left side is a power of 2, hence has only the prime 2 in its factorization. The right side is a power of 3, hence has only the prime 3 in its factorization.

By unique factorization in Z\mathbb{Z}, the only way 2p=3q2^p = 3^q is p=q=0p = q = 0, contradicting p,q1p, q \ge 1.

Hence log23\log_2 3 is irrational.

The shape generalizes immediately: logab\log_a b is irrational whenever a,ba, b are positive integers with disjoint prime factorizations and b1b \ne 1.

Common Mistakes

Watch Out

Begging the question

The most common error is assuming, in the contradiction argument, the very statement you are trying to prove. If the "contradiction" relies on PP itself, the proof is circular. After deriving the contradiction, re-read the proof and check that nothing in the chain assumed PP.

Watch Out

Negating the wrong scope

Negating "for all xx in SS, φ(x)\varphi(x)" gives "there exists x0x_0 in SS with ¬φ(x0)\neg \varphi(x_0)", not "for all xx in SS, ¬φ(x)\neg \varphi(x)". The quantifier flips. Beginners sometimes negate just the inner predicate and keep the quantifier. That produces a much stronger statement than the real negation, often unprovable, and the proof stalls.

Watch Out

Stopping at a non-contradiction

A "weird" or "surprising" consequence is not yet a contradiction. The conclusion ¬P\neg P must be incompatible with something definitely known to be true (an axiom, a theorem, a hypothesis of the problem). Until you state which known fact is contradicted, the proof is incomplete.

Watch Out

Using contradiction when a direct proof is shorter

Many proofs are dressed up as contradiction proofs out of habit when the direct version is cleaner. If your contradiction argument never uses the negation in any essential way (if you could delete the "suppose not" line and the rest still works), the direct proof is better.

Watch Out

Constructive limits

Proof by contradiction relies on the law of excluded middle: P¬PP \vee \neg P. In intuitionistic logic this is rejected, and contradiction proofs of positive existence are not valid: a contradiction proof of "there exists xx with φ(x)\varphi(x)" does not exhibit the witness. For olympiad and standard mathematics this is irrelevant; for foundations, type theory, and constructive computer science, it matters.

Exercises

ExerciseCore

Problem

Show that 3\sqrt{3} is irrational, following the template of the 2\sqrt{2} proof. Where does the parity argument get replaced?

ExerciseCore

Problem

Show that the equation x22y2=0x^2 - 2 y^2 = 0 has no positive integer solutions (x,y)(x, y).

ExerciseAdvanced

Problem

Prove that there is no continuous bijection f:[0,1][0,1]2f: [0, 1] \to [0, 1]^2 (no continuous bijection from the unit interval to the unit square).

Cross-Network Links

  • ProofsPath: proof-by-contrapositive is the close cousin: PQP \Rightarrow Q becomes ¬Q¬P\neg Q \Rightarrow \neg P, often producing a cleaner argument with the same logical content; proof-by-infinite-descent is contradiction in number-theoretic disguise (the contradiction is an infinite decreasing sequence of natural numbers); well-ordering-principle is the axiom underwriting infinite-descent contradictions.
  • TheoremPath: law-of-large-numbers uses contradiction-style arguments in some classical proofs (the Etemadi proof, for instance, uses subsequence contradictions).
  • ComputationPath: contradiction proofs that fail in constructive settings are the boundary case for type theory and proof assistants with intuitionistic foundations.

References

See structured references block. Primary entry points: Velleman How to Prove It Ch 3 for the technique with worked examples; Hardy Pure Mathematics Ch 1 for classical irrationality proofs; Aigner-Ziegler Proofs from THE BOOK for elegant contradiction arguments throughout; Dummett Elements of Intuitionism for the constructive critique.